You are on page 1of 8

8/26/2021 Installing high availability Odoo 11 on ubuntu 16.

04 | Silent Infotech

Call Us Today! +91-075758 02305 | contact@silentinfotech.com     

SERVICES  SOLUTIONS  CASE STUDY ABOUT US  BLOG

Installing high availability Odoo 11 on ubuntu


16.04

 Previous Next  Search ... 

Recent Posts

 Thawani payment
system
integration with
Odoo

 Managing
Multiple
Currencies with
Odoo 14

You must be aware that now odoo has released version 11


 Odoo 14 Project
officially. To know odoo 11 features click here
Profitability – A
perfect cost
In this tutorial I’ll explain you how to install high availability
center
odoo version 11(Community version) on ubuntu 16.04

 Odoo integration
with the Vertex
Note : There is no major difference for
Tax Cloud
installing odoo community and odoo
enterprise version.  Odoo Point Of
Sale(POS) Slows
Down
Overall System Architecture


https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 1/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

Categories +

Archives
SERVICES  SOLUTIONS  CASE STUDY ABOUT US  BLOG

 May 2021

 April 2021

 January 2021

 October 2020

 June 2020

 May 2020

 March 2020

 November 2019

 September 2019

 August 2019

If python is already installed, make sure you  July 2019


have installed python version 3.5 or above.
Previous versions of python are not  April 2019
compatible with odoo 11.
 January 2019

 December 2018
Installation Guide
 November 2018
In this tutorial, I assume that you have properly configured
your network for the required servers and you have basic
 September 2018
networking knowledge to replace/change ip addresses
mentioned throughout this tutorial with the appropriate ip  February 2018
addresses.
 January 2018
Database Server(s) Installation
 December 2017
Step 1 : Installation
 November 2017

https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 2/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

Before you proceed for the installation, make  July 2017


sure you have configured locale settings
properly.
 June 2017

SERVICES  SOLUTIONS  CASE STUDY May 2017


 ABOUT US  BLOG

1 sudo apt-get -y install postgresql postgresql-co  March 2017

Step 2 : Create user with password  January 2017

1 sudo -u postgres createuser odoo11  November 2016


2 sudo -u postgres psql
3 psql=# alter user odoo11 with encrypted password  June 2016

Step 3 : Allow remote connection from application servers  April 2016

All below lines in /etc/postgresql/9.5/main/pg_hba.conf file on


top

1 host all odoo8 192.168.1.51/32 trust


2 host all odoo8 192.168.1.52/32 trust
3 host all odoo8 192.168.1.53/32 trust
4 host all odoo8 192.168.1.54/32 trust

Restart postgresql service

1 systemctl restart postgresql

Application Server(s) Installation

Follow mentioned steps on each of the application server(s) to


install odoo application only. For simplicity I will be using the
debian package to install the odoo server, you can also follow
the manual installation process from other tutorials.

Step 1 : Download latest version

1 http://nightly.odoo.com/11.0/nightly/deb/odoo_11

Step 2 : Install odoo

Before you proceed for this command make sure that your
locale is setup properly if you are using VPS.

1 dpkg -i odoo_11.0.latest_all.deb

https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 3/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

If you encounter the blow error during the installation.

