Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5629 Widoki

We are using version 10 of Odoo on CentOS 7.4.1708.

Why are we not able to use port 80 for Odoo? There are a number of workarounds using NATs but not explanation as to why it doesn't just work. Since port 80 is the standard for http, I think that it is reasonable expectation that we be able to use it for a web-based service.


Below is the output to /var/log/messages after an attempted start. It almost looks like the odoo user just needs elevated permissions such as an entry in visudo to get the port that it needs:

Sep 19 14:53:06 template7 systemd: Starting Odoo Open Source ERP and CRM...
Sep 19 14:53:07 template7 odoo: Exception in thread odoo.service.httpd:
Sep 19 14:53:07 template7 odoo: Traceback (most recent call last):
Sep 19 14:53:07 template7 odoo: File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner Sep 19 14:53:07 template7 odoo: self.run()
Sep 19 14:53:07 template7 odoo: File "/usr/lib64/python2.7/threading.py", line 765, in run Sep 19 14:53:07 template7 odoo: self.__target(*self.__args, **self.__kwargs)
Sep 19 14:53:07 template7 odoo: File "/usr/lib/python2.7/site-packages/odoo/service/server.py", line 250, in http_thread Sep 19 14:53:07 template7 odoo: self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
Sep 19 14:53:07 template7 odoo: File "/usr/lib/python2.7/site-packages/odoo/service/server.py", line 105, in __init__ Sep 19 14:53:07 template7 odoo: handler=RequestHandler)
Sep 19 14:53:07 template7 odoo: File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 410, in __init__ Sep 19 14:53:07 template7 odoo: HTTPServer.__init__(self, (host, int(port)), handler)
Sep 19 14:53:07 template7 odoo: File "/usr/lib64/python2.7/SocketServer.py", line 419, in __init__ Sep 19 14:53:07 template7 odoo: self.server_bind()
Sep 19 14:53:07 template7 odoo: File "/usr/lib/python2.7/site-packages/odoo/service/server.py", line 115, in server_bind Sep 19 14:53:07 template7 odoo: super(ThreadedWSGIServerReloadable, self).server_bind()
Sep 19 14:53:07 template7 odoo: File "/usr/lib64/python2.7/BaseHTTPServer.py", line 108, in server_bind Sep 19 14:53:07 template7 odoo: SocketServer.TCPServer.server_bind(self)
Sep 19 14:53:07 template7 odoo: File "/usr/lib64/python2.7/SocketServer.py", line 430, in server_bind Sep 19 14:53:07 template7 odoo: self.socket.bind(self.server_address)
Sep 19 14:53:07 template7 odoo: File "/usr/lib64/python2.7/socket.py", line 224, in meth Sep 19 14:53:07 template7 odoo: return getattr(self._sock,name)(*args)
Sep 19 14:53:07 template7 odoo: error: [Errno 13] Permission denied

Awatar
Odrzuć
Najlepsza odpowiedź

Dear Jesse,

Please you can run odoo on port 80 with the help of Nginx reverse proxy server. The below links will help you to sort out the question.

http://www.technaureus.com/how-to-run-odoo-on-port-80/

http://www.technaureus.com/how-to-setup-nginx-for-odoo/


Thanks & Regards

Technaureus Info Solutions Pvt. Ltd.

Awatar
Odrzuć
Najlepsza odpowiedź

I'm sorry to dig this old topic, but have we find any solution?

As you say a lot of people propose workarounds, but no real explanation.
The unique things as I could do right now is start odoo as root which I prefer not to do.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 23
2353
0
sty 23
2667
2
mar 22
6316
3
lis 19
5162
2
mar 15
24814