How to Install OpenERP Odoo 8 on Ubuntu Server 14.04 LTS

odoo_logo_rgb

Introduction

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

The new release of Odoo 8.0 is a major upgrade introducing a great many new features and a new name.

Odoo 8.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 Odoo. Ecommerce, CMS, Integrated BI…

Rather than me blathering on about what’s new, you can simply just go and read the release notes here.

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 (for Debian/Ubuntu type systems) or a. rpm (Redhat/CentOS) package of OpenERP and install that. 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).

This time, rather than using a source tarball as the basis for installation we are going to take the code straight from the Odoo 8.0 branch on Github. This should help when it comes to installing updates and bug fixes in the future by being able to issue a git pull command to update the code. Bear in mind before doing a pull request you should always have backups and you may need to update your Odoo database(s) as well.

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

UPDATE: Note that it seems denyhosts is no longer being maintained and is not in the main Ubuntu repository any more. I’m aware of a possibly suitable alternative called fail2ban but have not used it yet; do you own research. Thanks to Rami for the cluebat!

UPDATE2: Thanks to Paul for the pointer. I have added python-unicodecsv to the list of dependencies. Apparently this is required to correctly restore backups.

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 Odoo install.

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

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

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/odoo, 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 Odoo/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/odoo80, /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 Odoo server as the odoo system user from the command line if it has no shell. This can be done quite easily:

sudo su - odoo -s /bin/bash

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

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

Step 3. Install and configure the database server, PostgreSQL

sudo apt-get install postgresql

Then configure the Odoo 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 Odoo 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 odoo
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-cups python-dateutil python-decorator python-docutils python-feedparser \
python-gdata python-geoip python-gevent python-imaging python-jinja2 python-ldap python-libxslt1
python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2
python-pybabel python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \
python-simplejson python-tz python-unicodecsv python-unittest2 python-vatnumber python-vobject \
python-werkzeug python-xlwt python-yaml wkhtmltopdf

With that done, all the dependencies for installing Odoo 8.0 are now satisfied (note that there are some changes between this and the packages required for OpenERP 7.0).

UPDATE & NOTE: It has been pointed out to me that the Qweb templating engine in Odoo 8 is warning that the version of wkhtmltopdf is too old. It turns out that Ubuntu 14.04 packages version 0.9.9 of this library even though this is rather old. To update your Ubuntu server please follow the instructions on this page. Many thanks to Ruben Kannan for pointing this out :-).

UPDATE & NOTE II: Zak suggests an alternative method to get and install the most recent version of wkhtmltopdf in this comment below. Thanks Zak.

UPDATE & NOTE III: David suggested adding python-cups and python-geoip to the list of modules to install in this comment below. Thanks David.

Step 5. Install the Odoo server

Install Git.
sudo apt-get install git

Switch to the Odoo user:
sudo su - odoo -s /bin/bash

Grab a copy of the most current Odoo 8 branch (Note the “.” at the end of this command!):
git clone https://www.github.com/odoo/odoo --depth 1 --branch 8.0 --single-branch .
(This might take a little while depending on the speed of your Internet connection.)

Note: Thanks to Ian Beardslee for the cluebat. Have now added --depth 1 to the command so it only retrieves the latest version without all the history. The download is now quite a bit quicker.

Once it’s finished exit from the odoo user: exit.

Step 6. Configuring the OpenERP application

The default configuration file for the server (/opt/odoo/debian/openerp-server.conf) is actually very minimal and will, with only a small change work fine so we’ll copy that file to where we need it and change it’s ownership and permissions:

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

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

To allow the odoo server to run initially, you should only need to change two lines 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. Then modify the line addons_path = /usr/lib/python2.7/dist-packages/openerp/addons so that it reads addons_path = /opt/odoo/addons instead.

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

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

Use your favourite text editor here. I tend to use nano, e.g.

sudo nano /etc/odoo-server.conf

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

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

If you end up with a few lines eventually saying OpenERP (Yes. The log still says OpenERP and not Odoo) is running and waiting for connections then you are all set.

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/odoo/debian/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 Odoo version 8.

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 odoo-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/odoo-server
sudo chown root: /etc/init.d/odoo-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/odoo
sudo chown odoo:root /var/log/odoo

Step 8. Testing the server

To start the Odoo server type:

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

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

less /var/log/odoo/odoo-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…

Odoo 8 New Database

Odoo 8 New Database

If the log file looks OK, now point your web browser at the domain or IP address of your Odoo 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 Odoo 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/odoo-server.conf file; hence why we restricted access to just odoo and root. When you change and save the new password the /etc/odoo-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/odoo-server stop

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

Step 9. Automating Odoo 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 odoo-server defaults

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

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

odoo 1491 0.1 10.6 207132 53596 ? Sl 22:23 0:02 python /opt/odoo/openerp-server -c /etc/odoo-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.

