Modify

Opened 5 years ago

Closed 4 years ago

#6338 closed defect (worksforme)

Error when using trac-admin upgrade

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

Description (last modified by osimons)

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\trac-admin-script.py", 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\console.py", 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\console.py", line 138, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "d:\server\web\xampp\python\lib\cmd.py", 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\console.py", line 1159, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\env.py", line 462, in upgrade
    self.backup(backup_dest)
  File "d:\server\web\xampp\python\lib\site-packages\Trac-0.11.6-py2.5-win32.egg\trac\env.py", 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\api.py", 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\mysql_backend.py", line 173, in backup
    p = Popen(args, env=environ, stderr=PIPE, close_fds=close_fds)
  File "D:\server\web\xampp\python\Lib\subprocess.py", line 594, in __init__
    errread, errwrite)
  File "D:\server\web\xampp\python\Lib\subprocess.py", line 816, in _execute_child
    startupinfo)
WindowsError: [Error 2]

Tininks

Attachments (0)

Change History (8)

comment:1 Changed 5 years ago by anonymous

my trac version 0.11.6
python 2.5 apache 2.2 mysql 5.1

comment:2 Changed 5 years ago by osimons

  • 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 5 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 5 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 5 years ago by anonymous

My OS is windows server 2008 64

comment:6 Changed 5 years ago by anonymous

comment:7 Changed 4 years ago by anonymous

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

comment:8 Changed 4 years ago by osimons

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

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.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from osimons. Next status will be 'closed'.
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.