Update from 19.05 -> 19.06 Broke Web Gui Problem persists after Update to 20.05

Nextcloud version: 20.0.5
Operating system and version: Docker on Proxmox

    Kernel Version:  Linux 5.4.60-1-pve #1 SMP PVE 5.4.60-2
    PVE Manager      Version: pve-manager/6.3-3/eee5f901
    Docker Version:  20.10.2, build 2291f61

nginx Version: nginx/1.18.0
PHP Version: PHP 7.3.26 (cli) (built: Jan 7 2021 13:20:58) ( NTS )

The issue you are facing:
After Updating through the GUI to version 19.0.5 to 19.0.6, the Nextcloud got stuck disabling maintenance mode. A manual edit of the config.php file setting the mode to false succeeded in disabling it. After the update finished, the web interface for next cloud presented a 504 Gateway Time-out error. I could not seem to fix this, and some other posts here suggested that there were some issues around this version and apps going into version 20.x.x. I decided that it would be easier to update to 20.0.5 to see if that worked. After some issues where the updater thought the version was already at the most recent version, I managed to update using: sudo -u abc php updater.phar in the /config/www/nextcloud/updater directory. It is apparent here that the owner of config.php is this user ‘abc’. I ran this process until Nextcloud was at version 20.0.4, then tried to use the web page again.

The web page presented me with an update message for 20.0.5 and I ran it. Log:

Preparing update

Set log level to debug

Turned on maintenance mode

Repair step: Repair MySQL collation

Repair info: Not a mysql database -> nothing to do

Repair step: Repair SQLite autoincrement

Repair step: Copy data from accounts table when migrating from ownCloud

Repair step: Drop account terms table when migrating from ownCloud

Updating database schema

Updated database

Repair step: Purify and migrate collected mail addresses

[0 / 0]: Purify and migrate collected mail addresses

Repair step: Insert background jobs for all accounts

[0 / 0]: Insert background jobs for all accounts

Repair step: Make Mail itinerary extractor executable

Repair step: Migrate Mail provisioning config from config.php to the database

Repair info: No old config found

Repair step: Create or update provisioned Mail accounts

Repair info: No Mail provisioning config set

Updated "mail" to 1.7.2

Checking for update of app "accessibility" in appstore

Checked for update of app "accessibility" in appstore

Checking for update of app "activity" in appstore

Checked for update of app "activity" in appstore

Checking for update of app "bruteforcesettings" in appstore

Checked for update of app "bruteforcesettings" in appstore

Checking for update of app "cloud_federation_api" in appstore

Checked for update of app "cloud_federation_api" in appstore

Checking for update of app "comments" in appstore

Checked for update of app "comments" in appstore

Checking for update of app "contacts" in appstore

Checked for update of app "contacts" in appstore

Checking for update of app "contactsinteraction" in appstore

Checked for update of app "contactsinteraction" in appstore

Checking for update of app "dav" in appstore

Checked for update of app "dav" in appstore

Checking for update of app "federatedfilesharing" in appstore

Checked for update of app "federatedfilesharing" in appstore

Checking for update of app "federation" in appstore

Checked for update of app "federation" in appstore

Checking for update of app "files" in appstore

Checked for update of app "files" in appstore

Checking for update of app "files_pdfviewer" in appstore

Checked for update of app "files_pdfviewer" in appstore

Checking for update of app "files_rightclick" in appstore

Checked for update of app "files_rightclick" in appstore

Checking for update of app "files_sharing" in appstore

Checked for update of app "files_sharing" in appstore

Checking for update of app "files_trashbin" in appstore

Checked for update of app "files_trashbin" in appstore

Checking for update of app "files_versions" in appstore

Checked for update of app "files_versions" in appstore

Checking for update of app "files_videoplayer" in appstore

Checked for update of app "files_videoplayer" in appstore

Checking for update of app "firstrunwizard" in appstore

Checked for update of app "firstrunwizard" in appstore

Checking for update of app "logreader" in appstore

Checked for update of app "logreader" in appstore

Checking for update of app "lookup_server_connector" in appstore

Checked for update of app "lookup_server_connector" in appstore

