Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website require login error log #990

Open
esafocus opened this issue Jun 30, 2023 · 3 comments
Open

Website require login error log #990

esafocus opened this issue Jun 30, 2023 · 3 comments
Labels

Comments

@esafocus
Copy link

Module

website_require_login

Describe the bug

after installing the module, this error appears in the logs, is this normal?

Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/api.py", line 794, in get
return field_cache[record._ids[0]]
KeyError: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/fields.py", line 993, in get
value = env.cache.get(record, self)
File "/opt/odoo/odoo/odoo/api.py", line 797, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: 'website(1,).user_id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo/odoo-venv/lib/python3.9/site-packages/werkzeug/serving.py", line 306, in run_wsgi
execute(self.server.app)
File "/opt/odoo/odoo-venv/lib/python3.9/site-packages/werkzeug/serving.py", line 294, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/odoo/odoo/service/server.py", line 441, in app
return self.app(e, s)
File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 113, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 88, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/opt/odoo/odoo/odoo/http.py", line 1298, in call
return self.dispatch(environ, start_response)
File "/opt/odoo/odoo/odoo/http.py", line 1264, in call
return self.app(environ, start_wrapped)
File "/opt/odoo/odoo-venv/lib/python3.9/site-packages/werkzeug/middleware/shared_data.py", line 220, in call
return self.app(environ, start_response)
File "/opt/odoo/odoo/odoo/http.py", line 1489, in dispatch
result = ir_http._dispatch()
File "/opt/odoo/odoo-custom-addons/oca/website/website_require_login/models/ir_http.py", line 21, in _dispatch
if request.uid == website.user_id.id:
File "/opt/odoo/odoo/odoo/fields.py", line 2495, in get
return super().get(records, owner)
File "/opt/odoo/odoo/odoo/fields.py", line 1019, in get
recs._fetch_field(self)
File "/opt/odoo/odoo/odoo/models.py", line 3072, in _fetch_field
self._read(fnames)
File "/opt/odoo/odoo/odoo/models.py", line 3139, in _read
cr.execute(query_str, params + [sub_ids])
File "", line 2, in execute

File "/opt/odoo/odoo/odoo/sql_db.py", line 100, in check
raise psycopg2.OperationalError('Unable to use a closed cursor.')
psycopg2.OperationalError: Unable to use a closed cursor. - - -

To Reproduce

Affected versions:
14

@esafocus esafocus added the bug label Jun 30, 2023
@ttran293
Copy link

I'm also seeing this issue after install the module.

@ferharo1
Copy link

The same error happened to me in v14

@ProcessControl-CEAG
Copy link

any news about this issue??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants