Hi all,
I'm trying to install tryton on a macos 10.7.  I've installed all the 
package from port and follow all the instructions on the wiki 
(https://groups.google.com/forum/?fromgroups=#!newtopic/tryton).  I believe 
it is running on python2.7, tryton2.6.1

When I try to create the database as describe in the Setup&Start section:
I get this error message:
fderyckel$ sudo su postgres -c "createuser --createdb --no-adduser -P 
tryton"
Enter password for new role: 
Enter it again: 
Shall the new role be allowed to create more new roles? (y/n) y
createuser: could not connect to database postgres: could not connect to 
server: Permission denied
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

Similarly when I try to create the database from the Tryton app, I get the 
same message:
fderyckel$ sudo 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/trytond
[Tue Dec 18 15:58:55 2012] INFO:server:using default configuration
[Tue Dec 18 15:58:55 2012] INFO:server:initialising distributed objects 
services
[Tue Dec 18 15:58:55 2012] INFO:server:starting JSON-RPC protocol on 
localhost:8000
[Tue Dec 18 16:01:54 2012] INFO:database:connect to "ifitwalatrial1"
[Tue Dec 18 16:01:54 2012] INFO:database:connect to "template1"
[Tue Dec 18 16:01:54 2012] ERROR:database:CREATE DB: ifitwalatrial1 failed
[Tue Dec 18 16:01:54 2012] ERROR:database:Exception in call: 
Traceback (most recent call last):
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trytond-2.6.1-py2.7.egg/trytond/protocols/dispatcher.py",
 
line 212, in create
    database = Database().connect()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trytond-2.6.1-py2.7.egg/trytond/backend/postgresql/database.py",
 
line 61, in connect
    self._connpool = ThreadedConnectionPool(minconn, maxconn, dsn)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/pool.py",
 
line 180, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/pool.py",
 
line 82, in __init__
    self._connect()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/pool.py",
 
line 86, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/__init__.py",
 
line 179, in connect
    connection_factory=connection_factory, async=async)
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

Any ideas on how I could create the database? 

Thanks in advance for your suggestions.

Best regards,


-- 
-- 
[email protected] mailing list



Reply via email to