Odoo Help

1

Is it possible to run v7 and v8 on the same server?

By
Jeff Beidler
on 12/22/14, 12:24 PM 1,163 views

I'm running CentOS 7 on my development sandbox machine.  I currently have Odoo 8 installed.  Can I also install v7 for testing/development between the two?  How would I go about this?

1
Bole
On 12/23/14, 2:55 AM

Sure ,
Create separate config files ( xmlrpc_port = 8069 - change port for each version )
optional create separate startup scripts in /etc/init.d/ for each version

You can have more than one instance running, but each needs to be on separate port (specify in config)
You can start several instances of same version from one source folder;
Or can run several versions (6.1, 7,8,trunk) on same server from separate source folders
If you use different veriosn it is recomended to create separate db users/roles for each version so db's dont get mixed
(also vise to use roles/users if using same version multi instance)


Hope it helps

I installed v7 along with the v8 I already had in place. I renamed the 'openerp-server' executable in /usr/bin to 'odoo8-server', and copied the 'openerp-server' from the v7 directory to /usr/bin as 'openerp7-server' to save on confusion. I thought this would allow me to start either version at will (don't need to run both at the same time). However, running 'openerp7-server' still launches v8! I think this is because the 'import openerp' line in the executable is finding the v8 version of the class/module first. Is it possible to specify a path to the exact version of the module/class inside the v7 executable script? It didn't work when I tried it, but I know very little Python.

Jeff Beidler
on 12/23/14, 1:27 PM

I did a hackaround by running the 'openerp-server' out of the directory created by untarring the latest .tar.gz file and specifying a config file. I also had to make separate v7 and v8 custom module directories, as the v7 server will get confused by v8 modules that reside in the specified addons directory. So, separate .conf files for each server, and in each respective file, specify the correct custom module directory path!

Jeff Beidler
on 12/23/14, 5:24 PM
1
Victor Admin
On 12/22/14, 1:03 PM

You could always run one in a Docker container? 
https://docs.docker.com/installation/centos/
https://registry.hub.docker.com/search?q=openerp&searchfield=

That may actually be the cleanest way to do this 

0
Ben Bernard
On 12/22/14, 9:43 PM

Yes you could. I do this kind of practice: one source and switch between version, sometime I run two version simultaneously. Why? because installing odoo for development is tedious.

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.

Register

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

1 follower(s)

Stats

Asked: 12/22/14, 12:24 PM
Seen: 1163 times
Last updated: 3/16/15, 8:10 AM