Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    odoo-hyperlocal-marketplace-guide

    Installing Odoo 11 on ubuntu 16.04

    Odoo version 11 is officially released now. You can find its Source Code for Community Edition from this GITHUB LINK.

    Here, in this tutorial Ill explain how to install Odoo version 11 (Community Edition) on Ubuntu 16.04, same steps can also work for previous Ubuntu version(s) till version 14.

    If Python is already installed, make sure it is 3.5 or above that, previous versions are not compatible with Odoo 11

    Open the terminal and execute below commands step-by-step to achieve excellence:

    Step 1: 

    Update apt source-lists:

    Step 2: 

    Create the Odoo user that will own and run the application

    Step 3: 

    Install and configure the database server, PostgreSQL


    Once the PostgreSQL is installed, next we setup a new PostgreSQL user for our application. This user will be used for making all the database interaction form the Odoo.


    Finally exit from the postgres user account:

    Step 4:(Optional)

    Your Odoo server may encounter some issue(s), so Im also mentioning few issues & their way around to fix them:

    FIX 1: You need to upgrade ”wkhtmltopdf” to 0.12.1  You can also check this LINK


    FIX 2: Check if your PostgreSQL have proper encoding(UTF-8) or not, used in Odoo Application, if not you can do like this:


    FIX 3: Set The Locale To UTF-8 For Python 3, if you are getting UnicodeEncodeError /UnicodeDecodeError, you can fix it,as: You can also check this LINK

    Directly execute these commands:


    FIX 4: In postgreSQL, allow TCP connection, if you are getting error like:


    To fix it,in /etc/postgresql/9.5/main/pg_hba.conf change peer to md5:


    then

    Step 5: 

    Install the necessary Python libraries & other needed libraries needed for the application:

    Odoo 11 will use python 3.5(which is pre-installed on our Ubuntu), previously it uses python 2.7, so in order to install all dependent libraries easily well install pip3 in our server, as:


    Once pip3 is installed on your server, we can proceed with installing other dependent libraries using pip3 as:


    Next is to install Odoo Web Dependencies:


    Once all the packages are installed we are ready to proceed with installing Odoo server.

    Step 6:

    Installing ODOO version 11 Community Edition hosted on GITHUB.

    Make sure you have GIT installed on your system and if not then install with the simple command:


    Switch to the Odoo user:


    Clone the latest branch of Odoo, in our case it is 11.0 from Github:


    (This might take a little while depending on the speed of your Internet connection.)

    Finally exit from the odoo user account:

    Step 7:

    Next step is to create a configuration file for Odoo. But before doing so wll first create the directory for storing logs of Odoo server and assigning proper ownership to the directory:


    Next is to create the configuration file for odoo server. Odoo application will use these configuration to run so fill in the configuration as per your requirements.


    A sample configuration file will look like this:


    (* You need to use the same password you used back in step 3.)

    Once the configuration file is created we will set the ownership rights

    Step 8:

    Installing the boot script

    For the final step we need to install a script which will be used to start-up & shut-down the Odoo server automatically, with the correct user. Here is a Link, you can use this script for the same purpose, as:


    Paste the same contents of this script to this file. Once it is in the right place you will need to make it executable and owned by root:


    Step 9:

    Testing the server

    To start the Odoo server type:


    You should now be able to view the log-file as:


    If there are any problems in this step you need to go back and check, feel free to comment on this blog ill try my best to help you :)

    [OPTIONAL] Also, in order to debug, you can start the server manually just to check if it actually runs well or not, as:

    sudo su - odoo -s /bin/bash

    /opt/odoo/odoo-bin

    If the log file looks OK, you can check Odoo server running on your browser with url:


    BOOT SCRIPT USAGE:


    TIPS:

    • Using 'status', we can find information of all runnning odoo daemon servers.
    • Using 'force-stop/force-restart', we can kill all running odoo daemon forcefully, and can start fresh odoo-server daemon.
    • start/stop will not allow more than one process per daemon.

    Thats it…
    Thanks for reading this blog !!! I hope it will help someone.

    Your opinions, comments and suggestions are important to keep this extension updated and more usefull !!!

    . . .

    Comments (79)

    Add Your Comment

  • Rubab
    Hi, thank you for sharing this tutorial.. Can you please answer my query as well? will be highly obliged.. So i followed the tutorial step by step while setting odoo up on a ubuntu AWS EC2 instance. At step 9, when I run sudo /etc/init.d/odoo-server start it gives me this error:
    Error in ODOO Daemon file: /opt/odoo/odoo-inventory/odoo-11.0/odoo-bin
    Possible error(s):
    * Daemon File doesn’t exists.
    * Daemon File is not set to executable.

    do we need to make any changes to this odoo-bin file? I just provided its path to the odoo-server file.. Many thanks.

    • Manish Bisht
      The variable “DAEMON” represents the executable file of Odoo which will run Odoo service.

      Please check if you can locate the file “/opt/odoo/odoo-inventory/odoo-11.0/odoo-bin” in your system.

      If the file is there, then you must make it executable. If the file is not available then give the correct file “odoo-bin” file.

      Use command to make file executable :- chmod +x /opt/odoo/odoo-inventory/odoo-11.0/odoo-bin

  • Rubab Fatima
    Hi, After completing setup, when I try starting the server, it gives following error:
    Error in ODOO Daemon file: /opt/odoo/odoo-inventory/odoo-11.0/odoo-bin
    Possible error(s):
    * Daemon File doesn’t exists.
    * Daemon File is not set to executable.
    If i directly run /opt/odoo/odoo-inventory/odoo-11.0/odoo-bin, it gives this error:
    -bash: /opt/odoo/odoo-inventory/odoo-11.0/odoo-bin: Permission denied

    If I try running it via this command (that I used to use while running on Windows) python3 odoo-bin -w odoo -r odoo –addons-path=addons,custom_addons –log-level debug_rpc
    It shows the service as running now, but still it is not accessible at the IP:8069

    2019-05-02 05:42:50,927 15941 DEBUG ? odoo.netsvc: logger level set: “odoo.http.rpc.request:INFO”
    2019-05-02 05:42:50,928 15941 DEBUG ? odoo.netsvc: logger level set: “odoo.http.rpc.response:INFO”
    2019-05-02 05:42:50,928 15941 DEBUG ? odoo.netsvc: logger level set: “:INFO”
    2019-05-02 05:42:50,928 15941 DEBUG ? odoo.netsvc: logger level set: “odoo:DEBUG”
    2019-05-02 05:42:50,928 15941 DEBUG ? odoo.netsvc: logger level set: “odoo.sql_db:INFO”
    2019-05-02 05:42:50,928 15941 DEBUG ? odoo.netsvc: logger level set: “odoo.http.rpc.request:DEBUG”
    2019-05-02 05:42:50,928 15941 DEBUG ? odoo.netsvc: logger level set: “:INFO”
    2019-05-02 05:42:50,928 15941 INFO ? odoo: Odoo version 11.0
    2019-05-02 05:42:50,928 15941 INFO ? odoo: addons paths: [‘/home/ubuntu/.local/share/Odoo/addons/11.0’, ‘/opt/odoo/odoo-inventory/odoo-11.0/addons’, ‘/opt/odoo/odoo-inventory/odoo-11.0/custom_addons’, ‘/opt/odoo/odoo-inventory/odoo-11.0/odoo/addons’]
    2019-05-02 05:42:50,928 15941 INFO ? odoo: database: odoo@default:default
    2019-05-02 05:42:50,951 15941 DEBUG ? odoo.service.server: Setting signal handlers
    2019-05-02 05:42:50,952 15941 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
    2019-05-02 05:42:50,954 15941 DEBUG ? odoo.service.server: cron0 started!
    2019-05-02 05:42:50,954 15941 DEBUG ? odoo.service.server: cron1 started!
    2019-05-02 05:42:51,189 15941 INFO ? odoo.addons.base.ir.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
    2019-05-02 05:42:51,303 15941 DEBUG ? odoo.tools.translate: translation went wrong for “‘Selecting the “Warning” option will notify user with the message, Selecting “Blocking Message” will throw an exception with the message and block the flow. The Message has to be written in the next field.'”, skipped

    Please help.. I used this repository on windows, could it be that we need different repo for ubuntu setup?? Your help will be highly appreciated.

    • Manish Bisht
      Hi,

      Please check your setup again & “odoo-inventory” folder hasn’t been used in the article. And make sure to set the permissions properly.
      Repo is same for both Windows & Linux.

      Thanks

  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close