Browse By

Install Odoo on Ubuntu 14.04 from Github

  • Pingback: Install Odoo (Open ERP v8) on Ubuntu 12.04 from launchpad()

  • http://duckprince.blogspot.com/ duckprince

    Hi,
    I got this message when run server: Running as user ‘root’ is a security risk, aborting.

    • Bennie

      You probably installed as user root. instead you should use another user (e.g. odoo, or your normal user name) to do the installation. Then the ‘sudo’ command makes sense, otherwise you are already root. you are root if you see ‘#’ instead of a ‘$’ in the command line. Now you have to change the ownership of all installed files to that user (let’s say odoo). # chown -R odoo: . Difficult to figure out what files are also affected. probably only the odoo directory

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi, you need to have normal user to access odoo setup. To create new normal user you this command ‘sudo adduser odoo’ and grant access of that user to odoo folder or directory where you have full installation of odoo.

      I hope it will solved your issue, let me know if you have any other query.

  • Bennie

    I just did the installation on a virtual machine with exactly this version of ubuntu. Seems to work, only wkhtmltopdf.org did not workout. I installed it using $ sudo apt-get install wkhtmltopdf

    This seems to be the wrong version. Then google search suggested to download the required 0.12 version directly from ‘the archive’. and just copy the file to the right position from that archive.

    • http://virtualrealitysystems.net/ Vimal Rughani

      Thanks Bennie, for sharing your such a great experience. I hope this will be very useful to other views.

  • Francisco Hueso

    As I can do a service server to boot automanticamente when starting this.

  • Stefan Tomić

    Hi.
    Thanks for the good work.

    After I successfully installed odoo with this instructions (on virtual machine) , I am unable to instal it again.

    I get this message after step8:

    ” IOError: [Errno 2] No such file or directory: ‘/home/stefan/odoo/odoo/setup/debian/control’ ”

    The file is there, so I don’t know what should be a problem?

    Thanks,
    Stefan

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi Stefan,

      I am happy that you liked my article, its my pleasure to help you.

      Can you please tell me, before re-installing odoo, have you remove existing setup ? It will create issue, if you try to override existing setup with different configuration.

      Regards,

      • Stefan Tomić

        Hi Vimal!

        I tried to install odoo on fresh virtual machine, but it fails.
        Installation also fails on local machine, on which earlier version (7 4saas) was installed. Your answer could be a solution for local machine, but failure of new virt. machine is a mystery :)

        Regards,
        Stefan

        • http://virtualrealitysystems.net/ Vimal Rughani

          Thanks Stefan, for updates, This weekend I will give my try to install Odoo on Virtual Machine and will update you on this.

          • Stefan Tomić

            It runs the same as on the local machine.
            My problem was in the postges user.

            Earlier installation left user data that should be modified in step 7 during install and in openerp-server.config file.

            Regards,
            Stefan

          • http://virtualrealitysystems.net/ Vimal Rughani

            That’s great that you identified exact issue. Please let me know if you find any difficulty in future. Have a great day ahead !

            Regards,
            Vimal Rughani

  • Δημήτρης Ανδαβόγλου

    My Installation was perfect thanks. I just installed the app with odoo user. Everything works fine except the calendar. I login as admin and when I try to create a new meeting an error occurs – the following fields are invalid Startring at Ending at . I press now or Today for aldday event but nothing. My preferences has Europe/Athens timezone.
    Thanks

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi, Odoo’s current version is saas version, so there might be few bugs on it. Official release of Odoo with stable version is going to be on / around 7th July. Please wait a while for stable version.

      • Loic

        Hi Vimal
        Do you verify your process installation with the stable version ?
        Tk

        • http://virtualrealitysystems.net/ Vimal Rughani

          Hi Loic, Official and full stable version of odoo will be released on /around 7th July. I have tested my installation process with saas3, saas4 (which were initially deployed on launch pad) and saas5 (github version).

          Please feel free for you query.

          • Loic

            I don’t see information on internet if the release is out ? Can I use your “tuto” to push on my server ? tk.

          • http://virtualrealitysystems.net/ Vimal Rughani

            Hi Loic, In Odoo Open Day Conference they announce about release odoo as publically on / around 7th july. I am also wondering while they haven’t publish publically.

  • Vishwanath

    HI thanks for the article.
    I’m using Python 2.6.5, getting syntax error while running odoo.

    Is it necessary to use Python 2.7 ? or is there any other option?

    Thnk u

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi Vishwanath,

      Python 2.7 is required to setup and run odoo. You can check setup.py of odoo from this link https://github.com/odoo/odoo/blob/master/setup.py and check line number 138.

      Please let me know if you have any other query.

  • Ibn Ibraahim, Ismail al-Maldee

    Hi Vimal

    am getting the following error

    wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python
    –2014-07-03 10:23:29– https://raw.githubusercontent.com/odoo/odoo/master/odoo.py
    Resolving raw.githubusercontent.com… 103.245.222.133
    Connecting to raw.githubusercontent.com|103.245.222.133|:443… connected.
    ERROR: certificate common name “www.github.com” doesn’t match requested host name “raw.githubusercontent.com”.
    To connect to raw.githubusercontent.com insecurely, use ‘–no-check-certificate’.

    any way to resolve this

    thanks

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi Ibn Ibraahim,

      Please make sure, you have latest version of git installed on your system. if it is there then try to use. “–no-check-certificate” with your odoo install command, it will resolved your issue.

      Please let me know if you still find any query.

      • Ibn Ibraahim, Ismail al-Maldee

        Thank you Vimal
        its downloading odoo now ,
        will let you know once it is installed
        thanks again

        • http://virtualrealitysystems.net/ Vimal Rughani

          My pleasure Ibn Ibraahim,

          Feel free for your query .

  • CarraS

    Hi Vimal,

    After follow your instructions I get the following error, do you know what I’m doing wrong?

    Thanks

    Traceback (most recent call last):

    File “./openerp-server”, line 5, in

    openerp.cli.main()

    File “/home/ubuntu/odoo/openerp/cli/__init__.py”, line 71, in main

    o.run(args)

    File “/home/ubuntu/odoo/openerp/cli/server.py”, line 174, in run

    main(args)

    File “/home/ubuntu/odoo/openerp/cli/server.py”, line 139, in main

    openerp.tools.config.parse_config(args)

    File “/home/ubuntu/odoo/openerp/tools/config.py”, line 327, in parse_config

    openerp.netsvc.init_logger()

    File “/home/ubuntu/odoo/openerp/netsvc.py”, line 136, in init_logger

    resetlocale()

    File “/home/ubuntu/odoo/openerp/tools/translate.py”, line 992, in resetlocale

    for ln in get_locales():

    File “/home/ubuntu/odoo/openerp/tools/translate.py”, line 960, in get_locales

    lang = locale.getdefaultlocale()[0]

    File “/usr/lib/python2.7/locale.py”, line 543, in getdefaultlocale

    return _parse_localename(localename)

    File “/usr/lib/python2.7/locale.py”, line 475, in _parse_localename

    raise ValueError, ‘unknown locale: %s’ % localename

    ValueError: unknown locale: UTF-8

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi, Please sure you have installed all dependency of odoo. After having all dependency please try to install odoo again from github. Let me know if after that also if you face any difficulty.

  • Loic

    You don’t create an user group odoo under ubuntu / debian. Is it secure to use like that because the install is under root ? Is possible to use in production ?

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi Loic, you should create odoo user having privilege to odoo folder and installation. While writing this article I have assume that you have read my previous article http://pulse7.net/openerp/install-odoo-open-erp-v8-ubuntu-12-04-launchpad/. In that article please check step 7 for understanding.

      Let me know if you find any other difficulty.

      • Loic

        Yes i saw that. That’s why I ask the question because is not better to take this and include in your tuto, there is a newbies and follow your tuto without that can create a security pb ? No?

        • http://virtualrealitysystems.net/ Vimal Rughani

          Thank Loic, for pointing out this issue, This weekend I will updated my tutorial.

  • jamesutru

    Thank you very much for taking the time to create this document. I used the previous document for saas4 but am either doing something or I’m not understanding something. Are these instructions suppose to work AS IS? It would seem like some steps are missing. Nevertheless, everytime I try to install it using parts of this tutorial and the previous one, I get the error below. Can you help out with this? Also, I don’t know much about Odoo and am not as proficient in Linux so if you could dump the instructions down a bit or provide the exact lines of code for Ubuntu 14.04, I’d be grateful. Thanks!

    Traceback (most recent call last):

    File “./openerp-server”, line 2, in

    import openerp

    File “/opt/odoo/v8/odoo/openerp/__init__.py”, line 72, in

    import modules

    File “/opt/odoo/v8/odoo/openerp/modules/__init__.py”, line 27, in

    from . import db, graph, loading, migration, module, registry

    File “/opt/odoo/v8/odoo/openerp/modules/graph.py”, line 32, in

    import openerp.osv as osv

    File “/opt/odoo/v8/odoo/openerp/osv/__init__.py”, line 22, in

    import osv

    File “/opt/odoo/v8/odoo/openerp/osv/osv.py”, line 23, in

    from .orm import Model, TransientModel, AbstractModel

    File “/opt/odoo/v8/odoo/openerp/osv/orm.py”, line 5, in

    from ..models import (

    File “/opt/odoo/v8/odoo/openerp/models.py”, line 62, in

    from . import api

    File “/opt/odoo/v8/odoo/openerp/api.py”, line 70, in

    from openerp.tools import frozendict

    File “/opt/odoo/v8/odoo/openerp/tools/__init__.py”, line 26, in

    from misc import *

    File “/opt/odoo/v8/odoo/openerp/tools/misc.py”, line 54, in

    from cache import *

    File “/opt/odoo/v8/odoo/openerp/tools/cache.py”, line 24, in

    from decorator import decorator

    ImportError: No module named decorator

    • http://virtualrealitysystems.net/ Vimal Rughani

      Hi Thanks for liking my article. All steps are included in this article. For better way usages you can have another user ( except root ) having privilege to odoo folder and installation.
      On your installation, it’s seems like there few dependency missing on your installation. Please make sure to perform steps 4 and 5.
      You can confirm your installation by
      pip freeze
      command. Please let me know if all dependency is installation and still you are facing issue. I will resolved your issue by having remote access or some other way.

  • Vibha

    Hi,

    Thank you for the tutorial.

    I had successfully installed OpenERP from your previous tutorial at http://pulse7.net/openerp/install-odoo-open-erp-v8-ubuntu-12-04-launchpad/ – though my aim was to install Version 8, so un-installed the version 7.

    Now again trying with this tutorial. But without success. I have Ubuntu 12-04. Getting message as below.
    Am not a linux geek, so a fairly detailed help would be great. Thanks again.

    Fetching odoo-dev
    remote: Counting objects: 3, done.
    remote: Compressing objects: 100% (2/2), done.
    remote: Total 3 (delta 0), reused 3 (delta 0)
    Unpacking objects: 100% (3/3), done.
    From https://github.com/odoo-dev/odoo
    * branch HEAD -> FETCH_HEAD
    odoo:running git config branch.master.remote odoo
    odoo:running git config branch.master.merge refs/heads/master
    odoo:running git checkout master
    error: pathspec ‘master’ did not match any file(s) known to git.
    Traceback (most recent call last):
    File “”, line 162, in
    File “”, line 154, in main
    File “”, line 144, in cmd_setup
    File “”, line 95, in cmd_setup_git
    File “”, line 39, in run
    File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘(‘git’, ‘checkout’, ‘master’)’ returned non-zero exit status 1

    • Vibha

      Finally, got it working. Had to upgrade my ubuntu to 14.04.

      Thank you for the tutorial.

  • Guest

    Hi,

    Thank you for the tutorial.

    I had successfully installed OpenERP from your previous tutorial at http://pulse7.net/openerp/install-odoo-open-erp-v8-ubuntu-12-04-launchpad/ – though my aim was to install Version 8, so un-installed the version 7.

    Now again trying with this tutorial. But without success. I have Ubuntu 12-04. Getting message as below.
    Am not a linux geek, so a fairly detailed help would be great. Thanks again.

    Fetching odoo-dev
    remote: Counting objects: 3, done.
    remote: Compressing objects: 100% (2/2), done.
    remote: Total 3 (delta 0), reused 3 (delta 0)
    Unpacking objects: 100% (3/3), done.
    From https://github.com/odoo-dev/odoo
    * branch HEAD -> FETCH_HEAD
    odoo:running git config branch.master.remote odoo
    odoo:running git config branch.master.merge refs/heads/master
    odoo:running git checkout master
    error: pathspec ‘master’ did not match any file(s) known to git.
    Traceback (most recent call last):
    File “”, line 162, in
    File “”, line 154, in main
    File “”, line 144, in cmd_setup
    File “”, line 95, in cmd_setup_git
    File “”, line 39, in run
    File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘(‘git’, ‘checkout’, ‘master’)’ returned non-zero exit status 1

    • unc0nnected

      I’m getting the same error here on my side, although I’m running Debian 6

  • ranjit abraham

    HI, followed your post and made sure that all dependencies are installed, but still getting this error when i try to start the server

    ./openerp-server

    Traceback (most recent call last):

    File “./openerp-server”, line 5, in

    openerp.cli.main()

    File “/home/ranjit/odoo/openerp/cli/__init__.py”, line 68, in main

    o.run(args)

    File “/home/ranjit/odoo/openerp/cli/server.py”, line 174, in run

    main(args)

    File “/home/ranjit/odoo/openerp/cli/server.py”, line 139, in main

    openerp.tools.config.parse_config(args)

    File “/home/ranjit/odoo/openerp/tools/config.py”, line 330, in parse_config

    openerp.netsvc.init_logger()

    File “/home/ranjit/odoo/openerp/netsvc.py”, line 136, in init_logger

    resetlocale()

    File “/home/ranjit/odoo/openerp/tools/translate.py”, line 996, in resetlocale

    for ln in get_locales():

    File “/home/ranjit/odoo/openerp/tools/translate.py”, line 964, in get_locales

    lang = locale.getdefaultlocale()[0]

    File “/usr/lib/python2.7/locale.py”, line 543, in getdefaultlocale

    return _parse_localename(localename)

    File “/usr/lib/python2.7/locale.py”, line 475, in _parse_localename

    raise ValueError, ‘unknown locale: %s’ % localename

    ValueError: unknown locale: UTF-8

  • Loic

    Hello, saw this information concerning the release. is it correct to implement in production ?

    http://www.globalteckz.com/blog/openerp-version-8-odoo-is-released-download-now

    • Loic

      Hello Vimal,
      here, there is a .deb on odoo v8. What do you think, is possible to install in production or not ?

      http://nightly.openerp.com/
      http://nightly.openerp.com/8.0/nightly/deb/

      Tk

      • http://virtualrealitysystems.net/ Vimal Rughani

        Hi Loc,

        In http://nightly.openerp.com/ , They have mention 8.0 version as stable, So I feel this should be the version, which can be used on production. Interesting thing is that on official website of https://www.odoo.com, they haven’t specify this version on download page !

        • Loic

          I have installed deb http://nightly.odoo.com/master/nightly/deb/ ./ (the other doesn’t work), but I don’t know how to start openerp. The installation seems ok. If you have an idea ?

          • CarraS

            Could you solve the Internal Server Error?

          • http://www.carnivorosanonimos.org/ Carnivoros Anonimos

            The same error here Internal Server 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. Any update? (Lubuntu 14.04) Thanks

          • http://virtualrealitysystems.net/ Vimal Rughani

            Hi Carnivoros,
            Odoo is now officially release its stable version. Now you can directly install Odoo from deb. It will be more easier. Please below link for same.
            http://nightly.openerp.com/

          • http://virtualrealitysystems.net/ Vimal Rughani

            Hi Carra,
            Odoo is now officially release its stable version. Now you can directly
            install Odoo from deb. It will be more easier. Please below link for
            same.
            http://nightly.openerp.com/

  • Ubuntu Frans

    Great tutorial also for Linux Mint 17. Maybe it is good to tell after creating company to log in as follows. Database is name of company. Emailaddress is admin. and password is the password used for the database

  • ibán

    Hello

    many thanks for the tutorial, works like a charm!

    only 3 thigns

    A) maybe it’s ok to dd in step 8 the option to install verision 8 instead of the master:

    wget -O- https://raw.githubusercontent.com/odoo/odoo/8.0/odoo.py | python

    B) also, I’d like to know how to install localization packages from github (in this case spanish ones) https://github.com/odoo/odoo/tree/8.0/addons/l10n_es

    anyone can give me a hand?

    C) wit this tutoprial method, whenever there is an update on the odoo files in github, how to install it? just a apt-get update / apt-get upgrade

    thanks!

  • Alex

    Thank you, very good instructions, but at the moment using this manual, you can only install odoo 9alpha.

    Tell me how to use this guide to install odoo 8rc1?

    Thank you!

  • David Mata Viejo

    what is the difference to download openerp from nightly (http://nightly.openerp.com/) download the .deb package and install the package and using those steps?

  • CarraS

    After trying in different ways to install odoo 8 I get a 500 error:

    Do you know what I’m doing wrong?

    Internal Server 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.

    Log when executing ./openerp-server

    2014-09-11 02:20:41,411 31527 ERROR ? openerp.sql_db: Connection to the database failed

    Traceback (most recent call last):

    File “/opt/odoo/odoo/openerp/sql_db.py”, line 522, in borrow

    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)

    File “/usr/lib/python2.7/dist-packages/psycopg2/__init__.py”, line 179, in connect

    connection_factory=connection_factory, async=async)

    OperationalError: FATAL: role “ubuntu” does not exist

    2014-09-11 02:20:41,415 31527 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry

    Traceback (most recent call last):

    File “/opt/odoo/odoo/addons/bus/bus.py”, line 136, in run

    self.loop()

    File “/opt/odoo/odoo/addons/bus/bus.py”, line 114, in loop

    with openerp.sql_db.db_connect(‘postgres’).cursor() as cr:

    File “/opt/odoo/odoo/openerp/sql_db.py”, line 567, in cursor

    return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)

    File “/opt/odoo/odoo/openerp/sql_db.py”, line 181, in __init__

    self._cnx = pool.borrow(dsn)

    File “/opt/odoo/odoo/openerp/sql_db.py”, line 460, in _locked

    return fun(self, *args, **kwargs)

    File “/opt/odoo/odoo/openerp/sql_db.py”, line 522, in borrow

    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)

    File “/usr/lib/python2.7/dist-packages/psycopg2/__init__.py”, line 179, in connect

    connection_factory=connection_factory, async=async)

    OperationalError: FATAL: role “ubuntu” does not exist

  • unc0nnected

    Any ideas as to what’s going on here?

    Fetching odoo-dev

    remote: Counting objects: 3, done.

    remote: Compressing objects: 100% (2/2), done.

    remote: Total 3 (delta 0), reused 3 (delta 0)

    Unpacking objects: 100% (3/3), done.

    From https://github.com/odoo-dev/odoo

    * branch HEAD -> FETCH_HEAD

    odoo:running git config branch.master.remote odoo

    odoo:running git config branch.master.merge refs/heads/master

    odoo:running git checkout master

    error: pathspec ‘master’ did not match any file(s) known to git.

    Traceback (most recent call last):

    File “”, line 162, in

    File “”, line 154, in main

    File “”, line 144, in cmd_setup

    File “”, line 95, in cmd_setup_git

    File “”, line 39, in run

    File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call

    raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError: Command ‘(‘git’, ‘checkout’, ‘master’)’ returned non-zero exit status 1

  • ABCMáytính

    When i run ./openerp-server => Running as user ‘root’ is a security risk aborting. How can i fix it?. Tks

  • Pingback: Fix Psycopg2 Install Error Windows XP, Vista, 7, 8 [Solved]()

  • Vijay Marupudi

    I am having issues running s3fs command for mounting s3 bucket on ubuntu 14.04??? Every time I restart the server I have to run this command with an empty bucket…….If there a fix or an alternative for this???

  • Mehmet Demirel

    Not working!

    10. Run server
    ./openerp-server

    odoo@ubuntu-12-04-32-bit-1-gb-1426736231:/$ ./openerp-server
    -su: ./openerp-server: No such file or directory

  • Naveenkuamr

    Hi i am getting this error

    Traceback (most recent call last):

    File “./openerp-server”, line 2, in

    import openerp

    File “/opt/odoo/odoo/openerp/__init__.py”, line 76, in

    import modules

    File “/opt/odoo/odoo/openerp/modules/__init__.py”, line 27, in

    from . import db, graph, loading, migration, module, registry

    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 44, in

    from openerp.modules.module import initialize_sys_path,

    File “/opt/odoo/odoo/openerp/modules/module.py”, line 37, in

    import unittest2

    File “/usr/local/lib/python2.7/dist-packages/unittest2-1.1.0-py2.7.egg/unittest2/__init__.py”, line 40, in

    from unittest2.collector import collector

    File “/usr/local/lib/python2.7/dist-packages/unittest2-1.1.0-py2.7.egg/unittest2/collector.py”, line 3, in

    from unittest2.loader import defaultTestLoader

    File “/usr/local/lib/python2.7/dist-packages/unittest2-1.1.0-py2.7.egg/unittest2/loader.py”, line 13, in

    from unittest2 import case, suite, util

    File “/usr/local/lib/python2.7/dist-packages/unittest2-1.1.0-py2.7.egg/unittest2/case.py”, line 10, in

    import traceback2 as traceback

    ImportError: No module named traceback2

  • Rajesh B K

    Nice post…but I am getting this errors when I try to installing the packages,

    Package python-ldap is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package python-matplotlib is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘python-matplotlib’ has no installation candidate
    E: Package ‘python-ldap’ has no installation candidate

    Package python-psutil is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package bzr is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package python-paramiko is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Unable to locate package mc
    E: Package ‘bzr’ has no installation candidate
    E: Unable to locate package python-unittest2
    E: Unable to locate package lptools
    E: Package ‘python-psutil’ has no installation candidate
    E: Package ‘python-paramiko’ has no installation candidate
    E: Unable to locate package python-pdftools

    What I am missing here to cause this errors??