Upgrade 21.0.0.18 to 21.0.1 stuck at "Update in Process." blank page in "Entry Points" Step. Can't go back to updater

Nextcloud version: 21.0.0.18
Operating system and version: FreeBSD jail 12.1-RELEASE-p13/12.2-RELEASE-p3
TrueNAS version: 12.2-RELEASE-p3
nginx version: 1.18.0
OpenSSL 1.1.1h-freebsd
PHP version: 7.4.16
MySQL version: Ver 8.0.23 for FreeBSD12.2 on amd64 (Source distribution)

Bizarre version mismatch in my TruNAS jails instance.

root@ga:~ # iocage list
+------+-------------+-------+--------------+---------------+
| JID  |    NAME     | STATE |   RELEASE    |      IP4      |
+======+=============+=======+==============+===============+
| 1    | FAMP        | up    | 11.3-RELEASE | DHCP          |
+------+-------------+-------+--------------+---------------+
| None | dlna_1      | down  | 11.3-RELEASE | 172.16.240.19 |
+------+-------------+-------+--------------+---------------+
| 2    | firefly_1   | up    | 11.3-RELEASE | 172.16.240.23 |
+------+-------------+-------+--------------+---------------+
| 12   | nextcloud   | up    | 12.1-RELEASE | DHCP          |
+------+-------------+-------+--------------+---------------+
| 4    | nextcloud_1 | up    | 11.3-RELEASE | 172.16.240.16 |
+------+-------------+-------+--------------+---------------+
| 5    | pluginjail  | up    | 11.3-RELEASE | 172.16.240.25 |
+------+-------------+-------+--------------+---------------+
root@ga:~ # iocage console nextcloud
Last login: Sun Apr 18 15:15:37 on pts/31
FreeBSD 12.2-RELEASE-p3 7851f4a452d(HEAD) TRUENAS

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

Edit /etc/motd to change this login announcement.
root@nextcloud:~ # freebsd-version
12.1-RELEASE-p13
root@nextcloud:~ # exit
logout
root@ga:~ # freebsd-version
12.2-RELEASE-p3
root@ga:~ #

The issue you are facing:

I’m no longer able to get into the updater, or CLI updater.
I know, that probably the issue on the step “entry point” may hit me, because of the ownership in sub folders under nextcloud, because it formerly was installed as a plugin of a trunas jail.
I already did a chown -R www:www to that folder, but it didn’t help to get rid of the “update in Process.” Blank page, to continue or restart the upgrade process.

Also updater.phar doesn’t return anything.


root@nextcloud:/usr/local/www # sudo -u www php nextcloud/updater/updater.phar
root@nextcloud:/usr/local/www #

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. Using the online-updater
  2. On step “Entry Points” it throws an error and stucks
  3. On reloading the page a blank page returns with “Update in process.”
  4. CLI occ upgrqde says “Nextcloud is already latest version”
  5. occ update:check gives: 1 update available. Nextcloud 21.0.1 is available."
  6. occ status gives:
  • installed: true
  • version: 21.0.0.18
  • versionstring: 21.0.0
  • edition:

The output of your Nextcloud log in nextcloud/data/updater.log:


root@nextcloud:/usr/local/www # tail nextcloud/data/updater.log
2021-04-17T16:52:34+0000 XKAyLMI9V8 [info] show HTML page
2021-04-17T16:52:34+0000 XKAyLMI9V8 [info] current version: 21.0.0 build time: 2021-02-19T08:52:18+00:00 8985b7930653139859002eb3eca2852999ed8f0d
2021-04-17T16:52:58+0000 1UhimUXp0L [info] request to updater
2021-04-17T16:52:58+0000 1UhimUXp0L [info] currentStep()
2021-04-17T16:52:58+0000 1UhimUXp0L [info] show HTML page
2021-04-17T16:52:58+0000 1UhimUXp0L [info] current version: 21.0.0 build time: 2021-02-19T08:52:18+00:00 8985b7930653139859002eb3eca2852999ed8f0d
2021-04-17T16:53:20+0000 gr6OkzKY47 [info] request to updater
2021-04-17T16:53:20+0000 gr6OkzKY47 [info] currentStep()
2021-04-17T16:53:20+0000 gr6OkzKY47 [info] show HTML page
2021-04-17T16:53:20+0000 gr6OkzKY47 [info] current version: 21.0.0 build time: 2021-02-19T08:52:18+00:00 8985b7930653139859002eb3eca2852999ed8f0d

