Installing Odoo 10 (enterprise) on Ubuntu 16.04

Hi guys,

1. Introduction

In this tutorial I will learn you how to install Odoo 10 community or enterprise on Ubuntu 16.04. The script that you will use is based on the code from André Schenkels but has been updated, upgraded, improved and I’ve added Enterprise support. Do notice that if you want to install the enterprise version that you will need to be an official partner or that you need to have bought the Enterprise subscription from Odoo. Otherwise you will have no access to the Github repository for the Enterprise code!

2. Downloading the script

The first step is to download my script from Github and to add the code in a new .sh file on your Ubuntu machine, wherever you’d like this.
For example right under /home. Open up an Ubuntu terminal and cd to the directory where you’d like to keep the script and then create the file:

If you’re curious about how the whole code looks and works you can find it on my Github account.
Now open up the file and edit the parameters to your liking:

There are some things you can configure/change to your likings at the top of the script. You can choose if you wish to install Wkhtmltopdf or not, which version you’d like, where the location is and most importantly what the master admin password is.
Tip: always modify this for every Odoo you install!
If you want the enterprise version of V10 you should change the line IS_ENTERPRISE to true:

If you want the community version you can just continue and keep the IS_ENTERPRISE key on false (which is the case by default):

3. Making the Odoo installation file executable

The next step is to make this file executable. After you’ve made it executable you can execute it and everything will be installed automatically.
do this with the following command:

4.Running the script

Now that the code is in your file and the file is executable you simply have to execute it with the following command:

You will see that the script automatically starts updates, downloads required packages, creates the user, downloads the code from Github, … Eventually, if you’ve chosen to install the enterprise version, you will need to give in your Github credentials to download the Enterprise code (since this is a private repository). Fill in your details and let the script continue:
Odoo 9 Enterprise authentication
Give the script a few minutes to configure and install everything and eventually you will see something like this:
Result install script

You now have a fully functional Odoo V10 community or enterprise on your system! Congratulations.
Odoo V9 Enterprise

5. Extra information about Odoo 10 Enterprise

Since Odoo Enterprise uses code from both http://github.com/odoo/odoo and github.com/odoo/enterprise we will separate the code with this script. This will make future upgrades easier and the code is nicely separated. This means that the default V10 code will be under /odoo/odoo-server/ and all the enterprise code will be under /odoo/enterprise/.

In the script you saw there was an option to change the Odoo port (OE_PORT). When you’d change this port number to 8070 in the install script it would be applied to /etc/your-config-file.conf and this would give you the ability to change the default port.
To apply these changes you should do the following:
Changing Odoo settings
The -c will change the configuration and memorize what you’ve changed under /etc/your-config-file.conf. Because my port was set to 8070 this is telling the Odoo that it should run on port 8070. When you would now open up your browser and navigate to http://localhost:8070/ you will see it is running there:
Odoo V9 alternative port

Has this tutorial helped you, do you have any feedback or questions? Post away!




PayPal

