Odoo BuildOdoo Build
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
  • Home

    • Home
    • Help
    • Images
    • Snippets
    • Revisions
    • Modules
    • Changelog

Mint System Odoo Upgrade

Docker pulls

Image to run the Odoo Enterprise upgrade script.

Source: https://github.com/Mint-System/Odoo-Build/tree/main/images/odoo-upgrade

Usage

Setup environment vaiables:

export NETWORK="odoo-build_default"
export PGHOST="db"
export PGUSER="odoo"
export PGPASSWORD="odoo"
export DATABASE="odoo"
export TARGET_DATABASE="upgrade"
export TARGET_VERSION="18.0"

Run the upgrade script:

docker run -it \
    --name odoo-upgrade \
    -v /var/tmp/odoo-upgrade:/root
    -e PGHOST="$PGHOST" -e PGUSER="$PGUSER" -e PGPASSWORD="$PGPASSWORD" \
    --network="$NETWORK" mintsystem/odoo-upgrade \
    test -d "$DATABASE" -t "$TARGET_VERSION" -r "$TARGET_DATABASE"

Show help of upgrade command and arguments:

docker run -it mintsystem/odoo-upgrade --help
docker run -it mintsystem/odoo-upgrade test --help

Development

Update the Odoo upgrade script

Update the upgrade script:

wget https://upgrade.odoo.com/upgrade -O images/odoo-upgrade/bin/upgrade

Troubleshooting

Server version mismatch

Problem

The generating dump step failed with this message:

2025-11-12 09:54:54 ERROR: Generating the dump of your database has failed. The 'pg_dump' command has failed with the following output:
 pg_dump: error: aborting because of server version mismatch
pg_dump: detail: server version: 16.9; pg_dump version: 15.12 (Debian 15.12-0+deb12u2)

Solution

Ensure that the local postgres server does not have a never version than the remote server.

If necessary downgrade the local postgres server.

Edit this page
Last Updated: 11/16/25, 10:01 AM
Contributors: Janik von Rotz