Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
databasesOdoo13.0
5 Replies
34708 Zobrazenia
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
Zrušiť
Avatar
Md. Naim Hasan Khan Jeshad
Best Answer

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
Zrušiť
Avatar
حذيفة النعيم محمد صالح
Best Answer

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
Zrušiť
Avatar
Ankit Jayswal
Best Answer

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
Zrušiť
Avatar
Kothiya Rajesh
Best Answer

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

-1
Avatar
Zrušiť
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
Best Answer

Upgrade the pip and pip3 using bellow command :

python3.7 -m pip install --upgrade pip

pip install --upgrade pip

-8
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
How do I delete a database?
databases
Avatar
Avatar
Avatar
3
sep 25
1397
Odoo 13. Don't close a wizard when Click a button Solved
Odoo13.0
Avatar
Avatar
Avatar
Avatar
4
máj 24
13993
Permission error while user printing excel sheet report in odoo 13 Solved
Odoo13.0
Avatar
Avatar
1
apr 24
4276
One2many field edited from Transient Model cannot be made empty.
Odoo13.0
Avatar
0
nov 23
2958
Blank White Page After log in to Odoo13 Solved
Odoo13.0
Avatar
1
sep 23
3093
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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