occ log:tail

root@nextcloud:/usr/local/www # ~/occ.sh log:tail
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
 ------- ------------------- ------------------------------------------------------------------------------------------------------------------------------- ---------------------------
  Level   App                 Message                                                                                                                         Time
 ------- ------------------- ------------------------------------------------------------------------------------------------------------------------------- ---------------------------
  Error   no app in context   ArgumentCountError: Too few arguments to function OCA\Encryption\AppInfo\Application::registerEncryptionModule(), 0 passed in   2021-04-17T17:08:40+00:00
                              /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected at
                              apps-pkg/encryption/lib/AppInfo/Application.php line 90

                              0. apps/encryption/appinfo/app.php line 35
                                 OCA\Encryption\AppInfo\Application->registerEncryptionModule(

                                 )
                              1. lib/private/legacy/OC_App.php line 295
                                 require_once("\/usr\/local\/www\/nextcloud\/apps\/encryption\/appinfo\/app.php")
                              2. lib/private/legacy/OC_App.php line 177
                                 OC_App::requireAppFile(OCA\Encryption\AppInfo\Application {})
                              3. lib/private/legacy/OC_App.php line 137
                                 OC_App::loadApp("encryption")
                              4. lib/private/Console/Application.php line 127
                                 OC_App::loadApps(

                                 )
                              5. console.php line 99
                                 OC\Console\Application->loadCommands(
                                   Symfony\Component\Console\Input\ArgvInput {},
                                   Symfony\Component\Console\Output\ConsoleOutput {}
                                 )
                              6. occ line 11
                                 require_once("\/usr\/local\/www\/nextcloud\/console.php")

  Debug   files_sharing       /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:08:40+00:00

  Debug   contacts            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:09:42+00:00

  Debug   encryption          /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:09:42+00:00

  Error   no app in context   ArgumentCountError: Too few arguments to function OCA\Encryption\AppInfo\Application::registerEncryptionModule(), 0 passed in   2021-04-17T17:09:42+00:00
                              /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected at
                              apps-pkg/encryption/lib/AppInfo/Application.php line 90

                              0. apps/encryption/appinfo/app.php line 35
                                 OCA\Encryption\AppInfo\Application->registerEncryptionModule(

                                 )
                              1. lib/private/legacy/OC_App.php line 295
                                 require_once("\/usr\/local\/www\/nextcloud\/apps\/encryption\/appinfo\/app.php")
                              2. lib/private/legacy/OC_App.php line 177
                                 OC_App::requireAppFile(OCA\Encryption\AppInfo\Application {})
                              3. lib/private/legacy/OC_App.php line 137
                                 OC_App::loadApp("encryption")
                              4. lib/private/Console/Application.php line 127
                                 OC_App::loadApps(

                                 )
                              5. console.php line 99
                                 OC\Console\Application->loadCommands(
                                   Symfony\Component\Console\Input\ArgvInput {},
                                   Symfony\Component\Console\Output\ConsoleOutput {}
                                 )
                              6. occ line 11
                                 require_once("\/usr\/local\/www\/nextcloud\/console.php")

  Debug   files_sharing       /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:09:42+00:00

  Debug   contacts            /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:12:14+00:00

  Debug   encryption          /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:12:14+00:00

  Error   no app in context   ArgumentCountError: Too few arguments to function OCA\Encryption\AppInfo\Application::registerEncryptionModule(), 0 passed in   2021-04-17T17:12:14+00:00
                              /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected at
                              apps-pkg/encryption/lib/AppInfo/Application.php line 90

                              0. apps/encryption/appinfo/app.php line 35
                                 OCA\Encryption\AppInfo\Application->registerEncryptionModule(

                                 )
                              1. lib/private/legacy/OC_App.php line 295
                                 require_once("\/usr\/local\/www\/nextcloud\/apps\/encryption\/appinfo\/app.php")
                              2. lib/private/legacy/OC_App.php line 177
                                 OC_App::requireAppFile(OCA\Encryption\AppInfo\Application {})
                              3. lib/private/legacy/OC_App.php line 137
                                 OC_App::loadApp("encryption")
                              4. lib/private/Console/Application.php line 127
                                 OC_App::loadApps(

                                 )
                              5. console.php line 99
                                 OC\Console\Application->loadCommands(
                                   Symfony\Component\Console\Input\ArgvInput {},
                                   Symfony\Component\Console\Output\ConsoleOutput {}
                                 )
                              6. occ line 11
                                 require_once("\/usr\/local\/www\/nextcloud\/console.php")

  Debug   files_sharing       /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.                    2021-04-17T17:12:14+00:00

 ------- ------------------- ------------------------------------------------------------------------------------------------------------------------------- ---------------------------

