Ticket #6832 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Unable to upgrade trac after plugin Install

Reported by: miguel.joy@us.ibm.com Assigned to: jeangui
Priority: normal Component: DefaultCcPlugin
Severity: normal Keywords:
Cc: miguel.joy@gmail.com 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

Change History

03/19/10 23:44:45 changed by anonymous

  • cc set to miguel.joy@gmail.com.

03/20/10 20:12:38 changed by anonymous

  • status changed from new to closed.
  • resolution set to fixed.

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/Change #6832 (Unable to upgrade trac after plugin Install)




Change Properties
Action