0

I'm trying to install odoo on a freshly installed minimal CentOS 7 system. Every set of instructions I can find seems to say how to do something unusual. I'm not needing any of that, I just want a standard install, no need to recompile from source, or obtain strange versions of other packages.

The procedure I've used so far is to run the following as root, but it doesn't work. What am I missing or doing wrong?

# install system utils
yum -y install wget screen epel-release

# install web server. is this even needed?
yum -y install httpd

# Install Database Software
yum -y install postgresql-server php-pgsql php-gd
postgresql-setup initdb
systemctl enable postgresql.service
systemctl start postgresql.service

# Install odoo dependancies
yum -y install babel libxslt-python pyparsing python-dateutil python-decorator python-docutils python-feedparser python-imaging python-jinja2 python-ldap python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-reportlab python-requests python-simplejson python-unittest2 python-vobject python-werkzeug python-yaml pytz

# Get and install odoo package
cd /usr/local/src
wget http://nightly.odoo.com/8.0/nightly/rpm/odoo_8.0-latest.noarch.rpm
rpm -ivh odoo_8.0-latest.noarch.rpm

firewall-cmd --zone=public --add-port=8069/tcp --permanent
firewall-cmd --reload

cat > /usr/lib/systemd/system/odoo.service << EOF
[Unit]
Description=Odoo 8.0 ERP and CRM server
After=postgresql.service

[Service]
Type=simple
User=odoo
Group=odoo
ExecStart=/usr/bin/python /usr/local/bin/openerp-server --config=/etc/odoo/openerp-server.conf

[Install]
WantedBy=multi-user.target
EOF

systemctl enable odoo.service
systemctl start odoo.service
systemctl status odoo.service

However this doesn't seem to work, and seems to result in

[root@odoo ~]# systemctl status odoo.service
odoo.service - Odoo 8.0 ERP and CRM server
   Loaded: loaded (/usr/lib/systemd/system/odoo.service; enabled)
   Active: failed (Result: exit-code) since Mon 2014-11-17 02:48:55 EST; 14h ago
  Process: 15480 ExecStart=/usr/bin/python /usr/local/bin/openerp-server --config=/etc/odoo/openerp-server.conf (code=exited, status=1/FAILURE)
 Main PID: 15480 (code=exited, status=1/FAILURE)

Nov 17 02:48:55 odoo.example.com systemd[1]: Starting Odoo 8.0 ERP and CRM server...
Nov 17 02:48:55 odoo.example.com systemd[1]: Started Odoo 8.0 ERP and CRM server.
Nov 17 02:48:55 odoo.example.com python[15480]: Traceback (most recent call last):
Nov 17 02:48:55 odoo.example.com python[15480]: File "/usr/local/bin/openerp-server", line 2, in 
Nov 17 02:48:55 odoo.example.com python[15480]: import openerp
Nov 17 02:48:55 odoo.example.com python[15480]: ImportError: No module named openerp
Nov 17 02:48:55 odoo.example.com systemd[1]: odoo.service: main process exited, code=exited, status=1/FAILURE
Nov 17 02:48:55 odoo.example.com systemd[1]: Unit odoo.service entered failed state.

All of this does create the Linux user:group of odoo:odoo as well as the postgresql user "odoo", however the process exits.

The content of /etc/odoo/openerp-server.conf is

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo
db_password = False
addons_path = /usr/local/lib/python2.7/dist-packages/openerp/addons
BeowulfNode42
  • 2,595
  • 2
  • 18
  • 32

0 Answers0