Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

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

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
wsgiapache2
1 Svar
10601 Visninger
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
Kassér
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
Forfatter

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
Forfatter

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
Forfatter

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
Forfatter

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
Forfatter Bedste svar

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
Kassér
Mind And Go
Forfatter

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

Mind And Go
Forfatter

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

Mind And Go
Forfatter

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

Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
can not get apache2 to run locally Løst
wsgi deployment apache2 odoo
Avatar
Avatar
2
nov. 19
6046
mod_wsgi uses DocumentRoot to serve files
wsgi ubuntu apache2 odoo9.0
Avatar
1
feb. 16
6383
Standalone odoo-server of wsgi deployment with Apache?
wsgi
Avatar
0
mar. 15
5666
odoo 16 with apache
apache2 odoo16features
Avatar
0
nov. 22
2989
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
5163
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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