Upgrade Odoo

It is strongly recommended that you create a backup before starting the update process. If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly.

WARNING: The process described in this section, only works in the same major version of Odoo (i.e. upgrading from Odoo11.x.y to Odoo11.x.z). If you want to upgrade between Odoo Major versions (i.e. upgrading from Odoo10.x to Odoo11.y) please check the Odoo Community Forum and this Odoo Community Association project.

  • Go to your Odoo installation and instead of logging in, click “Manage Databases”.

  • From this web interface, create a backup of the bitnami_odoo database.

  • Stop the running application.

  • Install a new version of Bitnami Odoo (or deploy a new server).

  • From the “Manage Databases” interface, restore the bitnami_odoo database.

  • Stop all servers except PostgreSQL and migrate your data as explained in the section on migration.

NOTE: The default database name changed since the Odoo 10 version was released. If you are upgrading a prior version, the default database name is bitnami_openerp.

Upgrade only Odoo in the Bitnami Odoo Stack

Linux and Mac OS X

This approach is not recommended because a new Odoo version may have new dependencies not included in your base stack.

NOTE: If you are using Odoo 10 or earlier, you need to replace the python3 command with python.

  • Download and install the latest Odoo version. For example:

      $ cd /tmp/
      $ wget
      $ tar zxvf odoo_10.0.latest.tar.gz
      $ cd odoo-10.0-VERSION
      $ sudo python3 install --prefix=/opt/bitnami/apps/odoo --install-lib=/opt/bitnami/apps/odoo/lib
      $ sudo chown -R daemon:daemon /opt/bitnami/apps/odoo/lib
  • Change the line




    in the /opt/bitnami/apps/odoo/bin/odoo-bin file.

  • Update your configuration to point to this version of Odoo. Edit the /opt/bitnami/apps/odoo/conf/odoo-server.conf file and replace the addons path to point to the new Odoo version.

Migrate data to the new Odoo installation

Once your Odoo installation have been updated, follow the steps below to migrate data to the new installation.

  • Stop monit and other services

      $ sudo monit quit
      $ sudo /opt/bitnami/ stop
      $ sudo /opt/bitnami/ start postgresql
  • Start the Odoo server with the following parameters:

      $ sudo su daemon -c "/opt/bitnami/python/bin/python3 /opt/bitnami/apps/odoo/bin/odoo-bin -c /opt/bitnami/apps/odoo/conf/odoo-server.conf --workers 0 -d bitnami_odoo -u all &"
  • Wait until the server is completely started and the modules updated. You can check the start-up status in the Odoo log file as shown below:

      $ sudo tail -f /opt/bitnami/apps/odoo/log/production.log

    The upgrade process is finished when the messages “INFO bitnami_odoo odoo.service: Hit CTRL-C again or send a second signal to force the shutdown” or “Odoo waiting for connections” appear in the log file.

  • Start all the servers:

      $ sudo /opt/bitnami/ start

Remember that when importing the data, you will also be importing the Odoo users, including the admin user and its password.

NOTE: The Odoo server configuration file, the Odoo log file and the default database name changed since Odoo 10 version. If you are using a prior version, the Odoo server configuration file is at /opt/bitnami/apps/odoo/conf/openerp-server.conf, the Odoo log file is at /opt/bitnami/apps/odoo/log/openerp-server.log and the default database name is bitnami_openerp.

Last modification April 8, 2020