Skip to Content
Menu
This question has been flagged
3 Replies
11446 Views

Hello,

I'm trying to connect Odoo with a Postgresql db that's located in another machine. I set the new database hostname (I have its endpoint), port, user and password in "openerp-server.conf", however, when I launch odoo.py I get  

2016-03-03 11:51:35,170 1284 INFO ? openerp: database hostname: localhost

2016-03-03 11:51:35,170 1284 INFO ? openerp: database port: 5432


If I lauch odoo with the database hostname and port arguments, it works fine, so I'm guessing odoo is not looking at the openerp-server.conf that I changed. 

in odoo/debian/init I have changed the CONFIG attribute and it points to the new openerp-server.config


Do I need to change anything else?


Thank you

Avatar
Discard
Best Answer

Hi, Carlos

You are getting this issue because Odoo is not able to locate your conf file. So in order to locate your conf file while running your Odoo there have multiple ways. Like

  • If you are running your Odoo directly from bin file then you need to pass your config file along with then bin file using "-c" or "--config" like below,

    • ../odoo-bin -c config_file_path
    • e.g: Path of your config file is /etc/odoo/odoo.conf

    • Then you can you command like,

      • ../odoo-bin -c /etc/odoo/odoo.conf  OR ../odoo-bin --config /etc/odoo/odoo.conf
  • Else you can achieve the same by creating a shell script file.

    • You can take help from the file,Script File

    • Or you can  refer to the Odoo Debian file.

    • Inside this file you can update your config file path inside "CONFIGFILE" attribute.

      • CONFIGFILE="/etc/odoo-server.conf"

    • Then you can you simply start/restart your shell script file using below command.

      • Script_FIle_Path start/restart

      • e.g: Path of script file is /etc/init.d/odoo-server then you can run command like below,

        • /etc/init.d/odoo-server restart 
Hope above points will help you to achieve this part. In case of any confusion feel free to ask.

Thanks,
Ashish Singh (Team Lead)
Webkul Software Private Limited
Avatar
Discard
Best Answer

Mira el siguiente enlace:

http://poncesoft.blogspot.com.es/2014/06/utilizar-un-servidor-independiente.html

Espero que te baya bien, recibe un cordial saludo.

Avatar
Discard
Best Answer

Try using xmlrpc

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 21
1482
2
Feb 19
8420
14
Dec 17
99067
0
Sep 17
1866
0
Mar 15
2453