Recover failed update to 28

[/details]

Nextcloud version (eg, 20.0.5): ‘version’ => ‘27.1.9.1’
Operating system and version (eg, Ubuntu 20.04): Linux 4.19.0-22-amd64 x86_64
Apache or nginx version (eg, Apache 2.4.25): …
PHP version (eg, 7.4): 8.1.28
The issue you are facing:

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

Steps to replicate it:

  1. Start web updater to
    update from nextcloud-27.1.9.1-1715256349
  2. update web-display got “white” during update
  3. calling https://domain/updater results in (see below)
  4. Opening the base address results in a white screen
    INFO: latest backup in /data/updater…/backups: nextcloud-27.1.9.1-1715256349
  • Initializing
    Current version is 28.0.5.
    Update to Nextcloud 28.0.5 available. (channel: “stable”)
    Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-28.0.5.zip
    Open changelog :arrow_upper_right:
  • Check for expected files
  • Check for write permissions
  • Create backup
  • Downloading
  • Verifying integrity
  • Extracting
  • Enable maintenance mode
  • Replace entry points
  • Delete old files
  • Move new files in place
  • Continue with web based updater
  • Done

all dots are green check marks

I wonder why current version is equal to update to, while in config.php is still ‘version’ => ‘27.1.9.1’ in

Any hint on how to re initialize the update?

The output of your Nextcloud updater.log in Admin > Logging:

...
    [version] => 28.0.5.1
    [versionstring] => Nextcloud 28.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.5.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => VjsEJXdfI+ELdcE0gR38zgw3+XSOpc4w7OFzg0bDHC3UWOyyXEKRs3DiaPk/262Q
B10V4b+GJ4WC4P6/LpAzHcEpJ4KX1J2MWE0eq3Pr22SayUH09XcYhXSapvgmc0Om
3wY5p8NRr9cNwi0Uslw/OhCovFTtj2I0xEgC6aHi6I+p8Z3V67LvkFE3YZP9nEpH
5hag3acwdQgbwVrMImz3pUEFKS0fsYSq3AkaPK3URHlZLaLsS6fo2ntWVVbrEjFQ
tPHQD87NDyadODwLr3guqLTgpm79quGcowGHO7qadL3Z44uB3xaW4w+iAg9VzQJ1
jwPKhVqxSKaSozkwU85D7A==
)

