Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
databasesOdoo13.0
5 Respuestas
34714 Vistas
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
Descartar
Avatar
Md. Naim Hasan Khan Jeshad
Mejor respuesta

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
Descartar
Avatar
حذيفة النعيم محمد صالح
Mejor respuesta

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
Descartar
Avatar
Ankit Jayswal
Mejor respuesta

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
Descartar
Avatar
Kothiya Rajesh
Mejor respuesta

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

-1
Avatar
Descartar
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
Mejor respuesta

Upgrade the pip and pip3 using bellow command :

python3.7 -m pip install --upgrade pip

pip install --upgrade pip

-8
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
How do I delete a database?
databases
Avatar
Avatar
Avatar
3
sept 25
1401
Odoo 13. Don't close a wizard when Click a button Resuelto
Odoo13.0
Avatar
Avatar
Avatar
Avatar
4
may 24
13996
Permission error while user printing excel sheet report in odoo 13 Resuelto
Odoo13.0
Avatar
Avatar
1
abr 24
4279
One2many field edited from Transient Model cannot be made empty.
Odoo13.0
Avatar
0
nov 23
2960
Blank White Page After log in to Odoo13 Resuelto
Odoo13.0
Avatar
1
sept 23
3093
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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