Upgrade steps 7.6 to 7.8 on Docker

To avoid version mismatch issues during the upgrade, I had to follow these steps:

-Install necessary tools inside the container The container might need temporary tools to build the client.

docker-compose exec -u root tryton apt-get update

docker-compose exec -u root tryton apt-get install -y curl nodejs npm git

-Replace the source files Remove the old folder and download the new source code.

-Install dependencies (Crucial Step)

docker-compose exec -u root tryton bash -c “cd /var/lib/trytond/www && npm install --production --legacy-peer-deps”

-Fix Permissions and Restart

docker-compose exec -u root tryton chown -R trytond:trytond /var/lib/trytond/www

docker-compose restart tryton

-Database Migration

-Final Step Ctrl + Shift + R

Thanks

Why do not you use the image with the tag 7.8 ?

I am using the tryton/tryton:7.8 image.

The issue is caused by my docker volume configuration. I have tryton_filestore mounted to /var/lib/trytond, and my trytond.conf sets the web root inside that directory (root = /var/lib/trytond/www).

Because of this volume persistence, when I switched the image tag from 7.6 to 7.8, the container continued to serve the old sao files stored in the volume instead of the new ones provided by the image. That is why I had to manually remove and reinstall the web client.

I actually tried exactly that at first. I updated the image tag to tryton/tryton:7.8 and restarted the container.

However, I immediately got a “Version mismatch” error in the browser.

You should set the volume to /var/lib/trytond/db as expected by the Dockerfile.

1 Like