Opened 7 years ago

Closed 7 years ago

#6338 closed defect (worksforme)

Error when using trac-admin upgrade

Reported by: anonymous Owned by: Odd Simon Simonsen
Priority: highest Component: FullBlogPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description (last modified by Odd Simon Simonsen)

Error info:

d:\server\web\xampp\python\Scripts>trac-admin d:\management\trac\iqube upgrade
Traceback (most recent call last):
  File "d:\server\web\xampp\python\Scripts\", line 8, in <module>
    load_entry_point('Trac==0.11.6', 'console_scripts', 'trac-admin')()
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\admin\", line 1321, in run
    return admin.onecmd(command)
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\admin\", line 138, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "d:\server\web\xampp\python\lib\", line 219, in onecmd
    return func(arg)
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\admin\", line 1159, in do_upgrade
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\", line 462, in upgrade
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\", line 430, in backup
    return DatabaseManager(self).backup(dest)
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\db\", line 120, in backup
    return connector.backup(dest)
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\db\", line 173, in backup
    p = Popen(args, env=environ, stderr=PIPE, close_fds=close_fds)
  File "D:\server\web\xampp\python\Lib\", line 594, in __init__
    errread, errwrite)
  File "D:\server\web\xampp\python\Lib\", line 816, in _execute_child
WindowsError: [Error 2]


Attachments (0)

Change History (8)

comment:1 Changed 7 years ago by anonymous

my trac version 0.11.6 python 2.5 apache 2.2 mysql 5.1

comment:2 Changed 7 years ago by Odd Simon Simonsen

Description: modified (diff)

(Fixed formatting of error.)

I don't actually see anything related to the plugin in the traceback, and Windows error number 2 is "The system cannot find the file specified." It can be anything related to your install or config. If you remove the enabling of the FullBlogPlugin in trac.ini, does the command run without issues? If so (ie. it is plugin stuff it has trouble reading), I'd look at how/where the plugin is installed and check permissions, try installing again etc.

comment:3 Changed 7 years ago by anonymous

Thanks for u answer!

My flow 1 Created svn's source to "TracFullBlogPlugin-0.1.1-py2.5.egg" 2 Copy "TracFullBlogPlugin-0.1.1-py2.5.egg" to d:\trac\env\plugins 3 When using trac-admin d:\trac\env\ upgrade

Now,the CMD show the Error messages,then I don't add FullBlogPlugin's enabling in trac.ini.

comment:4 Changed 7 years ago by anonymous

If I remove the TracFullBlogPlugin-0.1.1-py2.5.egg form d:\trac\env\plugins, and run "trac-admin d:\trac\env\ upgrade",no error output.

comment:5 Changed 7 years ago by anonymous

My OS is windows server 2008 64

comment:6 Changed 7 years ago by anonymous

comment:7 Changed 7 years ago by anonymous

I have the saame error before,I think you should put mysql in your $PATH!

comment:8 Changed 7 years ago by Odd Simon Simonsen

Resolution: worksforme
Status: newclosed

That makes sense. Seen that in the main Trac bugtracker too for some other plugin, and any upgrade will fail if the mysql command cannot be found.

Not a plugin issue.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Odd Simon Simonsen.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.