root@nextcloud:/usr/local/www # tail /var/log/nextcloud/nextcloud.log


root@nextcloud:/usr/local/www # tail /var/log/nextcloud/nextcloud.log
{"reqId":"CQDbvE5bLhmU1u6JD1zj","level":3,"time":"2021-04-17T17:08:40+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"ArgumentCountError","Message":"Too few arguments to function OCA\\Encryption\\AppInfo\\Application::registerEncryptionModule(), 0 passed in /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/apps/encryption/appinfo/app.php","line":35,"function":"registerEncryptionModule","class":"OCA\\Encryption\\AppInfo\\Application","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":295,"args":["/usr/local/www/nextcloud/apps/encryption/appinfo/app.php"],"function":"require_once"},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":177,"function":"requireAppFile","class":"OC_App","type":"::","args":[{"__class__":"OCA\\Encryption\\AppInfo\\Application"}]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":137,"function":"loadApp","class":"OC_App","type":"::","args":["encryption"]},{"file":"/usr/local/www/nextcloud/lib/private/Console/Application.php","line":127,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/usr/local/www/nextcloud/occ","line":11,"args":["/usr/local/www/nextcloud/console.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/encryption/lib/AppInfo/Application.php","Line":90,"CustomMessage":"App encryption threw an error during app.php load: Too few arguments to function OCA\\Encryption\\AppInfo\\Application::registerEncryptionModule(), 0 passed in /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"CQDbvE5bLhmU1u6JD1zj","level":0,"time":"2021-04-17T17:08:40+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"xxcN6IfdqyUmVNc0IcrT","level":0,"time":"2021-04-17T17:09:42+00:00","remoteAddr":"","user":"--","app":"contacts","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"xxcN6IfdqyUmVNc0IcrT","level":0,"time":"2021-04-17T17:09:42+00:00","remoteAddr":"","user":"--","app":"encryption","method":"","url":"--","message":"/appinfo/app.php is deprecated,
use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"xxcN6IfdqyUmVNc0IcrT","level":3,"time":"2021-04-17T17:09:42+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"ArgumentCountError","Message":"Too few arguments to function OCA\\Encryption\\AppInfo\\Application::registerEncryptionModule(), 0 passed in /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/apps/encryption/appinfo/app.php","line":35,"function":"registerEncryptionModule","class":"OCA\\Encryption\\AppInfo\\Application","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":295,"args":["/usr/local/www/nextcloud/apps/encryption/appinfo/app.php"],"function":"require_once"},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":177,"function":"requireAppFile","class":"OC_App","type":"::","args":[{"__class__":"OCA\\Encryption\\AppInfo\\Application"}]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":137,"function":"loadApp","class":"OC_App","type":"::","args":["encryption"]},{"file":"/usr/local/www/nextcloud/lib/private/Console/Application.php","line":127,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/usr/local/www/nextcloud/occ","line":11,"args":["/usr/local/www/nextcloud/console.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/encryption/lib/AppInfo/Application.php","Line":90,"CustomMessage":"App encryption threw an error during app.php load: Too few arguments to function OCA\\Encryption\\AppInfo\\Application::registerEncryptionModule(), 0 passed in /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"xxcN6IfdqyUmVNc0IcrT","level":0,"time":"2021-04-17T17:09:42+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Y6USpRvkbpqMFpovyttT","level":0,"time":"2021-04-17T17:12:14+00:00","remoteAddr":"","user":"--","app":"contacts","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Y6USpRvkbpqMFpovyttT","level":0,"time":"2021-04-17T17:12:14+00:00","remoteAddr":"","user":"--","app":"encryption","method":"","url":"--","message":"/appinfo/app.php is deprecated,
use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Y6USpRvkbpqMFpovyttT","level":3,"time":"2021-04-17T17:12:14+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"ArgumentCountError","Message":"Too few arguments to function OCA\\Encryption\\AppInfo\\Application::registerEncryptionModule(), 0 passed in /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/apps/encryption/appinfo/app.php","line":35,"function":"registerEncryptionModule","class":"OCA\\Encryption\\AppInfo\\Application","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":295,"args":["/usr/local/www/nextcloud/apps/encryption/appinfo/app.php"],"function":"require_once"},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":177,"function":"requireAppFile","class":"OC_App","type":"::","args":[{"__class__":"OCA\\Encryption\\AppInfo\\Application"}]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":137,"function":"loadApp","class":"OC_App","type":"::","args":["encryption"]},{"file":"/usr/local/www/nextcloud/lib/private/Console/Application.php","line":127,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/usr/local/www/nextcloud/occ","line":11,"args":["/usr/local/www/nextcloud/console.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/encryption/lib/AppInfo/Application.php","Line":90,"CustomMessage":"App encryption threw an error during app.php load: Too few arguments to function OCA\\Encryption\\AppInfo\\Application::registerEncryptionModule(), 0 passed in /usr/local/www/nextcloud/apps/encryption/appinfo/app.php on line 35 and exactly 1 expected"},"userAgent":"--","version":"21.0.0.18"}
{"reqId":"Y6USpRvkbpqMFpovyttT","level":0,"time":"2021-04-17T17:12:14+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}

The output of your config.php file in /usr/local/www/nextcloud (make sure you remove any identifiable information!):


root@nextcloud:/usr/local/www # cat nextcloud/config/config.php
<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 =>
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => true,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'instanceid' => 'oc ... fb',
  'passwordsalt' => 'YZ ... R',
  'secret' => '3u ... Ej',
  'trusted_domains' =>
  array (
    0 => '172.16.240.199',
    1 => '172.16.240.26',
    2 => 'nextcloud.ga .. u',
    3 => 'localhost',
    4 => '172.16.240.4',
    5 => '172.16.240.3',
    6 => '172.16.240.16',
    7 => 'ga .. z',
    8 => 'ga .. e',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwrite.cli.url' => 'https://172.16.240.199',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => 'Al ... wE',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'mysql.utf8mb4' => true,
  'updater.release.channel' => 'stable',
  'app_install_overwrite' =>
  array (
    0 => 'occweb',
  ),
  'encryption.legacy_format_support' => true,
  'encryption.key_storage_migrated' => false,
  'updater.secret' => '$2y ... kq',
);

The output of your nginx/system log in /var/log/nginx/access.log:

root@nextcloud:/usr/local/www # tail /var/log/nginx/access.log
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:51:17 +0200] "GET /admin HTTP/2.0" 503 18 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.001 ut=0.001 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:51:22 +0200] "GET / HTTP/2.0" 503 18 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.001 ut=0.001 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:51:28 +0200] "GET /updater/ HTTP/2.0" 200 3350 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.256 ut=0.256 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:52:05 +0200] "POST /updater/ HTTP/2.0" 200 3420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.383 ut=0.384 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:52:26 +0200] "POST /updater/ HTTP/2.0" 200 3419 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.383 ut=0.382 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:52:34 +0200] "POST /updater/ HTTP/2.0" 200 3419 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.384 ut=0.384 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:52:58 +0200] "POST /updater/ HTTP/2.0" 200 3420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.438 ut=0.438 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:18:53:20 +0200] "POST /updater/ HTTP/2.0" 200 3420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.429 ut=0.429 cs=-
87.154.140.53 - nextcloud.ga ... u [17/Apr/2021:19:06:16 +0200] "GET / HTTP/2.0" 503 18 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"rt=0.001 ut=0.001 cs=-
212.129.4.48 - 87.154.140.53 [17/Apr/2021:19:07:52 +0200] "GET / HTTP/1.1" 503 29 "-" "-" "-"rt=0.001 ut=0.000 cs=-

