[Trac] Re: trac-admin upgrade stack trace error with 0.11b1

2008-06-26 Thread Jesper Rønn-Jensen

Upgrading did not make the difference. it turned out the trac.db was
crashed... All tickets were missing, for one thing. So, I guess I
unfortunately started looking in the wrong place...

Unfortunately the message Run trac-admin /path_to_project/trac
upgrade pointed me in the wrong direction.
But then, you can't really make a program that knows everything...

Thanks for your reply and suggestion :)

/Jesper

On Jun 26, 5:22 am, Jani Tiainen [EMAIL PROTECTED] wrote:
 Jesper Rønn-Jensen kirjoitti:



  Suddently one of the Trac databases on a machine had a blank screen
  and asked me to run:
  Trac Error
  TracError: The Trac Environment needs to be upgraded.
  Run trac-admin /path_to_project/trac upgrade

  This resulted in the following stack trace error:

  sudo trac-admin /path_to_project/trac upgrade
  Traceback (most recent call last):
    File /usr/bin/trac-admin, line 8, in module
      load_entry_point('Trac==0.11b1', 'console_scripts', 'trac-admin')
  ()
    File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
  admin/console.py, line 1194, in run
      return admin.onecmd(command)
    File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
  admin/console.py, line 102, in onecmd
      rv = cmd.Cmd.onecmd(self, line) or 0
    File /usr/lib/python2.5/cmd.py, line 219, in onecmd
      return func(arg)
    File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
  admin/console.py, line 1105, in do_upgrade
      self.__env.upgrade(backup=do_backup)
    File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
  env.py, line 433, in upgrade
      self.backup(backup_dest)
    File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
  env.py, line 400, in backup
      dest = '%s.%i.bak' % (db_name, self.get_version())
  TypeError: an integer is required

  I'm quite blank and a quick google search did not help me. Any ideas
  of what to try next?
  The error occured after an ubuntu apt-get dist-upgrade to most
  recent distribution. The strange thing is that there are other trac
  databases also on the machine (sharing the trac install). And these
  run fine. Even with the exact same trac.ini configuration file.

  Any ideas on where I should look or what to do?

 Try first to install Trac-0.11-stable since it's released.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] trac-admin upgrade stack trace error with 0.11b1

2008-06-25 Thread Jesper Rønn-Jensen

Suddently one of the Trac databases on a machine had a blank screen
and asked me to run:
Trac Error
TracError: The Trac Environment needs to be upgraded.
Run trac-admin /path_to_project/trac upgrade


This resulted in the following stack trace error:

sudo trac-admin /path_to_project/trac upgrade
Traceback (most recent call last):
  File /usr/bin/trac-admin, line 8, in module
load_entry_point('Trac==0.11b1', 'console_scripts', 'trac-admin')
()
  File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
admin/console.py, line 1194, in run
return admin.onecmd(command)
  File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
admin/console.py, line 102, in onecmd
rv = cmd.Cmd.onecmd(self, line) or 0
  File /usr/lib/python2.5/cmd.py, line 219, in onecmd
return func(arg)
  File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
admin/console.py, line 1105, in do_upgrade
self.__env.upgrade(backup=do_backup)
  File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
env.py, line 433, in upgrade
self.backup(backup_dest)
  File /usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
env.py, line 400, in backup
dest = '%s.%i.bak' % (db_name, self.get_version())
TypeError: an integer is required


I'm quite blank and a quick google search did not help me. Any ideas
of what to try next?
The error occured after an ubuntu apt-get dist-upgrade to most
recent distribution. The strange thing is that there are other trac
databases also on the machine (sharing the trac install). And these
run fine. Even with the exact same trac.ini configuration file.

Any ideas on where I should look or what to do?

Thanks a lot for your input :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---