How to install OpenERP 7.0 on Ubuntu 12.04 LTS

OpenERP Logo

Introduction

Welcome to the latest of our very popular OpenERP installation “How Tos”.

The new release of OpenERP 7.0 is a major upgrade and a new Long Term Support release; the 7.0 Release Notes extend to over 90 pages! The most noticeable change is a complete re-write of the User Interface that features a much more modern look and feel.

OpenERP 7.0 is not only better looking and easier to use, it also brings many improvements to the existing feature-set and adds a number of brand new features which extend the scope of the business needs covered by OpenERP. Integration of social network capabilities, integration with Google Docs and LinkedIn, new Contract Management, new Event Management, new Point of Sale, new Address Book, new Fleet Management,… are only some of the many enhancements in OpenERP 7.0.

The How To

Following that introduction, I bet you can’t wait to get your hands dirty…

Just one thing before we start: You can simply download a “.deb” package of OpenERP and install that on Ubuntu. Unfortunately that approach doesn’t provide us (Libertus Solutions) with enough fine-grained control over where things get installed, and it restricts our flexibility to modify & customise, hence I prefer to do it a slightly more manual way (this install process below should only take about 10-15 minutes once the host machine has been built).

So without further ado here we go:

Step 1. Build your server

I install just the bare minimum from the install routine (you may want to install the openssh-server during the install procedure or install subsequently depending on your needs).

