Modify

Opened 5 years ago

Closed 5 years ago

#6832 closed defect (fixed)

Unable to upgrade trac after plugin Install

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

Description

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/console.py", 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/console.py", line 133, in onecmd

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

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

return func(arg)

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

self.env.upgrade(backup=do_backup)

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

self.backup(backup_dest)

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.5rc1-py2.5.egg/trac/env.py", 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/api.py", 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/postgres_backend.py", line 137, in backup

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

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

errread, errwrite)

File "/usr/local/lib/python2.5/subprocess.py", 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 miguel.joy@… added; anonymous removed

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

Action
as closed The owner will remain jeangui.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.