跳至內容
選單
此問題已被標幟
2 回覆
16214 瀏覽次數

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.

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

Can you please execute below command

sudo ufw allow 8069

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
4月 24
2220
2
8月 20
23432
1
10月 19
10093
4
10月 16
35048
0
3月 15
3811