Ti conviene installare i sorgenti direttamente perchè così puoi aggiornare l'ambiente
in modo continuativo e senza troppi grattacapi... OVVIAMENTE non farlo in produzione:
io ho due ambienti, uno che aggiorno con i sorgenti e che ha sempre più o meno le ultime
modifiche (quindi sia correzioni, che purtroppo nuovi bug (POCHI
)) , e uno più stabile
che aggiorno meno frequentemente ed è quello che usano i colleghi ...
Quanto ad Ubuntu 11.04, stesso discorso: se non sei in produzione, prova direttamente tu!
Perfetto! Quindi riassumendo i suggerimenti:
AMBIENTE DI PRODUZIONE: installo i pacchetti DEB "ufficiali" scaricabili dal sito OpenERP
AMBIENTE DI TEST: compilo i sorgenti come da istruzioni su link sopra
In teoria il deamon di OpenERP server usa un file di configurazione, il cui percorso lo vedi
facendo un more dello script in init.d ... All'interno del file di configurazione dovresti
avere attiva questa riga (o la attivi tu e poi riavvii il daemon) :
logfile = /var/log/openerp-server.log
quindi il tuo file di log si trova in quella posizione ...
In alternativa, spegni il deamon e avvii a mano OpenERP-server, che come detto da Nico,
almeno finchè non parte correttamente è il modo più semplice per controllare
Ecco il contenuto del mio file di log
[2011-04-18 15:30:51,452][?] INFO:server:OpenERP version - 6.0.2
[2011-04-18 15:30:51,452][?] INFO:server:addons_path - /usr/share/pyshared/openerp-server/addons
[2011-04-18 15:30:51,452][?] INFO:server:database hostname - localhost
[2011-04-18 15:30:51,453][?] INFO:server:database port - 5432
[2011-04-18 15:30:51,453][?] INFO:server:database user - openerp
[2011-04-18 15:30:51,453][?] INFO:server:initialising distributed objects services
[2011-04-18 15:30:52,840][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-04-18 15:30:52,846][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-04-18 15:30:52,846][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-04-18 15:30:52,858][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-04-18 15:30:52,858][?] INFO:server:Starting 3 services
[2011-04-18 15:30:52,876][?] INFO:server:OpenERP server is running, waiting for connections...
[2011-04-18 15:34:39,924][?] INFO:server:Stopping 3 services
[2011-04-18 15:34:39,924][?] INFO:shutdown:Initiating OpenERP Server shutdown
[2011-04-18 15:34:39,924][?] INFO:shutdown:Hit CTRL-C again or send a second signal to immediately terminate the server...
[2011-04-18 15:35:08,823][?] INFO:server:OpenERP version - 6.0.2
[2011-04-18 15:35:08,823][?] INFO:server:addons_path - /usr/share/pyshared/openerp-server/addons
[2011-04-18 15:35:08,823][?] INFO:server:database hostname - localhost
[2011-04-18 15:35:08,823][?] INFO:server:database port - 5432
[2011-04-18 15:35:08,823][?] INFO:server:database user - openerp
[2011-04-18 15:35:08,823][?] INFO:server:initialising distributed objects services
[2011-04-18 15:35:09,927][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-04-18 15:35:09,929][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-04-18 15:35:09,929][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-04-18 15:35:09,938][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-04-18 15:35:09,939][?] INFO:server:Starting 3 services
[2011-04-18 15:35:09,947][?] INFO:server:OpenERP server is running, waiting for connections...
[2011-04-18 15:42:42,232][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: impossibile connettersi al server: File o directory non esistente
Controllare che il server sia in funzione e che
accetti connessioni sui Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 15:48:18,139][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: impossibile connettersi al server: File o directory non esistente
Controllare che il server sia in funzione e che
accetti connessioni sui Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 15:54:40,511][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: impossibile connettersi al server: File o directory non esistente
Controllare che il server sia in funzione e che
accetti connessioni sui Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 15:54:48,709][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: impossibile connettersi al server: File o directory non esistente
Controllare che il server sia in funzione e che
accetti connessioni sui Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 15:56:07,295][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: impossibile connettersi al server: File o directory non esistente
Controllare che il server sia in funzione e che
accetti connessioni sui Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 15:56:27,917][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: impossibile connettersi al server: File o directory non esistente
Controllare che il server sia in funzione e che
accetti connessioni sui Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 15:58:12,168][?] INFO:server:Stopping 3 services
[2011-04-18 15:58:12,170][?] INFO:shutdown:Initiating OpenERP Server shutdown
[2011-04-18 15:58:12,170][?] INFO:shutdown:Hit CTRL-C again or send a second signal to immediately terminate the server...
[2011-04-18 15:59:09,856][?] INFO:server:OpenERP version - 6.0.2
[2011-04-18 15:59:09,874][?] INFO:server:addons_path - /usr/share/pyshared/openerp-server/addons
[2011-04-18 15:59:09,875][?] INFO:server:database hostname - localhost
[2011-04-18 15:59:09,875][?] INFO:server:database port - 5432
[2011-04-18 15:59:09,875][?] INFO:server:database user - openerp
[2011-04-18 15:59:09,875][?] INFO:server:initialising distributed objects services
[2011-04-18 15:59:13,915][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-04-18 15:59:13,917][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-04-18 15:59:13,917][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-04-18 15:59:14,045][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-04-18 15:59:14,046][?] INFO:server:Starting 3 services
[2011-04-18 15:59:14,049][?] INFO:server:OpenERP server is running, waiting for connections...
[2011-04-18 16:16:16,950][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 16:17:50,026][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[2011-04-18 16:24:59,613][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: FATAL: Ident authentication failed for user "openerp"
[2011-04-18 16:25:06,374][template1] ERROR:db.connection_pool:Connection to the database failed
Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/sql_db.py", line 303, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: FATAL: Ident authentication failed for user "openerp"
[2011-04-18 16:34:39,055][?] INFO:server:Stopping 3 services
[2011-04-18 16:34:39,056][?] WARNING:web-services:Netrpc: closing because of exception [Errno 22] Invalid argument
[2011-04-18 16:34:39,068][?] INFO:shutdown:Initiating OpenERP Server shutdown
[2011-04-18 16:34:39,068][?] INFO:shutdown:Hit CTRL-C again or send a second signal to immediately terminate the server...