2024-05-09T14:06:22+0200 y3uyqt6WgT [info] storage location exists
2024-05-09T14:06:26+0200 y3uyqt6WgT [info] end of downloadUpdate()
2024-05-09T14:06:26+0200 y3uyqt6WgT [info] endStep("4")
2024-05-09T14:06:26+0200 CarMaly0fv [info] request to updater
2024-05-09T14:06:26+0200 CarMaly0fv [info] currentStep()
2024-05-09T14:06:26+0200 CarMaly0fv [info] Step 4 is in state "end".
2024-05-09T14:06:26+0200 CarMaly0fv [info] POST request for step "5"
2024-05-09T14:06:26+0200 CarMaly0fv [info] startStep("5")
2024-05-09T14:06:26+0200 CarMaly0fv [info] verifyIntegrity()
2024-05-09T14:06:26+0200 CarMaly0fv [info] getUpdateServerResponse()
2024-05-09T14:06:26+0200 CarMaly0fv [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-05-09T14:06:26+0200 CarMaly0fv [info] releaseChannel: stable
2024-05-09T14:06:26+0200 CarMaly0fv [info] internal version: 27.1.9.1
2024-05-09T14:06:26+0200 CarMaly0fv [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x1x9x1xxxstablexx2024-04-25T08%3A10%3A37%2B00%3A00+a1dda4117e7e50b85f1bb90f438057459df60a30x8x1x28
2024-05-09T14:06:26+0200 CarMaly0fv [info] getUpdateServerResponse response: Array
(
    [version] => 28.0.5.1
    [versionstring] => Nextcloud 28.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.5.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => VjsEJXdfI+ELdcE0gR38zgw3+XSOpc4w7OFzg0bDHC3UWOyyXEKRs3DiaPk/262Q
B10V4b+GJ4WC4P6/LpAzHcEpJ4KX1J2MWE0eq3Pr22SayUH09XcYhXSapvgmc0Om
3wY5p8NRr9cNwi0Uslw/OhCovFTtj2I0xEgC6aHi6I+p8Z3V67LvkFE3YZP9nEpH
5hag3acwdQgbwVrMImz3pUEFKS0fsYSq3AkaPK3URHlZLaLsS6fo2ntWVVbrEjFQ
tPHQD87NDyadODwLr3guqLTgpm79quGcowGHO7qadL3Z44uB3xaW4w+iAg9VzQJ1
jwPKhVqxSKaSozkwU85D7A==
)

2024-05-09T14:06:26+0200 CarMaly0fv [info] storage location: /var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater-ocn5bhmx1f4f/downloads/
2024-05-09T14:06:27+0200 CarMaly0fv [info] end of verifyIntegrity()
2024-05-09T14:06:27+0200 CarMaly0fv [info] endStep("5")
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] request to updater
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] currentStep()
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] Step 5 is in state "end".
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] POST request for step "6"
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] startStep("6")
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] extractDownload()
2024-05-09T14:06:27+0200 xaMsSlGmQT [info] storage location: /var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater-ocn5bhmx1f4f/downloads/
2024-05-09T14:06:32+0200 xaMsSlGmQT [info] end of extractDownload()
2024-05-09T14:06:32+0200 xaMsSlGmQT [info] endStep("6")
2024-05-09T14:06:32+0200 orkN0GIMKf [info] request to updater
2024-05-09T14:06:32+0200 orkN0GIMKf [info] currentStep()
2024-05-09T14:06:32+0200 orkN0GIMKf [info] Step 6 is in state "end".
2024-05-09T14:06:32+0200 orkN0GIMKf [info] POST request for step "7"
2024-05-09T14:06:32+0200 orkN0GIMKf [info] startStep("7")
2024-05-09T14:06:32+0200 orkN0GIMKf [info] setMaintenanceMode("true")
2024-05-09T14:06:32+0200 orkN0GIMKf [info] configFileName /var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/updater/../config/config.php
2024-05-09T14:06:32+0200 orkN0GIMKf [info] end of setMaintenanceMode()
2024-05-09T14:06:32+0200 orkN0GIMKf [info] endStep("7")
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] request to updater
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] currentStep()
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] Step 7 is in state "end".
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] POST request for step "8"
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] startStep("8")
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replaceEntryPoints()
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replace index.php
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replace status.php
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replace remote.php
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replace public.php
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replace ocs/v1.php
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] replace ocs/v2.php
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] end of replaceEntryPoints()
2024-05-09T14:06:32+0200 tBm5TO6GgH [info] endStep("8")
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] request to updater
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] currentStep()
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] Step 8 is in state "end".
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] POST request for step "9"
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] startStep("9")
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] deleteOldFiles()
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] config sample exists
2024-05-09T14:06:32+0200 3DaHQXXY8I [info] themes README exists
2024-05-09T14:07:03+0200 3DaHQXXY8I [info] end of deleteOldFiles()
2024-05-09T14:07:03+0200 3DaHQXXY8I [info] endStep("9")
2024-05-09T14:07:03+0200 ncV6bjrylY [info] request to updater
2024-05-09T14:07:03+0200 ncV6bjrylY [info] currentStep()
2024-05-09T14:07:03+0200 ncV6bjrylY [info] Step 9 is in state "end".
2024-05-09T14:07:03+0200 ncV6bjrylY [info] POST request for step "10"
2024-05-09T14:07:03+0200 ncV6bjrylY [info] startStep("10")
2024-05-09T14:07:03+0200 ncV6bjrylY [info] moveNewVersionInPlace()
2024-05-09T14:07:03+0200 ncV6bjrylY [info] storage location: /var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater-ocn5bhmx1f4f/downloads/nextcloud/
2024-05-09T14:07:05+0200 ncV6bjrylY [info] end of moveNewVersionInPlace()
2024-05-09T14:07:05+0200 ncV6bjrylY [info] endStep("10")
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] request to updater
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] currentStep()
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] Step 10 is in state "end".
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] POST request for step "11"
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] startStep("11")
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] setMaintenanceMode("false")
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] configFileName /var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/updater/../config/config.php
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] end of setMaintenanceMode()
2024-05-09T14:07:28+0200 hyMtlwp8c1 [info] endStep("11")
2024-05-09T14:07:28+0200 41gMC3RbIH [info] request to updater
2024-05-09T14:07:28+0200 41gMC3RbIH [info] currentStep()
2024-05-09T14:07:28+0200 41gMC3RbIH [info] Step 11 is in state "end".
2024-05-09T14:07:28+0200 41gMC3RbIH [info] POST request for step "12"
2024-05-09T14:07:28+0200 41gMC3RbIH [info] startStep("12")
2024-05-09T14:07:28+0200 41gMC3RbIH [info] finalize()
2024-05-09T14:07:28+0200 41gMC3RbIH [info] storage location: /var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater-ocn5bhmx1f4f/downloads/nextcloud/
2024-05-09T14:07:28+0200 41gMC3RbIH [info] call opcache_reset()
2024-05-09T14:07:28+0200 41gMC3RbIH [info] end of finalize()
2024-05-09T14:07:28+0200 41gMC3RbIH [info] endStep("12")
2024-05-09T14:08:48+0200 TMPlMtNz49 [info] request to updater
2024-05-09T14:08:48+0200 TMPlMtNz49 [info] currentStep()
2024-05-09T14:08:48+0200 TMPlMtNz49 [info] Step 12 is in state "end".
2024-05-09T14:08:48+0200 TMPlMtNz49 [info] show HTML page
2024-05-09T14:08:48+0200 TMPlMtNz49 [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:09:03+0200 cpLnHcIZqU [info] request to updater
2024-05-09T14:09:03+0200 cpLnHcIZqU [info] currentStep()
2024-05-09T14:09:03+0200 cpLnHcIZqU [info] Step 12 is in state "end".
2024-05-09T14:09:03+0200 cpLnHcIZqU [info] show HTML page
2024-05-09T14:09:03+0200 cpLnHcIZqU [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:09:24+0200 uPWBRptBqk [info] request to updater
2024-05-09T14:09:24+0200 uPWBRptBqk [info] currentStep()
2024-05-09T14:09:24+0200 uPWBRptBqk [info] Step 12 is in state "end".
2024-05-09T14:09:24+0200 uPWBRptBqk [info] show HTML page
2024-05-09T14:09:24+0200 uPWBRptBqk [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:09:31+0200 mRBrkeWqj7 [info] request to updater
2024-05-09T14:09:31+0200 mRBrkeWqj7 [info] currentStep()
2024-05-09T14:09:31+0200 mRBrkeWqj7 [info] Step 12 is in state "end".
2024-05-09T14:09:31+0200 mRBrkeWqj7 [info] show HTML page
2024-05-09T14:09:31+0200 mRBrkeWqj7 [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:10:52+0200 Y9dJ3XMoJR [info] request to updater
2024-05-09T14:10:52+0200 Y9dJ3XMoJR [info] currentStep()
2024-05-09T14:10:52+0200 Y9dJ3XMoJR [info] Step 12 is in state "end".
2024-05-09T14:10:52+0200 Y9dJ3XMoJR [info] show HTML page
2024-05-09T14:10:52+0200 Y9dJ3XMoJR [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:12:18+0200 BbUAt2mBWL [info] request to updater
2024-05-09T14:12:18+0200 BbUAt2mBWL [info] currentStep()
2024-05-09T14:12:18+0200 BbUAt2mBWL [info] Step 12 is in state "end".
2024-05-09T14:12:18+0200 BbUAt2mBWL [info] show HTML page
2024-05-09T14:12:18+0200 BbUAt2mBWL [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:18:29+0200 6CD0QF0eb6 [info] request to updater
2024-05-09T14:18:29+0200 6CD0QF0eb6 [info] currentStep()
2024-05-09T14:18:29+0200 6CD0QF0eb6 [info] Step 12 is in state "end".
2024-05-09T14:18:29+0200 6CD0QF0eb6 [info] show HTML page
2024-05-09T14:18:29+0200 6CD0QF0eb6 [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:24:38+0200 P1HfgmPefa [info] request to updater
2024-05-09T14:24:38+0200 P1HfgmPefa [info] currentStep()
2024-05-09T14:24:38+0200 P1HfgmPefa [info] Step 12 is in state "end".
2024-05-09T14:24:38+0200 P1HfgmPefa [info] show HTML page
2024-05-09T14:24:38+0200 P1HfgmPefa [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:24:43+0200 hYf4MKKPA1 [info] request to updater
2024-05-09T14:24:43+0200 hYf4MKKPA1 [info] currentStep()
2024-05-09T14:24:43+0200 hYf4MKKPA1 [info] Step 12 is in state "end".
2024-05-09T14:24:43+0200 hYf4MKKPA1 [info] show HTML page
2024-05-09T14:24:43+0200 hYf4MKKPA1 [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T14:30:15+0200 3XASdPQi18 [info] request to updater
2024-05-09T14:30:15+0200 3XASdPQi18 [info] currentStep()
2024-05-09T14:30:15+0200 3XASdPQi18 [info] Step 12 is in state "end".
2024-05-09T14:30:15+0200 3XASdPQi18 [info] show HTML page
2024-05-09T14:30:15+0200 3XASdPQi18 [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T15:25:49+0200 OPU4JpSftY [info] request to updater
2024-05-09T15:25:49+0200 OPU4JpSftY [info] currentStep()
2024-05-09T15:25:49+0200 OPU4JpSftY [info] Step 12 is in state "end".
2024-05-09T15:25:49+0200 OPU4JpSftY [info] show HTML page
2024-05-09T15:25:49+0200 OPU4JpSftY [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T20:36:06+0200 GzP0XHBoSE [info] request to updater
2024-05-09T20:36:06+0200 GzP0XHBoSE [info] currentStep()
2024-05-09T20:36:06+0200 GzP0XHBoSE [info] Step 12 is in state "end".
2024-05-09T20:36:06+0200 GzP0XHBoSE [info] show HTML page
2024-05-09T20:36:06+0200 GzP0XHBoSE [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
2024-05-09T20:36:09+0200 X3buTLHuhb [info] request to updater
2024-05-09T20:36:09+0200 X3buTLHuhb [info] currentStep()
2024-05-09T20:36:09+0200 X3buTLHuhb [info] Step 12 is in state "end".
2024-05-09T20:36:09+0200 X3buTLHuhb [info] show HTML page
2024-05-09T20:36:09+0200 X3buTLHuhb [info] current version: 28.0.5 build time: 2024-04-25T08:32:45+00:00 0d911312f51625a3693e6ae2304da243e259eade
...

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

<?php
$CONFIG = array (
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '...',
  'trusted_domains' => 
  array (
    0 => 'cloud7.cape-coop.eu',
  ),
  'datadirectory' => '/var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data',
  'dbtype' => 'mysql',
  'version' => '27.1.9.1',
  'overwrite.cli.url' => 'https://cloud7.cape-coop.eu',
  'dbname' => '...',
  'dbhost' => '...:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '...',
  'dbpassword' => '...',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'log_rotate_size' => 100 * 1024 * 1024,
  'simpleSignUpLink.shown' => false,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'team',
  'mail_domain' => 'cape-coop.eu',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'cape-coop.eu',
  'mail_smtpname' => 'team@cape-coop.eu',
  'mail_smtppassword' => '...',
  'mail_smtpport' => '..',
  'default_phone_region' => 'DE',
  'updater.secret' => '...',
  'app_install_overwrite' => 
  array (
    0 => 'twofactor_u2f',
    1 => 'drawio',
    2 => 'impersonate',
  ),
);

Because the db migrations haven’t run yet so you’re ~50% fully through the upgrade process. The migrations only run after the Updater completes. Either if you say “no” to running the web based upgrader (the equivalent of “occ upgrade”) at the end of the Updater run - or if you run it yourself from the command line.

  • update web-display got “white” during update

Any idea what step that occurred at? And how did it turn white? Was it showing the check marks then suddenly the entire screen went white or was this after a browser refresh/reload?

Opening the base address results in a white screen

Hmm. Based on your logs, the Updater did its part and finished. What happens if you run occ upgrade from the command line at this point?

Hi,

From the Nextcloud documentation: “PHP 8.3 is now supported, but 8.2 is recommended.” https://docs.nextcloud.com/server/latest/admin_manual/release_notes/upgrade_to_28.html

Could this be caused by PHP8.1 you are running?

This doesn’t seem to occur the first time …
see here and the solution there as well

Maybe it is a good idea to repeat the update / upgrade process only via occ Commands?!

Could this be caused by PHP8.1 you are running?

No. v28 still supports PHP 8.1.

Also, the Updater checks the PHP version requirements ahead of time.

The Updater (which they’ve done via the Web UI) has a command client equivalent, but it is updater.phar not an occ command. I would not rerun it just yet. Plus given they made it to step 12, rerunning is likely impossible since the code has already been replaced.

Based on the logs posted the Updater stage effectively finished.

I would suggest running the next step though, since the web UI is not triggering it for some reason: occ upgrade which will give clarity about the real state of things. It’ll either proceed and finish the db migrations… Or it’ll give us possibly some more info.

i switched to 8.2, but no change.

Performing an update via ssh results in an error:

bash-5.0$ php updater.phar
Nextcloud Updater - version: v28.0.2rc2-1-gba2e50f dirty

PHP Warning:  fopen(/var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater.log): Failed to open stream: No such file or directory in phar:///httpdocs/cloud7.cape-coop.eu/updater/updater.phar/lib/Updater.php on line 1156
Could not open updater.log
bash-5.0$

and the occ upgrade brings:

bash-5.0$ php occ upgrade
The current PHP memory limit is below the recommended value of 512MB.
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
Cannot create "data" directory.
This can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/28/go.php?to=admin-dir_permissions

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /httpdocs/cloud7.cape-coop.eu/lib/private/Console/Application.php:167
Stack trace:
#0 /httpdocs/cloud7.cape-coop.eu/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /httpdocs/cloud7.cape-coop.eu/occ(11): require_once('/httpdocs/cloud...')
#2 {main}bash-5.0$ 

PHP Memory Linit is set to 1024, by the way.

same here:

bash-5.0$ php --define apc.enable_cli=1 updater.phar
Nextcloud Updater - version: v28.0.2rc2-1-gba2e50f dirty

PHP Warning:  fopen(/var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater.log): Failed to open stream: No such file or directory in phar:///httpdocs/cloud7.cape-coop.eu/updater/updater.phar/lib/Updater.php on line 1156
Could not open updater.log
bash-5.0$ 

PHP Memory Linit is set to 1024, by the way.

Not for the CLI it isn’t (per the output). Don’t forget: PHP has multiple configurations. The one for CLI mode is distinct from the one used for web.

Try php -d memory_limit=512M occ upgrade

PHP Warning: fopen(/var/www/vhosts/bz-orga.eu/httpdocs/cloud7.cape-coop.eu/data/updater.log): Failed to open stream: No such file or directory in phar:///httpdocs/cloud7.cape-coop.eu/updater/updater.phar/lib/Updater.php on line 1156

This is just a standard PHP fopen() call. If this is failing, something weird is going on.

Can you share any details about the underlying filesystem? Is it locally hosted? An NFS mount? etc.

I missed this the first read through. This further suggests there is something weird either about the filesystem or maybe ownership.

Are you certain that your logged in user at the command line is the owner of and/or has access to all all your Nextcloud folders?