Could not connect to server! on Fedora 12

Asked by Carlos Almeida

Hi,

I did the following to install (after reading docs and install all dependencies):
[cmsa@olympus ~]$ bzr branch lp:openerp
[cmsa@olympus ~]$ cd openerp/
[cmsa@olympus openerp]$ ./bzr_set.py -v 5.0
[cmsa@olympus openerp]$ cd web/lib/
[cmsa@olympus lib]$ ./populate.sh
[cmsa@olympus lib]$ sudo /etc/init.d/postgresql restart
[sudo] password for cmsa:
A desligar o serviço postgresql: [ OK ]
A iniciar o serviço postgresql: [ OK ]
[cmsa@olympus lib]$

Then I run server:
[cmsa@olympus lib]$ cd ../../server/bin/
[cmsa@olympus bin]$ ./openerp-server.py --db_user=DBUSER --db_password=DBPASS --db_host=127.0.0.1 --db_port=5432 --save
Start OpenERP Server...
[2010-05-31 11:23:08,324] INFO:server:version - 5.0.10
[2010-05-31 11:23:08,331] INFO:server:addons_path - /home/cmsa/openerp/server/bin/addons
[2010-05-31 11:23:08,332] INFO:server:database hostname - 127.0.0.1
[2010-05-31 11:23:08,332] INFO:server:database port - 5432
[2010-05-31 11:23:08,332] INFO:server:database user - openerp
[2010-05-31 11:23:08,333] INFO:objects:initialising distributed objects services
[2010-05-31 11:23:08,731] INFO:web-services:starting XML-RPC services, port 8069
[2010-05-31 11:23:08,732] INFO:web-services:starting NET-RPC service, port 8070
[2010-05-31 11:23:08,732] INFO:web-services:the server is running, waiting for connections...

OK, right!? :)
In another shell, the web server:
[cmsa@olympus ~]$ cd openerp/web
[cmsa@olympus web]$ ./openerp-web.py
[31/May/2010:11:23:40] ENGINE Bus STARTING
[31/May/2010:11:23:40] ENGINE Started monitor thread '_TimeoutMonitor'.
[31/May/2010:11:23:40] ENGINE Started monitor thread 'Autoreloader'.
[31/May/2010:11:23:41] ENGINE Serving on 127.0.0.1:8080
[31/May/2010:11:23:41] ENGINE Bus STARTED
[31/May/2010:11:25:01] ENGINE Started monitor thread 'Monitor'.

It seems all ok....
But when I go to http://127.0.0.1:8080 I get the "Could not connect to server!" in red at the bottom of the login page.

The firewall has the tcp:8080 open.

What is wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Web Client Edit question
Assignee:
No assignee Edit question
Solved by:
Stephane Wirtel (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Carlos Almeida (cmsa) said :
#1

Oh i get the following messages on...

Server shell:
/home/cmsa/openerp/server/bin/tools/misc.py:750: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  if hasattr(e, 'message'):
/home/cmsa/openerp/server/bin/tools/misc.py:751: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  return ustr(e.message)

Web shell:
/home/cmsa/openerp/web/openerp/rpc.py:52: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = ''
/home/cmsa/openerp/web/openerp/common.py:35: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
/home/cmsa/openerp/web/openerp/rpc.py:287: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  if e.message == 'AccessDenied':

Revision history for this message
Best Stephane Wirtel (OpenERP) (stephane-openerp) said :
#2

Hi,

1. Please, Could you use the forum for this question ?
2. Could you check if the server has an access to the database ?

Regards,

Revision history for this message
Carlos Almeida (cmsa) said :
#3

ok I will put in the forum, thanks.
The database is local, in the server.

Revision history for this message
Carlos Almeida (cmsa) said :
#4

I'll wait for a answer in the forum.
Thanks!

Revision history for this message
Carlos Almeida (cmsa) said :
#5

Thanks Stephane (Open ERP), that solved my question.

Revision history for this message
Carlos Almeida (cmsa) said :
#6

You where right, I've found the problem.

I had to change in the pg_hba.conf the authentication to MD5 instead ident.

The file gets:
# "local" is for Unix domain socket connections only
local all all ident
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5

After a postgres server restart, I could connect