Edgewall Software

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6742 closed task (wontfix)

Failed to create environment. FATAL: Ident authentication failed for user "tracuser" — at Version 2

Reported by: curtisbr@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.11b1
Severity: normal Keywords: ident, authentication, tracuser, fatal
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

Following the installation instructions, I am able to install Trac and create the postgresql database (using the same syntax as suggested for Debian). However, when I attempt to initialize the Trac environment, I get:

Creating and Initializing Project Failed to create environment. FATAL: Ident authentication failed for user "tracuser"

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/admin/console.py", line 541, in do_initenv
    options=options)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/env.py", line 187, in __init__
    self.create(options)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/env.py", line 304, in create
    DatabaseManager(self).init_db()
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/db/api.py", line 70, in init_db
    connector.init_db(**args)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/db/postgres_backend.py", line 65, in init_db
    cnx = self.get_connection(path, user, password, host, port, params)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/db/postgres_backend.py", line 46, in get_connection
    cnx = PostgreSQLConnection(path, user, password, host, port, params)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/db/postgres_backend.py", line 141, in __init__
    client_encoding='utf-8', unicode_results=True)
  File "/usr/lib64/python2.4/site-packages/pyPgSQL/PgSQL.py", line 2210, in connect
    return Connection(connInfo, client_encoding, unicode_results)
  File "/usr/lib64/python2.4/site-packages/pyPgSQL/PgSQL.py", line 2365, in __init__
    raise DatabaseError, m
DatabaseError: FATAL:  Ident authentication failed for user "tracuser"

Failed to initialize environment. 1
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/admin/console.py", line 545, in do_initenv
    sys.exit(1)
SystemExit: 1

As the error suggests, I am using Ident authorization (do you advise this method?). I created a "tracuser" account on the system and executed this command to initialize the Trac environment:

[tracuser@localhost ~]$ sudo su - postgres -c 'trac-admin /var/local/trac/featurestage initenv'

I am using CentOS 5.1

Change History (2)

comment:1 by curtisbr@…, 16 years ago

Version: 0.11b1

comment:2 by Emmanuel Blot, 16 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

Installation issue → please post to the MailingList.

Note: See TracTickets for help on using tickets.