Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

AttributeError: 'ir.http' object has no attribute 'get_frontend_session_info'

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
databasesOdoo13.0
5 Antworten
34861 Ansichten
Avatar
madonna mikhael

Hello, i am trying to install odoo 13 on ubuntu 18.04 and to configure odoo 13 with pycharm, everytime i am trying to connect to odoo through firefox  i get the page of creating the database and when i try to proceed to the next page i get an internal server error.


Traceback (most recent call last):
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 138, in dispatch_rpc
    result = dispatch(method, params)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/db.py", line 451, in dispatch
    return g[exp_method_name](*params)
  File "<decorator-gen-4>", line 2, in exp_create_database
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/db.py", line 40, in if_db_mgt_enabled
    return method(self, *args, **kwargs)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/db.py", line 118, in exp_create_database
    _create_empty_database(db_name)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/db.py", line 103, in _create_empty_database
    raise DatabaseExists("database %r already exists!" % (name,))
odoo.service.db.DatabaseExists: database 'odoo--13' already exists!
2020-03-11 10:57:17,123 2863 INFO None werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "POST /web/database/create HTTP/1.1" 200 - 17 0.119 3.271
2020-03-11 10:57:17,627 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,650 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,676 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/jquery/jquery.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,733 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/popper/popper.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,758 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/js/index.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,808 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/js/util.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,844 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/js/alert.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,886 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/js/button.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,909 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/js/carousel.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:17,958 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:17] "GET /web/static/lib/bootstrap/js/collapse.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:18,030 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:18] "GET /web/static/lib/bootstrap/js/dropdown.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:18,076 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:18] "GET /web/static/lib/bootstrap/js/modal.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:18,112 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:18] "GET /web/static/lib/bootstrap/js/tooltip.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:18,144 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:18] "GET /web/static/lib/bootstrap/js/popover.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:18,187 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:18] "GET /web/static/lib/bootstrap/js/scrollspy.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:18,204 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:18] "GET /web/static/lib/bootstrap/js/tab.js HTTP/1.1" 304 - - - -
2020-03-11 10:57:19,379 2863 INFO ? werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:19] "GET /web/static/src/img/logo2.png HTTP/1.1" 304 - - - -
2020-03-11 10:57:25,768 2863 INFO odoo--13 werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:25] "GET /web?db=odoo--13 HTTP/1.1" 303 - 1 0.001 0.023
2020-03-11 10:57:35,059 2863 INFO odoo--13 werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:35] "GET /web/login HTTP/1.1" 500 - 148 0.542 8.640
2020-03-11 10:57:35,358 2863 ERROR odoo--13 werkzeug: Error on request:
Traceback (most recent call last):
  File "/home/madonna/Desktop/odoo-13.0/odoo-venv/lib/python3.6/site-packages/werkzeug/serving.py", line 270, in run_wsgi
    execute(self.server.app)
  File "/home/madonna/Desktop/odoo-13.0/odoo-venv/lib/python3.6/site-packages/werkzeug/serving.py", line 258, in execute
    application_iter = app(environ, start_response)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/server.py", line 439, in app
    return self.app(e, s)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/wsgi_server.py", line 142, in application
    return application_unproxied(environ, start_response)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/wsgi_server.py", line 117, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 1282, in __call__
    return self.dispatch(environ, start_response)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 1252, in __call__
    return self.app(environ, start_wrapped)
  File "/home/madonna/Desktop/odoo-13.0/odoo-venv/lib/python3.6/site-packages/werkzeug/wsgi.py", line 766, in __call__
    return self.app(environ, start_response)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 1451, in dispatch
    result = ir_http._dispatch()
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/ir_http.py", line 233, in _dispatch
    return cls._handle_exception(e)
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/ir_http.py", line 201, in _handle_exception
    return request._handle_exception(exception)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 745, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/madonna/Desktop/odoo-13.0/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/ir_http.py", line 229, in _dispatch
    result = request.dispatch()
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 804, in dispatch
    r = self._call_function(**self.params)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/madonna/Desktop/odoo-13.0/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 341, in checked_call
    result.flatten()
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 1231, in flatten
    self.response.append(self.render())
  File "/home/madonna/Desktop/odoo-13.0/odoo/http.py", line 1224, in render
    return env["ir.ui.view"].render_template(self.template, self.qcontext)
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/ir_ui_view.py", line 1154, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/ir_ui_view.py", line 1162, in render
    return self.env[engine].render(self.id, qcontext)
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/ir_qweb.py", line 58, in render
    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 260, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn
    raise e
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_web_login_6
   
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn
    raise e
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_web_login_layout_12
   
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 339, in _compiled_fn
    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.models.qweb.QWebException: 'ir.http' object has no attribute 'get_frontend_session_info'
Traceback (most recent call last):
  File "/home/madonna/Desktop/odoo-13.0/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_web_frontend_layout_30
