On 14 July 2012 15:54, avfc services <[email protected]> wrote: > When i am trying to create a new database via tryton 2.4 i am getting below > error what is the reason of that : > > gnuh@avf [~]# /opt/python26/bin/trytond > [Sat Jul 14 03:52:43 2012] INFO:server:using /etc/trytond.conf as > configuration file > [Sat Jul 14 03:52:43 2012] INFO:server:initialising distributed objects > services > [Sat Jul 14 03:52:43 2012] INFO:server:starting JSON-RPC protocol on *:8000 > 1.22.127.241 - - [14/Jul/2012 03:53:24] code 400, message Bad request syntax > ('\x16\x03\x01\x00Z\x01\x00\x00V\x03\x01P\x013\x83\xa4-Z\xad$\xc4\xb0\xd3\xdf\xfd\xda3\xae\xa9\x89\x8c\xd4`;\xc7Q\xcc+\x1f\xccz}y\x00\x00(\x009\x008\x005\x00\x16\x00\x13\x00') > [Sat Jul 14 03:53:56 2012] INFO:database:connect to "newdb" > [Sat Jul 14 03:53:57 2012] INFO:database:connect to "template1" > [Sat Jul 14 03:53:57 2012] ERROR:database:CREATE DB: newdb failed > [Sat Jul 14 03:53:57 2012] ERROR:database:Exception in call: > Traceback (most recent call last): > File > "/opt/python26/lib/python2.6/site-packages/trytond-2.4.0-py2.6.egg/trytond/protocols/dispatcher.py", > line 201, in create > database = Database().connect() > File > "/opt/python26/lib/python2.6/site-packages/trytond-2.4.0-py2.6.egg/trytond/backend/postgresql/database.py", > line 61, in connect > self._connpool = ThreadedConnectionPool(minconn, maxconn, dsn) > File > "/opt/python26/lib/python2.6/site-packages/psycopg2-2.4.5-py2.6-linux-x86_64.egg/psycopg2/pool.py", > line 180, in __init__ > self, minconn, maxconn, *args, **kwargs) > File > "/opt/python26/lib/python2.6/site-packages/psycopg2-2.4.5-py2.6-linux-x86_64.egg/psycopg2/pool.py", > line 82, in __init__ > self._connect() > File > "/opt/python26/lib/python2.6/site-packages/psycopg2-2.4.5-py2.6-linux-x86_64.egg/psycopg2/pool.py", > line 86, in _connect > conn = psycopg2.connect(*self._args, **self._kwargs) > File > "/opt/python26/lib/python2.6/site-packages/psycopg2-2.4.5-py2.6-linux-x86_64.egg/psycopg2/__init__.py", > line 179, in connect > connection_factory=connection_factory, async=async) > OperationalError: fe_sendauth: no password supplied
The last line suggests that you have not provided postgresql credentials in the configuration file. A sample configuration file is available via the wiki. http://code.google.com/p/tryton/wiki/SetupAndStart -- Craig 'The first time any man's freedom is trodden on - we are all damaged.' Jean-Luc Picard () ascii ribbon campaign - against html mail /\ -- [email protected] mailing list
