Opened 16 years ago
Last modified 16 years ago
#6742 closed task
Failed to create environment. FATAL: Ident authentication failed for user "tracuser" — at Initial Version
Reported by: | 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
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