Opened 5 years ago

Closed 5 years ago

#6832 closed defect (fixed)

Unable to upgrade trac after plugin Install

Reported by:… Owned by: jeangui
Priority: normal Component: DefaultCcPlugin
Severity: normal Keywords:
Cc:… Trac Release: 0.11


I am able to successfully install the defaultcc plugin into my trac environment using easy_install, however, I get the following error after attempting to upgrade my trac environment:

Traceback (most recent call last):

File "/usr/local/bin/trac-admin", line 8, in <module>

load_entry_point('Trac==0.11.5rc1', 'console_scripts', 'trac-admin')()

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/admin/", line 1314, in run

return admin.onecmd(command)

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/admin/", line 133, in onecmd

rv = cmd.Cmd.onecmd(self, line) or 0

File "/usr/local/lib/python2.5/", line 219, in onecmd

return func(arg)

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/admin/", line 1154, in do_upgrade


File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/", line 455, in upgrade


File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/", line 423, in backup

return DatabaseManager(self).backup(dest)

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/db/", line 115, in backup

return connector.backup(dest)

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/db/", line 137, in backup

p = Popen(args, env=environ, stderr=PIPE, close_fds=close_fds)

File "/usr/local/lib/python2.5/", line 594, in init

errread, errwrite)

File "/usr/local/lib/python2.5/", line 1097, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory

My trac is running on an Linux machine using the Postgre db.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by anonymous

  • Cc… added

comment:2 Changed 5 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

I fixed this myself. Trac is unable to perform a backup of a PostGreSQL db so I had to do this manually.. and then perform the trac upgrade without the backup option:

trac-admin /path/to/projenv upgrade --no-backup

After I did these steps.. the plugin seems to work fine now.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.