Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to configure openerp-server.conf in the debian package?

By
Federico Bruni
on 10/25/14, 1:21 PM 3,591 views

I'm using odoo v8.0 from the Odoo repositories on my debian sid, just for testing purposes. As it's a package, I would expect it to work out of the box, i.e. being available at some (documented) port, like localhost:8080.

http://localhost:8069/ returns 500 Internal Server Error. The logs, /var/log/odoo/odoo-server.log is empty.

This is currently the default content of openerp-server.conf:

$ cat odoo/debian/openerp-server.conf 
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons

I've created the PostgreSQL role odoo.
Which are the missing required options to make it working?

I wonder if there's any other configuration I'm missing. For example, I see that the server is launched by the system user odoo (created by the .deb package, I guess):

# lsof -i :8069
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
openerp-s 3815 odoo    3u  IPv4  47395      0t0  TCP *:8069 (LISTEN)

# ps aux | grep odoo
odoo      3815  0.4  1.7 723828 134396 ?       Sl   19:41   0:02 /usr/bin/python /usr/bin/openerp-server --config /etc/odoo/openerp-server.conf --logfile /var/log/odoo/odoo-server.log
root      4844  0.0  0.0  12740  2276 pts/0    S+   19:52   0:00 grep odoo

# grep odoo /etc/passwd
odoo:x:123:138::/home/odoo:/bin/false

# ls  /home
fede

 

 

Well, I've realized that using the .deb package for testing was really a bad idea. Testing the source code from github is much better and I managed to run the server after a couple of attempts, thanks to the log in the output. I first created the default ~/.openerp_serverrc by running: ./openerp-server -s Then I adapted that file to work on my configuration. Values I had to edit were: db_port = 5433 # (on my system postgresql runs on 5433 instead of 5432, as supposed by odoo) db_password =

Federico Bruni
on 10/25/14, 3:48 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/25/14, 1:21 PM
Seen: 3591 times
Last updated: 3/16/15, 8:10 AM