loader
  • Welcome to Odoo Professional Consulting Agency

Testing

How To Install Odoo 14 On Ubuntu 20.04 LTS ?

How To Install Odoo 14 On Ubuntu 20.04 LTS ?

 Steps To Install Odoo 14 On Ubuntu 20.04 LTS  


Odoo is now ready to launch the latest version of Odoo 14 with too many new features.

This blog is to provide steps for installation and configuration of Odoo for production environment using Git source and Python environment on an Ubuntu 20.04 LTS.

Step 1 : Update Server

                        
sudo apt-get update
                    

sudo apt-get update

                        
sudo apt-get upgrade -y
                    

sudo apt-get upgrade -y

Step 2 : Create Odoo User in Ubuntu

                        
sudo adduser -system -home=/opt/odoo -group odoo
                    

sudo adduser -system -home=/opt/odoo -group odoo

Step 3 : Install PostgreSQL Server

                        
sudo apt-get install postgresql -y
                    

sudo apt-get install postgresql -y

Step 4 : Create Odoo user for PostgreSQL

                        
sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true
                    

sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true

Step 5 : Install Python Dependencies

                        
sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev gdebi -y
                    

sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev gdebi -y

Step 6 : Install Python PIP Dependencies

                        
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
                    

sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev

                        
sudo -H pip3 install -r https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt
                    

sudo -H pip3 install -r https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt

Step 7 : Install other required packages

                        
sudo apt-get install nodejs npm -y
                    

sudo apt-get install nodejs npm -y

                        
sudo npm install -g rtlcss
                    

sudo npm install -g rtlcss

Step 8 : Install Wkhtmltopdf

                        
sudo apt-get install xfonts-75dpi
                    

sudo apt-get install xfonts-75dpi

                        
sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
                    

sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb

                        
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
                    

sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb

                        
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
                    

sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage

                        
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
                    

sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

Step 9 : Create Log directory

                        
sudo mkdir /var/log/odoo
                    

sudo mkdir /var/log/odoo

                        
sudo chown odoo:odoo /var/log/odoo
                    

sudo chown odoo:odoo /var/log/odoo

Step 10 :Install Odoo

                        
sudo apt-get install git
                    

sudo apt-get install git

                        
sudo git clone --depth 1 --branch 14.0 https://www.github.com/odoo/odoo /odoo/odoo-server
                    

sudo git clone --depth 1 --branch 14.0 https://www.github.com/odoo/odoo /odoo/odoo-server

Step 11 : Setting permissions on home folder

                        
sudo chown -R odoo:odoo /odoo/*
                    

sudo chown -R odoo:odoo /odoo/*

Step 12 : Create server config file

                        
sudo touch /etc/odoo-server.conf
                    

sudo touch /etc/odoo-server.conf

                        
sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf" 
                    

sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"
                    

sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf" 
                    

sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf" 
                    

sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf" 
                    

sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"

                        
sudo chown odoo:odoo /etc/odoo-server.conf 
                    

sudo chown odoo:odoo /etc/odoo-server.conf

                        
sudo chmod 640 /etc/odoo-server.conf 
                    

sudo chmod 640 /etc/odoo-server.conf

Step 13 : Now Start Odoo

                        
sudo su - odoo -s /bin/bash
                    

sudo su - odoo -s /bin/bash

                        
cd /odoo/odoo-server
                    

cd /odoo/odoo-server

                        
./odoo-bin -c /etc/odoo-server.conf
                    

./odoo-bin -c /etc/odoo-server.conf

Now your odoo instance is up and running. 

Go to web browser and access your odoo at localhost:8069

We have other blogs to Install Odoo 14 on Ubuntu 18.04, Please check below links,


Check Steps To Install Odoo 14 On Ubuntu 18.04


16 comments

Avatar
Mustafa
August 2021

how to restart odoo service ?

Avatar
Muhammad Nouman
August 2021

Hello Sir, Many thanks for this help specially for beginners.

Avatar
martin
July 2021

Works like a charm very good guide am going to bookmark it I hope the site never takes this page down

Avatar
alejandro
July 2021

server might not be on, do the bottom step again and see if that helps

Avatar
alejandro
July 2021

server might not be on, do the bottom step again and see if that helps

Avatar
Abdulah
June 2021

Hi thanks so much for this guide. i have one issue after restarting the ubuntu server it stopped working can you tell me how to make odoo Auto-start with the system boot thanks

Avatar
ebaya mohamed jiyed
June 2021

how can i do $ sudo systemctl status odoo-server

Avatar
Fatih
May 2021

Thanks a lot for preparing this website. If you come to Turkey, I will order the best desert of Istanbul. Thanks a lot. If you come Turkey please inform me. Because I will searched this information. Maybe I spent my time for one week.

Avatar
Fatih
May 2021

Avatar
JayKay4
May 2021

Hi, Step 8: Include the following also: sudo apt-get install xfonts-base everything worked 100% Thank you for an awesome guide.

Avatar
Nassim
May 2021

in last step , I get this error : odoo@psodoo:/odoo/odoo-server$ ./odoo-bin -c /etc/odoo-server.conf Exception in thread odoo.service.httpd: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/odoo/odoo-server/odoo/service/server.py", line 476, in http_thread self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app) File "/odoo/odoo-server/odoo/service/server.py", line 149, in __init__ super(ThreadedWSGIServerReloadable, self).__init__(host, port, app, File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 701, in __init__ HTTPServer.__init__(self, server_address, handler) File "/usr/lib/python3.8/socketserver.py", line 452, in __init__ self.server_bind() File "/odoo/odoo-server/odoo/service/server.py", line 165, in server_bind super(ThreadedWSGIServerReloadable, self).server_bind() File "/usr/lib/python3.8/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) PermissionError: [Errno 13] Permission denied

Avatar
AjN3806
April 2021

I get a warning after executing... sudo npm install -g rtlcss ...the warning is... /usr/local/bin/rtlcss -> /usr/local/lib/node_modules/rtlcss/bin/rtlcss.js npm WARN rtlcss@3.1.2 requires a peer of postcss@^8.2.4 but none is installed. You must install peer dependencies yourself. + rtlcss@3.1.2 added 19 packages from 41 contributors in 1.473s ...how do I resolve that?

Avatar
apenasfabiano
September 2021

Estou com o mesmo problema! Alguém conseguiu resolver? sudo npm install -g rtlcss /usr/local/bin/rtlcss -> /usr/local/lib/node_modules/rtlcss/bin/rtlcss.js npm WARN rtlcss@3.3.0 requires a peer of postcss@^8.2.4 but none is installed. You must install peer dependencies yourself.

Avatar
Shebeer
March 2021

I have a problem, after the restart of ubuntu droplet, i am getting the internal error 500. can you please help me .. I actually tried to restart the service and ended up in restarting the server

Avatar
omar
February 2021

[sudo] password for postgres: i give my password and it just does not work. can you please help??

Avatar
Benard Muse
November 2020

after installation... my application resolves well at port 8069.... using the above procedure, how can I get it to resolve at port 80 without error?