Edgewall Software
Modify

Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#9400 closed defect (fixed)

0.12 environment upgrade gives cryptic error message with postgresql

Reported by: chmullig@… Owned by: Remy Blank
Priority: normal Milestone: 0.12.1
Component: database backend Version:
Severity: normal Keywords: upgrade, postgresql
Cc:
Release Notes:
API Changes:

Description

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?

Attachments (0)

Change History (5)

comment:1 Changed 9 years ago by Remy Blank

Milestone: 0.12.1
Owner: set to Remy Blank

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 or mysqldump executables, respectively.

In your case, that means setting the [trac] pg_dump_path configuration option to the path to the pg_dump executable, or using the --no-backup option.

A more user-friendly error message would definitely help there.

comment:2 Changed 9 years ago by Remy Blank

Component: generaldatabase backend

comment:3 Changed 8 years ago by easteregg@…

thanks, i was using a 0.11 installation with mysql on a debian system and got the same error, while upgrading the enviroment for trac 0.12! than, with —no-backup → problem solved! thank you and a slap on your fingers, trac-coders! :P

comment:4 Changed 8 years ago by Remy Blank

Resolution: fixed
Status: newclosed

Fixed in [9986] and [9987].

comment:5 Changed 4 years ago by Ryan J Ollos

Keywords: postgresql added; postgres removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.