Schöne Grüße
 Axel Braun
-- 
Written from cell phone - excuses for typos

Am 4. November 2016 20:34:00 MEZ, schrieb jmo <[email protected]>:
>Hello,
>
>Installed tryton-server, modules and client and cannot initialize the 
>database:
>
>/usr/bin/trytond-admin -c /etc/tryton/trytond.conf -u res -d tryton
>Traceback (most recent call last):
>  File "/usr/bin/trytond-admin", line 21, in <module>
>    admin.run(options)
>File "/usr/local/lib/python2.7/dist-packages/trytond/admin.py", line
>23, 
>in run
>    with Transaction().start(db_name, 0):
> File "/usr/local/lib/python2.7/dist-packages/trytond/transaction.py", 
>line 87, in start
>    database = Database(database_name).connect()
>  File 
>"/usr/local/lib/python2.7/dist-packages/trytond/backend/postgresql/database.py",
>
>line 93, in connect
>    minconn, maxconn, self.dsn(self.name))
>File "/usr/lib/python2.7/dist-packages/psycopg2/pool.py", line 156, in 
>__init__
>    self, minconn, maxconn, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/psycopg2/pool.py", line 58, in 
>__init__
>    self._connect()
> File "/usr/lib/python2.7/dist-packages/psycopg2/pool.py", line 62, in 
>_connect
>    conn = psycopg2.connect(*self._args, **self._kwargs)
>File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164,
>
>in connect
>conn = _connect(dsn, connection_factory=connection_factory,
>async=async)
>psycopg2.OperationalError: FATAL:  Peer authentication failed for user 
>"tryton"
>
>Also, "Create" database button on client does not result in any further
>
>action.
>
>Do I need to add database host(localhost) on the .conf here or some
>other 
>step I am missing?:
># PostgreSQL via Unix domain sockets
># (e.g. PostgreSQL database running on the same machine (localhost))
>uri = postgresql://tryton:tryton@/
>
>Any help is greatly appreciated.

Looks like the user tryton is not authorised in the database.
Is a role for user tryton created?
Is the authentication method in /var/lib/pgsql/data/pg_hba.conf correct?
Cheers
Axel

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/7608B391-4361-469A-B9D9-DE6F90E10F19%40gmx.de.

Reply via email to