Odoo Help


How to start service of multi-instant on ubuntu server

on 8/12/13, 6:53 AM 4,054 views


i am working on ubuntu server i have install openerp v7 by Debian package its working fine, But i have to configure other instance for testing purpose, for testing instant i make folder (test) and put openerp Debian package in this folder, I have use different port for my regular instant it use 8069 for testing instant i have user 8080.

i start service for my regular instants sudo /etc/init.d/openerp start and for testing instant i use nohup ./openerp-server command to start service on server it works for some time and stop automatically.

So how can i start service of my both instanst service on server


Amit Parik (amp)
On 8/13/13, 9:36 AM

Hello Jagdish,

First of all I want to suggest you that please use the launchpad code instead of the debian packages because it will be easier. 2nd thing the complete command is nohup ./openerp-server & . if you are using this will start the services and it will not stop until you stopped the server. So as per my opinion please check the parameter again it will definitely works.

About your 2nd point for multiple instance the best way is as follow. Create 2 different user i.e openerp1, openerp2. download the code for both the user. Create 2 superuser on postgres, openerp1 and openerp2. Alter the role for both then start the openerp server with different port via --netrpc-port=8090 --xmlrpc-port=8091 (You can also assign the host name, So you can use directly that url) . Then it will works great and your 2 different instance will be created.

If your services will be stop after sometime as you specified then do the one thing create the python script for that and it will run the openerp-server directly . So when your server will stop it will check auotmatically and start openerp services again. Here also you have to start your script with nohup command i.e nohup python script.py &

Thank You and hope this will helpful for you!

Thanks for the answer amp

on 8/13/13, 9:49 AM

Pinakin Nayi (pna)

--Pinakin Nayi (pna)--
| 2 1 5
Ahmedabad, India
--Pinakin Nayi (pna)--

He has good skills in problem identification and implementation of effective solutions. He is working in RD India validation team.

Skype: pinakinerp

LinkedIn : https://www.linkedin.com/in/pinakin-nayi-2a33103a/


Pinakin Nayi (pna)
On 8/13/13, 9:52 AM


I think there is one more way of proxy that may be useful to you.

First of all configure Apache sever to use , Now, just go to /etc/apache2/sites-available/ and there create own file like test(without extension) and in it add code like (you can also biferagate different port here) pastebin.com/7yYkMvmi

  • Now, disable default >sudo a2dissite 000-default
  • And enable your own by > sudo a2ensite test

Now, finally restart your apache server by >sudo /etc/init.d/apache2 restart

  • > sudo nano /etc/hosts

Now, when you run your openerp server you can use following command: ./openerp-server --addons-path=../addons/,../web/addons --proxy-mode

From browser : test:8069/

So, its work fine.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 8/12/13, 6:53 AM
Seen: 4054 times
Last updated: 3/16/15, 8:10 AM