Nextcloud Update Error Check for expected files failed - nextcloud-data

Hello everyone, thanks in advance for your help.

Nextcloud version: 20.0.1
Operating system and version: Ubuntu 20.04 Proxmox LXC Container (Linux nc 5.4.78-2-pve #1 SMP PVE 5.4.78-2 (Thu, 03 Dec 2020 14:26:17 +0100) x86_64 x86_64 x86_64 GNU/Linux)
Apache or nginx version: nginx 1.18.0-0ubuntu1
PHP version: 7.4

I’ve been experiencing an update error for quite some time but never got to it.

root@nc:~# sudo -u www-data php /usr/share/nginx/nextcloud/updater/updater.phar -vv
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 20.0.1.

Update to Nextcloud 20.0.8 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-20.0.8.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 failed
The following extra files have been found:
    nextcloud-data

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

I’m assuming I messed up some permissions or I have a duplicate file called ‘nextcloud-data’ lying around somewhere hidden. The error message doesn’t really provide a path, so I’m assuming it’s in the nextcloud root directory. In my case that would be

root@nc:~# ls -la /usr/share/nginx/nextcloud/
total 168
drwxr-x--- 14 www-data www-data  4096 Jan 31 04:46 .
drwxr-xr-x  5 root     root      4096 Nov 18 15:57 ..
-rw-r-----  1 www-data www-data  3122 Nov 18 16:27 .htaccess
-rw-r-----  1 www-data www-data   101 Oct 24 08:37 .user.ini
drwxr-x--- 41 www-data www-data  4096 Oct 24 08:39 3rdparty
-rw-r-----  1 www-data www-data 17234 Oct 24 08:37 AUTHORS
-rw-r-----  1 www-data www-data 34520 Oct 24 08:37 COPYING
drwxr-x--- 53 www-data www-data  4096 Jan 21 06:55 apps
drwxr-x---  2 www-data www-data  4096 Jan 25 02:58 config
-rw-r-----  1 www-data www-data  3893 Oct 24 08:37 console.php
drwxr-x--- 22 www-data www-data  4096 Oct 24 08:39 core
-rw-r-----  1 www-data www-data  5083 Oct 24 08:37 cron.php
-rw-r-----  1 www-data www-data   156 Oct 24 08:37 index.html
-rw-r-----  1 www-data www-data  2960 Oct 24 08:37 index.php
drwxr-x---  6 www-data www-data  4096 Oct 24 08:37 lib
drwxr-x---  9 www-data www-data  4096 Feb 25 01:00 nextcloud-data
-rw-r-----  1 www-data www-data   283 Oct 24 08:37 occ
drwxr-x---  2 www-data www-data  4096 Oct 24 08:37 ocm-provider
drwxr-x---  2 www-data www-data  4096 Oct 24 08:37 ocs
drwxr-x---  2 www-data www-data  4096 Oct 24 08:37 ocs-provider
-rw-r-----  1 www-data www-data  3102 Oct 24 08:37 public.php
-rw-r-----  1 www-data www-data  5332 Oct 24 08:37 remote.php
drwxr-x---  4 www-data www-data  4096 Oct 24 08:37 resources
-rw-r-----  1 www-data www-data    26 Oct 24 08:37 robots.txt
-rw-r-----  1 www-data www-data  2379 Oct 24 08:37 status.php
drwxr-x---  3 www-data www-data  4096 Oct 24 08:37 themes
drwxr-x---  2 www-data www-data  4096 Oct 24 08:38 updater
-rw-r-----  1 www-data www-data   362 Oct 24 08:39 version.php

Thanks again for any help!