I'm running Odoo as a service on CentOS 7. There is a blank file at /etc/openerp-server.conf. I have been trying to add a custom modules directory path to this file, but everything I've tried has made it so that the service won't start up again, and doesn't output any helpful error messages. What is the proper way to tell the service to look for a custom module directory?
- Add a header section, like [options]. I don't think it matters what you put, as long as there is a header. Otherwise, you'll get:
"ConfigParser.MissingSectionHeaderError: File contains no section headers."
- Add this line:
Don't use any quotes. I tried that, and the server didn't like it. Also, as john5000 stated, make sure your addons directory is readable by the server user (openerp).
There are at least two ways to do this:
- On the server startup command line put:
- In the openerp-server.conf file add the line:
- Make sure the .conf file you are changing is the one correct one. Check the startup script. On my system the startup-oe has a "-c" parameter to specify the openerp-server.conf file location.
- Make sure the openerp-sever.conf file is readable by the user that is starting the server process.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/14/14, 7:56 PM|
|Seen: 5445 times|
|Last updated: 6/13/16, 1:04 AM|