Skip to Content

Odoo 19 on Raspberry Pi: Step-by-Step Installation Guide

November 10, 2026 by

The Raspberry Pi is a small, inexpensive and energy-efficient computer that works surprisingly well as a test or lab server. If you want to explore an ERP system without paying for a cloud server, running Odoo on Raspberry Pi is a great idea. In this guide, we walk you through the entire process: from choosing hardware and installing PostgreSQL and Odoo 19 to configuring a system service and optimizing performance.

Want to see Odoo in action before you start installing it on your own device? Try it for free in the online version.

Try Odoo for free

Is Odoo suitable for running on a Raspberry Pi?

Odoo is a feature-rich Python application that uses a PostgreSQL database. A Raspberry Pi with a 64-bit ARM processor is fully compatible with it, since Odoo does not require x86 architecture. Still, you need to be realistic about what the hardware can do. This setup works well for:

  • learning the system and testing modules,
  • building and debugging your own add-ons,
  • presentations and demos for customers,
  • supporting a very small team (a few users) on a local network.

For larger production deployments, we recommend a dedicated server or the cloud.

Hardware and software requirements

Hardware

  • Raspberry Pi 5 or Pi 4 with at least 4 GB of RAM (8 GB recommended),
  • an SSD over USB 3.0 or NVMe instead of a microSD card. The database writes data intensively, and an SD card wears out quickly and slows the system down,
  • a reliable power supply and active cooling.

Software

  • A 64-bit operating system: Ubuntu Server 24.04 LTS (Python 3.12 by default) or Raspberry Pi OS 64-bit. If you use Raspberry Pi OS, first check that the default Python version is supported by Odoo 19,
  • Python 3.10 or later,
  • PostgreSQL 13 or later (Ubuntu 24.04 ships version 16, which is fully sufficient for Odoo 19),
  • wkhtmltopdf for generating PDF reports.

Step 1: Preparing the system

Install the operating system with Raspberry Pi Imager, enable SSH and connect to the device. Then update the packages and install the required dependencies:

sudo apt update && sudo apt full-upgrade -y
sudo apt install -y git python3-pip python3-venv python3-dev build-essential libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libssl-dev libjpeg-dev zlib1g-dev libpq-dev xfonts-75dpi xfonts-base wkhtmltopdf

The wkhtmltopdf package from the system repository is enough for testing, but Odoo recommends version 0.12.6 with patched Qt. If headers or footers are missing in your PDF reports, install the official package built for the arm64 architecture.

Also create a dedicated system user that will run Odoo:

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

Step 2: Installing and configuring PostgreSQL

Install the database server and create a user with permission to create databases:

sudo apt install -y postgresql
sudo -u postgres createuser --createdb --pwprompt odoo

Remember the password, as you will enter it later in the configuration file. If you run into connection problems after startup, our article can help: Odoo Connection Refused Error: Causes and Step-by-Step Fixes.

Step 3: Downloading the Odoo code and setting up a virtual environment

Download the Odoo 19 code from the official GitHub repository. The --branch 19.0 parameter selects the stable branch, and --depth 1 fetches only the latest state of the code, which saves space and time. Then create a virtual environment and install the Python dependencies:

sudo -u odoo git clone --depth 1 --branch 19.0 https://github.com/odoo/odoo.git /opt/odoo/odoo
sudo -u odoo python3 -m venv /opt/odoo/venv
sudo -u odoo /opt/odoo/venv/bin/pip install wheel
sudo -u odoo /opt/odoo/venv/bin/pip install -r /opt/odoo/odoo/requirements.txt

On a Raspberry Pi, compiling some libraries can take several minutes, so be patient. If you want to automate this process across multiple devices, see the post Automating Odoo 19 Installation: Ansible and Bash Script.

Installing dependencies can be troublesome on ARM architecture, and every compilation error can eat up a lot of time. If you prefer to leave this stage to specialists, get in touch with us.

Contact us

Step 4: The odoo.conf configuration file

Create directories for add-ons and logs, as well as the configuration file:

sudo mkdir -p /opt/odoo/custom-addons /var/log/odoo
sudo chown -R odoo:odoo /opt/odoo /var/log/odoo
sudo nano /etc/odoo.conf

Example configuration adapted to the limited resources of a Raspberry Pi:

