Failed to update Nextcloud via docker-compose

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


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:

Nextcloud version :
Operating system and version _: Ubuntu 18.04.4
Apache or nginx version : fpm-alpine latest
PHP version (eg, 7.1): Donot know

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Hello everyone,

I am using docker-compose for my nextcloud setup. I forgot to update my nextcloud for a while and wanted to do it. I did use these commands:

docker-compose pull
docker-compose up -d

My yml file looks like this:

version: '3'

    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
      - db:/var/lib/mysql
      - MYSQL_ROOT_PASSWORD=hiddenpw
      - db.env
    container_name: new_nextcloud_db

    image: nextcloud:fpm-alpine
    restart: always
      - nextcloud:/var/www/html
      - MYSQL_HOST=db
      - db.env
      - db
    container_name: new_nextcloud_app

    build: ./web
    restart: always
      - nextcloud:/var/www/html:ro
      - VIRTUAL_HOST=hiddendomain
      - LETSENCRYPT_HOST=hiddenhost
      - LETSENCRYPT_EMAIL=hiddenemail
      - app
      - proxy-tier
      - default
    container_name: new_nextcloud_web

Since then, my clients cannot connect and I get also this message:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Sadly I fail to know where the server log is saved. But I get also another message via ssh:

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active

I am sure that before my update I didn’t use nextcloud 17 or 16. I think it was version 12.

So I tried downgrading but I failed.

My questions are:
Can I downgrade and progressively upgrade until I reach version 18?
Is there another solution?
Since I know that error logs are key for problem solving, can anybody give me an advice where to find my errorlogs when using docker compose? Than I could publish them here.

Thank you