/var/log/nginx/error.log

root@nextcloud:/usr/local/www # tail /var/log/nginx/error.log
2021/04/17 17:29:41 [error] 28698#101945: *2768 access forbidden by rule, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /data/.ocdata?t=1618673381093 HTTP/2.0", host: "nextcloud.ga ... u"
2021/04/17 17:30:25 [error] 28698#101945: *2768 access forbidden by rule, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /.well-known/nodeinfo HTTP/2.0", host: "nextcloud.ga ... u"
2021/04/17 17:30:25 [error] 28698#101945: *2768 access forbidden by rule, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /data/.ocdata?t=1618673424911 HTTP/2.0", host: "nextcloud.ga ... u"
2021/04/17 17:30:55 [error] 28698#101945: *2768 access forbidden by rule, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /.well-known/nodeinfo HTTP/2.0", host: "nextcloud.ga ... u"
2021/04/17 17:30:56 [error] 28698#101945: *2768 access forbidden by rule, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /data/.ocdata?t=1618673455509 HTTP/2.0", host: "nextcloud.ga ... u"
2021/04/17 17:32:05 [error] 28698#101945: *2768 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(/usr/local/www/nextcloud/updater/../ocs/v1.php): failed to open stream:
Permission denied in /usr/local/www/nextcloud/updater/index.php on line 847" while reading response header from upstream, client: 87.154.140.53, server: nextcloud.ga ... u, request: "POST /updater/index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.ga ... u"
2021/04/17 17:32:29 [error] 28698#101945: *2768 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(/usr/local/www/nextcloud/updater/../ocs/v1.php): failed to open stream:
Permission denied in /usr/local/www/nextcloud/updater/index.php on line 847" while reading response header from upstream, client: 87.154.140.53, server: nextcloud.ga ... u, request: "POST /updater/index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock:", host: "nextcloud.ga ... u"
2021/04/17 18:05:19 [error] 28698#101945: *2768 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", host: "nextcloud.ga ... u"
2021/04/17 18:05:49 [error] 28698#101945: *2768 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", host: "nextcloud.ga ... u"
2021/04/17 18:06:36 [error] 28698#101945: *2768 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 87.154.140.53, server: nextcloud.ga ... u, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://unix:/var/run/nextcloud-php-fpm.sock", host: "nextcloud.ga ... u"

