I like NextCloud’s potential, and have been limping along with a linxuserver Docker instance for years. Unfortunately, (literally) every time I try to do an upgrade SOMETHING goes wrong. It got so bad I’ve re-installed my Docker twice just to avoid doing an update then just gave up and didn’t bother updating for a year.
Then I decided to try again, and the first 2 major version updates both failed with stuff I already knew how to fix, but the last one (to 22.2.6 → 23.0.3) threw this new issue at me:
[✔] Check for expected files [✔] Check for write permissions [✔] Create backup [✔] Downloading [✔] Verify integrity [ ] Extracting ...PHP Warning: require(/config/www/nextcloud/updater/../version.php): failed to open stream: No such file or directory in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658 PHP Fatal error: require(): Failed opening required '/config/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php7') in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658
Now my UI is stuck at “Update in process.”, “sudo -u abc php /config/www/nextcloud/updater/updater.phar” fails with the above, and “occ maintenance:repair” spits out “Could not open input file: /config/www/nextcloud/occ” (I checked, and indeed it doesn’t exist).
I’ve reviewed a few other posts with this error but they’re all pretty old (pre-v19) and I wasn’t able to apply them to my instance.
Are there any suggestion on how to recover this? If not, any thoughts on what I might be doing wrong at install to cause SO MUCH PAIN during updates?