Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
582 Tampilan

Hello!

I cannot access my odoo instance anymore, it always returns a 500 error.

The error on the /opt/bitnami/apps/odoo/log/production.log​ file is:

2024-11-16 15:38:51,810 2819 INFO erp20202_003 odoo.modules.loading: loading 1 modules...

2024-11-16 15:38:51,826 2819 INFO erp20202_003 odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries

2024-11-16 15:38:51,841 2819 WARNING erp20202_003 odoo.modules.graph: module mai_pos_receipt_custom: not installable, skipped

2024-11-16 15:38:51,889 2819 INFO erp20202_003 odoo.modules.loading: loading 111 modules...

2024-11-16 15:38:52,125 2819 WARNING erp20202_003 odoo.models: The model catalogo.unidad.medida has no _description

2024-11-16 15:38:52,130 2819 WARNING erp20202_003 odoo.models: The model import.account.payment.from.xml has no _description

2024-11-16 15:38:52,176 2819 INFO erp20202_003 odoo.modules.loading: 111 modules loaded in 0.29s, 0 queries

2024-11-16 15:38:52,178 2819 ERROR erp20202_003 odoo.modules.loading: Some modules are not loaded, some dependencies or manifest may be missing: ['mai_pos_receipt_custom']

2024-11-16 15:38:52,404 2819 WARNING erp20202_003 odoo.modules.loading: Transient module states were reset

2024-11-16 15:38:52,405 2819 ERROR erp20202_003 odoo.modules.registry: Failed to load registry

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 60, in __new__

