This question has been flagged
2 Replies
14229 Views

I am attempting to install Odoo on a DigitalOcean server. I am attempting the package installation on a CentOS 7 box.

I followed all of the instructions on the installation page (https://www.odoo.com/documentation/10.0/setup/install.html#rpm), but when I attempt to access the server via HTTP I get a "connection refused" error.

When I ran `nmap` on the server, only port 22 was opened, so I used `firewall-cmd` to open up ports 80 and 8069 to public traffic, but I'm still getting the same connection refused error on both of those ports.

I checked the odoo log file at `/var/log/odoo/odoo-server.log`. These are the contents:

2016-12-12 23:52:53,007 9435 INFO ? odoo: Odoo version 10.0-20161212
2016-12-12 23:52:53,008 9435 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2016-12-12 23:52:53,008 9435 INFO ? odoo: addons paths: ['/var/lib/odoo/addons/10.0', u'/usr/lib/python2.7/site-packages/odoo/addons']
2016-12-12 23:52:53,008 9435 INFO ? odoo: database: odoo@default:default
2016-12-12 23:52:53,032 9435 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2016-12-12 23:53:13,080 9435 INFO ? odoo.service.server: Initiating shutdown
2016-12-12 23:53:13,081 9435 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2016-12-12 23:53:14,315 9452 INFO ? odoo: Odoo version 10.0-20161212
2016-12-12 23:53:14,316 9452 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2016-12-12 23:53:14,316 9452 INFO ? odoo: addons paths: ['/var/lib/odoo/addons/10.0', u'/usr/lib/python2.7/site-packages/odoo/addons']
2016-12-12 23:53:14,316 9452 INFO ? odoo: database: ben@default:default
2016-12-12 23:53:14,353 9452 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

What else do I have to do to get Odoo running? Do I need to setup a reverse proxy or configure WSGI or something?

When I run `ps aux | grep odoo` I get:

odoo      9452  0.0  8.9 571516 45004 ?        Ssl  Dec12   0:01 /usr/bin/python /usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log

So it looks like odoo is running, it's just not being served.

Avatar
Discard
Best Answer

Ben Harold

Your Odoo it's running on port 8069, check for any firewall or iptables rules that could be blocking network traffic, perhaps ufw

You need to access to using the public ip address. Recommended is to get it configured with a domain and a reverse proxy

Avatar
Discard
Best Answer

Can you please execute below command

sudo ufw allow 8069

Avatar
Discard