Skip to Content
Menu
This question has been flagged
2 Replies
8412 Views

my Linux Ubuntu 18.04 had problems with the hard drive, status was write-protected file system!

Hard disk was replaced and the backup was restored.

Ubuntu or odoo was not NEW installed!

Since then I have had the "Internal Server Error" when trying to log into odoo. Even when I create a new database or restore a database.

Avatar
Discard

try to access postgres first and make sure database is running

Author Best Answer

Hello Hilar,

I have access to postgres, through gpadmin3 and psql.


Computer has already restarted, odoo and postgres stopped and started manually.


where is the problem?

I suspect it is because of odoo, because I get the same error when I restore the database to another system!

Avatar
Discard

what's in the odoo log ? any error?

Author

2020-11-17 14:04:47,200 7098 INFO ? odoo: Odoo version 13.0

2020-11-17 14:04:47,201 7098 INFO ? odoo: Using configuration file at /etc/odoo-server.conf

2020-11-17 14:04:47,202 7098 INFO ? odoo: addons paths: ['/odoo/odoo-server/odoo/addons', '/root/.local/share/Odoo/addons/13.0', '/odoo/odoo-server/addons']

2020-11-17 14:04:47,203 7098 INFO ? odoo: database: default@default:default

2020-11-17 14:04:47,470 7098 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf

2020-11-17 14:04:47,819 7098 INFO ? odoo.service.server: HTTP service (werkzeug) running on www.deko-gardina.ch:8069

2020-11-17 14:05:01,637 7098 INFO ? odoo.http: HTTP Configuring static files

2020-11-17 14:05:01,733 7098 INFO ? odoo.http: Generating nondb routing

2020-11-17 14:05:02,464 7098 INFO ? werkzeug: 192.168.5.9 - - [17/Nov/2020 14:05:02] "GET /web/database/manager HTTP/1.1" 200 - 14 0.061 0.692

2020-11-17 14:05:02,999 7098 INFO ? werkzeug: 192.168.5.9 - - [17/Nov/2020 14:05:02] "GET /web/static/src/img/favicon.ico HTTP/1.1" 200 - - - -

2020-11-17 14:05:18,347 7098 INFO ? werkzeug: 192.168.5.9 - - [17/Nov/2020 14:05:18] "GET /web?db=cphhr HTTP/1.1" 302 - 1 0.006 0.019

2020-11-17 14:05:18,500 7098 INFO cphhr odoo.modules.loading: loading 1 modules...

2020-11-17 14:05:18,540 7098 INFO cphhr odoo.modules.loading: 1 modules loaded in 0.04s, 0 queries

2020-11-17 14:05:18,617 7098 INFO cphhr odoo.modules.loading: loading 50 modules...

2020-11-17 14:05:19,557 7098 WARNING cphhr odoo.models: The model attendance.report.wizard has no _description

2020-11-17 14:05:19,558 7098 WARNING cphhr odoo.models: The model report.aspl_hr_attendance_report.attendance_report_pdf has no _description

2020-11-17 14:05:19,665 7098 WARNING cphhr odoo.models: The model report.timesheets_by_employee.report_timesheets has no _description

2020-11-17 14:05:19,666 7098 WARNING cphhr odoo.models: The model timesheet.wizard has no _description

2020-11-17 14:05:19,667 7098 INFO cphhr odoo.modules.loading: 50 modules loaded in 1.05s, 0 queries

2020-11-17 14:05:20,884 7098 WARNING cphhr odoo.models: ir.module.module: inconsistent 'compute_sudo' for computed fields: installed_version, local_updatable

2020-11-17 14:05:21,206 7098 INFO cphhr odoo.modules.loading: Modules loaded.

2020-11-17 14:05:21,225 7098 INFO cphhr odoo.addons.base.models.ir_http: Generating routing map for key None

2020-11-17 14:05:21,440 7098 INFO cphhr werkzeug: 192.168.5.9 - - [17/Nov/2020 14:05:21] "GET /web?db%3Dcphhr HTTP/1.1" 303 - 11 0.032 2.929

2020-11-17 14:05:22,884 7098 INFO cphhr odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [7442]

2020-11-17 14:05:24,473 7098 INFO cphhr odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [7304, 6548]

2020-11-17 14:05:24,968 7098 INFO cphhr werkzeug: 192.168.5.9 - - [17/Nov/2020 14:05:24] "GET /web/login HTTP/1.1" 500 - 399 0.582 2.814

2020-11-17 14:05:24,989 7098 ERROR cphhr werkzeug: Error on request:

Traceback (most recent call last):

File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 270, in run_wsgi

execute(self.server.app)

File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 258, in execute

application_iter = app(environ, start_response)

File "/odoo/odoo-server/odoo/service/server.py", line 414, in app

return self.app(e, s)

File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 142, in application

return application_unproxied(environ, start_response)

File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 117, in application_unproxied

result = odoo.http.root(environ, start_response)

File "/odoo/odoo-server/odoo/http.py", line 1281, in __call__

return self.dispatch(environ, start_response)

File "/odoo/odoo-server/odoo/http.py", line 1251, in __call__

return self.app(environ, start_wrapped)

File "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 766, in __call__

return self.app(environ, start_response)

File "/odoo/odoo-server/odoo/http.py", line 1450, in dispatch

result = ir_http._dispatch()

File "/odoo/odoo-server/addons/auth_signup/models/ir_http.py", line 19, in _dispatch

return super(Http, cls)._dispatch()

File "/odoo/odoo-server/addons/web_editor/models/ir_http.py", line 21, in _dispatch

return super(IrHttp, cls)._dispatch()

File "/odoo/odoo-server/addons/utm/models/ir_http.py", line 29, in _dispatch

