odoo / odoo/docker

Getting errors on latest update

Open
#437 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Have been running odoo:16 successfully for a while now. Some update in Feb 2023 has caused the page to just be white. No images work, and when clicking on a link from the splash page it will show only a white screen. When trying to navigate to a page, the below error is shown:

023-03-05 21:40:33,632 1 INFO oodo werkzeug: 192.168.1.229 - - [05/Mar/2023 21:40:33] "GET /web/assets/476-b190d5b/web.assets_backend.min.js HTTP/1.1" 500 - 4 0.002 0.004
2023-03-05 21:40:33,646 1 ERROR oodo odoo.http: Exception during request handling. 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1990, in __call__
    response = request._serve_db()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1584, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1613, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1726, in dispatch
    return self.request.registry['ir.http']._dispatch(endpoint)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 149, in _dispatch
    result = endpoint(**request.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 699, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/binary.py", line 107, in content_assets
    stream = request.env['ir.binary']._get_stream_from(record, 'raw', filename)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_binary.py", line 129, in _get_stream_from
    stream = self._record_to_stream(record, field_name)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_binary.py", line 73, in _record_to_stream
    return Stream.from_attachment(record)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 475, in from_attachment
    stat = os.stat(self.path)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/odoo/.local/share/Odoo/filestore/oodo/08/08a77663181c46155da9062492e90c60adbbce66'
2023-03-05 21:40:33,646 1 INFO oodo werkzeug: 192.168.1.229 - - [05/Mar/2023 21:40:33] "GET /web/assets/114-6e7f40c/web.assets_backend_prod_only.min.js HTTP/1.1" 500 - 4 0.002 0.004

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failing /web/assets/ request and the traceback through odoo/http.py, addons/web/controllers/binary.py, and addons/base/models/ir_binary.py. Inspect the referenced filestore path and the update context; done means the asset requests no longer return 500 or FileNotFoundError and the pages render normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.