AttributeError: 'ir.http' object has no attribute 'get_frontend_session_info'

Error to render compiling AST
AttributeError: 'ir.http' object has no attribute 'get_frontend_session_info'
Template: web.frontend_layout
Path: /t/html/head/script[2]/t
Node: <t t-raw="json.dumps(request.env['ir.http'].get_frontend_session_info())"/>; - - -
2020-03-11 10:57:36,110 2863 INFO odoo--13 werkzeug: 127.0.0.1 - - [11/Mar/2020 10:57:36] "GET /favicon.ico HTTP/1.1" 404 - 2 0.020 0.085
2020-03-11 10:57:44,490 2863 WARNING ? odoo.addons.base.models.ir_cron: Skipping database odoo--13 because of modules to install/upgrade/remove.
2020-03-11 10:57:45,497 2863 WARNING ? odoo.addons.base.models.ir_cron: Skipping database odoo--13 because of modules to install/upgrade/remove.
2020-03-11 10:58:44,556 2863 WARNING ? odoo.addons.base.models.ir_cron: Skipping database odoo--13 because of modules to install/upgrade/remove.
2020-03-11 10:58:46,566 2863 WARNING ? odoo.addons.base.models.ir_cron: Skipping database odoo--13 because of modules to install/upgrade/remove.

i've created database several times and i made sure of the addons path and i reinstalled postgresql and finally i've searched for the error and i've installed the missing libraries and deleted the cache and the history as mentioned, but the problem didn't solve..

thanks in advance..

0
Avatar
Verwerfen
Avatar
Md. Naim Hasan Khan Jeshad
Beste Antwort

1. Database Already Exists Error

The error message indicates that the database odoo--13 already exists:

odoo.service.db.DatabaseExists: database 'odoo--13' already exists!

Fix:

  • Drop the database manually and recreate it:


    sudo -u postgres psql DROP DATABASE "odoo--13"; CREATE DATABASE "odoo--13" OWNER odoo; \q


2. Frontend Session AttributeError

The key error message is:

AttributeError: 'ir.http' object has no attribute 'get_frontend_session_info'

This means Odoo is trying to access an attribute that does not exist, likely due to a missing or outdated module.

Fix:

  • Clear Odoo cache and restart:


    rm -rf ~/.local/share/Odoo systemctl restart odoo


3. Check PostgreSQL Connection

Make sure PostgreSQL is running and correctly configured:

sudo systemctl restart postgresql

If the problem persists, check the logs for more details:

tail -f /var/log/odoo/odoo.log


Hope it will help!

0
Avatar
Verwerfen
Avatar
حذيفة النعيم محمد صالح
Beste Antwort

I faced the same I ssue (AttributeError: 'ir.http' object has no attribute 'get_frontend_session_info') when I'm trying to create new database on odoo 18 

ERROR None odoo.addons.web.controllers.database: Database creation error.

No answer till now 

0
Avatar
Verwerfen
Avatar
Ankit Jayswal
Beste Antwort

Hello,

I am facing with the same error, can anyone please help me here how I fix this error.


In Terminal:

:/opt/odoo17$ /opt/odoo17/odoo-bin -i base,web

2024-05-01 10:43:49,955 32803 INFO ? odoo: Odoo version 17.0 

2024-05-01 10:43:49,956 32803 INFO ? odoo: addons paths: ['/opt/odoo17/odoo/addons', '/home/ankit/.local/share/Odoo/addons/17.0', '/opt/odoo17/addons'] 

2024-05-01 10:43:49,956 32803 INFO ? odoo: database: default@default:default 

2024-05-01 10:43:50,046 32803 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf 

Address already in use

Port 8069 is in use by another program. Either identify and stop that program, or start the server with a different port.

0
Avatar
Verwerfen
Avatar
Kothiya Rajesh
Beste Antwort

Hii All
Got the same issue in odoo16 new database init time.
Fixed with use of CLI  -i base,web

-1
Avatar
Verwerfen
First Abu Dhabi Islamic Bank

worked for me, thanks

MANAR ABD ALSALAM ABD ALAZEEM

could you please write the code because I've the same in odoo16

Avatar
Vipul Patel
Beste Antwort

Upgrade the pip and pip3 using bellow command :

python3.7 -m pip install --upgrade pip

pip install --upgrade pip

-8
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How do I delete a database?
databases
Avatar
Avatar
Avatar
3
Sept. 25
1569
Odoo 13. Don't close a wizard when Click a button Gelöst
Odoo13.0
Avatar
Avatar
Avatar
Avatar
4
Mai 24
14118
Permission error while user printing excel sheet report in odoo 13 Gelöst
Odoo13.0
Avatar
Avatar
1
Apr. 24
4352
One2many field edited from Transient Model cannot be made empty.
Odoo13.0
Avatar
0
Nov. 23
3037
Blank White Page After log in to Odoo13 Gelöst
Odoo13.0
Avatar
1
Sept. 23
3181
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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