File integrity check error when updating to 23.0.7 (nextcloud-new.log)

Nextcloud version: 25.0.3.2
Operating system and version: Ubuntu 22.04
Apache version: Apache/2.4.56 (Debian)
PHP version: PHP 8.1.18

The issue you are facing:

trying to update to 25.0.7, getting a file integrity check error of Check for expected files, The following extra files have been found: nextcloud-new.log. This error showed up previously when trying to upgrade to 23.0.5, couldn’t figure it out then, still can’t. any help appreciated, thank you!

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

N i previously saw it in the Admin section of Nextcloud. deleted the two extra files using the following commands in cli:

rm /var/www/nextcloud/ocs/nextcloud-new.log
rm /var/www/nextcloud/nextcloud-new.log

then when i searched again for the files, they were gone. tried to update and it seems they have been replaced pretty much instantly.

Steps to replicate it:

Attempt upgrade to 23.0.7

The output of your Nextcloud log in Admin > Logging:

No server logs
Everything is working fine

was able to fix it by editing my config.php:

‘logfile’ => ‘/var/log/nextcloud.log’

then deleting all instance of nextcloud.log and nextcloud_new.log on the system apart from the designated log file location.

automatic updater ran cleanly, after a second update now on 26.0.2.1 with A+ security rating.