91 thoughts on “Installing Odoo 10 (enterprise) on Ubuntu 16.04

    • Yenthe666 says:

      Hi Yousif,

      You’re welcome! It won’t be auto-updated, you will need to download the updates (sudo apt-get update) and then install it. The recommended version is still 9.5, both for Odoo 9 and Odoo 10.

  1. Thanks for this Yenthe!
    Any special difference on Odoo 10 Community?
    I’ve missed the development news and I see that Odoo 9 branch is kinda stopped right now, do you know where I can see the milestones? Thanks in advance

  2. Michel says:

    Hi Yenthe,

    Thank you for the manual!

    However I mistyped my paswoord of my Github account to fetch the enterprise sources.
    The installation script proceeded with the community version.
    Should I upgrade via the Odoo interface or can I upgrade via the command line?

    thanx!

    • Michel says:

      Just went with the safest option; reinstalled the ubuntu server and re-ran your script.

      Up&Running now.

      Thanx again for your script!

    • Yenthe666 says:

      Hi Michel,

      You should be able to just run the script again and it should fix everything then. You will see some warnings about directories already existing etc.

    • Yenthe666 says:

      Hi Jussi,

      Thanks! The script will not work for other Debian versions since they work differently. The script works out of the box on Ubuntu 12.04, 14.04 and 16.04 however.

  3. Graham says:

    Hi Thank you very much for a great install script. However, I will I be able to keep my Odoo source code up to date as they pass new changes?

    • Yenthe666 says:

      Hi Graham,

      Thank you! Yes you’ll be able to update it. You can use any git command to update the Odoo from the source code (git fetch origin 10.0 for example)

  4. Luis says:

    Great article! Thank you very much!
    Is it possible to automatically upgrade version 9 to 10? If not, is it possible to migrate the database?
    Thank you!

    • Yenthe666 says:

      Hi Luis,

      You’re welcome! By default there is no automatic method to upgrade your Odoo version from one version to another. You’ll either need to use the upgrade service from Odoo (upgrade.odoo.com) or use the open source OpenUpgrade alternative to do it yourself.

      • Geoffrey says:

        Can you kindly give me an idea of how this open source openupgrade works? A script or a step by step how to with maybe pictures or commands would be very helpful. The official tutorial is very confusing and i have never been successful with it.

        • Yenthe666 says:

          Hi Geoffrey,

          I’m sorry but at this point I have no tutorial or step by step guide. The official docs are indeed confusing and do not clearly explain on what you should do.. I guess this might be something to add for me on the planning.

  5. Claude says:

    Hello Yenthe,
    Your installation guide looks so great!
    I am new to odoo and would like to try it on a mac running on El Capitan.
    Do you happen to have an installation guide for it?
    Thanks

    • Yenthe666 says:

      Hi Claude,

      Thanks a lot! I don’t have a script or installation guide for Mac at this point I’m afraid.. sorry!

  6. Lars says:

    I tried the script on an IP based installation and couldn’t get it to work. Before I pay someone for enterprise does this include the studio and digital signatures module?

    • Yenthe666 says:

      Hi Lars,

      Yes the Enterprise license includes Odoo studio and the digital signature module! On top of all extra possibilities.

  7. Lars Bjerga says:

    why did you delete my question? about enterprise? its very valid for this thread. does this have the enterprise modules like voip and studio?

  8. Hello Yenthe!
    I’m trying to run Odoo 10 community from nightly source. I download the source files, I decompress it in a directory and I want to run it in a terminal from this directory.

    Everywhere on the web, it is written to run Odoo 10 from the source with the command ./odoo-bin

    But I don’t see this file in the downloaded files.

    Where is it??? How to run Odoo 10 community directly from the source files without using a install script?

    Thanks for your comments.

    • Yenthe666 says:

      Hi seibuzter,

      This means that you’re either not somebody with access to this repository (you’re not a partner) or that you didn’t have internet.

  9. Piot says:

    Hi, than You for great guide but an issue apper during final step – I cant create db at “domain.com:8069/web/database/create”

    I ve got error:
    Database creation error: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.

    Can You help solve the problem?

    • Piot says:

      Found solution:
      In console run psql:

      sudo -u postgres psql postgres
      then in psql console execute sequence of commands:

      update pg_database set datallowconn = TRUE where datname = ‘template0’;
      \c template0
      update pg_database set datistemplate = FALSE where datname = ‘template1’;
      drop database template1;
      create database template1 with template = template0 encoding = ‘UTF8’;
      update pg_database set datistemplate = TRUE where datname = ‘template1’;
      \c template1
      update pg_database set datallowconn = FALSE where datname = ‘template0’;
      (press Ctrl-D to quit from psql)

  10. Peter says:

    When installing ODOO10, can the postgres database from an existing ODOO9 be used without changing anything? Or is there any migration needed?

    • Yenthe666 says:

      Hi Peter, this is not a problem. When you’ve got two different postgres users and two different Odoo’s running on another port it’ll work just fine out of the box.

  11. Great tutorial and script, very easy to follow and set Odoo with your method. Thank you for taking the time to put this together Yenthe666, great work.

  12. Tried to modify the script to install Odoo v9 with Enterprise on Ubuntu 16.04, but it didn’t work correctly. Can you provide a script for installing v9 with Enterprise on Ubuntu? I do have access to the Enterprise repository, and your script worked perfectly for v10, just not v9. Thank you.

    • Yenthe666 says:

      Hi Claudio,

      By default the superadmin user has no password set. You can set this yourself with the relevant Linux command (passwd YourOdooUser)

  13. Adam says:

    Hi Yenthe666,

    i setup multiple database with this install. do you have a write up on how to reach this domain using subdomain with nginx ?

    • Yenthe666 says:

      Hi Adam,

      At this point I don’t have any tutorial for Nginx or subdomains, sorry.. You should create virtual hosts which you map to a specific port and domain in order to archieve this.

    • Yenthe666 says:

      Hi Nicholas,

      The requirements are installed by the script, you don’t need anything before you use this script.

  14. Tide says:

    Hi Yenthe,

    Your script is very nice and easy to install, but do you think you will consider to make a script to use Nginx to install the server?

    • Yenthe666 says:

      Hi Tide,

      Thank you! It is in my wishlist, I just haven’t come around to it. It takes quite some time and since I do it for free & open source I’ve got to set priorities to what I do first. 😉 Sorry!

  15. Frankie Moses says:

    Hi Yenthe I need help on odoo enterprise i do deploy odoo all version on community but a client needs enterprise ….i have purchase it but my line of installation is the nightly or github ……but currently for odoo 10 i go with git clone on github …… i have downloaded the enterprise addon from odoo but i do not have github enterprise assess am trying to request but is it possible to just add the tar file i dowloaded from the enterprise to make it work or any work around i will be grateful thanks

    • Yenthe666 says:

      Hi Frankie,

      If you don’t have access to the Github repository you’ll have to use the nightly / installer.

      Regards,
      Yenthe

  16. Anurag Nayar says:

    Hi,

    i installed enterprise v 10.0 with your script. the script ran fine. the only thing I changed was to Set Enterprise = True.

    after installation i tried accessing Odoo. but it gives below error :

    “The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.”

    • Yenthe666 says:

      Hi Anurag,

      Please have a look at your logfile under /var/log/your-odoo-name. The issue should be logged in there. Do you have acces to the repository though?(Github.com/odoo/enterprise). If you don’t have access to this repository this’ll the source of your issue.

  17. Vegeta456 says:

    Hello, I have follow your tutorial. The installation of the community version is ok. Now i try to install the enterpise version 10. I have a problem after the install. When i need to create the DB i have the following message… can you help me? 🙁

    I have buy the enterprise version, i have the code from odoo. I need to upload something on github?

    Database creation error: column res_lang.active does not exist LINE 1: SELECT count(1) FROM “res_lang” WHERE (“res_lang”.”active” =… ^

  18. Chauho says:

    Hi Yenthe666,

    Please advise how to verify whether or NOT the odoo 10.0 Enterprise installation is successful after using your script odoo_install.sh
    Thanks
    Chau

    • Yenthe666 says:

      Hi Chauho,

      The easiest way is to navigate to the URL where it is installed for. For example localhost:8069. If this doesn’t work you should have a look at the Odoo logfile under /var/log/your-odoo-name.

  19. kristoff says:

    thanks for the script first of all. I installed and it was smooth going but when i go to the site it says this site cant be reached.i check the listening ports and odoo isnt there, any help would be good, thanks.

    • Yenthe666 says:

      Hi Kristoff,

      Have a look in your logfile under /var/log/your-odoo-name/ if there is an issue it should be in there.

  20. Nico says:

    The GNA-download-page doesn’t exist anymore. So the script keeps on turning in circles attempting to download the wkhtmltopdf-software

      • hello
        i have one problem
        i have install the odoo enterprise on Ubuntu 16.04.2 and not work.The enterprise folder is empty and the localhost:8069/web/database/selector is not corect (not load images )

        i have reinstal Ubuntu 16.04.2 an i install the community and is work fine

        • Yenthe666 says:

          Hi bb11,

          You’ve probably had incorrect credentials for cloning the enterprise folders from Github or you’re not an official Odoo partner. In this case you can’t install an Odoo Enterprise.

  21. Great Script! Is there a quick how to on creating an additional odoo site(domain) on the same machine? I have nginx vhosts already working, though my addl site is pointing to a generic index.html

    Do I rerun your script? cp odoo/odoo-server/odoo? or something completely different?

    a punt in the right direction, including RTFM, would be appreciated 🙂

    • Nevermind 🙂 I ended up rerunning your script with modifications: renaming odoo to odoo10 so as not to interfere with my initial install, used a dif port, and then I made changes to my nginx sites-available to upstream the odoo10 with associated port and everything is working well.
      thanks for your time.

      • Yenthe666 says:

        Hi Damon,

        Happy to hear you’ve got it working! This is indeed the way to set up multiple Odoo environments on one server.

  22. sebastien says:

    Hi,
    Your script is awesome, everything work like a charm !

    However, i’d like to know how i can redirect a subdomain name to the 8069 port used by Odoo ??
    I try VirtualHosts in Apache2 conf but it says that socket is already in use ? (excuse my lack of knowledge…).
    I’m pretty sure your script (and Odoo) doesn’t use apache cause it was not installed even if Odoo is fully functional 🙂

    Thanks for your help

  23. Contoso11 says:

    Hi
    Please when I finish installing odoo using your script enterprise folder is empty even though I made Is Enterprse True

    • Yenthe666 says:

      Hi Contoso11,

      You most likely do not have access to the Odoo Enterprise code then. Can you access github.com/odoo/enterprise and are you an Odoo partner? Otherwise you won’t be able to download it.

  24. AA34 says:

    Hi Thank you very much !

    But when I finish the installation, the link that I have guide me to the page of manage databases not to the interface of odoo .

    Thanks for your help

  25. Victor says:

    Hello Yenthe,

    I just wanted to thank you. I’ve installed odoo 10 twice using your script and it works flawlessly!

    Thanks for the time and effort!

    Cheers,

    Victor.

  26. Jeff says:

    Hi Yenthe, thanks a lot for this script!
    Just a question, I don t manage to configure email on odoo when I use ubuntu 16.04 the error message is : connection test fails, 101
    Network is unreachable
    It works under ubuntu 14…
    is there something to install on ubuntu 16?
    Thanks by advance (couple of days I m searching…)
    Jeff

    • Yenthe666 says:

      Hi Jeff,

      Sorry for the delay on the response. I haven’t had any problems on my Ubuntu 16.04 servers so I don’t think so. You might want to do an upgrade of pip (if you have/use it) and do an sudo apt-get upgrade.

  27. Mohammed Salah says:

    Thank you for the script, its working, i have one question, after running the script a new users created, odoo and postgres, what is the password for this users

    • Yenthe666 says:

      Hi Mohammed,

      By default the users will be created without any passwords for security reasons. You’d have to set them yourself if you wish this.

  28. Gianluca says:

    Hi Yahthee666, very nice script. I started study/using Odoo a few months ago and your guide has helped me a lot because in real 5 minutes you have a well made and installed instance.
    But have I not yet managed to understand Odoo that webserver uses, if Apache, Nginx or something else? I don’t know you could tell me what it is? Thank in advance

  29. Bill says:

    Hi Yahthee666, already using your odoo11 install.sh, work so beautifully, but how can I amend the script to work with downloaded enterprise package?
    Many thanks

    • Yenthe666 says:

      Hi Bill,

      You could install the community version, unzip the enterprise version, add it under a separate folder and then link to that folder in your odoo-server.conf file.

Leave a Reply

Your email address will not be published. Required fields are marked *