I'm trying to install Odoo latest version on a Webfaction server without success. I've managed to install it in my machine (Kubuntu 14.10 LTS) - everything went smooth here following this link: http://www.theopensourcerer.com/2014/09/how-to-install-openerp-odoo-8-on-ubuntu-server-14-04-lts/
But when I try to reproduce the installation process in Webfaction, Odoo keeps trying to access postgres database, ignoring the configuration file.
The error is:
OperationalError: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "futodoo", database "postgres", SSL on
FATAL: no pg_hba.conf entry for host "127.0.0.1", user "futodoo", database "postgres", SSL off
I've put correct db_user, db_name and db_password in both "~/.openerp_serverrc" (saved with ~/openerp-server -s) and in "openerp-wsgi.py". But this has no effect since Odoo always tryies to access the wrong database to which my user don't have access (and shouldn't have!).
This is a snippet of my openerp-wsgi.py file:
conf['addons_path'] = '/home/futuracode/projects/odoo/addons,/home/futuracode/projects/odoo/openerp/addons'
conf['db_name'] = 'blahblah'
conf['database'] = 'blahblah'
conf['db_host'] = 'localhost'
conf['db_user'] = 'futodoo'
conf['db_port'] = 5432
conf['db_password'] = 'SECRET'application = openerp.service.wsgi_server.application
openerp.service.server.load_server_wide_modules()
Any help on how to fix this?
Some more info:
1. I can access the database I put in the config using 'psql' on command line, so credentials are OK.
2. I've installed all python packages, that is, python setup.py didn't give any error. I'm using a virtualenv to keep things isolated since I'll install other systems along with Odoo. I've done virtualenvs before in Webfaction with mod_wsgi so I think this is not a problem.
3. I've some experience in using Webfaction and I'm almost sure this is a problem with Odoo not respecting the config.
4. I've some experience with python but not with Odoo - I'm newbie here.
Best regards,