How to update from 31.0.9 to 31.0.10 under docker compose with Open Media Vault 7

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.9
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian bookworm 12
  • Web server and version (e.g, Apache 2.4.25):
    • ?
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx:latest
  • PHP version (e.g, 8.3):
    • ?
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • now
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker compose running under Open Media Vault 7
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I am trying to update my Nextcloud 31.0.9 running in docker compose under Open Media Vault 7 but no luck. Tried do do Stop-Down-Pull (image) - Up but no luck, still same old image.

When I try in container (in teminal) ./occ update:check

it say there is new version 31.0.10 but when do ./occ maintenance:mode —on (or whatever whas this command) and after that trying to do ./occ upgrade it do not run upgrade.

If I try , not in maintenance mode, to do ./occ upgrade it say that there is no need (or similar) for upgrade.

I tried to search this forum and all other places for proper upgrade procedure, but no information found.

Is there any good person who can give proper way to make upgrade to 31.0.10 version trough terminal (occ in docker container) or trough OMV’s Compose (web) ?

Thank you in advance

Post your Compose file.

There are multiple images and possibilities.

Both the Nextcloud project images have update/upgrade procedure docs on their GitHub pages.

version: ‘3.9’

services:
db:
image: mariadb:10.6
container_name: nextcloud-db
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:

  • db:/var/lib/mysql
    environment:
  • MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
  • MYSQL_PASSWORD=${MYSQL_PASSWORD}
  • MYSQL_DATABASE=${MYSQL_DATABASE}
  • MYSQL_USER=${MYSQL_USER}

app:

image: nextcloud

build: . # new with smb support
container_name: nextcloud-app
restart: always
ports:

- “xx:80” #purposely changed to xx for posting

- “xx:443” #purposely changed to xx for posting

  • “${NEXTCLOUD_PORT}:80”

- “${NEXTCLOUD_PORT_A}:443”

links:

  • db
    volumes:
  • nextcloud:/var/www/html
  • /srv/dev-disk-by-uuid-91a7a982-913f-4e8a-a912-98271d199e96/Nextcloud:/external/Nextcloud:rw # nov dodaden disk
    environment:
  • MYSQL_PASSWORD=${MYSQL_PASSWORD}
  • MYSQL_DATABASE=${MYSQL_DATABASE}
  • MYSQL_USER=${MYSQL_USER}
  • MYSQL_HOST=db

volumes:
db:
nextcloud:

Your Compose is extending the base image. You need to make sure it gets built whenever updating. e.g.

docker compose build --pull

Nice to hear that. As a newbie, how to do that ? Any manual or steps to do properly ?

That’s the command.

Then you do the normal process as documented for that image for updating:

$ docker compose pull
$ docker compose up -d

If you want more build context, see Docker’s documentation - e.g. here. Customizing/building images isn’t Nextcloud specific.