Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 10 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: Branch:
Release Notes:
API Changes:
Internal 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 by Remy Blank, 14 years ago

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 by Remy Blank, 14 years ago

Component: generaldatabase backend

comment:3 by easteregg@…, 14 years ago

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 by Remy Blank, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in [9986] and [9987].

comment:5 by Ryan J Ollos, 10 years ago

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. Next status will be 'reopened'.
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.