Modify ↓
#7165 closed defect (invalid)
Installation fails with postgres 8.4.4
Reported by: | Owned by: | Bart Ogryczak | |
---|---|---|---|
Priority: | high | Component: | BacklogPlugin |
Severity: | critical | Keywords: | postgresql backup environment upgrade |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
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 follow-up: 5 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 12 years ago by
Keywords: | postgresql backup environment upgrade added |
---|
comment:5 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
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']