After the server has restarted for the first time I install the openssh-server package (so we can connect to it remotely) and denyhosts to add a degree of brute-force attack protection. There are other protection applications available: I’m not saying this one is the best, but it’s one that works and is easy to configure and manage. If you don’t already, it’s also worth looking at setting up key-based ssh access, rather than relying on passwords. This can also help to limit the potential of brute-force attacks. [NB: This isn't a How To on securing your server...]

sudo apt-get install openssh-server denyhosts

Now make sure your server has all the latest versions & patches by doing an update:

sudo apt-get update
sudo apt-get dist-upgrade

Although not always essential it’s probably a good idea to reboot your server now and make sure it all comes back up and you can login via ssh.

Now we’re ready to start the OpenERP install.

Step 2. Create the OpenERP user that will own and run the application

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

This is a “system” user. It is there to own and run the application, it isn’t supposed to be a person type user with a login etc. In Ubuntu, a system user gets a UID below 1000, has no shell (it’s actually /bin/false) and has logins disabled. Note that I’ve specified a “home” of /opt/openerp, this is where the OpenERP server code will reside and is created automatically by the command above. The location of the server code is your choice of course, but be aware that some of the instructions and configuration files below may need to be altered if you decide to install to a different location.

[Note: If you want to run multiple versions of OpenERP on the same server, the way I do it is to create multiple users with the correct version number as part of the name, e.g. openerp70, openerp61 etc. If you also use this when creating the Postgres users too, you can have full separation of systems on the same server. I also use similarly named home directories, e.g. /opt/openerp70, /opt/openerp61 and config and start-up/shutdown files. You will also need to configure different ports for each instance or else only the first will start.]

A question I have been asked a few times is how to run the OpenERP server as the openerp system user from the command line if it has no shell. This can be done quite easily:

sudo su - openerp -s /bin/bash

This will su your current terminal login to the openerp user (the “-” between su and openerp is correct) and use the shell /bin/bash. When this command is run you will be in openerp’s home directory: /opt/openerp.

When you have done what you need you can leave the openerp user’s shell by typing exit.

Step 3. Install and configure the database server, PostgreSQL

sudo apt-get install postgresql

Then configure the OpenERP user on postgres:

First change to the postgres user so we have the necessary privileges to configure the database.

sudo su - postgres

Now create a new database user. This is so OpenERP has access rights to connect to PostgreSQL and to create and drop databases. Remember what your choice of password is here; you will need it later on:

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Enter password for new role: ********
Enter it again: ********

Finally exit from the postgres user account:

exit

Step 4. Install the necessary Python libraries for the server

sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata \
python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid \
python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing \
python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject \
python-webdav python-werkzeug python-xlwt python-yaml python-zsi

With that done, all the dependencies for installing OpenERP 7.0 are now satisfied (note that there are some new packages required since 6.1).

Step 5. Install the OpenERP server

I tend to use wget for this sort of thing and I download the files to my home directory.

Make sure you get the latest version of the application: at the time of writing this it’s 7.0. I got the download links from their download pages (note there are also deb, rpm and exe builds in this area too). There isn’t a static 7.0 release tarball as such anymore, but there is a nightly build of the 7.0 source tree which should be just as good and will contain patches as and when things get fixed. The link below is to the source tarball for the 7.0 branch.

Note: As an alternative method of getting the code onto your server, Jerome added a very useful comment showing how to get it straight from launchpad. Thanks!

wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz

Now install the code where we need it: cd to the /opt/openerp/ directory and extract the tarball there.

cd /opt/openerp
sudo tar xvf ~/openerp-7.0-latest.tar.gz

Next we need to change the ownership of all the the files to the OpenERP user and group we created earlier.

sudo chown -R openerp: *

And finally, the way I have done this is to copy the server directory to something with a simpler name so that the configuration files and boot scripts don’t need constant editing (I called it, rather unimaginatively, server). I started out using a symlink solution, but I found that when it comes to upgrading, it seems to make more sense to me to just keep a copy of the files in place and then overwrite them with the new code. This way you keep any custom or user-installed modules and reports etc. all in the right place.

sudo cp -a openerp-7.0 server

As an example, should OpenERP 7.0.1 come out soon, I can extract the tarballs into /opt/openerp/ as above. I can do any testing I need, then repeat the copy command so that the modified files will overwrite as needed and any custom modules, report templates and such will be retained. Once satisfied the upgrade is stable, the older 7.0 directories can be removed if wanted.

That’s the OpenERP server software installed. The last steps to a working system is to set up the configuration file and associated boot script so OpenERP starts and stops automatically when the server itself stops and starts.

Step 6. Configuring the OpenERP application

The default configuration file for the server (in /opt/openerp/server/install/) is actually very minimal and will, with only one small change work fine so we’ll simply copy that file to where we need it and change it’s ownership and permissions:

sudo cp /opt/openerp/server/install/openerp-server.conf /etc/
sudo chown openerp: /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf

The above commands make the file owned and writeable only by the openerp user and group and only readable by openerp and root.

To allow the OpenERP server to run initially, you should only need to change one line in this file. Toward to the top of the file change the line db_password = False to the same password you used back in step 3. Use your favourite text editor here. I tend to use nano, e.g.

sudo nano /etc/openerp-server.conf

One other line we might as well add to the configuration file now, is to tell OpenERP where to write its log file. To complement my suggested location below add the following line to the openerp-server.conf file:

logfile = /var/log/openerp/openerp-server.log

Once the configuration file is edited and saved, you can start the server just to check if it actually runs.

sudo su - openerp -s /bin/bash
/opt/openerp/server/openerp-server

If you end up with a few lines eventually saying OpenERP is running and waiting for connections then you are all set.

On my system I noticed the following warning:

2012-12-19 11:53:51,613 6586 WARNING ? openerp.addons.google_docs.google_docs: Please install latest gdata-python-client from http://code.google.com/p/gdata-python-client/downloads/list

The Ubuntu 12.04 packaged version of the python gdata client library is not quite recent enough, so to install a more up-to-date version I did the following (exit from the openerp user’s shell if you are still in it first):

sudo apt-get install python-pip
sudo pip install gdata --upgrade

Going back and repeating the commands to start the server resulted in no further warnings

sudo su - openerp -s /bin/bash
/opt/openerp/server/openerp-server

If there are errors, you’ll need to go back and find out where the problem is.

Otherwise simply enter CTL+C to stop the server and then exit to leave the openerp user account and go back to your own shell.

Step 7. Installing the boot script

For the final step we need to install a script which will be used to start-up and shut down the server automatically and also run the application as the correct user. There is a script you can use in /opt/openerp/server/install/openerp-server.init but this will need a few small modifications to work with the system installed the way I have described above. Here’s a link to the one I’ve already modified for 7.0.

Similar to the configuration file, you need to either copy it or paste the contents of this script to a file in /etc/init.d/ and call it openerp-server. Once it is in the right place you will need to make it executable and owned by root:

sudo chmod 755 /etc/init.d/openerp-server
sudo chown root: /etc/init.d/openerp-server

In the configuration file there’s an entry for the server’s log file. We need to create that directory first so that the server has somewhere to log to and also we must make it writeable by the openerp user:

sudo mkdir /var/log/openerp
sudo chown openerp:root /var/log/openerp

Step 8. Testing the server

To start the OpenERP server type:

sudo /etc/init.d/openerp-server start

You should now be able to view the logfile and see that the server has started.

less /var/log/openerp/openerp-server.log

If there are any problems starting the server you need to go back and check. There’s really no point ploughing on if the server doesn’t start…

OpenERP 7 Database Management Screen

OpenERP 7 Database Management Screen

If the log file looks OK, now point your web browser at the domain or IP address of your OpenERP server (or localhost if you are on the same machine) and use port 8069. The url will look something like this:

http://IP_or_domain.com:8069

What you should see is a screen like this one (it is the Database Management Screen because you have no OpenERP databases yet):

What I do recommend you do at this point is to change the super admin password to something nice and strong (Click the “Password” menu). By default this password is just “admin” and knowing that, a user can create, backup, restore and drop databases! This password is stored in plain text in the /etc/openerp-server.conf file; hence why we restricted access to just openerp and root. When you change and save the new password the /etc/openerp-server.conf file will be re-written and will have a lot more options in it.

Now it’s time to make sure the server stops properly too:

sudo /etc/init.d/openerp-server stop

Check the logfile again to make sure it has stopped and/or look at your server’s process list.

Step 9. Automating OpenERP startup and shutdown

If everything above seems to be working OK, the final step is make the script start and stop automatically with the Ubuntu Server. To do this type:

sudo update-rc.d openerp-server defaults

You can now try rebooting you server if you like. OpenERP should be running by the time you log back in.

If you type ps aux | grep openerp you should see a line similar to this:

openerp 1491 0.1 10.6 207132 53596 ? Sl 22:23 0:02 python /opt/openerp/server/openerp-server -c /etc/openerp-server.conf

Which shows that the server is running. And of course you can check the logfile or visit the server from your web browser too.

OpenERP 70 Main Setup Screen

OpenERP 70 Main Setup Screen

That’s it! Next I would suggest you create a new database filling in the fields as desired. Once the database is initialised, you will be directed straight to the new main configuration screen which gives you a fell for the new User Interface in OpenERP 7 and shows you how easy it is to set up a basic system.

Tags: , , ,

428 Comments

  • ibradin says:

    I’ve tried the steps above, but when will start the OpenERP of boot script (daemon) that are in init.d directory, I see an error like the following:
    :~$ sudo /etc/init.d/openerp-server start
    /etc/init.d/openerp-server: line 22: /etc/rc.d/init.d/functions: No such file or directory

    what there is my configuration error? what can anybody help me?

    • Alan Bell says:

      line 22 of the /etc/init.d/openerp-server in the instructions is a blank line http://www.theopensourcerer.com/wp-content/uploads/2012/12/openerp-server. I think you have something else in that file.

      • Eddie says:

        I have a blank line as well but still it refuges to start.

        I also set the chmod +x to the file but no luck.

    • dieck says:

      Looks like there is a line

      # Source function library.
      . /etc/rc.d/init.d/functions

      in the init file, which will not work on Debian/Ubuntu. Notice that there is another block
      # Source function library
      if [ -f /etc/init.d/functions ] ; then
      . /etc/init.d/functions
      elif [ -f /etc/rc.d/init.d/functions ] ; then
      . /etc/rc.d/init.d/functions
      else
      exit 0
      fi

      later on. This will throw no error, but exit 0 is called as these paths are not fitting for Ubuntu 12.04.

      What you’ll need to remove or comment the first . /etc/rc.d/init.d/functions, and add into the second block:

      elif [ -f /lib/lsb/init-functions ] ; then
      . /lib/lsb/init-functions

      • dieck says:

        ok, sorry, that doesn’t work either, because “daemon” is not known to Ubuntu. I tried installing the package “daemon”, which still misses the –check parameter (as does start-stop-daemon).

        I ended up using /opt/openerp/server/debian/openerp.init as /etc/init.d/openerp-server just like the other file the howto, and set

        DAEMON=/opt/openerp/server/openerp-server
        CONFIG=/etc/openerp-server.conf

        (Please note that I used the launchpad sources, and haven’t cross-checked with the nightly build)

        • Alan Lord says:

          I’m not sure which init script you are looking at Dieck.

          The one linked to in the post doesn’t source functions anywhere and the start-stop-daemon is already in the path in /sbin/start-stop-daemon

    • mozib khan says:

      Hi ,

      follow all the steps
      /opt/openerp/server/install/openerp-server.init

      openerp-server.init copy this file from above and paste into etc/init.d/

      $ sudo /etc/init.d/openerp-server.init start

      Thanks :)

  • Frank Contreras says:

    Man, you are a genius, thank you for a great step by step tutorial. I have been trying to install this for hours, the openERP instructions are not even close and the apt-get doesn’t work at all. This is great and almost bullet proof. Thanks again.

  • Ivan says:

    Hi!

    Thank you for detailed informations. I managed to install everything without problem but have one question. I have Ubuntu 13.1 instaled in WMPlayer and it looks like openerp server starts only after I logon. Is it normal or should it start when machine boots up.

    Thnx in advance!

    Ivan

  • miqdar says:

    excuse me how to install in offline mode? anyone can explain me plis..

  • ndebug says:

    Hi, i followed the steps above and got stuck in this command: sudo cp -a openerp-7.0 server
    error: no such file or directory . Please help

    • Alan Lord says:

      Please read through the comments – this has been discussed before.

    • Martijn says:

      That command means “copy the directory, & all it’s contents, called openerp-7.0 to a directory called server”.

      It will create the new directory.

      Your error is actually missing a “p” in openerp-70 but it may be that the directory is called something different, perhaps with a build number. In Linux terminals you can use TAB to auto-complete commands so if you were to type “cp -a op+[TAB]” it should auto fill in the rest of that directory name in the /opt/openerp directory. You can then type “server” after it and the command should run to completion with no errors.

  • Pepe Eltenso says:

    Thank you!!!

  • ullas says:

    Sir,
    thanks for your great tutorial.
    i am a fresher to ubuntu&programming world
    i installed openerp7.0 in my laptop( windows7, 64 bit) and using for my personal purpose. i decided to shift to ubuntu, because i got stuck with report generation in windows 7, 64 bit platform.
    but one problem i cant get rid……..

    Step-6: last command runs like this

    ullas@ubuntu:~$ sudo su – openerp -s /bin/bash
    openerp@ubuntu:~$ /opt/openerp/server/openerp-server
    2013-11-27 15:52:17,702 3012 INFO ? openerp: OpenERP version 7.0-20131126-002648
    2013-11-27 15:52:17,702 3012 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
    2013-11-27 15:52:17,702 3012 INFO ? openerp: database hostname: localhost
    2013-11-27 15:52:17,702 3012 INFO ? openerp: database port: 5432
    2013-11-27 15:52:17,702 3012 INFO ? openerp: database user: openerp
    2013-11-27 15:52:17,918 3012 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.18` detected
    2013-11-27 15:52:18,089 3012 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
    2013-11-27 15:52:18,089 3012 INFO ? openerp: OpenERP server is running, waiting for connections…
    ^C2013-11-27 15:53:57,207 3012 INFO ? openerp.service: Initiating shutdown
    2013-11-27 15:53:57,208 3012 INFO ? openerp.service: Hit CTRL-C again or send a second signal to force the shutdown.
    openerp@ubuntu:~$ exit
    logout

    step – 7: first command runs like this
    ullas@ubuntu:~$ sudo /etc/init.d/openerp-server start
    Starting openerp-server: openerp-server.

    but when i checked the content of the log file using the command line, i got no such file or directory message as like this

    ullas@ubuntu:~$ less /var/log/openerp/openerp-server.log
    /var/log/openerp/openerp-server.log: No such file or directory
    ullas@ubuntu:~$

    i checked manually the content of the file openerp (/var/log/openerp/)
    no more log file formed like “openerp-server.log”

    i dont know the reason why the log file is not automatically creating after running the server even after editing the openerp-server.conf as mentioned in step 6.

    please help me.
    ullas.

  • ullas says:

    Sir,
    i had typed each command line from the link you provided for the file openerp-server. that was the problem. now i copied the whole content from your link to this file and the problem solved.
    its working..!!!!
    am really happy
    . thanks alot
    by,
    ullas
    kerala, india

  • ndebug says:

    Hi, how to access /opt/openerp/server/install/openerp-server.init ?

    it says no such file or directory !!!

  • tunilove says:

    Thank you for this tuto great job

    i get block on sudo apt-get install postgresql it keep ask for

    openerp@apps2:~$ sudo apt-get install postgresql
    [sudo] password for openerp:
    Sorry, try again.
    [sudo] password for openerp:
    Sorry, try again.
    [sudo] password for openerp:
    any help

  • ndebug says:

    Hi, still can’t finish this installation… where to add the automated script? am unable to access /opt/openerp/server/install/openerp-server.init
    can someone please help? :(
    thank you

  • Brian Martin says:

    I was just going to add, it might be useful to include a sample of hosting this behind something like nginx via gunicorn. Also, when you download the source like this, it provides also an openerp init script which can be used with the upstart system (for starting services on boot). This seems to be the ‘new’ way of doing things. That script is in the debian folder. Another thing I have started doing it creating the whole install in a virtual env and keeping the whole thing contained that way. But both are valid ways of doing it.

  • Eddie says:

    Im sure I have copied the file in the correct path but when I execute this command


    sudo /etc/init.d/openerp-server start

    , I got this error

    sudo: unable to execute /etc/init.d/openerp-server: No such file or directory

    I can execute

    nano /etc/init.d/openerp-server
    and see the file contents. It means the file exists.

    I also set the chmod +x to the file. Still it refuges to execute.

  • Anderson says:

    Hello, very good initiative, did the installation using this how to and the same is working perfectly. I only have one doubt, how do I put other modules. I did the configuration in openerp-server.conf / etc so that addons_path = But the clinical module does not work.

  • Waïna says:

    Hello,
    First of all thanks for your page ! super useful i managed to install it on a debian VPS linode.

    I switched to AWS and i just cannot set up the Postgresql satabase. I do the

    sudo apt-get install postgresql

    and when I try the “createuser” I get this ouput

    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_PAPER = "de_BE.UTF-8",
    LC_ADDRESS = "de_BE.UTF-8",
    LC_MONETARY = "de_BE.UTF-8",
    LC_NUMERIC = "de_BE.UTF-8",
    LC_TELEPHONE = "de_BE.UTF-8",
    LC_IDENTIFICATION = "de_BE.UTF-8",
    LC_MEASUREMENT = "de_BE.UTF-8",
    LC_TIME = "de_BE.UTF-8",
    LC_NAME = "de_BE.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

    I tried every solution on internet like changing the postgresl.conf
    it does not do anything.
    I tried Debian7 Ubuntu 12.04 LTS and nothing changes, I still get the same error.
    This i very annoying and I don’t get what is not working.
    Please mr Opensourcerer, help me.
    Cheers,
    Waïna

  • Edwin says:

    Hello, i’ve got the following error
    openerp@Server:~$ /opt/openerp/server/openerp-server
    2014-01-05 21:59:22,419 20276 INFO ? openerp: OpenERP version 7.0-20140105-002500
    2014-01-05 21:59:22,419 20276 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
    2014-01-05 21:59:22,419 20276 INFO ? openerp: database hostname: localhost
    2014-01-05 21:59:22,419 20276 INFO ? openerp: database port: 5432
    2014-01-05 21:59:22,419 20276 INFO ? openerp: database user: openerp
    2014-01-05 21:59:22,771 20276 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.18` detected
    2014-01-05 21:59:23,066 20276 INFO ? openerp: OpenERP server is running, waiting for connections…
    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 551, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/threading.py”, line 504, in run
    self.__target(*self.__args, **self.__kwargs)
    File “/opt/openerp/server/openerp/service/wsgi_server.py”, line 436, in serve
    httpd = werkzeug.serving.make_server(interface, port, application, threaded=True)
    File “/usr/lib/python2.7/dist-packages/werkzeug/serving.py”, line 399, in make_server
    passthrough_errors, ssl_context)
    File “/usr/lib/python2.7/dist-packages/werkzeug/serving.py”, line 331, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
    File “/usr/lib/python2.7/SocketServer.py”, line 408, in __init__
    self.server_bind()
    File “/usr/lib/python2.7/BaseHTTPServer.py”, line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
    File “/usr/lib/python2.7/SocketServer.py”, line 419, in server_bind
    self.socket.bind(self.server_address)
    File “/usr/lib/python2.7/socket.py”, line 224, in meth
    return getattr(self._sock,name)(*args)
    error: [Errno 98] Address is already use

    • Alan Lord says:

      @Edwin,

      This comes up time after time after time… please look through all the many previous comments.

      The error you have is the last line: “error: [Errno 98] Address is already use”.

  • Wilson Andres Osorio M says:

    Thanks for this great tutorial. excellent!!!!!!

  • wze says:

    Hi,
    thanks for your great tutorial!

    I just have one problem. I had a working OpenERP 7 installation before and there is some needed data in the database. Due to some problems I decided to reinstall the system.

    Now, if I start the system using the command

    /opt/openerp/server/openerp-server

    with user openerp I can see my old data. But if use

    sudo /etc/init.d/openerp-server start and connect to the system the manage database screen comes up.

    I guess thats a user/authorization problem?! I’m pretty unexperienced using linux/ubuntu.

  • Steven C. says:

    Hi guys,

    When i get to step 5 to copy the server directory and enter the “sudo cp -a openerp-7.0 server” command it says: cp: cannot stat `openerp-7.0′: No such file or directory

    Any thoughts?

    Thanks for the help!

    • Alan Lord says:

      This has come up before in the comments. Almost certainly due to a different file name/directory name than the instructions.

      Hint Use the command line’s tab completion feature ;-)

  • Benjamin Fillmore says:

    You are a gentleman and a scholar…. Thank you for the excellent write-up.

  • ohill says:

    Amazingly helpful! Thanks.

  • Justin says:

    This blog post was absolutely amazing!!!! I am a proper Linux newbie, and I was able to follow this and get it up and running thank you!

  • Erlendur Gudmundsson says:

    Thank you very much. Worked as advertised.
    Ubuntu 12.04

  • mauriciosedano says:

    thanks for your kindly guide, i used as reference: i compared with one from toolkit and I am still coming back to your. Thanks

  • Stefan Vrampe says:

    Great work (please imagine loud applause)! Many thanks for this amateur-proof tutorial.

  • Erik says:

    Thank you so much for this tutorial. Worked very well. However, I am experiencing one problem. Everytime I try to delete anything, e.g. drop a database or delete a country inside OpenERP I get the following Error:
    Uncaught TypeError: Property ‘confirm’ of object [object Object] is not a function
    https://my.domain.com/web/webclient/js?db=mydatabase:3698

    Has this something to do with permissions?
    Creating, etc. works great. Its only when it comes to deleting objects.

    Or is the 3698 some sort of port?

    • Erik says:

      Problem solved. It was a pop-up blocker extension in chrome that blocked the deleting confirmation, thus the weird error appeared.

  • NT says:

    Can you help with running multiple versions of openerp on single ubuntu openerp 6.0.4 and openerp 7

  • NT says:

    Can you give more detailed instructions on installing multiple versions of Openerp 6 and 7 on a single ubuntu.

  • Erik says:

    How to update an installation to the most recent version?

  • Michael Azer says:

    Great job on the tutorial! I just keep on getting the following error in step 3:
    createuser: could not connect to database postgres: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

  • Alloice says:

    How to install 8.0 dev trunk in ubuntu? I tried the above procedure but the server wont start. A clue on how to install version 8.0? As V7.0 works with your tutorial.Thanks.

    • Alan Lord says:

      It should work OK – we have it running on our dev server on Ubuntu 12.04. Check the logs for missing python packages on start up.

      I spun one up the other day, from a bzr pull of trunk, and it works just fine.

  • Marcin says:

    This works perfectly , the first tutorial which is clear and works perfect . Thank you . Best regards .

  • Ben says:

    Hello there, been using your great tutorials since OpenERP v6 as I found the “official” how to seemed to have lot’s of parts “lost in translation”. I’m in a dilema, your method works for me on my Debian 7 installation which is the native OS on a Dell Optiplex 170L desktop. I can access the database through my browsers, on other clients in the LAN and from the internet (using SSH tunnel at the moment for security of my passwords). Thing is, when I get to the automatic startup script part of your tutorial, there is no sign of postgresql or openerp being started(in system logs) and the log file you mention, doesn’t get created let alone written to. I suspect that a slight change to this startup script is necessary for it to work on Debian Wheezy, but unfortunately don’t understand it’s syntax/language so I’m stuck. Please help point me in the direction of someone who has managed to get this to work on Debian.

  • Massimo says:

    Great tutorial and works just fine.
    Thank you for your help and shared knowledge.

  • chintan says:

    I am having the following error while trying to run the openerp server. I followed all the steps as per the given list and installed all the dependencies. is it possible that any new dependencies are required in the latest version (26th Feb 2014).

    Following is the error :

    linaro@cubietruck:~$ sudo su – openerp -s /bin/bash
    openerp@cubietruck:~$ /opt/openerp/server/openerp-server
    Traceback (most recent call last):
    File “/opt/openerp/server/openerp-server”, line 2, in
    import openerp
    File “/opt/openerp/server/openerp/__init__.py”, line 39, in
    import addons
    File “/opt/openerp/server/openerp/addons/__init__.py”, line 38, in
    from openerp.modules import get_module_resource, get_module_path
    File “/opt/openerp/server/openerp/modules/__init__.py”, line 27, in
    from . import db, graph, loading, migration, module, registry
    File “/opt/openerp/server/openerp/modules/graph.py”, line 32, in
    import openerp.osv as osv
    File “/opt/openerp/server/openerp/osv/__init__.py”, line 22, in
    import osv
    File “/opt/openerp/server/openerp/osv/osv.py”, line 30, in
    import orm
    File “/opt/openerp/server/openerp/osv/orm.py”, line 62, in
    import fields
    File “/opt/openerp/server/openerp/osv/fields.py”, line 47, in
    import openerp.tools as tools
    File “/opt/openerp/server/openerp/tools/__init__.py”, line 29, in
    from image import *
    File “/opt/openerp/server/openerp/tools/image.py”, line 25, in
    from PIL import Image
    ImportError: No module named PIL

    ——

    what should i do?

  • Diego Hernandez says:

    Does this installation work for a bitnami server? I have tried it on my bitnami server, but nothing happens.
    I would like to know if someone has installed it on bitnami server!!
    Thanks in advance!!

  • Mashood Tariq says:

    Please tell me how to fix this !! Thanks in advance :)

    openerp@transylvania:/$ /opt/openerp/openerp-7.0-20140311-003137/openerp-server

    2014-03-11 17:56:02,967 6368 INFO ? openerp: OpenERP version 7.0-20140311-003137
    2014-03-11 17:56:02,967 6368 INFO ? openerp: addons paths: /opt/openerp/openerp-7.0-20140311-003137/openerp/addons
    2014-03-11 17:56:02,967 6368 INFO ? openerp: database hostname: localhost
    2014-03-11 17:56:02,967 6368 INFO ? openerp: database port: 5432
    2014-03-11 17:56:02,968 6368 INFO ? openerp: database user: openerp
    2014-03-11 17:56:03,265 6368 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.18` detected
    2014-03-11 17:56:03,518 6368 INFO ? openerp: OpenERP server is running, waiting for connections…
    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 551, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/threading.py”, line 504, in run
    self.__target(*self.__args, **self.__kwargs)
    File “/opt/openerp/openerp-7.0-20140311-003137/openerp/service/wsgi_server.py”, line 436, in serve
    httpd = werkzeug.serving.make_server(interface, port, application, threaded=True)
    File “/usr/lib/python2.7/dist-packages/werkzeug/serving.py”, line 399, in make_server
    passthrough_errors, ssl_context)
    File “/usr/lib/python2.7/dist-packages/werkzeug/serving.py”, line 331, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
    File “/usr/lib/python2.7/SocketServer.py”, line 408, in __init__
    self.server_bind()
    File “/usr/lib/python2.7/BaseHTTPServer.py”, line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
    File “/usr/lib/python2.7/SocketServer.py”, line 419, in server_bind
    self.socket.bind(self.server_address)
    File “/usr/lib/python2.7/socket.py”, line 224, in meth
    return getattr(self._sock,name)(*args)
    error: [Errno 98] Address already in use

    • Alan Lord says:

      This crops up all the time and has been answered many times in the comments already:

      error: [Errno 98] Address already in use

      You have another instance of OpenERP running or something else on your server is already bound to that port.

  • Gerardo says:

    Muchas gracias por compartir este fenomenal tutorial. Me ha sido de gran ayuda
    Saludos

  • Christian Parent says:

    When does the Tutorial for version 8 coming out ? Such a breeze to install it following your instruction

  • d4mer says:

    Hi There,

    Great tutorial! and Thanks a million!. Everything has worked for me except that I get “openerp apps unreachable” any ideas what could be wrong?

  • Mark Greenhalgh says:

    Hi, just to say this is a great tutorial and worked flawlessly me for me on a new remote server. Especially good considering the whole thing – Linux and OpenERP is new for me.

    Mark

  • Tim says:

    Hi Alan, this is a great tutorial for me, especially the part on how to host multiple openerp 7 systems (for me I thought it was best to separate the DB and the application into independant servers). I was not sure where to ask these questions but thought that I would start here and see where this ends up.

    I am about to start setting up openerp 8 systems so these questions will revolve mostly around this version. If you have another tutorial coming out to address openerp 8 I will post over there.

    First, is it possible to install an openerp 8 system on ubuntu 12.04 along side openerp 7? (are there new pre-requisites for openerp 8 that can not be fulfilled or interfere with openerp 7 on ubuntu 12.04)

    Before I begin my testing and planning for openerp 8 I wanted to state that the information in your blog regarding “u all” for upgrading opener 7 nightly is fantastic. My question here is will it be possible to use this method to upgrade from nightly openerp 7 to nightly openerp 8?

    • Alan Bell says:

      Upgrading from 7 to 8 might or might not work, and if it does one day, it might not do the next. OpenERP will do a migration service between major versions for customers on maintenance, you are welcome to try upgrading between versions, but if it breaks, you own all the pieces :)

  • MOHAMED says:

    Hi,

    Very Good Tutorial for installing openerp….!!!! well done….:)

    Riyaz

  • Marcos says:

    The first is to thank all you do for the opensource community. I want to inform you that I used your guide as the basis for an article in my blog (http://openerphelp.com) in Spanish. I hope you have not minded.

  • nabi says:

    please help me regarding this error

    Client Traceback (most recent call last):
    File “/opt/openerp/server/openerp/addons/web/http.py”, line 204, in dispatch
    response["result"] = method(self, **self.params)
    File “/opt/openerp/server/openerp/addons/web/controllers/main.py”, line 1132, in call_button
    action = self._call_kw(req, model, method, args, {})
    File “/opt/openerp/server/openerp/addons/web/controllers/main.py”, line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
    File “/opt/openerp/server/openerp/addons/web/session.py”, line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File “/opt/openerp/server/openerp/addons/web/session.py”, line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
    File “/opt/openerp/server/openerp/addons/web/session.py”, line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

  • Ioan says:

    Hi,

    this tutorial is great! By following it, I deployed OpenERP 7 also on Ubuntu 14.04.

    Thank you!

  • villar says:

    Hi! thanks for this guide….everything looks fine in my installation but when I try to get into the openerp throug my browser, it says that it cant find the page….
    2014-04-26 16:56:55,270 1307 INFO ? openerp: OpenERP version 7.0-20140425-231140
    2014-04-26 16:56:55,271 1307 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
    2014-04-26 16:56:55,271 1307 INFO ? openerp: database hostname: localhost
    2014-04-26 16:56:55,271 1307 INFO ? openerp: database port: 5432
    2014-04-26 16:56:55,271 1307 INFO ? openerp: database user: openerp
    2014-04-26 16:56:55,711 1307 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.18` detected
    2014-04-26 16:56:56,062 1307 INFO ? openerp: OpenERP server is running, waiting for connections…
    2014-04-26 16:56:56,064 1307 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
    That is what i get when i start the server…but when i put my http://ipaddress:8069 in my browser , it says the could not be find

  • skauer says:

    hello, Thank you for the tutorial, i ve try to install openerp and i ve the following error no connection db. i ve the db_password = False replaced with (–pwprompt) openerp an db_user with postgres like this script by creating a new database user, is this right?
    i m verry happy to help my
    tank you

  • R Sathya Narayanan says:

    First, The orientation was excellent. I got the it working, but when I “Create a New Database” I get the below error. Please help!!
    Note:-
    The Master password I gave is the postgresql database user password.

    Error as it appears
    ===================
    OpenERP Server Error

    Client Traceback (most recent call last):
    File “/opt/openerp70/server/openerp/addons/web/http.py”, line 204, in dispatch
    response["result"] = method(self, **self.params)
    File “/opt/openerp70/server/openerp/addons/web/controllers/main.py”, line 774, in create
    params['create_admin_pwd'])
    File “/opt/openerp70/server/openerp/addons/web/session.py”, line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
    File “/opt/openerp70/server/openerp/addons/web/session.py”, line 97, in send
    raise xmlrpclib.Fault(‘AccessDenied’, openerp.tools.ustr(e))

    Server Access denied.

Leave a Reply

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>