response = super(IrHttp, cls)._dispatch()

File "/odoo/odoo-server/addons/http_routing/models/ir_http.py", line 519, in _dispatch

result = super(IrHttp, cls)._dispatch()

File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 233, in _dispatch

return cls._handle_exception(e)

File "/odoo/odoo-server/addons/utm/models/ir_http.py", line 34, in _handle_exception

response = super(IrHttp, cls)._handle_exception(exc)

File "/odoo/odoo-server/addons/http_routing/models/ir_http.py", line 610, in _handle_exception

return super(IrHttp, cls)._handle_exception(exception)

File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 201, in _handle_exception

return request._handle_exception(exception)

File "/odoo/odoo-server/odoo/http.py", line 744, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/odoo/odoo-server/odoo/http.py", line 309, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise

raise value

File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 229, in _dispatch

result = request.dispatch()

File "/odoo/odoo-server/odoo/http.py", line 803, in dispatch

r = self._call_function(**self.params)

File "/odoo/odoo-server/odoo/http.py", line 345, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/odoo/odoo-server/odoo/service/model.py", line 93, in wrapper

return f(dbname, *args, **kwargs)

File "/odoo/odoo-server/odoo/http.py", line 341, in checked_call

result.flatten()

File "/odoo/odoo-server/odoo/http.py", line 1230, in flatten

self.response.append(self.render())

File "/odoo/odoo-server/odoo/http.py", line 1223, in render

return env["ir.ui.view"].render_template(self.template, self.qcontext)

File "/odoo/odoo-server/addons/app_odoo_customize/models/ir_ui_view.py", line 18, in render_template

return super(View, self).render_template(template, values=values, engine=engine)

File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 1154, in render_template

return self.browse(self.get_view_id(template)).render(values, engine)

File "/odoo/odoo-server/addons/web_editor/models/ir_ui_view.py", line 27, in render

return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 1162, in render

return self.env[engine].render(self.id, qcontext)

File "/odoo/odoo-server/odoo/addons/base/models/ir_qweb.py", line 58, in render

result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 260, in render

self.compile(template, options)(self, body.append, values or {})

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn

raise e

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn

return compiled(self, append, new, options, log)

File "<template>", line 1, in template_web_login_6

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn

raise e

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn

return compiled(self, append, new, options, log)

File "<template>", line 1, in template_web_login_layout_12

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 339, in _compiled_fn

raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: 'ir.translation' object has no attribute 'get_web_translations_hash'

Traceback (most recent call last):

File "/odoo/odoo-server/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn

return compiled(self, append, new, options, log)

File "<template>", line 1, in template_web_frontend_layout_32

File "/odoo/odoo-server/addons/http_routing/models/ir_http.py", line 301, in get_frontend_session_info

translation_hash = request.env['ir.translation'].get_web_translations_hash(modules, lang)

AttributeError: 'ir.translation' object has no attribute 'get_web_translations_hash'

Error to render compiling AST

AttributeError: 'ir.translation' object has no attribute 'get_web_translations_hash'

Template: web.frontend_layout

Path: /t/html/head/script[2]/t

Node: <t t-raw="json.dumps(request.env['ir.http'].get_frontend_session_info())"/>; - - -

2020-11-17 14:05:47,888 7098 INFO cphhr odoo.addons.base.models.ir_cron: Starting job `Mail: Email Queue Manager`.

2020-11-17 14:05:47,987 7098 INFO cphhr odoo.addons.base.models.ir_cron: Job `Mail: Email Queue Manager` done.

2020-11-17 14:05:47,992 7098 INFO cphhr odoo.addons.base.models.ir_cron: Starting job `SMS: SMS Queue Manager`.

2020-11-17 14:05:48,037 7098 INFO cphhr odoo.addons.base.models.ir_cron: Job `SMS: SMS Queue Manager` done.

2020-11-17 14:05:48,039 7098 INFO cphhr odoo.addons.base.models.ir_cron: Starting job `Partner Autocomplete : Sync with remote DB`.

2020-11-17 14:05:48,082 7098 INFO cphhr odoo.addons.base.models.ir_cron: Job `Partner Autocomplete : Sync with remote DB` done.

2020-11-17 14:05:48,085 7098 INFO cphhr odoo.addons.base.models.ir_cron: Starting job `Snailmail: process letters queue`.

2020-11-17 14:05:48,128 7098 INFO cphhr odoo.addons.base.models.ir_cron: Job `Snailmail: process letters queue` done.

2020-11-17 14:05:48,131 7098 INFO cphhr odoo.addons.base.models.ir_cron: Starting job `Calendar: Event Reminder`.

2020-11-17 14:05:48,203 7098 INFO cphhr odoo.modules.registry: At least one model cache has been invalidated, signaling through the database.

2020-11-17 14:05:48,213 7098 INFO cphhr odoo.addons.base.models.ir_cron: Job `Calendar: Event Reminder` done.

2020-11-17 14:06:20,269 7098 INFO ? odoo.service.server: Initiating shutdown

2020-11-17 14:06:20,270 7098 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

Author

The solution was to install Ubuntu 20.04 on new computer. Odoo 13 CE installed and missing modules copied to the computer.

Restore the database after cphhr_test.

Then update all modules with the following command

sudo -u odoo /opt/odoo/odoo-bin -c /etc/odoo.conf -d cphhr_test -u all

This takes several hours because the computer is not that fast.

Intel Pentium with 8GB RAM.

The adjustments in the lists / views had to be carried out again.

Since then the system has been running without any problems

Related Posts Replies Views Activity
1
May 22
2302
1
Apr 22
3403
2
Nov 20
2770
1
Aug 20
1830
2
Nov 18
7257