0.12 environment upgrade gives cryptic error message with postgresql
Upgrading several installs to 0.12 and running into some UI weirdness. If you attempt to run trac-admin /path/to/env upgrade
on a env using postgresql you get the unhelpful, unfriendly message:
OSError: [Errno 2] No such file or directory
Turns out that's because it's trying to create a backup, which it can't do with postgresql. All you need to do is add --no-backup
to the command and it works fine. I seem to recall in the past there was a more useful error message there. Any chance it can be returned?
Change History
(5)
Milestone: |
→ 0.12.1
|
Owner: |
set to Remy Blank
|
Component: |
general → database backend
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Keywords: |
postgresql added; postgres removed
|
One change in 0.12 is that now it can create a backup with both PostgreSQL and MySQL. However, to do that, it needs the path to the
pg_dump
ormysqldump
executables, respectively.In your case, that means setting the
[trac] pg_dump_path
configuration option to the path to thepg_dump
executable, or using the--no-backup
option.A more user-friendly error message would definitely help there.