I noticed, that some files and folders are not writable for group www. But that didn’t changed the issue.

root@nextcloud:/usr/local/www # ls -l nextcloud/ocs/
    total 18
    -rw-r--r--  1 www  www  2128 Feb 19 09:49 providers.php
    -rw-r--r--  1 www  www  3378 Feb 19 09:49 v1.php
    -rw-r--r--  1 www  www   840 Feb 19 09:49 v2.php
    root@nextcloud:/usr/local/www # chmod -R g+w nextcloud
    root@nextcloud:/usr/local/www # ls -l nextcloud/ocs/
    total 18
    -rw-rw-r--  1 www  www  2128 Feb 19 09:49 providers.php
    -rw-rw-r--  1 www  www  3378 Feb 19 09:49 v1.php
    -rw-rw-r--  1 www  www   840 Feb 19 09:49 v2.php
    root@nextcloud:/usr/local/www # sudo -u www php nextcloud/updater/updater.phar
    root@nextcloud:/usr/local/www #

root@nextcloud:/usr/local/www # ~/occ.sh status
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
  - installed: true
  - version: 21.0.0.18
  - versionstring: 21.0.0
  - edition:
root@nextcloud:/usr/local/www # ~/occ.sh upgrade
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
**Nextcloud is already latest version**

I did also find and moved a .step* file, with no effect on the blank screen with “Update in Process.”

