I installed a fresh Ubuntu 16/ODOO 10 server and restored a DB from another server.
Backoffice is not working. I have noticed the addons folder is wrong.
It says "addons paths: ['/opt/odoo/.local/share/Odoo/addons/10.0', u'/opt/odoo/addons', '/opt/odoo/odoo/addons']" while my
relevant line of /etc/odoo-server.conf is:
addons_path = /opt/odoo/addons
When I try to go to backoffice, all http get requests return 404
CGroup: /system.slice/odoo.service
└─946 python /opt/odoo/odoo-bin -c /etc/odoo-server.conf
kdl@odoo:~$ sudo tail -f /var/log/odoo/odoo.log
2023-01-27 14:47:19,005 946 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 14:47:19] "GET /web_planner/static/src/xml/web_planner.xml HTTP/1.0" 404 -
2023-01-27 14:47:19,144 946 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 14:47:19] "GET /website/static/src/xml/website.gallery.xml HTTP/1.0" 404 -
2023-01-27 14:47:19,193 946 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 14:47:19] "POST /web/webclient/translations HTTP/1.0" 200 -
2023-01-27 14:48:07,100 946 INFO ? odoo.service.server: Initiating shutdown
2023-01-27 14:48:07,101 946 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2023-01-27 14:48:08,130 1562 INFO ? odoo: Odoo version 10.0
2023-01-27 14:48:08,131 1562 INFO ? odoo: Using configuration file at /etc/odoo-server.conf
2023-01-27 14:48:08,131 1562 INFO ? odoo: addons paths: ['/opt/odoo/.local/share/Odoo/addons/10.0', u'/opt/odoo/addons', '/opt/odoo/odoo/addons']
2023-01-27 14:48:08,131 1562 INFO ? odoo: database: odoo@default:default
2023-01-27 14:48:08,139 1562 INFO ? odoo.service.server: HTTP service (werkzeug) running on odoo:8069
2023-01-27 15:02:04,815 1661 ERROR epatec-11mar werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 180, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 168, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/odoo/service/server.py", line 307, in app
return self.app(e, s)
File "/opt/odoo/odoo/service/wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/odoo/service/wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "/opt/odoo/odoo/http.py", line 1326, in __call__
return self.dispatch(environ, start_response)
File "/opt/odoo/odoo/http.py", line 1499, in dispatch
result = ir_http._dispatch()
File "/opt/odoo/addons/website_sale/models/ir_http.py", line 15, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/opt/odoo/addons/website/models/ir_http.py", line 209, in _dispatch
resp = super(Http, cls)._dispatch()
File "/opt/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/opt/odoo/addons/utm/models/ir_http.py", line 20, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
return cls._handle_exception(e)
File "/opt/odoo/addons/website/models/ir_http.py", line 261, in _handle_exception
return super(Http, cls)._handle_exception(exception)
File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 775, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo/http.py", line 834, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 942, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 497, in load_locale
addons_path = http.addons_manifest['web']['addons_path']
KeyError: 'web'
2023-01-27 15:02:05,109 1661 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 15:02:05] "GET /backend_theme_v10/static/src/img/material-background.jpg HTTP/1.0" 404 -
2023-01-27 15:02:05,182 1661 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 15:02:05] "GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.woff?v=4.5.0 HTTP/1.0" 404 -
2023-01-27 15:02:05,222 1661 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 15:02:05] "GET /web_editor/static/src/xml/editor.xml HTTP/1.0" 404 -
2023-01-27 15:02:05,648 1661 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 15:02:05] "GET /web_editor/static/src/xml/snippets.xml HTTP/1.0" 404 -
2023-01-27 15:02:05,670 1661 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 15:02:05] "GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.ttf?v=4.5.0 HTTP/1.0" 404 -
2023-01-27 15:02:05,712 1661 INFO epatec-11mar werkzeug: 127.0.0.1 - - [27/Jan/2023 15:02:05] "POST /web/webclient/translations HTTP/1.0" 200 -
did you try and change addons_path in your config file to match what odoo gives you ?