is it possible to run 6.0 and 6.1 of openerp in same mechine

Asked by Navaneeth Krishnan

is it possible to run 6.0 and 6.1 of openerp in same mechine???

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Serpent Consulting Services
Solved:
Last query:
Last reply:
Revision history for this message
Lorenzo Battistini (elbati) said :
#1

Yes. You have to make them listen on different ports

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#2

Navaneeth,

You can surely do this by running both the versions of separate ports.

Specify the ports in the configuration file.

Thanks.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

Hello Navaneeth,

You can also specify the ports when you're starting the server.

For e.g.
      ./openerp-server --xmlrpc-port=9090 --netrpc-port=9089.

This will run your server on different ports. So you can either start a server with ports and one without them with the default ones or you can give your own ports to both of them.

Hope this helps.

Regards,
Serpent Consulting Services.

Revision history for this message
Navaneeth Krishnan (navaneethk) said :
#4

Thanks Lorenzo and Serpent Consulting Services..
@ Serpent Consulting Services..:this is my openerp-server.conf
[options]
; This is the password that allows database operations:
; admin_passwd = ****
db_host = False
db_port = False
db_user = openerp
db_password =***
do you want me to specify the port no here???

                                                  * * * * *

And i have an another doubt..i am using postgresqlv8..i want to use postgresql V9.1 with out deleting V8...and i want to run openerpV6.1 by using postgresqlV9.1 as database...is it possible??if so can you help me in that?

Revision history for this message
OpenBMS JSC (openbmsjsc) said :
#5

You can install PostgreSQL 8.x and 9.1 on the same machine, given that they will listen to different ports. E.g. if installing PostgreSQL 9.1 while 8.4 is still running, 9.1 will listen on 5433 instead of 5432.

Once you have 2 different PostgreSQL servers running, you can access these servers by specifying the DB server port in OpenERP server configuration files.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#6

Hello Navaneeth,

As OPenBMS JSC said, You can install both the versions of postgres in your system using different ports. By default the port is 5432 in the connection of OpenERP and Postgres as well. The parameters mentioned by you are used to connect OpenERP Server and Postgres Server. So If using two seperate postgres servers you need to specify it's relevant information.

If you want to run more than one OpenERP Servers on a single system You'll have to use the parameters mentioned below.

In V6.0 You can add the parameters in the config file in the Options Dictionary.
"""
            'xmlrpc_port': 8069,
            'netrpc_interface': '',
            'netrpc_port': 8070,
            'xmlrpcs_interface': '', # this will bind the server to all interfaces
            'xmlrpcs_port': 8071,
"""

In V6.1 There is no such dictionary you've to directly change it in the code.
"""
group.add_option("--xmlrpcs-port", dest="xmlrpcs_port", my_default=8071 or <your port>,
                         help="specify the TCP port for the XML-RPC Secure protocol", type="int")

"""

"""
group.add_option("--netrpc-port", dest="netrpc_port", my_default=8070 or <your port>,
                         help="specify the TCP port for the NETRPC protocol", type="int")
"""

Instead of updating in the file you can also give ports when running a server as suggested in the comment #3. This parameters can be used for both the versions of OpenERP.

 ./openerp-server --xmlrpc-port=<your port> --netrpc-port=<your port>

Hope this would help.

Thanks & Regards,
Serpent Consulting Services

Revision history for this message
Navaneeth Krishnan (navaneethk) said :
#7

@Serpent Consulting Services:Thanks for your comments...but in which file i have to add the above mentioned code for v6.1....

Revision history for this message
Best Serpent Consulting Services (serpent-consulting-services) said :
#8

Hello Navaneeth,

The file structure of OpenERP Server has been changed in the v6.1

You can make the above mentioned changes in the config.py file only.

The path is "server/openerp/tools/config.py"

Hope this helps.

Thanks & Regards,
Serpent Consulting Services.

Revision history for this message
Navaneeth Krishnan (navaneethk) said :
#9

Thanks Serpent Consulting Services, that solved my question.