[options]
admin_passwd = YourStrongAdminPassword
db_host = localhost
db_port = 5432
db_user = odoo
db_password = PostgreSQLPassword
addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons
logfile = /var/log/odoo/odoo.log
workers = 2
max_cron_threads = 1
limit_memory_soft = 1342177280
limit_memory_hard = 1610612736
limit_time_cpu = 600
limit_time_real = 1200

For learning and simple tests, you can set workers = 0. Odoo then runs in multithreaded mode, which uses less RAM. With several concurrent users, 2 workers work better. Keep in mind that when workers is greater than zero, real-time features (chat, notifications) use websockets on a separate port, 8072. If you use a reverse proxy, add proxy_mode = True to the configuration and redirect the /websocket path to that port.

Set strict permissions on the file: sudo chown odoo:odoo /etc/odoo.conf && sudo chmod 640 /etc/odoo.conf. You can read more about logging in the article How to Configure File Logging in Odoo: Step-by-Step Guide.

Step 5: Running Odoo as a systemd service

To make Odoo start together with the system, create the file /etc/systemd/system/odoo.service:

[Unit]
Description=Odoo
After=network.target postgresql.service

[Service]
Type=simple
User=odoo
Group=odoo
ExecStart=/opt/odoo/venv/bin/python /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

Then reload the configuration and start the service:

sudo systemctl daemon-reload
sudo systemctl enable --now odoo
sudo systemctl status odoo

After a moment, open http://RASPBERRY_IP_ADDRESS:8069 in your browser. You will see the screen for creating your first database. If the service does not start, check the logs with the command sudo journalctl -u odoo -n 50 and the file /var/log/odoo/odoo.log.

Once Odoo is up and running, it is worth seeing what it is like to work with ready-made apps such as Sales, Inventory or Accounting. You can do this for free in the demo version.

Try Odoo for free

Optimizing Odoo performance on a Raspberry Pi

  • Use an SSD. This is the single most important change, and it noticeably speeds up the database.
  • Limit the number of workers. With 4 GB of RAM, 2 workers are enough; with 8 GB you can try 3. Each worker uses memory up to the limit_memory_soft value, so always leave headroom for PostgreSQL and the system.
  • Add swap or zram. This prevents processes from being killed during short spikes in memory usage. We advise against swap on a microSD card, as it shortens the card's lifespan.
  • Tune PostgreSQL. Reduce the values of shared_buffers (e.g. to 256 MB) and work_mem (e.g. 8-16 MB) to match the capabilities of the device.
  • Install only the modules you need. Each additional app increases memory usage and lengthens load times.

Installation security

Even a home test server is worth securing. Set a strong master password in admin_passwd, and if the device is to be reachable from outside, do not expose port 8069 directly to the internet. Configure a reverse proxy with an SSL certificate, and in the configuration file set list_db = False and an appropriate dbfilter to hide the Database Manager. Our guides will come in handy: How to Configure a Firewall for Odoo: Step-by-Step Guide and Odoo Database Manager: How It Works and How to Secure It. Also remember to make regular backups of the database and the filestore directory.

Most common issues

  • Python package installation error: check that all development packages are installed (libpq-dev, libxml2-dev, libldap2-dev).
  • Odoo freezes or restarts: reduce the number of workers and increase swap or zram.
  • No access from the browser: check the service status, the firewall and the device's IP address.
  • PDF reports with incorrect formatting: verify your wkhtmltopdf installation and install the patched Qt version for arm64.
  • PostgreSQL authentication error: make sure the db_user and db_password values match the user created in step 2.

FAQ - frequently asked questions

Which Raspberry Pi model should I choose for Odoo?

We recommend the Raspberry Pi 5 with 8 GB of RAM and an SSD. A Raspberry Pi 4 with 4 GB of memory is also enough for testing and learning, but performance will be slower with a larger number of users.

Can I use Odoo on a Raspberry Pi in production?

Only in very small environments and after careful preparation: with an SSD, backups and secured access. For companies where the ERP system is business-critical, a dedicated server or the cloud is a better choice.

Do I need a 64-bit system to install Odoo on a Raspberry Pi?

Yes. We recommend a 64-bit system, such as Ubuntu Server 24.04 LTS or Raspberry Pi OS 64-bit. It offers better compatibility with Python libraries and lets you make use of more RAM.

Need help with your Odoo implementation?

Running Odoo on Raspberry Pi is an excellent way to get to know the system, but implementing an ERP in a company requires experience, a solid architecture and a secure configuration. The KK Innovations team can help you with installation, migration, integrations and tailoring Odoo to your company's processes. Write to us and let's discuss your project.

Contact us