Modify

Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#7165 closed defect (invalid)

Installation fails with postgres 8.4.4

Reported by: henrik.steensland@… Owned by: Bart Ogryczak
Priority: high Component: BacklogPlugin
Severity: critical Keywords: postgresql backup environment upgrade
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

When activating the plugin, the message TracError: The Trac Environment needs to be upgraded. is shown.

However, such an upgrade fails with:

Command failed: Backup attempt failed (/usr/lib/postgresql/8.4/bin/pg_dump: invalid option -- 'd'
Try "pg_dump --help" for more information.

Attachments (0)

Change History (5)

comment:1 Changed 14 years ago by anonymous

Resolution: invalid
Status: newclosed

Actually, the problem is in trac 0.11.5 itself. The following patch solved the problem.

/usr/lib/python2.6/dist-packages/trac/db$ diff postgres_backend.py.org postgres_backend.py

117c117
<         args = [self.pg_dump_path, '-C', '-d', '-x', '-Z', '8']
---
>         args = [self.pg_dump_path, '-C', '-x', '-Z', '8']

comment:2 Changed 14 years ago by henrik.steensland@…

The above anonymous post was from me. Plugin works fine.

comment:3 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)

comment:4 Changed 12 years ago by Ryan J Ollos

Keywords: postgresql backup environment upgrade added

comment:5 in reply to:  1 Changed 12 years ago by Ryan J Ollos

Replying to anonymous:

Actually, the problem is in trac 0.11.5 itself.

See t:#8759 for more details.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Bart Ogryczak.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.