root@nextcloud:/usr/local/www # mv -v nextcloud/data/updater-ocpgd7phg0fb/.step-previous-update nextcloud_extra-files_old/
root@nextcloud:/usr/local/www # find ./ -name '.step*'
./nextcloud_extra-files_old/.step-previous-update

nextcloud/updater/updater.phar seems to be outdated, right?

root@nextcloud:/usr/local/www # grep -n --color -a -C3 -i version nextcloud/updater/updater.phar | grep -a return
9077:     * @param bool $short Whether to return the short version (with options folded) or not
9079-     * @return string The synopsis
11341-            return
12615-     * @return string The synopsis
13031-            return 0;
13106:        return $this->getLongVersion();
13172:     * @return string The application version
13176:        return $this->version;
13192:     * @return string The long application version
13198:                return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
13201-            return sprintf('<info>%s</info>', $this->getName());
18663-          // needs to be called that early because otherwise updateAvailable() returns false
19046-                  return;
19049-                  return;
19065-   * @return string
19068:          return $this->currentVersion;
19399-          return $changelogURL;
19620-   * @return string
19628:                  return implode('.', $OC_Version);
20196-          return 'v16.0.3-3-ga0c2b25 dirty';
20301-  return '0.0.1-test-4-gd1856c7 dirty';
root@nextcloud:/usr/local/www #
root@nextcloud:/usr/local/www # ls -l  nextcloud/updater/updater.phar
-rw-rw----  1 www  www  599781 Aug 26  2020 nextcloud/updater/updater.phar

w3m shows on https://nextcloud.ga[…]u/updater/
this:

Updater

Authentication

To login you need to provide the unhashed value of “updater.secret” in your config file.

If you don’t know that value, you can access this updater directly via the Nextcloud admin screen or generate your own secret:

php -r '$password = trim(shell_exec("openssl rand -base64 48"));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . "\n"; echo "Insert as \"updater.secret\":
".$hash; echo "The plaintext value is: ".$password."\n";}else{echo "Could not execute OpenSSL.\n";};'

[ ] Login
Unfortunately I don’t know how to get the plaintext value of the secret. Everything I tried returns “Invalid password”

Also if I use “updater.secret” or “The plaintext value” I create via the presented command line:

root@nextcloud:/usr/local/www/nextcloud/updater # php -r '$password = trim(shell_exec("openssl rand -base64 48"));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . "\n"; echo "Insert as \"updater.secret\": ".$hash; echo "The plaintext value is: ".$password."\n";}else{echo "Could not execute OpenSSL.\n";};'
Insert as "updater.secret": $2y[...]jW
The plaintext value is: u0[...]ih

Even if I move updater.phar from the download the updater did, to replace the outdated updater.phar, I can’t achieve to make “Update in progress” to disappear.

root@nextcloud:/usr/local/www/nextcloud # ls -l updater
total 257
-rw-rw-r--  1 www  www   65827 Feb 19 09:50 index.php
-rw-rw----  1 www  www  599781 Aug 26  2020 updater.phar

root@nextcloud:/usr/local/www/nextcloud # mv -v  updater ../nextcloud_extra-files_old/
updater -> ../nextcloud_extra-files_old/updater
root@nextcloud:/usr/local/www/nextcloud # cp -Rp data/updater-ocpgd7phg0fb/downloads/nextcloud/updater .
root@nextcloud:/usr/local/www/nextcloud # ls -l updater
total 257
-rw-rw-r--  1 www  www   66309 Apr 17 17:31 index.php
-rw-rw-r--  1 www  www  600659 Apr 17 17:31 updater.phar

root@nextcloud:/usr/local/www/nextcloud # cd updater
root@nextcloud:/usr/local/www/nextcloud/updater # sudo -u www php updater.phar
root@nextcloud:/usr/local/www/nextcloud/updater #