Checking for update of app "mail" in appstore

Checked for update of app "mail" in appstore

Checking for update of app "nextcloud_announcements" in appstore

Checked for update of app "nextcloud_announcements" in appstore

Checking for update of app "notifications" in appstore

Checked for update of app "notifications" in appstore

Checking for update of app "oauth2" in appstore

Checked for update of app "oauth2" in appstore

Checking for update of app "password_policy" in appstore

Checked for update of app "password_policy" in appstore

Checking for update of app "photos" in appstore

Checked for update of app "photos" in appstore

Checking for update of app "privacy" in appstore

Checked for update of app "privacy" in appstore

Checking for update of app "provisioning_api" in appstore

Checked for update of app "provisioning_api" in appstore

Checking for update of app "recommendations" in appstore

Checked for update of app "recommendations" in appstore

Checking for update of app "richdocuments" in appstore

Checked for update of app "richdocuments" in appstore

Checking for update of app "richdocumentscode" in appstore

Checked for update of app "richdocumentscode" in appstore

Checking for update of app "serverinfo" in appstore

Checked for update of app "serverinfo" in appstore

Checking for update of app "settings" in appstore

Checked for update of app "settings" in appstore

Checking for update of app "sharebymail" in appstore

Checked for update of app "sharebymail" in appstore

Checking for update of app "support" in appstore

Checked for update of app "support" in appstore

Checking for update of app "survey_client" in appstore

Checked for update of app "survey_client" in appstore

Checking for update of app "systemtags" in appstore

Checked for update of app "systemtags" in appstore

Checking for update of app "text" in appstore

Checked for update of app "text" in appstore

Checking for update of app "theming" in appstore

Checked for update of app "theming" in appstore

Checking for update of app "twofactor_backupcodes" in appstore

Checked for update of app "twofactor_backupcodes" in appstore

Checking for update of app "updatenotification" in appstore

Checked for update of app "updatenotification" in appstore

Checking for update of app "viewer" in appstore

Checked for update of app "viewer" in appstore

Checking for update of app "workflowengine" in appstore

Checked for update of app "workflowengine" in appstore

Repair step: Repair MySQL collation

Repair info: Not a mysql database -> nothing to do

Repair step: Repair mime types

Repair step: Clean tags and favorites

Repair info: 0 tags of deleted users have been removed.

Repair info: 0 tags for delete files have been removed.

Repair info: 0 tag entries for deleted tags have been removed.

Repair info: 0 tags with no entries have been removed.

Repair step: Repair invalid shares

Repair step: Move .step file of updater to backup location

Repair info: .step file exists

Repair info: .step-previous-update removed

Repair info: .step file moved to .step-previous-update

Repair step: Add move avatar background job

Repair info: Add background job

Repair step: Add preview cleanup background jobs

Repair step: Fix potential broken mount points

Repair info: No mounts updated

Repair step: Repair language codes

Repair step: Install new core bundle components

Repair step: Add log rotate job

Repair step: Clear frontend caches

Repair info: Image cache cleared

Repair info: SCSS cache cleared

Repair info: JS cache cleared

Repair step: Clear every generated avatar on major updates

Repair step: Add preview background cleanup job

Repair step: Queue a one-time job to cleanup old backups of the updater

Repair step: Cleanup invalid photocache files for carddav

Repair step: Add background job to cleanup login flow v2 tokens

Repair step: Remove potentially over exposing share links

Repair info: No need to remove link shares.

Repair step: Clear access cache of projects

Repair step: Reset generated avatar flag

Repair step: Keep legacy encryption enabled

Repair step: Check encryption key format

Repair step: Remove old dashboard app config data

Starting code integrity check

Finished code integrity check

Turned off maintenance mode

Reset log level

After this update ran and completed, the GUI very slowly redirected me to the login page. I entered my credentials and clicked log in. This loaded for a bit and then delivered the same
504 Gateway Time-out error. I am out of ideas for troubleshooting now.

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

Folder Permissions

