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

OpenERP 8 + mod_wsgi + No module named openerp : addon path issue?

Suscribirse

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

Se marcó esta pregunta
wsgiapache2
1 Responder
10715 Vistas
Avatar
Mind And Go

Hy everyone,

I followed some excellent resources here:

  1. https://doc.openerp.com/trunk/server/deployment-mod-wsgi/
  2. https://www.odoo.com/forum/Help-1/question/How-to-install-OpenERP-8-using-mod_wsgi-44186

I'm working with the latest trunk and thanks to this I configured an apache virtual host :

<VirtualHost *:80>
        ServerName openerp.local

        WSGIScriptAlias / /home/openerp/odoo/openerp-wsgi.py
        WSGIDaemonProcess oe user=openerp group=openerp processes=4 python-path=/home/openerp/odoo display-name=apache-openerp
        WSGIProcessGroup oe

        <Directory /home/openerp/odoo/ >
                Options FollowSymLinks
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

Apache restart gracefully without any issue. Unfortunately when I try to reach the http://openerp.local and whatever I set in the conf['addons_path'] I still having this issue :

[Tue May 27 00:14:03 2014] [error] [client 10.0.130.23] mod_wsgi (pid=3001): Exception occurred processing WSGI script '/home/openerp/odoo/openerp-wsgi.py'.
[Tue May 27 00:14:03 2014] [error] Traceback (most recent call last):
[Tue May 27 00:14:03 2014] [error]   File "/home/openerp/odoo/openerp-wsgi.py", line 15, in <module>
[Tue May 27 00:14:03 2014] [error]     import openerp
[Tue May 27 00:14:03 2014] [error] ImportError: No module named openerp

Here are my tests :

  1. conf['addons_path'] = '../../addons/trunk,../../web/trunk/addons'  => FAILED
  2. conf['addons_path'] = '/home/openerp/odoo/addons,/home/openerp/odoo/openerp/addons' => FAILED
  3. conf['addons_path'] = '../odoo/addons' or conf['addons_path'] = '../../addons' or conf['addons_path'] = '../addons' neither work

Any advice would be appreciated,

regards

0
Avatar
Descartar
Zahin

Run your server normally as you run in localhost, just use apache2 reverseproxy, make easy this job.

Martin

Can you give some reasons why using wsgi is superior to reverseproxy? I have also been successful with the latter, so it would be interesting to know what further benefits wsgi would provide.

Mind And Go
Autor

I think I have the clue, I'll try it later caus' I don't have access to the server. Anyway, I already succeed in setting a reverse proxy which is most of time efficient but it suppose to maintian 2 services one for apache and the other for openerp thanks. Thanks to wsgi, it could be considered a simple web site in a virtual host. Retsarting apache will simply restart the OpenERP.Much more easier for an admin sys regarding to me.

Martin

So you see just one advantage: restarting Apache will also restart Odoo? It hardly seems worth the extra effort.

Mind And Go
Autor

Well, it's not such an effort, in the past I also struggle with reverse proxy and additionnal parameters, proxy conf in OpenERP, etc... and moreover, reading wsgi Doc and other examples really helps to understand everything. I'll post my tests tonight and you'll see that is not so hard as reverse proxy. Moreover, I already work with stuff like passenger fusion for ruby on rails and it's much easier too deal with as with reverse proxy

Martin

I'm looking forward to seeing how it is done. What WSGI doc do you recommend?

Mind And Go
Autor

Well, I wrote too fast, I tried to adapt the virtual host without success. So I still stucked. I'll let you know

Mind And Go
Autor

so, the problem doesnt seems to come from this part of the conf. I run mutiple python version and my mod_wsgi probably don't use the correct one. I'll let you know when it's OK

Avatar
Mind And Go
Autor Mejor respuesta

Ok, here is the part of the answer :

  1. running on centos 6.5 I didn't have python 2.7
  2. I installed the python 2.7 with SCL : http://wiki.centos.org/AdditionalResources/Repositories/SCL
  3. Then I have to recompile mod_wsgi for python 2.7 thanks to this http://www.fir3net.com/Redhat-/-Fedora/how-do-i-compile-modwgsi-for-python-27.html

Now, I have another expressive error :
[error] No handlers could be found for logger "openerp.addons.website_event.controllers.main"
[Tue May 27 19:33:37 2014] [error] [client 10.0.130.23] mod_wsgi (pid=19271): Exception occurred processing WSGI script '/home/openerp/odoo/openerp-wsgi.py'.
[Tue May 27 19:33:37 2014] [error] [client 10.0.130.23] Traceback (most recent call last):
[Tue May 27 19:33:37 2014] [error] [client 10.0.130.23]   File "/home/openerp/odoo/openerp/service/wsgi_server.py", line 215, in application

Show must go on, let's find the clue!

 

0
Avatar
Descartar
Mind And Go
Autor

let's have a walk on the git side : https://github.com/odoo/odoo/issues/242

Mind And Go
Autor

This post is answered. The other problem is either a bug or need another post later on

Mind And Go
Autor

Very strange, I succeed to make wsgy works on 7.0 but not on nightly build

¿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
can not get apache2 to run locally Resuelto
wsgi deployment apache2 odoo
Avatar
Avatar
2
nov 19
6223
mod_wsgi uses DocumentRoot to serve files
wsgi ubuntu apache2 odoo9.0
Avatar
1
feb 16
6521
Standalone odoo-server of wsgi deployment with Apache?
wsgi
Avatar
0
mar 15
5815
odoo 16 with apache
apache2 odoo16features
Avatar
0
nov 22
3098
File "/opt/odoo14/odoo/addons/bus/controllers/main.py", line 35, in poll raise Exception("bus.Bus unavailable") Exception
apache2 v14
Avatar
0
mar 22
5252
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