root@nextcloud:/usr/local/www/nextcloud/updater # grep -a --color -n -C3 version updater.phar | grep -a return
9080:     * @param bool $short Whether to return the short version (with options folded) or not
9082-     * @return string The synopsis
12618-     * @return string The synopsis
13034-            return 0;
13175:     * @return string The application version
13179:        return $this->version;
13195:     * @return string The long application version
13201:                return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
13204-            return sprintf('<info>%s</info>', $this->getName());
18671-          // needs to be called that early because otherwise updateAvailable() returns false
19057-                  return;
19060-                  return;
19076-   * @return string
19407-          return $changelogURL;
19631-   * @return string
19639-                  return implode('.', $OC_Version);


root@nextcloud:/usr/local/www/nextcloud/updater # php -version
PHP 7.4.16 (cli) (built: Mar 27 2021 01:35:31) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies

In the older updater.phar version string v16.0.3-3-ga0c2b25 dirty appeared, but backup.log doesn’t reflect it.

Okay, I gave up.

I found, that in truenas the plugin comes with 21.0.1 already and gave the plugin-updater a try.

Because I upgraded the mysql-server from 57 to 80 formerly, I had to redo that again, because the databaseschema was already updated and stopped mysql57 (downgraded from 80 to 57 due top the plugin upgrade, which comes with FreeBSD 12.1-RELEASE-p13 jail (instead of 12.2-RELEASE-p3)).

So I removed mysql57 and installed mysql80.

Then I had to edit apcu.ini, because it throwed an error for occ. I had to add apc.enable_cli=1.

root@nextcloud:/usr/local/www/nextcloud # vi /usr/local/etc/php/ext-20-apcu.ini
extension=apcu.so
apc.enable_cli=1

On the browser I was prompted for the upgrade to 21.0.1, but that endet in an error.

So I had also adjust the ownership and group-write for the files in the nextcloud folder.

