Update 27.1.3 -> 27.1.4 and 27.1.4 -> 27.1.5 file missing

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): debian bookworm
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): 8.2

The issue you are facing:

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

I tried to upgrade from 27.1.3 to 27.1.4 via webupdater and finally i hat to do it manually. Now i try to update from 27.1.4 to 27.1.5 via cli according to https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html#using-the-command-line-based-updater
and the problem is exactly the same.

So i paste the output of the cli

The output of your Nextcloud log in Admin > Logging:

$ php --define apc.enable_cli=1 updater/updater.phar 
Nextcloud Updater - version: v27.1.0rc3-15-gfa7af53

Current version is 27.1.4.
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131

Update to Nextcloud 27.1.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-27.1.5.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[ ] Check for expected files ...PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  touch(): Unable to create file /mnt/nextcloud_data/updater-ocpexh709mp2/.step because No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1023
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
PHP Warning:  fopen(/mnt/nextcloud_data/updater.log): Failed to open stream: No such file or directory in phar:///var/www/nextcloud.schuerz.at/updater/updater.phar/lib/Updater.php on line 1131
[✘] Check for expected files failed
Could not create .step (and writing to log failed also with: Could not open updater.log)

Update failed. To resume or retry just execute the updater again.

I searched for the file “Updater.php” and got this:

$ find -name Updater.php
./lib/private/Updater.php
./lib/private/Files/Cache/Updater.php
./apps/files_sharing/lib/Updater.php

So the File /lib/Updater.php which is missing is really missing… it live in /lib/private/Updater.php

This happened first on installing nextcloud 27.1.3.

How can i fix this?

/mnt/nextcloud_data/updater.log exists and is writeable to the user www-data

What are the permissions and ownership information for /mnt/nextcloud_data?

Anything unusual about that filesystem mount point?

So the File /lib/Updater.php which is missing is really missing… it live in /lib/private/Updater.php

It’s referring to the one in the phar. It’s not missing, but referencing a code line that is having issues opening files and folders in /mnt/nextcloud_data for writing.

What type of filesystem is it?