Odoo 8 Opening Screen

Odoo 8 Opening 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 feel for the new User Interface in Odoo 8 and shows you how easy it is to set up a basic system.

Tags: , , ,

276 Comments

  • Andreas Falk says:

    If you want a ppa, it seems that this is pretty good for wkhtmltopdf
    apt-add-repository ppa:ecometrica/servers

    (Not my repo, but it seems to have built wkhtmltopdf for some time..)


    Regards Falk

  • Sigurd says:

    There is really awesome way: Bitnami
    https://bitnami.com/stack/odoo
    I tried since weeks to get Odoo run, tried several ‘recipes’ (even the mentioned deb-Package) and failed.
    (I run a Linux Mint 17-64 om a Lenovo Notbook)
    Today I downloaded the Bitnami Package (the first was the wrong one (32 Bit) that asked me, if I’m serious to install a 32-Bit -Application on a 64-Bit Linux… oh, what a shame) and just started the installer.
    Within about 3 MINUTES I had the running local Odoo-Installation at my Browser!!!

    1 Hour later a (simple) website, an e-shop, some other modules like sale and even a Project-Management up and working.
    I’m so impressed and happy!!!
    Awesome!

  • Enrique says:

    S.O.S
    OpenERP Server Error
    Traceback (most recent call last):
    File “/opt/odoo/odoo/openerp/http.py”, line 508, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
    File “/opt/odoo/odoo/openerp/http.py”, line 526, in dispatch
    result = self._call_function(**self.params)
    File “/opt/odoo/odoo/openerp/http.py”, line 285, in _call_function
    return checked_call(self.db, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/service/model.py”, line 113, in wrapper
    return f(dbname, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/http.py”, line 282, in checked_call
    return self.endpoint(*a, **kw)
    File “/opt/odoo/odoo/openerp/http.py”, line 742, in __call__
    return self.method(*args, **kw)
    File “/opt/odoo/odoo/openerp/http.py”, line 378, in response_wrap
    response = f(*args, **kw)
    File “/opt/odoo/odoo/addons/web/controllers/main.py”, line 952, in call_button
    action = self._call_kw(model, method, args, {})
    File “/opt/odoo/odoo/addons/web/controllers/main.py”, line 940, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/addons/base/module/module.py”, line 450, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/addons/base/module/module.py”, line 498, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
    File “/opt/odoo/odoo/openerp/modules/registry.py”, line 341, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 358, in load_modules
    loaded_modules, update_module)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 185, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind=’demo’)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
    File “/opt/odoo/odoo/openerp/tools/convert.py”, line 897, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
    File “/opt/odoo/odoo/openerp/tools/convert.py”, line 983, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
    File “/opt/odoo/odoo/openerp/tools/convert.py”, line 849, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
    File “/opt/odoo/odoo/openerp/tools/convert.py”, line 763, in _tag_record
    id = self.pool[‘ir.model.data’]._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py”, line 1059, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/api.py”, line 332, in old_api
    result = method(recs, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/models.py”, line 3994, in create
    record = self.browse(self._create(old_vals))
    File “/opt/odoo/odoo/openerp/api.py”, line 235, in wrapper
    return new_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/api.py”, line 464, in new_api
    result = method(self._model, cr, uid, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/models.py”, line 4185, in _create
    recs._validate_fields(vals)
    File “/opt/odoo/odoo/openerp/api.py”, line 235, in wrapper
    return new_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/models.py”, line 1271, in _validate_fields
    raise ValidationError(‘\n’.join(errors))
    ParseError: “ValidateError
    Field(s) `date_stop` failed against a constraint: Error!
    The period is invalid. Either some periods are overlapping or the period’s dates are not matching the scope of the fiscal year.” while parsing /opt/odoo/odoo/addons/account/demo/account_demo.xml:30, near

  • Luis Planes says:

    Hello,
    When I install the repository Odoo gives the following error:

    odoo@server:~$ git clone https://www.github.com/odoo/odoo –depth 1 –branch 8.0 –single-branch .
    fatal: destination path ‘.’ already exists and is not an empty directory.

    odoo@server:~$ ls -asli
    total 12
    30685685 4 -rw——- 1 odoo odoo 32 nov 26 08:57 .bash_history

    odoo@server:~$ rm .bash_history

    When I delete the file already fine.

    • Alan Lord says:

      Thanks. This has been discussed before in the comments. Had this cropped up when I was writing it (rather than long after it was published) I should have probably used a subdirectory 😉

  • Timo Schneemann says:

    Thank you so much fur this! Everything worked perfectly!

  • kashif says:

    Facing Error ..need help

    sudo /etc/init.d/odoo-server start
    /etc/init.d/odoo-server: 1: /etc/init.d/odoo-server: N: not found

    • dan says:

      Maybe a bit too late but check your file: /etc/init.d/odoo-server.
      A bad copy/paste and the header of your file is incomplete, the first line is missing: #!/bin/sh

    • ajl7519 says:

      Did you make odoo-server executable?

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

  • MAZHAR IQBAL RANA says:

    Hey There
    Nice Post

    Minor error

    Directory on which addons and cloning is done

    /opt/odoo/odoo

    you have written /opt/odoo

    which ofcourse wont copy conf file and also wont pick addons

    Tc

  • iFon says:

    All working on a DigitalOcean Ubuntu 14.04 x64 Droplet!
    I think you can specify the steps on section 7, and review the script too (i have a “unexpect command error” but copied the original odoo script and make the path corrections worked for me), to help the newbie users.

    Thank you very much for this tutorial!

    • Herman says:

      Hi there

      Like an idiot instead of just copying that file to /etc/init.d and THEN modify it.. I changed the file before I copied it.

      I’m not getting any errors after starting the server (nothing is happening)
      and log file doesnt exist.. any advise?

      Cant seem to find the original init file online

  • jose says:

    como puedo solucionar este error gracias
    File “/opt/odoo/odoo/openerp/sql_db.py”, line 520, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
    File “/usr/lib/python2.7/dist-packages/psycopg2/__init__.py”, line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
    OperationalError: FATAL: Peer authentication failed for user “admin”

    2014-12-09 20:43:40,455 19632 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry
    Traceback (most recent call last):
    File “/opt/odoo/odoo/openerp/addons/bus/bus.py”, line 136, in run
    self.loop()
    File “/opt/odoo/odoo/openerp/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 569, 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 520, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
    File “/usr/lib/python2.7/dist-packages/psycopg2/__init__.py”, line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
    OperationalError: FATAL: Peer authentication failed for user “admin”

    2014-12-09 20:43:41,939 19632 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
    2014-12-09 20:43:42,628 19632 INFO ? openerp.http: HTTP Configuring static files
    2014-12-09 20:43:42,636 19632 ERROR None openerp.sql_db: Connection to the database failed
    Traceback (most recent call last):
    File “/opt/odoo/odoo/openerp/sql_db.py”, line 520, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
    File “/usr/lib/python2.7/dist-packages/psycopg2/__init__.py”, line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
    OperationalError: FATAL: Peer authentication failed for user “admin”

    2014-12-09 20:43:42,637 19632 ERROR None openerp.http: FATAL: Peer authentication failed for user “admin”
    Traceback (most recent call last):
    File “/opt/odoo/odoo/openerp/http.py”, line 108, in dispatch_rpc
    result = dispatch(method, params)
    :

  • Gediz Aksit says:

    There is a wkhtmltopdf bug (more of a version issue really) on Ubuntu server 14.04 with latest stable version of Odoo 8 (as of this post). I’ll detail what I did to fix it below.

    At first I got “You should upgrade your version of Wkhtmltopdf to at least 0.12.0” which makes sense as the wkhtmltopdf version from apt-get was outdated as of this post.

    I fixed this with:

    sudo apt-get purge wkhtmltopdf
    sudo apt-get purge wkhtmltox
    wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
    sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
    rm wkhtmltox-0.12.1_linux-trusty-amd64.deb

    This fixed the version problem but then I was experiencing the problem described here https://github.com/odoo/odoo/issues/1105 where formatting of invoices, quotation orders, etc. was without formatting.

    To fix this I modified your version (http://www.theopensourcerer.com/wp-content/uploads/2014/09/odoo-server) of the /etc/init.d/odoo-server file by replacing PATH=/bin:/sbin:/usr/bin with

    PATH=/usr/local/bin:/bin:/sbin:/usr/bin

    Now I have properly formatted invoices.

    Special thanks goes to Roelt and agurney at #openobject whom helped me with the troubleshooting of this problem.

  • Diogo Duarte says:

    Hi Alan:

    Let me first tell you that you have a great blog and that i found it useful several times, so thank you for sharing! Now, i’m installing new servers and been reading about openerp-gevent. After lot’s of searching i’m pretty sure that we should start a new additional daemon for it and then redirect the /longpooling to 8072. This is used for website IM. Now my main doubt is that i have the strong feeling that publishing all paths from 8072, the server is pretty much faster serving html. Would like to hear your/others opinion on this.

  • salBAAM says:

    ADDONS

    Hi all, odoo newbie here, and was having a heck of a time trying to figure out why I wasn’t able to view in ‘Local Modules’ a module I added to the /opt/odoo/addons directory.

    So if anyone is going thru the same thing, here’s a slightly modified solution from Kit Sunde over at stackoverflow.com:

    Go to Settings -> Users, click on your system privileged user account -> edit the user -> Enable Technical Features, Save. Log-out then log back in. Then there will be a new option that says “Update Modules List” in the Modules category in the left pane, click it, then search for your module. Voila!

    Thanks Kit! (y)

    http://stackoverflow.com/a/25723976

    Happy odooing!

  • Salts says:

    Hi Alan,

    Great post, your instructions worked perfect for the latest version of Raspbian on the Raspberry Pi, not sure it will be viable speed wise, but this blog made it easy to get a working install, thank you for your time and effort in sharing this.

  • Dear Alan, this is the second time i’m using your step by step process, everything goes fine !! 🙁 until here

    sudo su – odoo -s /bin/bash
    /opt/odoo/openerp-server (here everything work perfect)

    the problem appears on step 7
    Step 7. Installing the boot script
    i did follow step by step your lines, but server won’t start

    any clues ?

  • Bun Hin says:

    hi..

    my install is success, but why the anglo saxon modul is not shown up in the modul list?
    please share any clue to make the anglo saxon module shown up since i want to install that module.

    thank you
    bun hin

  • vikas says:

    Hi,
    i have created 3 instances and runnng well. but tired
    Step 9. Automating Odoo startup and shutdown
    sudo update-rc.d odoo1-server defaults (it was ok)
    sudo update-rc.d odoo2-server defaults and sudo update-rc.d odoo3-server defaults

    It produced error:
    insserv: script odoo2-server: service openerp-server already provided!
    insserv: exiting now!
    update-rc.d: error: insserv rejected the script header

    Please help how can i create vaious auto start services for odoo

  • Andrias says:

    Alan Lord! Just want to ask you to update that git hub give the different folder of installation, it became /opt/odoo/odoo,
    So everything with folder /opt/odoo , will need to be replace by /opt/odoo/odoo

  • Oscar says:

    Please Help!!!

    When I try to install “Warehouse management” module in an empty database with no demo data i get this error message:

    Traceback (most recent call last):
    File “/opt/odoo/odoo/openerp/http.py”, line 518, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
    File “/opt/odoo/odoo/openerp/http.py”, line 539, in dispatch
    result = self._call_function(**self.params)
    File “/opt/odoo/odoo/openerp/http.py”, line 295, in _call_function
    return checked_call(self.db, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/service/model.py”, line 113, in wrapper
    return f(dbname, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/http.py”, line 292, in checked_call
    return self.endpoint(*a, **kw)
    File “/opt/odoo/odoo/openerp/http.py”, line 755, in __call__
    return self.method(*args, **kw)
    File “/opt/odoo/odoo/openerp/http.py”, line 388, in response_wrap
    response = f(*args, **kw)
    File “/opt/odoo/odoo/addons/web/controllers/main.py”, line 953, in call_button
    action = self._call_kw(model, method, args, {})
    File “/opt/odoo/odoo/addons/web/controllers/main.py”, line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/addons/base/module/module.py”, line 450, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/addons/base/module/module.py”, line 498, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
    File “/opt/odoo/odoo/openerp/modules/registry.py”, line 346, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 363, in load_modules
    loaded_modules, update_module)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
    File “/opt/odoo/odoo/openerp/modules/loading.py”, line 163, in load_module_graph
    init_module_models(cr, package.name, models)
    File “/opt/odoo/odoo/openerp/modules/module.py”, line 287, in init_module_models
    obj.init(cr)
    File “/opt/odoo/odoo/openerp/api.py”, line 237, in wrapper
    return old_api(self, *args, **kwargs)
    File “/opt/odoo/odoo/addons/stock/report/report_stock.py”, line 56, in init
    )”””)
    File “/opt/odoo/odoo/openerp/sql_db.py”, line 158, in wrapper
    return f(self, *args, **kwargs)
    File “/opt/odoo/odoo/openerp/sql_db.py”, line 234, in execute
    res = self._obj.execute(query, params)
    ProgrammingError: la columna «p.active» debe aparecer en la cláusula GROUP BY o ser usada en una función de agregación
    LINE 8: p.active as active
    ^

    What can I do?

    Thanks.

    • Francisco says:


      modified the file /opt/odoo/server/addons/stock/report/report_stock.py with the following lines
      cr.execute(“””
      create or replace view report_stock_lines_date as (
      select
      p.id as id,
      p.id as product_id,
      p.active as active,
      max(s.date) as date,
      max(m.date) as move_date
      from
      product_product p
      left join (
      stock_inventory_line l
      inner join stock_inventory s on (l.inventory_id=s.id and s.state = ‘done’)
      ) on (p.id=l.product_id)
      left join stock_move m on (m.product_id=p.id and m.state = ‘done’)
      group by p.id,p.active
      )”””)

  • Med says:

    Facing Error ..need help

    sudo /etc/init.d/odoo-server start
    /etc/init.d/odoo-server: 1: /etc/init.d/odoo-server: N: not found

  • Med says:

    dayssam@odoo:~$ sudo su – odoo -s /bin/bash
    odoo@odoo:~$ /opt/odoo/odoo/openerp-server
    2014-12-29 16:16:53,524 1257 INFO ? openerp: OpenERP version 8.0
    2014-12-29 16:16:53,528 1257 INFO ? openerp: addons paths: [‘/opt/odoo/.local/share/Odoo/addons/8.0′, u’/opt/odoo/odoo/openerp/addons’, u’/opt/odoo/odoo/addons’]
    2014-12-29 16:16:53,531 1257 INFO ? openerp: database hostname: localhost
    2014-12-29 16:16:53,534 1257 INFO ? openerp: database port: 5432
    2014-12-29 16:16:53,538 1257 INFO ? openerp: database user: odoo
    2014-12-29 16:16:54,012 1257 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
    Exception in thread openerp.service.httpd:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/threading.py”, line 763, in run
    self.__target(*self.__args, **self.__kwargs)
    File “/opt/odoo/odoo/openerp/service/server.py”, line 282, in http_thread
    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
    File “/opt/odoo/odoo/openerp/service/server.py”, line 92, in __init__
    handler=RequestHandler)
    File “/usr/lib/python2.7/dist-packages/werkzeug/serving.py”, line 410, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
    File “/usr/lib/python2.7/SocketServer.py”, line 419, in __init__
    self.server_bind()
    File “/opt/odoo/odoo/openerp/service/server.py”, line 102, in server_bind
    super(ThreadedWSGIServerReloadable, 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 430, 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

  • Robmill says:

    i attempted to follow these directions and i made some mistakes. I am trying to start from scracth but when i remove the installations of postgres and try again it tells me postgres user already exists and user odoo already exists i would like to completel undo all changes and start again. Is there a way to do this?

  • Elikplim Kitsikpui says:

    Hello!
    I installed and it was working well until i applied the autobot script which now gives me his error

    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/threading.py”, line 763, in run
    self.__target(*self.__args, **self.__kwargs)
    File “/opt/odoo/odoo/openerp/service/server.py”, line 282, in http_thread
    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
    File “/opt/odoo/odoo/openerp/service/server.py”, line 92, in __init__
    handler=RequestHandler)
    File “/usr/lib/python2.7/dist-packages/werkzeug/serving.py”, line 410, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
    File “/usr/lib/python2.7/SocketServer.py”, line 419, in __init__
    self.server_bind()
    File “/opt/odoo/odoo/openerp/service/server.py”, line 102, in server_bind
    super(ThreadedWSGIServerReloadable, 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 430, 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

  • Gina says:

    Hello,

    Thanks a lot for this tutorial. My installation seems to be complete, but I am stuck here: http://IP_or_domain.com:8069. The url won’t load on my browswer. What have I done wrong? What can I do to fix this?. Please help.

  • alok says:

    these instructions worked perfectly for me on ubuntu 14

  • Marco says:

    Hello,

    I have a problem during the installation, when i put the command:
    sudo cp /opt/odoo/debian/openerp-server.conf /etc/odoo-server.conf
    it says directory does not exist

  • Lars Echterhoff says:

    Since your guide helped me a lot… At least know what to do while I do it, I would like to give some back.
    I struggled with the problem, that everything installed fine. 😉
    So I started the browser and violá, the database manager appeared. I started creation and the the server went into a permanent 500. So I dropped the database and started again. Nothing. So I live logged the install process with tail -f /var/log/odoo/odoo-server.log and found the following error:
    2015-01-09 22:28:42,562 9580 CRITICAL myname openerp.modules.module: Couldn’t load module auth_crypt
    2015-01-09 22:28:42,562 9580 CRITICAL myname openerp.modules.module: No module named passlib.context
    2015-01-09 22:28:42,562 9580 ERROR myname openerp.service.db: CREATE DATABASE failed:
    Did not know what to do with that but found a solution overhere: https://www.odoo.com/forum/help-1/question/how-to-install-odoo-from-github-on-ubuntu-14-04-for-testing-purposes-only-ie-not-for-production-52627
    I simply had to run: sudo pip install passlib
    Then restart. This solved my install problem. Maybe there is someone out there who can explain better what exactly my debian wheezy was missing…

    One more thank you to this great “how to…”

  • Mondher ZOGHBI says:

    Bonjour,

    Vraiment merci pour ce tutoriel complet. Pour une fois un tuto sur l’installation d openerp sur ubuntu aussi explicite et qu’on réussi à suivre sans problème.

    A quand un tutoriel pour connector openerp et magento?

    Félicitations.

  • papercolour says:

    You are a star. I owe you £20.00

  • sombat says:

    $ sudo su – odoo -s /bin/bash
    $ git clone https://www.github.com/odoo/odoo –depth 1 –branch 8.0 –single-branch .
    fatal: destination path ‘.’ already exists and is not an empty directory.

    Fresh installation of Ubuntu 14.04

    • Alan Lord says:

      This has come up several times before in the comments. You have some hidden files in /opt/odoo like .bash_history for example. You must delete them before running the clone command or install into a sub directory if you prefer and then edit all the references to the path.

    • Tim says:

      try below commands before executing git clone

      shopt -s dotglob
      sudo rm -r /opt/odoo/*

  • madith says:

    I am unable to locate the below package
    python-gdata
    python-mako
    python-pybabe1
    python-pychart
    python-simplejson

    How should I deal with the situation?

  • atul says:

    have anyone faced

    2015-01-20 07:31:38,992 53282 ERROR None openerp.http: Exception during JSON request handling.
    Traceback (most recent call last):
    File “/opt/odoo/openerp/http.py”, line 518, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
    File “/opt/odoo/openerp/http.py”, line 1358, in _dispatch_nodb
    func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()
    File “/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py”, line 1430, in match
    raise NotFound()
    NotFound: 404: Not Found

    this?

  • Humphrey says:

    To use apt-get to install and update the wkhtmltopdf

    Source: http://askubuntu.com/questions/556667/how-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server

    In Ubuntu 14.04, open the terminal and type:

    sudo add-apt-repository ppa:ecometrica/servers
    sudo apt-get update
    sudo apt-get install wkhtmltopdf

    In Ubuntu 12.04, open the terminal and type:

    sudo add-apt-repository ppa:pov/wkhtmltopdf
    sudo apt-get update
    sudo apt-get install wkhtmltopdf

  • burim says:

    hi
    I’m having trouble while sending emails and checking the installed asterisk module.

    For the asterisk (click2dial) I can see the following ERROR’s oin the log file:

    2015-01-20 23:08:56,165 2597 ERROR COMPANY openerp.http: Exception during JSON request handling.

    Traceback (most recent call last):

    File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 524, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

    File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 545, in dispatch

    result = self._call_function(**self.params)

    File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 301, in _call_function

    return checked_call(self.db, *args, **kwargs)

    File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper

    return f(dbname, *args, **kwargs)

    File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 298, in checked_call

    return self.endpoint(*a, **kw)

    File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 761, in __call__

    return self.method(*args, **kw)

    File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 394, in response_wrap

    response = f(*args, **kw)

    File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 953, in call_button

    action = self._call_kw(model, method, args, {})

    File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 941, in _call_kw

    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

    File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper

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

    File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_mail_server.py", line 215, in test_smtp_connection

    raise osv.except_osv(_("Connection Test Succeeded!"), _("Everything seems properly set up!"))

    except_orm: (u'Verbindungstest erfolgreich!', u'Alles scheint richtig konfiguriert zu sein.')

    It writes that (_(“Connection Test Succeeded!”), _(“Everything seems properly set up!”)) but this is not true. For the outgoging mail it looks prety the same.

    Any help would be appretiate.

    • Dragan says:

      Hi Burim

      Did you solve the issue? I’m having same issues. I can receive emails but not sent

  • HB says:

    Hi,

    great post. Installed every thing like a charm on an odroid! Awsom Thanx so much for that.
    Now I`m trying (fore days now ) unsuccsessfully to intsall some community apps like SEPA Addons / Bankstatement imports etc… Could you maybe add a subsection on how to install these addons? I would greatly aprechiate that!!! Thanx!
    Greetings
    HB

  • michael says:

    Hi, depsite that I have copied the configuration file to /etc/openerp-server.conf ,it is not loaded, i have to run ./openerp-server -c /etc/openerp-server.conf .
    what could have caused this problem?

    • FSU says:

      Hi Michael,
      Just to make sure, have you edited the two lines in openerp-server.conf after copying it to /etc/? (chnage the addons_path and logfile)
      Also, to have an easy way to start your odoo server, the boot script will come in handy (Step 7).
      I hope I answered your questions. Please let me know if you still have that problem.

  • Aldous says:

    Just followed this on Ubuntu 14.10. Fantastic, it worked directly. Really wasn’t expecting that. Thanks

  • Abdul says:

    Hi, I received the following error although the setup completed successfully to the end. It gives the error:

    “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.”

  • kitsunee3 says:

    Hi everybody
    i have some probeme with my postgres install. i don’t have “/etc/postgresql” directory. i used apt-get to install it. please i need somme help

  • ziad says:

    everything went smooth afaik 🙂 at the end tho i got this in the log file
    HTTP service (werkzeug) running on 0.0.0.0:8069

    how do i make it see the ip of my server?

  • FSU says:

    First of all, this is an outstanding article! Thank you for a clear and concise tutorial. Excellent job!

    For the wkhtmltopdf 0.12, I found the solution below (Thanks Karel!:

    sudo add-apt-repository ppa:ecometrica/servers
    sudo apt-get update
    sudo apt-get install wkhtmltopdf

    As for people who don’t want their users to input the port number (:8069) in the address bar of their browsers, you can do a reroute of your traffic from 80 to 8069 using iptables:

    iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8069

    I hope this helps!

  • Javier says:

    Hi,

    It worked, however I now need to start the server in order to use posbox configuration.

    If I need to pass the following options to start the server using posbox configurarion, how can I do it?

    ./server/openerp-server –addons-path=addons,web/addons –db-filter=’^posbox$’ \
    –xmlrpc-port=8069 -d posbox

    Hope you can help.

    Best regards

  • dan says:

    Many thanks for this great “How To”!

  • Nikolaos says:

    Thank you excellent tutorial everything went like water. One question how can we update the installation?
    Best regards

  • JorgeHCT says:

    Thanks for the explanation, i configure in ubuntu server 13.10 smoothly, thanks a lot

  • nikosg5 says:

    Hello, I try to setup a second instance. The first is working perfect. The second I think i have a problem with ppostgres user. I created a second user: odootest, with his own home folder /opt/odootest. I believe I have double checked that in the configuration files and in /etc/init.d/odoo-server I have change everything to odootest. When i try to run I get an internal server error and in the log it says”
    File “/usr/lib/python2.7/dist-packages/psycopg2/__init__.py”, line 179, in connect
    connection_factory=connection_factory, async=async)
    OperationalError: FATAL: Peer authentication failed for user “odoo””
    In ps aux it runs with the correct file.
    Any ideas? I have to change anywhere else odoo db user?

  • Sony George says:

    Thanks, your steps are very precise that any one can install odoo in 5 minutes.

    But have an issue.. as I’ve installed odoo in /opt/odoo and ony odoo user have the access. My IDE (PyCcarm) is unable to open or run the application. I tried this post even I could not resolve the issue.

    Please share if you have solutions

  • Eduardo Rotundo says:

    I have a problem when try to run the server, the system tell fail to import simplejson but this package it’s install in my python 2.7 version using sudo apt-get install python-simplejson.

    Please help

  • huong nguyen says:

    Help, it isnot running
    here log, please help me

    ##########################
    f, path, descr = imp.find_module(module_part, ad_paths)
    ImportError: No module named web
    2015-03-03 17:50:30,443 9709 WARNING ? openerp.modules.module: module web_kanban: module not found
    2015-03-03 17:50:30,444 9709 CRITICAL ? openerp.modules.module: Couldn’t load module web_kanban
    2015-03-03 17:50:30,444 9709 CRITICAL ? openerp.modules.module: No module named web_kanban
    2015-03-03 17:50:30,444 9709 ERROR ? openerp.service.server: Failed to load server-wide module `web_kanban`.
    Traceback (most recent call last):
    File “/opt/odoo/odoo/openerp/service/server.py”, line 850, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
    File “/opt/odoo/odoo/openerp/modules/module.py”, line 315, in load_openerp_module
    __import__(‘openerp.addons.’ + module_name)
    File “/opt/odoo/odoo/openerp/modules/module.py”, line 79, in load_module
    f, path, descr = imp.find_module(module_part, ad_paths)
    ImportError: No module named web_kanban

  • Joe says:

    This was absolutely fantastic!!!!

    One strange thing happens in my installs though. It seems to install in /opt/odoo/odoo instead of /opt/odoo
    and grabbing the latest version command doesn’t work when adding the '.' at the end:
    git clone https://www.github.com/odoo/odoo --depth 1 --branch 8.0 --single-branch .

    Other than that, all works great!! Thanks!!

  • sam says:

    hi,
    when i run it I get an error.please help mezbeanz@zbeanz-Lenovo-3000:~$ ./odoo/openerp-server –xmlrpc-port=7069
    2015-03-06 05:21:50,074 29959 INFO ? openerp: OpenERP version 8.0
    2015-03-06 05:21:50,074 29959 INFO ? openerp: addons paths: [‘/home/zbeanz/.local/share/Odoo/addons/8.0′, u’/home/zbeanz/odoo/openerp/addons’, u’/home/zbeanz/odoo/addons’]
    2015-03-06 05:21:50,075 29959 INFO ? openerp: database hostname: localhost
    2015-03-06 05:21:50,075 29959 INFO ? openerp: database port: 5432
    2015-03-06 05:21:50,075 29959 INFO ? openerp: database user: zbeanz
    2015-03-06 05:21:50,836 29959 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:7069
    2015-03-06 05:21:55,687 29959 INFO ? openerp.addons.bus.bus: Bus.loop listen imbus on db postgres
    2015-03-06 05:21:57,268 29959 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
    2015-03-06 05:21:57,295 29959 INFO ? openerp.addons.report.models.report: Upgrade Wkhtmltopdf to (at least) 0.12.0
    2015-03-06 05:21:58,051 29959 INFO ? openerp.http: HTTP Configuring static files
    2015-03-06 05:21:58,066 29959 INFO zbeanz openerp.modules.loading: loading 1 modules…
    2015-03-06 05:21:58,080 29959 INFO zbeanz openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
    2015-03-06 05:21:58,562 29959 INFO zbeanz openerp.modules.loading: Modules loaded.
    2015-03-06 05:21:58,564 29959 INFO zbeanz openerp.addons.base.ir.ir_http: Generating routing map
    2015-03-06 05:21:58,984 29959 INFO zbeanz werkzeug: 127.0.0.1 – – [06/Mar/2015 05:21:58] “GET /web/login?redirect=http%3A%2F%2Flocalhost%3A7069%2Fweb HTTP/1.1” 500 –
    2015-03-06 05:21:59,010 29959 ERROR zbeanz werkzeug: Error on request:
    Traceback (most recent call last):
    File “/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py”, line 180, in run_wsgi
    execute(self.server.app)
    File “/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py”, line 168, in execute
    application_iter = app(environ, start_response)
    File “/home/zbeanz/odoo/openerp/service/server.py”, line 281, in app
    return self.app(e, s)
    File “/home/zbeanz/odoo/openerp/service/wsgi_server.py”, line 216, in application
    return application_unproxied(environ, start_response)
    File “/home/zbeanz/odoo/openerp/service/wsgi_server.py”, line 202, in application_unproxied
    result = handler(environ, start_response)
    File “/home/zbeanz/odoo/openerp/http.py”, line 1280, in __call__
    return self.dispatch(environ, start_response)
    File “/home/zbeanz/odoo/openerp/http.py”, line 1254, in __call__
    return self.app(environ, start_wrapped)
    File “/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py”, line 591, in __call__
    return self.app(environ, start_response)
    File “/home/zbeanz/odoo/openerp/http.py”, line 1426, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
    File “/home/zbeanz/odoo/openerp/http.py”, line 1361, in get_response
    result = request.registry[‘ir.http’]._handle_exception(e)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_http.py”, line 100, in _handle_exception
    return request._handle_exception(exception)
    File “/home/zbeanz/odoo/openerp/http.py”, line 659, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
    File “/home/zbeanz/odoo/openerp/http.py”, line 1358, in get_response
    result.flatten()
    File “/home/zbeanz/odoo/openerp/http.py”, line 1231, in flatten
    self.response.append(self.render())
    File “/home/zbeanz/odoo/openerp/http.py”, line 1225, in render
    context=request.context)
    File “/home/zbeanz/odoo/openerp/api.py”, line 241, in wrapper
    return old_api(self, *args, **kwargs)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_ui_view.py”, line 1029, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
    File “/home/zbeanz/odoo/openerp/api.py”, line 241, in wrapper
    return old_api(self, *args, **kwargs)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_qweb.py”, line 259, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_qweb.py”, line 190, in get_template
    raise_qweb_exception(QWebTemplateNotFound, message=”Loader could not find template %r” % name, template=origin_template)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_qweb.py”, line 188, in get_template
    xml_doc = qwebcontext.loader(name)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_ui_view.py”, line 1027, in loader
    return self.read_template(cr, uid, name, context=context)
    File “/home/zbeanz/odoo/openerp/api.py”, line 241, in wrapper
    return old_api(self, *args, **kwargs)
    File “”, line 2, in read_template

    File “/home/zbeanz/odoo/openerp/tools/cache.py”, line 119, in lookup
    value = d[key] = self.method(*args, **kwargs)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_ui_view.py”, line 857, in read_template
    view_id = self.pool[‘ir.model.data’].xmlid_to_res_id(cr, uid, xml_id, raise_if_not_found=True)
    File “/home/zbeanz/odoo/openerp/api.py”, line 241, in wrapper
    return old_api(self, *args, **kwargs)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_model.py”, line 940, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(cr, uid, xmlid, raise_if_not_found)[1]
    File “/home/zbeanz/odoo/openerp/api.py”, line 241, in wrapper
    return old_api(self, *args, **kwargs)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_model.py”, line 932, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(cr, uid, xmlid)[1:3]
    File “/home/zbeanz/odoo/openerp/api.py”, line 241, in wrapper
    return old_api(self, *args, **kwargs)
    File “”, line 2, in xmlid_lookup

    File “/home/zbeanz/odoo/openerp/tools/cache.py”, line 71, in lookup
    value = d[key] = self.method(*args, **kwargs)
    File “/home/zbeanz/odoo/openerp/addons/base/ir/ir_model.py”, line 922, in xmlid_lookup
    raise ValueError(‘External ID not found in the system: %s’ % (xmlid))
    QWebTemplateNotFound: External ID not found in the system: web.login

    • sam says:

      Okay i fond it.It’s because i used same a/c name for both openerp7(which was i already installed) and odoo8 simultaneously.This error is also happen if u use same db name for openerp7 and odoo8 simultaneously.
      But its also happen if passlib is missing.So try following cmd first:-
      sudo apt-get install python-passlib

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=""> <s> <strike> <strong>