Edgewall Software

Changes between Initial Version and Version 1 of Ticket #13051


Ignore:
Timestamp:
Jun 26, 2018, 7:40:53 AM (4 years ago)
Author:
Jun Omae
Comment:

InstallationIssue. Please ask on the mailing list.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13051

    • Property Priority highnormal
    • Property Status newclosed
    • Property Resolutioncantfix
  • Ticket #13051 – Description

    initial v1  
    11I 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.
    22
    3 Either it is a bug or the wiki page for database backends is missing an important line ( https://trac.edgewall.org/wiki/DatabaseBackend )
     3Either it is a bug or the wiki page for database backends is missing an important line (DatabaseBackend).
    44
    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"'
     5I 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"`
    66
    77
    88
    99* What I did:
    10  useradd -mrd /var/lib/g9-trac g9-trac
    11  mkdir -p /var/log/g9
     10{{{
     11useradd -mrd /var/lib/g9-trac g9-trac
     12mkdir -p /var/log/g9
    1213
    13  apt install -y virtualenv
    14  # virtualenv -p /usr/bin/python3 /var/lib/g9-trac/ve-trac
    15   su - g9-trac
    16     virtualenv -p /usr/bin/python2 /var/lib/g9-trac/ve-trac
    17     source /var/lib/g9-trac/ve-trac/bin/activate
     14apt install -y virtualenv
     15# virtualenv -p /usr/bin/python3 /var/lib/g9-trac/ve-trac
     16su - g9-trac
     17virtualenv -p /usr/bin/python2 /var/lib/g9-trac/ve-trac
     18source /var/lib/g9-trac/ve-trac/bin/activate
    1819
    19     pip install trac
    20     #it's weird the psycopg2 driver worked only after I installed TracTags
    21     pip install psycopg2
     20pip install trac
     21#it's weird the psycopg2 driver worked only after I installed TracTags
     22pip install psycopg2
    2223
    23     trac-admin /var/lib/g9-trac/trac-g9 initenv Gxxxxx9 'postgres://g9-trac:passphrase32!@localhost:5432/trac-g9'
    24 
    25 
     24trac-admin /var/lib/g9-trac/trac-g9 initenv Gxxxxx9 'postgres://g9-trac:passphrase32!@localhost:5432/trac-g9'
     25}}}
    2626
    2727Thank you,