How to upgrade Dolibarr 17 to 22

Dear team,

I am currently running Dolibarr 17 on a web server and would like to upgrade it to Dolibarr 22.
However, the upgrade process is not working at all.

I have downloaded all intermediate versions (18, 19, 20, 21, and 22) and copied each directory to the appropriate folder as described in the documentation.

But when I access the install/upgrade page, no upgrade options or available versions are displayed.
It looks as if Dolibarr does not detect any version change or upgrade path.

Has anyone encountered this issue before, or could someone advise on what may be missing in the procedure?
Dolibarr is hosted on OVH server.

Thank you for your support.

1 Like

FIRST TAKE A BACKUP.

Then from your backup, do an upgrade on a new server.

17, 18, 19, 20, 21, 22 that is quite a GAP, and most likely the PHP has changed.

In this github repo you can see how I restore the mariadb database content from a file saved inside Dolibarr. V22 should be able to upgrade one major revision at a time from 17 to 18, … until 22. So you’d only need to get version 22 running.

This restoring from backup and then upgrade would most likely also work in docker if you like that more - or some other little virtual linux machine that you setup to run Dolibarr V22.

Doing it not in place will allow you to experiment, and you can “play around” inside Dolibarr once you have “upgraded”, learning how v22 differs, if any configuration has to be different …

Once you’re satisfied you do it for real

1 Like