1 # dpkg -i odoo_11.0.latest_all.deb
2 Selecting previously unselected package odoo.
3 (Reading database
SERVICES...
 26866 files and directorie
SOLUTIONS CASE STUDY ABOUT US  BLOG
4 Preparing to unpack odoo_11.0.latest_all.deb ...
5 Unpacking odoo (11.0.20171114) ...
6 dpkg: dependency problems prevent configuration
7 odoo depends on python3-babel; however:
8 Package python3-babel is not installed.
9 odoo depends on python3-dateutil; however:
10 Package python3-dateutil is not installed.
11 odoo depends on python3-decorator; however:
12 Package python3-decorator is not installed.
13 odoo depends on python3-docutils; however:
14 Package python3-docutils is not installed.
15 odoo depends on python3-feedparser; however:
16 Package python3-feedparser is not installed.
17 odoo depends on python3-gevent; however:
18 Package python3-gevent is not installed.
19 odoo depends on python3-html2text; however:
20 Package python3-html2text is not installed.
21 odoo depends on python3-jinja2; however:
22 Package python3-jinja2 is not installed.
23 odoo depends on python3-lxml; however:
24 Package python3-lxml is not installed.
25 odoo depends on python3-mako; however:
26 Package python3-mako is not installed.
27 odoo depends on python3-mock; however:
28 Package python3-mock is not installed.
29 odoo depends on python
30 dpkg: error processing package odoo (--install):
31 dependency problems - leaving unconfigured
32 Processing triggers for systemd (229-4ubuntu12)
33 Errors were encountered while processing:
34 odoo
35

You can run,

1 apt-get install -f

This command will installed all the dependency libraries on


the system.

Note : Debian package installer by default


install postgresql as dependent package, we

https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 4/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

can stop the postgresql service and remove


service from the system startup service list.

1 SERVICES
sudo systemctl SOLUTIONS 
stop postgresql CASE STUDY ABOUT US  BLOG
2 sudo update-rc.d postgresql disable

Step 3 : Database configurations

Let’s help application server to find the database from the


configuration file. (/etc/odoo/openerp-server.conf)

1 db_host = 192.168.1.61
2 db_port = 5432
3 db_user = odoo11
4 db_password = xxxx

Note : Don’t forgot to replace your


database name and database
password with appropriate values.

Step 4 : Custom Modules

To install the custom modules on all application server, you


need to configure NFS to share the directory which can be
accessible from all the application and which should be
mounted automatically on system startup.

After successful configuration of NFS on all application server


you can add mount path in addons_path param(can be found
on odoo configuration file)

Load Balancer Installation

Step 1 : Install nginx

1 sudo apt-get install nginx

Step 2 : Nginx site configuration

Create a configuration file under /etc/nginx/sites-


enabled/xyz.com.conf with below content. Don’t forgot to

https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 5/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

change the domain name and SSL certificate path.

1 upstream backend {
2 server 192.168.1.51:8069;
3 server 192.168.1.52:8069;
SERVICES  SOLUTIONS  CASE STUDY ABOUT US  BLOG
4 server 192.168.1.53:8069;
5 server 192.168.1.54:8069;
6 }
7
8 upstream backend-longpolling {
9 server 192.168.1.51:8072;
10 server 192.168.1.52:8072;
11 server 192.168.1.53:8072;
12 server 192.168.1.54:8072;
13 }
14
15 server {
16 server_name xyz.com www.xyz.com;
17
18 location / {
19 return 301 https://$server_name$request_u
20 }
21 }
22
23
24
25
26 server {
27 listen 443 ssl;
28
29 server_name xyz.com www.xyz.com;
30 proxy_connect_timeout 60000;
31 proxy_send_timeout 60000;
32 proxy_read_timeout 60000;
33 send_timeout 60000;
34
35 ssl_dhparam /etc/ssl/certs/dhparam.pem;
36 proxy_set_header Host $host;
37 proxy_set_header X-Real-IP $remote_addr;
38 proxy_set_header X-Forward-For $proxy_add_x_forw
39 proxy_set_header X-Forwarded-Proto https;
40 proxy_intercept_errors on;
41
42 location /longpolling {
43 proxy_pass http://backend-longpolling;
44 }
45
46 location / {
47 proxy_pass http://backend; 
https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 6/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

48 }
49
50 ssl_certificate /etc/nginx/ssl/www_xyz_com.crt;
51 ssl_certificate_key /etc/nginx/ssl/www_xyz_com.k
52 }
53 SERVICES  SOLUTIONS  CASE STUDY ABOUT US  BLOG

Step 3 : Restart nginx service

1 systemctl restart nginx.service

Step 4 : Access odoo application from the browser.

Navigate from your public ip address if port 80 and


443 are already forwarded from the firewall.

By Devendra R | November 14th, 2017 | odoo, Odoo Administration | Comments Off

About the Author: Devendra R

Related Posts

Comments are closed.


https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 7/8
8/26/2021 Installing high availability Odoo 11 on ubuntu 16.04 | Silent Infotech

Silent Infotech Quick Link Our Blogs Contact Us


About Us
Services
Thawani  +91-075758
Solutions
Silent Infotech is a SERVICES  SOLUTIONS payment
CASEsystem
STUDY 02305
ABOUT US  BLOG
creative digital Case Study integration with  contact@silentinfo
studio that Odoo
About Us
empowers  B1002-1003,
Blog Managing
businesses, Ganesh Glory
Multiple
organizations and 11, Jagatpur
Currencies with
start-ups with Road, Off SG
Odoo 14
artistic design & Highway,
innovative Odoo 14 Project Ahmedabad –
technology. We’ve Profitability – A 382470.
helped to unleash perfect cost
the potential of center
some of the most Odoo
influential integration with
companies all the Vertex Tax
around and could Cloud
do the same for
you. Odoo Point Of
Sale(POS) Slows
Down

© Copyright Silent Infotech 2021. Privacy Policy


https://silentinfotech.com/blog/installing-high-availability-odoo-11-on-ubuntu-16-04/ 8/8

You might also like