Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1537 Vistas

I have to use linkedin as social lodin in odooi have done most of the part but during its first login attempt cachemiss error occurred and it shows oauth_error=2(Access Denied) error.




2022-05-11 05:59:53,938 12725 INFO ats_may odoo\.addons\.base\.models\.res_users:\ Login\ successful\ for\ db:ats_may\ login:abcdef@gmail\.com\ from\ 127\.0\.0\.1\
2022\-05\-11\ 05:59:53,954\ 12725\ ERROR\ ats_may\ odoo\.addons\.budget_hierarchy\.controllers\.controllers:\ OAuth2:\ Record\ does\ not\ exist\ or\ has\ been\ deleted\.
\(Record:\ res\.users\(450,\),\ User:\ 450\)\
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/api\.py",\ line\ 790,\ in\ get
\ \ \ \ return\ field_cache\[record\._ids\[0\]\]
KeyError:\ 450

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 970,\ in\ __get__
\ \ \ \ value\ =\ env\.cache\.get\(record,\ self\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/api\.py",\ line\ 793,\ in\ get
\ \ \ \ raise\ CacheMiss\(record,\ field\)
odoo\.exceptions\.CacheMiss:\ 'res\.users\(450,\)\.totp_enabled'

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/api\.py",\ line\ 790,\ in\ get
\ \ \ \ return\ field_cache\[record\._ids\[0\]\]
KeyError:\ 450

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 970,\ in\ __get__
\ \ \ \ value\ =\ env\.cache\.get\(record,\ self\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/api\.py",\ line\ 793,\ in\ get
\ \ \ \ raise\ CacheMiss\(record,\ field\)
odoo\.exceptions\.CacheMiss:\ 'res\.users\(450,\)\.totp_secret'

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 1019,\ in\ __get__
\ \ \ \ self\.compute_value\(recs\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 1175,\ in\ compute_value
\ \ \ \ records\._compute_field_value\(self\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/models\.py",\ line\ 4057,\ in\ _compute_field_value
\ \ \ \ getattr\(self,\ field\.compute\)\(\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/addons/auth_totp/models/res_users\.py",\ line\ 43,\ in\ _compute_totp_enabled
\ \ \ \ r\.totp_enabled\ =\ bool\(v\.totp_secret\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 1000,\ in\ __get__
\ \ \ \ raise\ MissingError\("\n"\.join\(\[
odoo\.exceptions\.MissingError:\ Record\ does\ not\ exist\ or\ has\ been\ deleted\.
\(Record:\ res\.users\(450,\),\ User:\ 450\)

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/api\.py",\ line\ 790,\ in\ get
\ \ \ \ return\ field_cache\[record\._ids\[0\]\]
KeyError:\ 450

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 970,\ in\ __get__
\ \ \ \ value\ =\ env\.cache\.get\(record,\ self\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/api\.py",\ line\ 793,\ in\ get
\ \ \ \ raise\ CacheMiss\(record,\ field\)
odoo\.exceptions\.CacheMiss:\ 'res\.users\(450,\)\.totp_secret'

During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/Ecom\-ATS/custom_ats/budget_hierarchy/controllers/controllers\.py",\ line\ 356,\ in\ signin
\ \ \ \ resp\ =\ login_and_redirect\(\*credentials,\ redirect_url=url\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/addons/web/controllers/main\.py",\ line\ 325,\ in\ login_and_redirect
\ \ \ \ uid\ =\ request\.session\.authenticate\(db,\ login,\ key\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/http\.py",\ line\ 1020,\ in\ authenticate
\ \ \ \ if\ not\ user\._mfa_url\(\):
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/addons/auth_totp/models/res_users\.py",\ line\ 37,\ in\ _mfa_url
\ \ \ \ if\ self\.totp_enabled:
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 1021,\ in\ __get__
\ \ \ \ self\.compute_value\(record\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 1175,\ in\ compute_value
\ \ \ \ records\._compute_field_value\(self\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/models\.py",\ line\ 4057,\ in\ _compute_field_value
\ \ \ \ getattr\(self,\ field\.compute\)\(\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/addons/auth_totp/models/res_users\.py",\ line\ 43,\ in\ _compute_totp_enabled
\ \ \ \ r\.totp_enabled\ =\ bool\(v\.totp_secret\)
\ \ File\ "/home/vineetkundra/Atsproject/custom_module/Atslatest/src/odoo/fields\.py",\ line\ 1000,\ in\ __get__
\ \ \ \ raise\ MissingError\("\n"\.join\(\[
odoo\.exceptions\.MissingError:\ Record\ does\ not\ exist\ or\ has\ been\ deleted\.
\(Record:\ res\.users\(450,\),\ User:\ 450\)
2022\-05\-11\ 05:59:53,957\ 12725\ INFO\ ats_may\ odoo.modules.registry: At least one model cache has been invalidated, signaling through the database.

Avatar
Descartar
Mejor respuesta

Hi, please checkout this module:

https://youtu.be/yzsMpIr9xx0

Hope it helps

Avatar
Descartar