Skip to Content
Menu
This question has been flagged
3 Replies
3503 Views

Hello,

I uninstall Website, Purchase, Timesheet and Expenses modules from my Odoo Web port "http://digitaloceanip:8069/web/database/manager after that its showing me an error on my web page: ("Internal Server Error" The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.)


Avatar
Discard

Can you try to update base module?

Author

thanks for your response simon, i printed out the logs. Tadeusz, I am doing it now. Milin Prajapati, thanks for pointing me to the right direction but its taking forever. I will update you once its completed and share you the result

Author

I updated the module #./odoo-bin -d mydatabase_db -u all. but still the same issue.

Author

root@odoo-ubuntu-ft:/var/log/odoo# tail -100 odoo-server.log

    application_iter = app(environ, start_response)

  File "/odoo/odoo-server/odoo/service/server.py", line 439, 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 1287, in __call__

    return self.dispatch(environ, start_response)

  File "/odoo/odoo-server/odoo/http.py", line 1257, 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 1439, in dispatch

    odoo.registry(db).check_signaling()

  File "/odoo/odoo-server/odoo/__init__.py", line 104, in registry

    return modules.registry.Registry(database_name)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 62, in __new__

    return cls.new(db_name)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 86, in new

    odoo.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 419, in load_modules

    force, status, report, loaded_modules, update_module, models_to_check)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 315, in load_marked_modules

    perform_checks=perform_checks, models_to_check=models_to_check

  File "/odoo/odoo-server/odoo/modules/loading.py", line 191, in load_module_graph

    model_names = registry.load(cr, package)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 222, in load

    model = cls._build_model(self, cr)

  File "/odoo/odoo-server/odoo/models.py", line 521, in _build_model

    raise TypeError("Model %r does not exist in registry." % name)

TypeError: Model 'purchase.order.line' does not exist in registry. - - -

2022-01-17 13:00:56,269 31531 INFO Production_DB odoo.modules.loading: loading 1 modules...

2022-01-17 13:00:56,286 31531 INFO Production_DB odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries

2022-01-17 13:00:56,371 31531 INFO Production_DB odoo.modules.loading: loading 115 modules...

2022-01-17 13:00:56,640 31531 WARNING Production_DB odoo.modules.loading: Transient module states were reset

2022-01-17 13:00:56,641 31531 ERROR Production_DB odoo.modules.registry: Failed to load registry

Traceback (most recent call last):

  File "/odoo/odoo-server/odoo/modules/registry.py", line 60, in __new__

    return cls.registries[db_name]

  File "/odoo/odoo-server/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/odoo/odoo-server/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: 'Production_DB'

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "/odoo/odoo-server/odoo/modules/registry.py", line 86, in new

    odoo.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 419, in load_modules

    force, status, report, loaded_modules, update_module, models_to_check)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 315, in load_marked_modules

    perform_checks=perform_checks, models_to_check=models_to_check

  File "/odoo/odoo-server/odoo/modules/loading.py", line 191, in load_module_graph

    model_names = registry.load(cr, package)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 222, in load

    model = cls._build_model(self, cr)

  File "/odoo/odoo-server/odoo/models.py", line 521, in _build_model

    raise TypeError("Model %r does not exist in registry." % name)

TypeError: Model 'purchase.order.line' does not exist in registry.

2022-01-17 13:00:56,643 31531 INFO Production_DB werkzeug: 110.93.236.82 - - [17/Jan/2022 13:00:56] "POST /longpolling/poll HTTP/1.1" 500 - 9 0.006 0.374

2022-01-17 13:00:56,648 31531 ERROR Production_DB 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 439, 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 1287, in __call__

    return self.dispatch(environ, start_response)

  File "/odoo/odoo-server/odoo/http.py", line 1257, 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 1439, in dispatch

    odoo.registry(db).check_signaling()

  File "/odoo/odoo-server/odoo/__init__.py", line 104, in registry

    return modules.registry.Registry(database_name)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 62, in __new__

    return cls.new(db_name)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 86, in new

    odoo.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 419, in load_modules

    force, status, report, loaded_modules, update_module, models_to_check)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 315, in load_marked_modules

    perform_checks=perform_checks, models_to_check=models_to_check

  File "/odoo/odoo-server/odoo/modules/loading.py", line 191, in load_module_graph

    model_names = registry.load(cr, package)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 222, in load

    model = cls._build_model(self, cr)

  File "/odoo/odoo-server/odoo/models.py", line 521, in _build_model

    raise TypeError("Model %r does not exist in registry." % name)

TypeError: Model 'purchase.order.line' does not exist in registry. - - -

 

Thanks in Advance

Junoon


Author

Sarra, I am pretty new in Odoo. So i dont know how to remove 'purchase.order.line' from a module.

Best Answer

Check if you have an installed custom module that inherit 'purchase.order.line'.

Avatar
Discard
Best Answer

Try something like this while running the server instance
./odoo-bin -d test_db -u all

Avatar
Discard
Best Answer

When this kind of errors happen, you have to check odoo's logs. There you will find more information of what is causing your error.

Avatar
Discard