Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Odoo 14: request not bound to a database

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
databaserestoreodoo
2 Antwoorden
7945 Weergaven
Avatar
Bao Dang

I am trying to run Odoo 14 in my developing environment by restoring database from Prod and stuck at this issue. 


raise RuntimeError('request not bound to a database')


2022-10-20 07:06:44,575 21365 INFO ? werkzeug: 127.0.0.1 - - [20/Oct/2022 07:06:44] "GET /web/webclient/translations/5227498d9df4b403b0244c75aac21e0c091e50ce?lang=en_US HTTP/1.1" 404 - 1 0.003 0.019
2022-10-20 07:06:44,592 21365 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 1500, in _dispatch_nodb
result = request.dispatch()
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 810, in dispatch
r = self._call_function(**self.params)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 360, in _call_function
return self.endpoint(*args, **kwargs)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 916, in __call__
return self.method(*args, **kw)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 535, in response_wrap
response = f(*args, **kw)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/addons/web/controllers/main.py", line 951, in qweb
content = HomeStaticTemplateHelpers.get_qweb_templates(mods, db, debug=request.session.debug, bundle=bundle)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/addons/web/controllers/main.py", line 575, in get_qweb_templates
return cls(addons, db, debug=debug)._get_qweb_templates(bundle)[0]
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/addons/web/controllers/main.py", line 561, in _get_qweb_templates
for path, addon, _ in self._get_asset_paths(bundle):
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/addons/web/controllers/main.py", line 551, in _get_asset_paths
return request.env['ir.asset']._get_asset_paths(addons=self.addons, bundle=bundle, xml=True)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 244, in env
self._env = odoo.api.Environment(self.cr, self.uid, self.context)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 214, in cr
raise RuntimeError('request not bound to a database')
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/noufal/ODOO-Git/odoo/odoo15/venv/lib/python3.10/site-packages/werkzeug/serving.py", line 319, in run_wsgi
execute(self.server.app)
File "/home/noufal/ODOO-Git/odoo/odoo15/venv/lib/python3.10/site-packages/werkzeug/serving.py", line 308, in execute
application_iter = app(environ, start_response)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/service/server.py", line 482, in app
return self.app(e, s)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/service/wsgi_server.py", line 112, in application
return application_unproxied(environ, start_response)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/service/wsgi_server.py", line 87, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 1336, in __call__
return self.dispatch(environ, start_response)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 1302, in __call__
return self.app(environ, start_wrapped)
File "/home/noufal/ODOO-Git/odoo/odoo15/venv/lib/python3.10/site-packages/werkzeug/middleware/shared_data.py", line 287, in __call__
return self.app(environ, start_response)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 1533, in dispatch
result = _dispatch_nodb()
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 1502, in _dispatch_nodb
return request._handle_exception(e)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 748, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/home/noufal/ODOO-Git/odoo/odoo15/odoo15/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
RuntimeError: request not bound to a database - - -

0
Avatar
Annuleer
Ermin Trevisan

Please post a readable traceback and provide the necessary context.

Bao Dang
Auteur

So I was restoring our production database to my development environment and get this message:

Exception has occurred: RuntimeError (note: full exception trace is shown but execution is paused at: env)request not bound to a database File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 228, in cr raise RuntimeError('request not bound to a database') File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 258, in env (Current frame) self._env = odoo.api.Environment(self.cr, self.uid, self.context) File "D:\Gearment\ODOO\GM_Odoo\odoo\tools\translate.py", line 431, in _get_lang lang = request.env.lang File "D:\Gearment\ODOO\GM_Odoo\odoo\tools\translate.py", line 473, in _get_translation lang = self._get_lang(frame) File "D:\Gearment\ODOO\GM_Odoo\odoo\tools\translate.py", line 447, in __call__ translation = self._get_translation(source) File "D:\Gearment\ODOO\GM_Odoo\odoo\addons_ent\account_invoice_extract\models\account_invoice.py", line 36, in ERROR_INTERNAL: _("An error occurred"), File "D:\Gearment\ODOO\GM_Odoo\odoo\addons_ent\account_invoice_extract\models\__init__.py", line 4, in from . import account_invoice File "D:\Gearment\ODOO\GM_Odoo\odoo\addons_ent\account_invoice_extract\__init__.py", line 4, in from . import models File "D:\Gearment\ODOO\GM_Odoo\odoo\modules\module.py", line 358, in load_openerp_module __import__('odoo.addons.' + module_name) File "D:\Gearment\ODOO\GM_Odoo\odoo\modules\loading.py", line 178, in load_module_graph load_openerp_module(package.name) File "D:\Gearment\ODOO\GM_Odoo\odoo\modules\loading.py", line 346, in load_marked_modules loaded, processed = load_module_graph( File "D:\Gearment\ODOO\GM_Odoo\odoo\modules\loading.py", line 449, in load_modules processed_modules += load_marked_modules(cr, graph, File "D:\Gearment\ODOO\GM_Odoo\odoo\modules\registry.py", line 89, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "D:\Gearment\ODOO\GM_Odoo\odoo\service\db.py", line 308, in restore_db registry = odoo.modules.registry.Registry.new(db) File "D:\Gearment\ODOO\GM_Odoo\odoo\service\db.py", line 41, in if_db_mgt_enabled return method(self, *args, **kwargs) File "D:\Gearment\ODOO\GM_Odoo\odoo\addons\web\controllers\main.py", line 1186, in restore db.restore_db(name, data_file.name, str2bool(copy)) File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 530, in response_wrap response = f(*args, **kw) File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 911, in __call__ return self.method(*args, **kw) File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 359, in _call_function return self.endpoint(*args, **kwargs) File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 805, in dispatch r = self._call_function(**self.params) File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 1439, in _dispatch_nodb result = request.dispatch() File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 1466, in dispatch result = _dispatch_nodb() File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 1262, in __call__ return self.app(environ, start_wrapped) File "D:\Gearment\ODOO\GM_Odoo\odoo\http.py", line 1294, in __call__ return self.dispatch(environ, start_response) File "D:\Gearment\ODOO\GM_Odoo\odoo\service\wsgi_server.py", line 99, in application_unproxied result = odoo.http.root(environ, start_response) File "D:\Gearment\ODOO\GM_Odoo\odoo\service\wsgi_server.py", line 124, in application return application_unproxied(environ, start_response) File "D:\Gearment\ODOO\GM_Odoo\odoo\service\server.py", line 440, in app return self.app(e, s)

Avatar
Nesrine Essaies
Beste antwoord

add db_name = database_name to your config file

1
Avatar
Annuleer
Avatar
Bao Dang
Auteur Beste antwoord

Sorted it out by removing all cached from source code then checkout and re-run it./

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Restore database from Odoo 12 to Odoo 16 Opgelost
database restore odoo
Avatar
Avatar
1
feb. 24
79
clean purchase history
database odoo
Avatar
Avatar
1
mrt. 24
2480
"Restoring Odoo Online to Day One: Returning to Initial Conditions" Opgelost
database restore
Avatar
Avatar
Avatar
2
dec. 23
4050
How can I recover ownership? Opgelost
database odoo
Avatar
Avatar
1
feb. 23
2811
Odoo database failed Opgelost
database odoo
Avatar
Avatar
1
dec. 22
12699
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now