Edgewall Software

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12652 closed defect (cantfix)

trac-admin upgrade (from 1.0) error: 'Environment' object has no attribute 'get_db_cnx'

Reported by: strk@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

I have a trac 1.0 test deploy which I'm trying to upgrade to 1.2 but it fails at the trac-admin upgrade step:

[strk@cdb:/var/www/trac] sudo easy_install --upgrade Trac==1.0
[strk@cdb:/var/www/trac] trac-admin /var/www/trac upgrade
Database is up to date, no upgrade necessary.
[strk@cdb:/var/www/trac] sudo easy_install --upgrade Trac==1.2
[strk@cdb:/var/www/trac] trac-admin /var/www/trac upgrade
Error: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Attachments (0)

Change History (3)

comment:1 by Jun Omae, 5 years ago

Description: modified (diff)
Resolution: cantfix
Status: newclosed

InstallationIssue. I believe installed plugins lead the issue. Please check whether installed plugins are supporting Trac 1.2.x before upgrading to Trac 1.2.

If you don't use any plugins, please reopen this ticket and post trac.log with DEBUG level while trac-admin $ENV upgrade.

comment:2 by Jun Omae, 5 years ago

Milestone: 1.2.1

comment:3 by Ryan J Ollos, 5 years ago

Feel free to ask on the MailingList if need help determining which plugins are supported in Trac 1.2.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.