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

Docker - KeyError: 'ir.http'

Suscribirse

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

Se marcó esta pregunta
dockerodoo12.0
2 Respuestas
59815 Vistas
Avatar
Thomas

I am having an issue when trying to start a docker container using docker-compose and the official compose file.

Here is my docker-compose.yml file (copied from the official Docker image https://store.docker.com/images/odoo):

version:'2'
services:
web:
image:odoo:12.0
depends_on:
  - db
ports:
  - "8069:8069"
volumes:
  - odoo12-web-data:/var/lib/odoo
  - ./addons:/mnt/extra-addons
db:
image:postgres:10
environment:
  - POSTGRES_PASSWORD=odoo
  - POSTGRES_USER=odoo
  - PGDATA=/var/lib/postgresql/data/pgdata
volumes:
  - odoo12-db-data:/var/lib/postgresql/data/pgdata
volumes:
odoo12-web-data:
odoo12-db-data:

 

Here is what I get when I docker-compose up :

db_1   | 2018-10-26 13:18:04.762 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2018-10-26 13:18:04.762 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2018-10-26 13:18:04.812 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2018-10-26 13:18:04.831 UTC [25] LOG: database system was shut down at 2018-10-26 12:12:24 UTC
db_1 | 2018-10-26 13:18:04.839 UTC [1] LOG: database system is ready to accept connections
web_1 | 2018-10-26 13:18:06,183 1 INFO ? odoo: Odoo version 12.0-20181008
web_1 | 2018-10-26 13:18:06,183 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
web_1 | 2018-10-26 13:18:06,184 1 INFO ? odoo: addons paths: ['/var/lib/odoo/addons/12.0', '/mnt/extra-addons', '/usr/lib/python3/dist-packages/odoo/addons']
web_1 | 2018-10-26 13:18:06,184 1 INFO ? odoo: database: odoo@db:5432
web_1 | 2018-10-26 13:18:06,327 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
web_1 | 2018-10-26 13:18:06,505 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on c83179cbca11:8069

and here is the error I get when I go to localhost:8069 :

 web_1  | 2018-10-26 13:23:28,389 1 INFO odoo werkzeug: 172.20.0.1 - - [26/Oct/2018 13:23:28] "GET / HTTP/1.1" 500 - 2 0.003 0.008
web_1 | 2018-10-26 13:23:28,392 1 ERROR odoo werkzeug: Error on request:
web_1 | Traceback (most recent call last):
web_1 | File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
web_1 | execute(self.server.app)
web_1 | File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 193, in execute
web_1 | application_iter = app(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 255, in app
web_1 | return self.app(e, s)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 128, in application
web_1 | return application_unproxied(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 117, in application_unproxied
web_1 | result = odoo.http.root(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 1317, in __call__
web_1 | return self.dispatch(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 1290, in __call__
web_1 | return self.app(environ, start_wrapped)
web_1 | File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 599, in __call__
web_1 | return self.app(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 1470, in dispatch
web_1 | ir_http = request.registry['ir.http']
web_1 | File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 176, in __getitem__
web_1 | return self.models[model_name]
web_1 | KeyError: 'ir.http' - - -
web_1 | 2018-10-26 13:23:28,451 1 INFO odoo werkzeug: 172.20.0.1 - - [26/Oct/2018 13:23:28] "GET /favicon.ico HTTP/1.1" 500 - 2 0.004 0.012
web_1 | 2018-10-26 13:23:28,455 1 ERROR odoo werkzeug: Error on request:
web_1 | Traceback (most recent call last):
web_1 | File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
web_1 | execute(self.server.app)
web_1 | File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 193, in execute
web_1 | application_iter = app(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 255, in app
web_1 | return self.app(e, s)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 128, in application
web_1 | return application_unproxied(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 117, in application_unproxied
web_1 | result = odoo.http.root(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 1317, in __call__
web_1 | return self.dispatch(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 1290, in __call__
web_1 | return self.app(environ, start_wrapped)
web_1 | File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 599, in __call__
web_1 | return self.app(environ, start_response)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 1470, in dispatch
web_1 | ir_http = request.registry['ir.http']
web_1 | File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 176, in __getitem__
web_1 | return self.models[model_name]
web_1 | KeyError: 'ir.http' - - -

Then here is what I get few seconds after trying to access localhost:8069

db_1   | 2018-10-26 13:20:06.476 UTC [33] ERROR:  relation "ir_module_module" does not exist at character 28
db_1 | 2018-10-26 13:20:06.476 UTC [33] STATEMENT: SELECT latest_version FROM ir_module_module WHERE name='base'
web_1 | 2018-10-26 13:20:06,477 1 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
web_1 | ERROR: relation "ir_module_module" does not exist
web_1 | LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
web_1 | ^
web_1 |
web_1 | 2018-10-26 13:20:06,477 1 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.

When I try with odoo11 image and postgre 9.4 (almost same docker-compose file) it works...

What am I doing wrong ?


0
Avatar
Descartar
Fatih Piristine

seems like db init fails. did you check that whole db structure exists?

Avatar
NHAT MINH ENGINEERING AND BUSINESS SOLUTIONS CO.,LTD)
Mejor respuesta

the problem occur when there is error about establishing database connection.

if you have many databases in Postgresql management, you should specify the one that you want to connect to

in config file add

db_name = DB_NAME_THAT_YOU_WANT_TO_CONNECT

after that you should run the ./odoo-bin -i base


1
Avatar
Descartar
Avatar
Brian Rehg
Mejor respuesta

I would check out https://github.com/odoo/odoo/issues/27447

Adding -e POSTGRES_DB=postgres was the solution for me.

-1
Avatar
Descartar
José L. S. Alaguna

Where? I'm using Odoo and i have this problem when i try to use a custom database. why????

¿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
Expected singleton: hr.emp.travel.location(62, 63)
odoo12.0
Avatar
Avatar
Avatar
2
oct 25
2118
How to write Record Rule with domain based on the company_dependent Fields Resuelto
odoo12.0
Avatar
Avatar
Avatar
3
oct 23
11017
loan request
odoo12.0
Avatar
Avatar
1
sept 23
4076
docker-compose resulted in The connection was reset (from firefox) or Empty reply from server (from curl)? Resuelto
docker
Avatar
Avatar
2
sept 23
8203
sum Colum of based on id
odoo12.0
Avatar
Avatar
1
may 23
3075
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.

Sitio web hecho con

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