Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#386 closed defect (wontfix)

relation "bitten_log" does not exist

Reported by: anonymous Owned by: dfraser
Priority: major Milestone: 0.6
Component: Trac plugin Version: dev
Keywords: Cc:
Operating System: Linux

Description

After migrating an SQLite installation of Trac over to Postgres (and updating the version of Bitten to rev 626), I'm receiving the following message when I attempt to do a trac_admin upgrade:

Add filename column to log table to save where log files are stored.
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11.4', 'console_scripts', 'trac-admin')()
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/admin/console.py", line 1317, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/admin/console.py", line 133, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib64/python2.5/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/admin/console.py", line 1154, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/env.py", line 458, in upgrade
    participant.upgrade_environment(db)
  File "build/bdist.linux-x86_64/egg/bitten/main.py", line 74, in upgrade_environment
  File "build/bdist.linux-x86_64/egg/bitten/upgrades.py", line 291, in add_filename_to_logs
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/db/util.py", line 51, in execute
    return self.cursor.execute(sql)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/db/util.py", line 51, in execute
    return self.cursor.execute(sql)
psycopg2.ProgrammingError: relation "bitten_log" does not exist

Attachments (0)

Change History (10)

comment:1 Changed 15 years ago by dfraser

  • Owner changed from cmlenz to dfraser
  • Status changed from new to assigned

How did you do the migration? bitten_log is part of the standard schema in both databases...

comment:2 Changed 15 years ago by anonymous

comment:3 Changed 15 years ago by anonymous

If it helps at all, I'm coming from Bitten rev559 on the old database

comment:4 Changed 15 years ago by dfraser

Looks like that script gets the list of tables you want to migrate from postgres ... wierd ... will try have a better look later

comment:5 Changed 15 years ago by anonymous

Still experiencing the same issues. I can do an environment upgrade successfully without Bitten installed, but as soon as I add the plugin, I get the error outlined above.

comment:6 Changed 15 years ago by dfraser

Have you tried upgrading trac before transfering to postgresql?

comment:7 Changed 15 years ago by anonymous

That seems to have worked... Copied over old environment... Then upgraded Trac, plugins, etc... Upgraded Trac database... Migrated from SQLite to Postgres... Works perfectly... Thanks!

Something to note (which may help you in debugging this issue) is when I did the Trac DB upgrade (on the SQLite DB), I get two messages that I don't get when I try (and fail) upgrading on Postgres:

Add filename column to log table to save where log files are stored.
Done.
Migrates logs that are stored in the bitten_log_messages table into
files.
Done.

comment:8 Changed 15 years ago by dfraser

  • Resolution set to fixed
  • Status changed from assigned to closed

OK, we've had reports of people successfully upgrading on Potsgres so I'm closing this as wontfix since it seems this only happens if you both switch from sqlite to postgres and try upgrade in one go.

comment:9 Changed 15 years ago by dfraser

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:10 Changed 15 years ago by dfraser

  • Resolution set to wontfix
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain dfraser.
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.