Nextcloud AIO Migration: Install older version?

Hi
Is it possible to install a older version of the docker image?
For migration, the versions of the source and target should match.
But the source (debian based) is stuck on 25.0.7, and AIO installs with 26.0.2.

I see a list of “tags” here: Docker
But no clue, what version of nextcloud is behind each tag.

Hi, I checked for you and 20230606_070951-latest should have 25.0.7 included if you do not opt in to install 26 upon the initial installation.

However after using that tag and migrating you will need to switch back to the latest tag as otherwise no further container updates will be possible.

Hi. I prefer updating the initial installation. But there is no update offered. It says “you have the newest version” since two weeks. There seems no way to force a update with the nextcloud updater.

Can you post a screenshot of what you are seeing currently?

root@nextcloud01:/var/www/nextcloud# sudo -u www-data php updater/updater.phar
Nextcloud Updater - version: v25.0.3-2-gd49ee0d

Current version is 25.0.7.

No update available.

Nothing to do.

There is a warning about PHP verison in the GUI:


Sorry, it is in german…

Ah I see. No further update is offered to you because you are using PHP7.4.

Ok, so in this situation the only way to migrate is to install the older version of AIO.

Yes or you upgrade your php to a higher version.

Upgrading debian or ubuntu based systems to newer php is always a mess.

I have tried to install the older version of AIO container, but this fetches the latest nextcloud anyway.
My command:

docker run
–sig-proxy=false
–name nextcloud-aio-mastercontainer
–restart always
–publish 80:80
–publish 8080:8080
–publish 8443:8443
–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
–volume /var/run/docker.sock:/var/run/docker.sock:ro
-e NEXTCLOUD_DATADIR=“/mnt/data/ncdata”
-e SKIP_DOMAIN_VALIDATION=true
nextcloud/all-in-one:20230606_070951-latest

Seems not that easy. I am new to docker. Have to read the docs first.

docker ps:
CONTAINER ID IMAGE
ae4727ff7735 nextcloud/aio-apache:20230606_070951-latest
e59d399ec097 nextcloud/aio-nextcloud:20230606_070951-latest
d1cb79563c74 nextcloud/aio-imaginary:20230606_070951-latest
2e28ea9ea535 nextcloud/aio-redis:20230606_070951-latest
0450217edcb3 nextcloud/aio-postgresql:20230606_070951-latest
01d792efccfd nextcloud/aio-talk:20230606_070951-latest
fcd68a79e279 nextcloud/all-in-one:20230606_070951-latest

Looks good! All of them are using the specified tag. So you should have 25.0.7 now, no?

image
No.

root@nextcloud01-aio:~# docker exec --user www-data -it nextcloud-aio-nextcloud php occ status

  • installed: true
  • version: 26.0.2.1
  • versionstring: 26.0.2
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false

I see. Then you need to reset the instance properly by following GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance. and try to install it cleanly.

1 Like

Tried again. Followed all these steps, including docker image prune -a at the end.
Same result.

Ah I see. Then the tag is probably wrong. 20230530_084406-latest is the correct one iirc.

Yes, that did it!

root@nextcloud01-aio:~# docker exec --user www-data -it nextcloud-aio-nextcloud php occ status

  • installed: true
  • version: 25.0.7.1
  • versionstring: 25.0.7
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false

When i am finished migration, how can i change to latest?
Just remove the master container and reinstall with “latest”?

Ok, it has finally worked! Thank you!

Just to sum up:

docker run --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro nextcloud/all-in-one:20230530_084406-latest

did install nextcloud 25.0.7.
Then do the migration as described in all-in-one/migration.md at main · nextcloud/all-in-one · GitHub
Don’t forget to install all the same apps on the new instance before you import the database. This step is missing in the migration doc.
Then start the new instance, check that everything works.
Now shutdown and remove the AIO container:
docker stop nextcloud-aio-mastercontainer
docker remove nextcloud-aio-mastercontainer
Then reinstall it with “latest” at the end. On next start, it offers updates to latest nextcloud.

1 Like