Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
576 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 23
2005
7
thg 2 23
8362
0
thg 9 22
1345
1
thg 7 22
879
1
thg 3 22
1171