root@017b2335631e:/config/www/nextcloud# ls -la
total 138
drwxrw-r-- 13 abc abc    27 Jan 14 19:47 .
drwxrwxr-x  3 abc abc     4 Jun 22  2020 ..
-rw-rw-r--  1 abc abc  3124 Jan 14 20:15 .htaccess
-rw-rw-r--  1 abc abc   101 Jan 14 19:47 .user.ini
drwxrwxr-x 41 abc abc    48 Jan 14 19:47 3rdparty
-rw-rw-r--  1 abc abc 17234 Jan 14 19:47 AUTHORS
-rw-rw-r--  1 abc abc 34520 Jan 14 19:47 COPYING
drwxrwxr-x 54 abc abc    54 Jan 14 19:48 apps
drwxrwxr-x  2 abc abc     5 Jan 14 19:47 config
-rw-rw-r--  1 abc abc  3893 Jan 14 19:47 console.php
drwxrwxr-x 22 abc abc    29 Jan 14 19:47 core
-rw-rw-r--  1 abc abc  5083 Jan 14 19:47 cron.php
-rw-rw-r--  1 abc abc   156 Jan 14 19:47 index.html
-rw-rw-r--  1 abc abc  2960 Jan 14 19:47 index.php
drwxrwxr-x  6 abc abc     9 Jan 14 19:47 lib
-rwxrw-r--  1 abc abc   283 Jan 14 19:47 occ
drwxrwxr-x  2 abc abc     3 Jan 14 19:47 ocm-provider
drwxrwxr-x  2 abc abc     5 Jan 14 19:47 ocs
drwxrwxr-x  2 abc abc     3 Jan 14 19:47 ocs-provider
-rw-rw-r--  1 abc abc  3102 Jan 14 19:47 public.php
-rw-rw-r--  1 abc abc  5332 Jan 14 19:47 remote.php
drwxrwxr-x  4 abc abc     8 Jan 14 19:47 resources
-rw-rw-r--  1 abc abc    26 Jan 14 19:47 robots.txt
-rw-rw-r--  1 abc abc  2379 Jan 14 19:47 status.php
drwxrwxr-x  3 abc abc     4 Jan 14 19:47 themes
drwxrwxr-x  2 abc abc     4 May 26  2020 updater
-rw-rw-r--  1 abc abc   382 Jan 14 19:47 version.php

config.php:

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'oc8t23ivp5hf',
  'passwordsalt' => '[REDACTED]',
  'secret' => '[REDACTED]',
  'trusted_domains' =>
  array (
    0 => '192.168.1.2:8777',
    1 => '[REDACTED].org',
  ),
  'dbtype' => 'sqlite3',
  'version' => '20.0.5.2',
  'overwrite.cli.url' => 'https://192.168.1.2:8777',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
);

nginx log partial (couldn’t figure out how to copy the whole this from portainer console):

2021/01/14 20:41:12 [error] 377#377: *770 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 20:55:14 [error] 377#377: *1129 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 20:56:19 [error] 377#377: *1151 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 20:56:19 [error] 377#377: *1153 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 20:56:20 [error] 377#377: *1155 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 20:57:33 [error] 377#377: *1177 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 20:59:57 [error] 377#377: *1214 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:00:51 [error] 377#377: *1230 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:01:09 [error] 377#377: *1236 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:02:22 [error] 377#377: *1258 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:04:01 [error] 377#377: *1286 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:06:07 [error] 377#377: *1340 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:06:07 [error] 377#377: *1342 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:06:07 [error] 377#377: *1343 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:07:20 [error] 377#377: *1366 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:09:53 [error] 377#377: *1420 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:09:53 [error] 377#377: *1424 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:09:53 [error] 378#378: *1421 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:10:16 [error] 377#377: *1434 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:10:51 [error] 377#377: *1438 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:11:17 [error] 377#377: *1446 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:12:17 [error] 377#377: *1458 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:13:18 [error] 377#377: *1474 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:18:33 [error] 377#377: *1578 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"
2021/01/14 21:24:01 [error] 377#377: *1707 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.171, server: _, request: "GET /index.php/204 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[REDACTED].org"

So right now, the next cloud page doesn’t work . Any ideas on what to do?
Thank you for the help!

1 Like