Changes between Initial Version and Version 1 of Ticket #13051
- Timestamp:
- Jun 26, 2018, 7:40:53 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13051
- Property Priority high → normal
- Property Status new → closed
- Property Resolution → cantfix
-
Ticket #13051 – Description
initial v1 1 1 I figured out the initenv process of trac-admin requires more than just 'psycopg2' and 'trac' to use the postgresql driver, the previous week of last week. 2 2 3 Either it is a bug or the wiki page for database backends is missing an important line ( https://trac.edgewall.org/wiki/DatabaseBackend )3 Either it is a bug or the wiki page for database backends is missing an important line (DatabaseBackend). 4 4 5 I somehow figured out how to make it work after some digging: I had to also install TracTags from Python Package Index. otherwise I'd get messages like: 'TracError: Unsupported database type "postgres"'5 I somehow figured out how to make it work after some digging: I had to also install TracTags from Python Package Index. otherwise I'd get messages like: `TracError: Unsupported database type "postgres"` 6 6 7 7 8 8 9 9 * What I did: 10 useradd -mrd /var/lib/g9-trac g9-trac 11 mkdir -p /var/log/g9 10 {{{ 11 useradd -mrd /var/lib/g9-trac g9-trac 12 mkdir -p /var/log/g9 12 13 13 14 15 16 17 14 apt install -y virtualenv 15 # virtualenv -p /usr/bin/python3 /var/lib/g9-trac/ve-trac 16 su - g9-trac 17 virtualenv -p /usr/bin/python2 /var/lib/g9-trac/ve-trac 18 source /var/lib/g9-trac/ve-trac/bin/activate 18 19 19 20 21 20 pip install trac 21 #it's weird the psycopg2 driver worked only after I installed TracTags 22 pip install psycopg2 22 23 23 trac-admin /var/lib/g9-trac/trac-g9 initenv Gxxxxx9 'postgres://g9-trac:passphrase32!@localhost:5432/trac-g9' 24 25 24 trac-admin /var/lib/g9-trac/trac-g9 initenv Gxxxxx9 'postgres://g9-trac:passphrase32!@localhost:5432/trac-g9' 25 }}} 26 26 27 27 Thank you,