root@nextcloud:/usr/local/www/nextcloud # ~/occ.sh maintenance:mode --off
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
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
Maintenance mode disabled
root@nextcloud:/usr/local/www/nextcloud # ls -l
total 197
-rw-r--r--   1 root  www     2734 Apr  8 15:31 .htaccess
-rw-rw-r--   1 www   www      101 Apr  8 15:31 .user.ini
drwxrwx---   3 www   www        3 Apr  4  2019 .well-known
drwxrwx---  45 www   www       53 Apr 18 14:58 3rdparty
drwxr-xr-x  52 www   www       52 Apr 11 14:08 apps
drwxr-xr-x  47 root  wheel     47 Apr  8 15:32 apps-pkg
-rw-r--r--   1 root  wheel  17900 Apr  8 15:31 AUTHORS
drwxr-xr-x   2 www   www        8 Apr 18 15:23 config
-rw-r--r--   1 root  wheel   3900 Apr  8 15:31 console.php
-rw-r--r--   1 root  wheel  34520 Apr  8 15:31 COPYING
drwxrwx---  22 www   www       29 Apr 18 14:58 core
-rw-r--r--   1 root  wheel   5122 Apr  8 15:31 cron.php
drwxrwx---   8 www   www       14 Apr 11 14:08 data
-rw-r--r--   1 root  wheel    156 Apr  8 15:31 index.html
-rw-r--r--   1 root  wheel   2960 Apr  8 15:31 index.php
drwxrwx---   6 www   www        9 Apr 18 14:58 lib
-rw-r--r--   1 root  wheel    283 Apr  8 15:31 occ
drwxr-xr-x   2 root  www        3 Apr 18 14:58 ocm-provider
drwxr-xr-x   2 root  www        5 Apr 18 14:58 ocs
drwxr-xr-x   2 root  www        3 Apr 18 14:58 ocs-provider
-rw-r--r--   1 root  wheel   3144 Apr  8 15:31 public.php
-rw-r--r--   1 root  wheel   5341 Apr  8 15:31 remote.php
drwxr-xr-x   4 root  www        8 Apr 18 14:58 resources
-rw-r--r--   1 root  wheel     26 Apr  8 15:31 robots.txt
drwxrwx---   3 www   www        3 Aug 24  2020 settings
-rw-r--r--   1 root  wheel   2446 Apr  8 15:31 status.php
drwxr-xr-x   3 root  www        4 Apr 18 14:58 themes
drwxrwxr-x   2 www   www        5 Apr 18 14:58 updater
-rw-r--r--   1 root  wheel    382 Apr  8 15:32 version.php
root@nextcloud:/usr/local/www/nextcloud # chown -R www:www ../nextcloud
root@nextcloud:/usr/local/www/nextcloud # chmod -R g+w  ../nextcloud
root@nextcloud:/usr/local/www/nextcloud # ls -l
total 197
-rw-rw-r--   1 www  www   2734 Apr  8 15:31 .htaccess
-rw-rw-r--   1 www  www    101 Apr  8 15:31 .user.ini
drwxrwx---   3 www  www      3 Apr  4  2019 .well-known
drwxrwx---  45 www  www     53 Apr 18 14:58 3rdparty
drwxrwxr-x  52 www  www     52 Apr 11 14:08 apps
drwxrwxr-x  47 www  www     47 Apr  8 15:32 apps-pkg
-rw-rw-r--   1 www  www  17900 Apr  8 15:31 AUTHORS
drwxrwxr-x   2 www  www      8 Apr 18 15:23 config
-rw-rw-r--   1 www  www   3900 Apr  8 15:31 console.php
-rw-rw-r--   1 www  www  34520 Apr  8 15:31 COPYING
drwxrwx---  22 www  www     29 Apr 18 14:58 core
-rw-rw-r--   1 www  www   5122 Apr  8 15:31 cron.php
drwxrwx---   8 www  www     14 Apr 11 14:08 data
-rw-rw-r--   1 www  www    156 Apr  8 15:31 index.html
-rw-rw-r--   1 www  www   2960 Apr  8 15:31 index.php
drwxrwx---   6 www  www      9 Apr 18 14:58 lib
-rw-rw-r--   1 www  www    283 Apr  8 15:31 occ
drwxrwxr-x   2 www  www      3 Apr 18 14:58 ocm-provider
drwxrwxr-x   2 www  www      5 Apr 18 14:58 ocs
drwxrwxr-x   2 www  www      3 Apr 18 14:58 ocs-provider
-rw-rw-r--   1 www  www   3144 Apr  8 15:31 public.php
-rw-rw-r--   1 www  www   5341 Apr  8 15:31 remote.php
drwxrwxr-x   4 www  www      8 Apr 18 14:58 resources
-rw-rw-r--   1 www  www     26 Apr  8 15:31 robots.txt
drwxrwx---   3 www  www      3 Aug 24  2020 settings
-rw-rw-r--   1 www  www   2446 Apr  8 15:31 status.php
drwxrwxr-x   3 www  www      4 Apr 18 14:58 themes
drwxrwxr-x   2 www  www      5 Apr 18 14:58 updater
-rw-rw-r--   1 www  www    382 Apr  8 15:32 version.php
root@nextcloud:/usr/local/www/nextcloud # ~/occ.sh upgrade
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
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
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Disabled incompatible app: occweb
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 admin_audit in appstore
Checked for update of app "admin_audit" 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 dashboard in appstore
Checked for update of app "dashboard" in appstore
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore
Checking for update of app deck in appstore
Checked for update of app "deck" in appstore
Checking for update of app encryption in appstore
Checked for update of app "encryption" 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 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 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 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 user_status in appstore
Checked for update of app "user_status" in appstore
Checking for update of app viewer in appstore
Checked for update of app "viewer" in appstore
Checking for update of app weather_status in appstore
Checked for update of app "weather_status" in appstore
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore
Checking for update of app occweb in appstore
Checked for update of app "occweb" in appstore
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level
root@nextcloud:/usr/local/www/nextcloud #
root@nextcloud:/usr/local/www/nextcloud # freebsd-version
12.1-RELEASE-p13
root@nextcloud:/usr/local/www/nextcloud #

Now everything seems to be fine.

Sorry, I wasn’t able to do it manually from the point the installation stucked in the first place on “Entry points” and gave the message “Update in Process.”. Therefor I started over again from the trunas plugin-updater.