return cls.registries[db_name]

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/tools/[func.py](http://func.py)", line 69, in wrapper

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/tools/[lru.py](http://lru.py)", line 44, in __getitem__

a = self.d[obj].me

KeyError: 'erp20202_003'

  

During handling of the above exception, another exception occurred:

  

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 86, in new

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[loading.py](http://loading.py)", line 438, in load_modules

registry.setup_models(cr)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 255, in setup_models

model._setup_fields()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[models.py](http://models.py)", line 2693, in _setup_fields

field.setup_full(self)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[fields.py](http://fields.py)", line 433, in setup_full

self._setup_related_full(model)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[fields.py](http://fields.py)", line 486, in _setup_related_full

field = target._fields[name]

KeyError: 'district_id'

2024-11-16 15:38:55,467 2840 INFO erp20202_003 odoo.modules.loading: loading 1 modules...

2024-11-16 15:38:55,484 2840 INFO erp20202_003 odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries

2024-11-16 15:38:55,498 2840 WARNING erp20202_003 odoo.modules.graph: module mai_pos_receipt_custom: not installable, skipped

2024-11-16 15:38:55,541 2840 INFO erp20202_003 odoo.modules.loading: loading 111 modules...

2024-11-16 15:38:55,793 2840 WARNING erp20202_003 odoo.models: The model catalogo.unidad.medida has no _description

2024-11-16 15:38:55,798 2840 WARNING erp20202_003 odoo.models: The model import.account.payment.from.xml has no _description

2024-11-16 15:38:55,852 2840 INFO erp20202_003 odoo.modules.loading: 111 modules loaded in 0.31s, 0 queries

2024-11-16 15:38:55,854 2840 ERROR erp20202_003 odoo.modules.loading: Some modules are not loaded, some dependencies or manifest may be missing: ['mai_pos_receipt_custom']

2024-11-16 15:38:56,111 2840 WARNING erp20202_003 odoo.modules.loading: Transient module states were reset

2024-11-16 15:38:56,112 2840 ERROR erp20202_003 odoo.modules.registry: Failed to load registry

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 60, in __new__

return cls.registries[db_name]

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/tools/[func.py](http://func.py)", line 69, in wrapper

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/tools/[lru.py](http://lru.py)", line 44, in __getitem__

a = self.d[obj].me

KeyError: 'erp20202_003'

  

During handling of the above exception, another exception occurred:

  

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 86, in new

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[loading.py](http://loading.py)", line 438, in load_modules

registry.setup_models(cr)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 255, in setup_models

model._setup_fields()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[models.py](http://models.py)", line 2693, in _setup_fields

field.setup_full(self)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[fields.py](http://fields.py)", line 433, in setup_full

self._setup_related_full(model)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[fields.py](http://fields.py)", line 486, in _setup_related_full

field = target._fields[name]

KeyError: 'district_id'

2024-11-16 15:38:56,122 2840 ERROR erp20202_003 werkzeug: Error on request:

Traceback (most recent call last):

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/[serving.py](http://serving.py)", line 270, in run_wsgi

execute(self.server.app)

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/[serving.py](http://serving.py)", line 258, in execute

application_iter = app(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/service/[server.py](http://server.py)", line 439, in app

return self.app(e, s)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/service/[wsgi_server.py](http://wsgi_server.py)", line 140, in application

return ProxyFix(application_unproxied)(environ, start_response)

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/contrib/[fixers.py](http://fixers.py)", line 152, in __call__

return self.app(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/service/[wsgi_server.py](http://wsgi_server.py)", line 117, in application_unproxied

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[http.py](http://http.py)", line 1287, in __call__

return self.dispatch(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[http.py](http://http.py)", line 1257, in __call__

return self.app(environ, start_wrapped)

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/[wsgi.py](http://wsgi.py)", line 766, in __call__

return self.app(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[http.py](http://http.py)", line 1439, in dispatch

odoo.registry(db).check_signaling()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[__init__.py](http://__init__.py)", line 104, in registry

return modules.registry.Registry(database_name)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 62, in __new__

return cls.new(db_name)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 86, in new

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[loading.py](http://loading.py)", line 438, in load_modules

registry.setup_models(cr)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/[registry.py](http://registry.py)", line 255, in setup_models

model._setup_fields()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[models.py](http://models.py)", line 2693, in _setup_fields

field.setup_full(self)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[fields.py](http://fields.py)", line 433, in setup_full

self._setup_related_full(model)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/[fields.py](http://fields.py)", line 486, in _setup_related_full

field = target._fields[name]

KeyError: 'district_id' 14 0.016 0.655

2024-11-16 15:38:56,531 2840 INFO erp20202_003 odoo.modules.loading: loading 1 modules...

2024-11-16 15:38:56,549 2840 INFO erp20202_003 odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries

2024-11-16 15:38:56,769 2840 WARNING erp20202_003 odoo.modules.graph: module mai_pos_receipt_custom: not installable, skipped

2024-11-16 15:38:56,809 2840 INFO erp20202_003 odoo.modules.loading: loading 111 modules...

2024-11-16 15:38:57,037 2840 WARNING erp20202_003 odoo.models: The model catalogo.unidad.medida has no _description

2024-11-16 15:38:57,042 2840 WARNING erp20202_003 odoo.models: The model import.account.payment.from.xml has no _description

2024-11-16 15:38:57,092 2840 INFO erp20202_003 odoo.modules.loading: 111 modules loaded in 0.28s, 0 queries

2024-11-16 15:38:57,094 2840 ERROR erp20202_003 odoo.modules.loading: Some modules are not loaded, some dependencies or manifest may be missing: ['mai_pos_receipt_custom']

2024-11-16 15:38:58,219 2840 WARNING erp20202_003 odoo.modules.loading: Transient module states were reset

2024-11-16 15:38:58,219 2840 ERROR erp20202_003 odoo.modules.registry: Failed to load registry

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/registry.py", line 60, in __new__

return cls.registries[db_name]

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/tools/func.py", line 69, in wrapper

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/tools/lru.py", line 44, in __getitem__

a = self.d[obj].me

KeyError: 'erp20202_003'

  

During handling of the above exception, another exception occurred:

  

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/registry.py", line 86, in new

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/loading.py", line 438, in load_modules

registry.setup_models(cr)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/registry.py", line 255, in setup_models

model._setup_fields()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/models.py", line 2693, in _setup_fields

field.setup_full(self)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/fields.py", line 433, in setup_full

self._setup_related_full(model)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/fields.py", line 486, in _setup_related_full

field = target._fields[name]

KeyError: 'district_id'

2024-11-16 15:38:58,226 2840 ERROR erp20202_003 werkzeug: Error on request:

Traceback (most recent call last):

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/serving.py", line 270, in run_wsgi

execute(self.server.app)

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/serving.py", line 258, in execute

application_iter = app(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/service/[server.py](http://server.py)", line 439, in app

return self.app(e, s)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/service/wsgi_server.py", line 140, in application

return ProxyFix(application_unproxied)(environ, start_response)

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/contrib/fixers.py", line 152, in __call__

return self.app(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/service/wsgi_server.py", line 117, in application_unproxied

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/http.py", line 1287, in __call__

return self.dispatch(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/http.py", line 1257, in __call__

return self.app(environ, start_wrapped)

File "/opt/bitnami/python/lib/python3.7/site-packages/Werkzeug-0.14.1-py3.7.egg/werkzeug/wsgi.py", line 766, in __call__

return self.app(environ, start_response)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/http.py", line 1439, in dispatch

odoo.registry(db).check_signaling()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/__init__.py", line 104, in registry

return modules.registry.Registry(database_name)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/registry.py", line 62, in __new__

return cls.new(db_name)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/registry.py", line 86, in new

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

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/loading.py", line 438, in load_modules

registry.setup_models(cr)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/modules/registry.py", line 255, in setup_models

model._setup_fields()

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/models.py", line 2693, in _setup_fields

field.setup_full(self)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/fields.py", line 433, in setup_full

self._setup_related_full(model)

File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200815-py3.7.egg/odoo/fields.py", line 486, in _setup_related_full

field = target._fields[name]

KeyError: 'district_id' 14 0.013 1.696  

I have tried many things so far without any luck, I have tried:

  1. Updating all modules with the -u all​ option with odoo-bin​
  2. Updating just the web​ module
  3. Load only with base,web​ modules
  4. I’ve seen that district_id​ belongs to a module named fieldservice​, I have tried setting state=uninstalled​ directly in the db
  5. I do not remember what else

Can you please provide some guide? The thing about the registry looks important but cannot find a solution that works for me on the web or chatgpt

Thanks a lot!

Avatar
Buang
Jawaban Terbai

Hi,
If there is some recent technical changes, review the code and see if the added code are right and in proper syntax and standards.

* Try updating the specific app: fieldservice

Thanks

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Apr 23
2013
7
Feb 23
8366
0
Sep 22
1346
1
Jul 22
882
1
Mar 22
1172