Upgrade seems to have stalled and nextcloud won't come up

This morning I updated my nextcloud docker container, according to the log from 22.2.0.2 to 22.2.3.0. However the nextcloud container does not appear to be up and there are no log entries to indicate that it is doing anything so I’m at a bit of a loss as to where to look or what to do.

The docker logs for the container has the following

2021-11-27T09:41:40.220703164Z Configuring Redis as session handler
2021-11-27T09:41:40.304137372Z Initializing nextcloud 22.2.3.0 ...
2021-11-27T09:41:40.304160288Z Upgrading nextcloud from 22.2.0.2 ...
2021-11-27T09:57:21.331996935Z Configuring Redis as session handler
2021-11-27T09:57:21.420626091Z Initializing nextcloud 22.2.3.0 ...
2021-11-27T09:57:21.420650252Z Upgrading nextcloud from 22.2.0.2 ...
2021-11-27T10:32:56.344705699Z Configuring Redis as session handler
2021-11-27T10:32:56.459497485Z Initializing nextcloud 22.2.3.0 ...
2021-11-27T10:32:56.459522425Z Upgrading nextcloud from 22.2.0.2 ...

nextcloud.log has no entries at all.

Perhaps I have not left it long enough to complete the upgrade? Or perhaps I messed it up by restarting too early.

Either way I’d appreciate some guidance to recover Nextcloud…

Since this I have tried a number of things.

I exec’d into the container and used occ to run the upgrade. This ran successfully and now claims it’s on the latest version. However while I can see the listening port open it is not responding on it and it claims that it is on the latest version but also claims it is on 22.2.0

root@nextcloud:/var/www/html# runuser -u www-data -- ./occ status
  - installed: true
  - version: 22.2.0.2
  - versionstring: 22.2.0
  - edition:
root@nextcloud:/var/www/html# runuser -u www-data -- ./occ upgrade
Nextcloud is already latest version

Still nothing in the logs.

I’ve also tried downing the container and removing the image and recreating but this made no difference. I’m at a loss as to where to go as I can’t see any errors to chase

Not a solution but I downgroaded the docker image to 22.2.0 and it is back up. It could be an issue with the latest image or something I did but I shall perhaps not be so hasty to upgrade in future

1 Like

Hello,

I am having the same issue after a location change of my nextcloud docker. I have done a re-install using docker compose (stack in portainer) and since version of nextcloud was not specified it downloaded the latest version.
I am using MariaDB 10.5 (because I have had some issues with MariaDB:latest) with nextcloud 22.

Doing a rollback to nextcloud:22.0.2.0 does not fixed the problem for me.

First I was having a error:
"Can’t start Nextcloud because the version of the data (22.2.3.0) is higher than the docker image version (22.2.0.2) and downgrading is not supported. Are you sure you have pulled the newest image version?"
I was able to fix it by updating the version in version.php file (How to fix an accidental Nextcloud docker image update - Nicolas Bouliane) but I am still having the issue:
not able to get the login page and same error 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."

and nothing in the logs !

Hope that somebody can help me to troubleshoot.

here is my docker-compose configuration file
version: ‘2’

services:
db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /mnt/zpool-docker/docker_apps/nextcloud/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=###################
- MYSQL_PASSWORD=#############
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=#############

app:
image: nextcloud:22.2.0
restart: always
ports:
- 8081:80
links:
- db
volumes:
- /mnt/zpool-docker/docker_apps/nextcloud:/var/www/html
- /mnt/zpool/nextcloud/data:/var/www/html/data
- /mnt/zpool-docker/docker_apps/nextcloud/custom_apps:/var/www/html/custom_apps
- /mnt/zpool-docker/docker_apps/nextcloud/3rdparty:/var/www/html/3rdparty
environment:
- MYSQL_PASSWORD=###########
- NEXTCLOUD_ADMIN_USER=########
- NEXTCLOUD_ADMIN_PASSWORD=###########
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_HOSTNAME=nextcloud
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.xxxxxx.com
- OVERWRITEPROTOCOL=https