Update to Nextcloud 24.0.0 beta 2 error- The following extra files have been found: dist

Please help with error during update

[root@nextcloud nextcloud]# sudo -u apache php ./updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 24.0.0 beta 1.

Update to Nextcloud 24.0.0 beta 2 available. (channel: “beta”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/prereleases/nextcloud-24.0.0beta2.zip

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:
dist

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

[root@nextcloud nextcloud]# ls -la
total 180
drwxr-xr-x. 15 apache apache  4096 Apr  1 19:50 .
drwxr-xr-x.  4 root   root    4096 Apr  1 19:33 ..
drwxr-xr-x. 43 apache apache  4096 Mar 31 18:07 3rdparty
drwxr-xr-x. 49 apache apache  4096 Mar 31 18:12 apps
-rw-r--r--.  1 apache apache 19327 Mar 24 20:59 AUTHORS
drwxr-xr-x.  2 apache apache  4096 Mar 31 18:12 config
-rw-r--r--.  1 apache apache  3924 Mar 24 20:59 console.php
-rw-r--r--.  1 apache apache 34520 Mar 24 20:59 COPYING
drwxr-xr-x. 22 apache apache  4096 Mar 31 18:07 core
-rw-r--r--.  1 apache apache  6050 Mar 24 20:59 cron.php
drwxrwx---.  8 apache apache  4096 Feb 27  2020 data
**drwxr-xr-x.  2 apache apache 12288 Mar 31 18:07 dist**
-rw-r--r--.  1 apache apache  3363 Mar 31 18:12 .htaccess
-rw-r--r--.  1 apache apache   156 Mar 24 20:59 index.html
-rw-r--r--.  1 apache apache  3456 Mar 24 20:59 index.php
drwxr-xr-x.  6 apache apache  4096 Mar 31 18:07 lib
-rw-r--r--.  1 apache apache   283 Mar 24 20:59 occ
drwxr-xr-x.  2 apache apache  4096 Mar 31 18:07 ocm-provider
drwxr-xr-x.  2 apache apache  4096 Mar 31 18:07 ocs
drwxr-xr-x.  2 apache apache  4096 Mar 31 18:07 ocs-provider
-rw-r--r--.  1 apache apache  3139 Mar 24 20:59 public.php
-rw-r--r--.  1 apache apache  5340 Mar 24 20:59 remote.php
drwxr-xr-x.  4 apache apache  4096 Mar 31 18:07 resources
-rw-r--r--.  1 apache apache    26 Mar 24 20:59 robots.txt
-rw-r--r--.  1 apache apache  2452 Mar 24 20:59 status.php
drwxr-xr-x.  3 apache apache  4096 Mar 31 18:07 themes
drwxr-xr-x.  2 apache apache  4096 Mar 22 13:40 updater
-rw-r--r--.  1 apache apache   101 Mar 24 20:59 .user.ini
-rw-r--r--.  1 apache apache   369 Mar 24 21:04 version.php
[root@nextcloud nextcloud]# ls -la ./dist/
total 32948
drwxr-xr-x.  2 apache apache    12288 Mar 31 18:07 .
drwxr-xr-x. 15 apache apache     4096 Apr  1 19:50 ..
-rw-r--r--.  1 apache apache     7750 Mar 24 20:59 accessibility-accessibility.js
-rw-r--r--.  1 apache apache      842 Mar 24 20:59 accessibility-accessibility.js.LICENSE.txt
-rw-r--r--.  1 apache apache    25651 Mar 24 20:59 accessibility-accessibility.js.map
-rw-r--r--.  1 apache apache     2498 Mar 24 20:59 accessibility-accessibilityoca.js
-rw-r--r--.  1 apache apache      894 Mar 24 20:59 accessibility-accessibilityoca.js.LICENSE.txt
-rw-r--r--.  1 apache apache    11892 Mar 24 20:59 accessibility-accessibilityoca.js.map
-rw-r--r--.  1 apache apache    31408 Mar 24 20:59 comments-comments-app.js
-rw-r--r--.  1 apache apache     1684 Mar 24 20:59 comments-comments-app.js.LICENSE.txt
-rw-r--r--.  1 apache apache    87288 Mar 24 20:59 comments-comments-app.js.map
-rw-r--r--.  1 apache apache     4425 Mar 24 20:59 comments-comments.js
-rw-r--r--.  1 apache apache     1772 Mar 24 20:59 comments-comments.js.LICENSE.txt
-rw-r--r--.  1 apache apache    18355 Mar 24 20:59 comments-comments.js.map
-rw-r--r--.  1 apache apache     1133 Mar 24 20:59 comments-comments-tab.js
-rw-r--r--.  1 apache apache      842 Mar 24 20:59 comments-comments-tab.js.LICENSE.txt
-rw-r--r--.  1 apache apache     2749 Mar 24 20:59 comments-comments-tab.js.map
-rw-r--r--.  1 apache apache  8791994 Mar 24 20:59 core-common.js
-rw-r--r--.  1 apache apache    47069 Mar 24 20:59 core-common.js.LICENSE.txt
-rw-r--r--.  1 apache apache 19131194 Mar 24 20:59 core-common.js.map
-rw-r--r--.  1 apache apache    12121 Mar 24 20:59 core-files_client.js
-rw-r--r--.  1 apache apache     1282 Mar 24 20:59 core-files_client.js.LICENSE.txt
-rw-r--r--.  1 apache apache    51615 Mar 24 20:59 core-files_client.js.map
-rw-r--r--.  1 apache apache      747 Mar 24 20:59 core-files_fileinfo.js
-rw-r--r--.  1 apache apache      927 Mar 24 20:59 core-files_fileinfo.js.LICENSE.txt
-rw-r--r--.  1 apache apache     4392 Mar 24 20:59 core-files_fileinfo.js.map
-rw-r--r--.  1 apache apache     6602 Mar 24 20:59 core-install.js
-rw-r--r--.  1 apache apache     2989 Mar 24 20:59 core-install.js.LICENSE.txt
-rw-r--r--.  1 apache apache    29180 Mar 24 20:59 core-install.js.map
-rw-r--r--.  1 apache apache   116264 Mar 24 20:59 core-login.js
-rw-r--r--.  1 apache apache     8008 Mar 24 20:59 core-login.js.LICENSE.txt
-rw-r--r--.  1 apache apache   411496 Mar 24 20:59 core-login.js.map
-rw-r--r--.  1 apache apache   136902 Mar 24 20:59 core-main.js
-rw-r--r--.  1 apache apache    19449 Mar 24 20:59 core-main.js.LICENSE.txt
-rw-r--r--.  1 apache apache   461254 Mar 24 20:59 core-main.js.map
-rw-r--r--.  1 apache apache     2411 Mar 24 20:59 core-maintenance.js
-rw-r--r--.  1 apache apache    12026 Mar 24 20:59 core-maintenance.js.map
-rw-r--r--.  1 apache apache    26865 Mar 24 20:59 core-profile.js
-rw-r--r--.  1 apache apache      815 Mar 24 20:59 core-profile.js.LICENSE.txt
-rw-r--r--.  1 apache apache    71353 Mar 24 20:59 core-profile.js.map
-rw-r--r--.  1 apache apache    10887 Mar 24 20:59 core-recommendedapps.js
-rw-r--r--.  1 apache apache      840 Mar 24 20:59 core-recommendedapps.js.LICENSE.txt
-rw-r--r--.  1 apache apache    37281 Mar 24 20:59 core-recommendedapps.js.map
-rw-r--r--.  1 apache apache    21568 Mar 24 20:59 core-systemtags.js
-rw-r--r--.  1 apache apache     4596 Mar 24 20:59 core-systemtags.js.LICENSE.txt
-rw-r--r--.  1 apache apache    72937 Mar 24 20:59 core-systemtags.js.map
-rw-r--r--.  1 apache apache    39206 Mar 24 20:59 core-unified-search.js
-rw-r--r--.  1 apache apache     1835 Mar 24 20:59 core-unified-search.js.LICENSE.txt
-rw-r--r--.  1 apache apache   104195 Mar 24 20:59 core-unified-search.js.map
-rw-r--r--.  1 apache apache    35926 Mar 24 20:59 dashboard-main.js
-rw-r--r--.  1 apache apache      824 Mar 24 20:59 dashboard-main.js.LICENSE.txt
-rw-r--r--.  1 apache apache    84262 Mar 24 20:59 dashboard-main.js.map
-rw-r--r--.  1 apache apache    10091 Mar 24 20:59 dav-settings-admin-caldav.js
-rw-r--r--.  1 apache apache    33035 Mar 24 20:59 dav-settings-admin-caldav.js.map
-rw-r--r--.  1 apache apache    13171 Mar 24 20:59 dav-settings-personal-availability.js
-rw-r--r--.  1 apache apache      843 Mar 24 20:59 dav-settings-personal-availability.js.LICENSE.txt
-rw-r--r--.  1 apache apache    33182 Mar 24 20:59 dav-settings-personal-availability.js.map
-rw-r--r--.  1 apache apache    23967 Mar 24 20:59 files-main.js
-rw-r--r--.  1 apache apache     5202 Mar 24 20:59 files-main.js.LICENSE.txt
-rw-r--r--.  1 apache apache    73912 Mar 24 20:59 files-main.js.map
-rw-r--r--.  1 apache apache     9993 Mar 24 20:59 files-personal-settings.js
-rw-r--r--.  1 apache apache      966 Mar 24 20:59 files-personal-settings.js.LICENSE.txt
-rw-r--r--.  1 apache apache    34931 Mar 24 20:59 files-personal-settings.js.map
-rw-r--r--.  1 apache apache    13952 Mar 24 20:59 files_sharing-additionalScripts.js
-rw-r--r--.  1 apache apache     2768 Mar 24 20:59 files_sharing-additionalScripts.js.LICENSE.txt
-rw-r--r--.  1 apache apache    53054 Mar 24 20:59 files_sharing-additionalScripts.js.map
-rw-r--r--.  1 apache apache      556 Mar 24 20:59 files_sharing-collaboration.js
-rw-r--r--.  1 apache apache     2510 Mar 24 20:59 files_sharing-collaboration.js.map
-rw-r--r--.  1 apache apache    16043 Mar 24 20:59 files_sharing-files_sharing.js
-rw-r--r--.  1 apache apache    52164 Mar 24 20:59 files_sharing-files_sharing.js.map
-rw-r--r--.  1 apache apache   102924 Mar 24 20:59 files_sharing-files_sharing_tab.js
-rw-r--r--.  1 apache apache     7498 Mar 24 20:59 files_sharing-files_sharing_tab.js.LICENSE.txt
-rw-r--r--.  1 apache apache   302377 Mar 24 20:59 files_sharing-files_sharing_tab.js.map
-rw-r--r--.  1 apache apache      371 Mar 24 20:59 files_sharing-main.js
-rw-r--r--.  1 apache apache      885 Mar 24 20:59 files_sharing-main.js.LICENSE.txt
-rw-r--r--.  1 apache apache     1850 Mar 24 20:59 files_sharing-main.js.map
-rw-r--r--.  1 apache apache     9138 Mar 24 20:59 files_sharing-personal-settings.js
-rw-r--r--.  1 apache apache      900 Mar 24 20:59 files_sharing-personal-settings.js.LICENSE.txt
-rw-r--r--.  1 apache apache    33403 Mar 24 20:59 files_sharing-personal-settings.js.map
-rw-r--r--.  1 apache apache    24794 Mar 24 20:59 files-sidebar.js
-rw-r--r--.  1 apache apache      842 Mar 24 20:59 files-sidebar.js.LICENSE.txt
-rw-r--r--.  1 apache apache    68498 Mar 24 20:59 files-sidebar.js.map
-rw-r--r--.  1 apache apache    11314 Mar 24 20:59 files_trashbin-files_trashbin.js
-rw-r--r--.  1 apache apache     2996 Mar 24 20:59 files_trashbin-files_trashbin.js.LICENSE.txt
-rw-r--r--.  1 apache apache    40573 Mar 24 20:59 files_trashbin-files_trashbin.js.map
-rw-r--r--.  1 apache apache    16643 Mar 24 20:59 files_versions-files_versions.js
-rw-r--r--.  1 apache apache     2825 Mar 24 20:59 files_versions-files_versions.js.LICENSE.txt
-rw-r--r--.  1 apache apache    54376 Mar 24 20:59 files_versions-files_versions.js.map
-rw-r--r--.  1 apache apache    14147 Mar 24 20:59 oauth2-oauth2.js
-rw-r--r--.  1 apache apache      952 Mar 24 20:59 oauth2-oauth2.js.LICENSE.txt
-rw-r--r--.  1 apache apache    41292 Mar 24 20:59 oauth2-oauth2.js.map
-rw-r--r--.  1 apache apache     5447 Mar 24 20:59 settings-apps.js
-rw-r--r--.  1 apache apache    18455 Mar 24 20:59 settings-apps.js.map
-rw-r--r--.  1 apache apache    51032 Mar 24 20:59 settings-apps-view-7418.js
-rw-r--r--.  1 apache apache   138982 Mar 24 20:59 settings-apps-view-7418.js.map
-rw-r--r--.  1 apache apache     9013 Mar 24 20:59 settings-legacy-admin.js
-rw-r--r--.  1 apache apache    20234 Mar 24 20:59 settings-legacy-admin.js.map
-rw-r--r--.  1 apache apache    80921 Mar 24 20:59 settings-users-8351.js
-rw-r--r--.  1 apache apache      938 Mar 24 20:59 settings-users-8351.js.LICENSE.txt
-rw-r--r--.  1 apache apache   188707 Mar 24 20:59 settings-users-8351.js.map
-rw-r--r--.  1 apache apache     9343 Mar 24 20:59 settings-vue-settings-admin-basic-settings.js
-rw-r--r--.  1 apache apache     2465 Mar 24 20:59 settings-vue-settings-admin-basic-settings.js.LICENSE.txt
-rw-r--r--.  1 apache apache    36417 Mar 24 20:59 settings-vue-settings-admin-basic-settings.js.map
-rw-r--r--.  1 apache apache     5922 Mar 24 20:59 settings-vue-settings-admin-delegation.js
-rw-r--r--.  1 apache apache      826 Mar 24 20:59 settings-vue-settings-admin-delegation.js.LICENSE.txt
-rw-r--r--.  1 apache apache    24253 Mar 24 20:59 settings-vue-settings-admin-delegation.js.map
-rw-r--r--.  1 apache apache    13611 Mar 24 20:59 settings-vue-settings-admin-security.js
-rw-r--r--.  1 apache apache     1839 Mar 24 20:59 settings-vue-settings-admin-security.js.LICENSE.txt
-rw-r--r--.  1 apache apache    36827 Mar 24 20:59 settings-vue-settings-admin-security.js.map
-rw-r--r--.  1 apache apache    22808 Mar 24 20:59 settings-vue-settings-apps-users-management.js
-rw-r--r--.  1 apache apache     1831 Mar 24 20:59 settings-vue-settings-apps-users-management.js.LICENSE.txt
-rw-r--r--.  1 apache apache    86995 Mar 24 20:59 settings-vue-settings-apps-users-management.js.map
-rw-r--r--.  1 apache apache     2405 Mar 24 20:59 settings-vue-settings-nextcloud-pdf.js
-rw-r--r--.  1 apache apache      842 Mar 24 20:59 settings-vue-settings-nextcloud-pdf.js.LICENSE.txt
-rw-r--r--.  1 apache apache    11632 Mar 24 20:59 settings-vue-settings-nextcloud-pdf.js.map
-rw-r--r--.  1 apache apache   115325 Mar 24 20:59 settings-vue-settings-personal-info.js
-rw-r--r--.  1 apache apache     1629 Mar 24 20:59 settings-vue-settings-personal-info.js.LICENSE.txt
-rw-r--r--.  1 apache apache   329904 Mar 24 20:59 settings-vue-settings-personal-info.js.map
-rw-r--r--.  1 apache apache    26116 Mar 24 20:59 settings-vue-settings-personal-security.js
-rw-r--r--.  1 apache apache      892 Mar 24 20:59 settings-vue-settings-personal-security.js.LICENSE.txt
-rw-r--r--.  1 apache apache    78543 Mar 24 20:59 settings-vue-settings-personal-security.js.map
-rw-r--r--.  1 apache apache    22365 Mar 24 20:59 settings-vue-settings-personal-webauthn.js
-rw-r--r--.  1 apache apache      829 Mar 24 20:59 settings-vue-settings-personal-webauthn.js.LICENSE.txt
-rw-r--r--.  1 apache apache    54800 Mar 24 20:59 settings-vue-settings-personal-webauthn.js.map
-rw-r--r--.  1 apache apache    11524 Mar 24 20:59 systemtags-systemtags.js
-rw-r--r--.  1 apache apache     2808 Mar 24 20:59 systemtags-systemtags.js.LICENSE.txt
-rw-r--r--.  1 apache apache    45997 Mar 24 20:59 systemtags-systemtags.js.map
-rw-r--r--.  1 apache apache    10394 Mar 24 20:59 twofactor_backupcodes-settings.js
-rw-r--r--.  1 apache apache     2740 Mar 24 20:59 twofactor_backupcodes-settings.js.LICENSE.txt
-rw-r--r--.  1 apache apache    33832 Mar 24 20:59 twofactor_backupcodes-settings.js.map
-rw-r--r--.  1 apache apache    23093 Mar 24 20:59 updatenotification-updatenotification.js
-rw-r--r--.  1 apache apache      886 Mar 24 20:59 updatenotification-updatenotification.js.LICENSE.txt
-rw-r--r--.  1 apache apache    59096 Mar 24 20:59 updatenotification-updatenotification.js.map
-rw-r--r--.  1 apache apache     9582 Mar 24 20:59 user_status-dashboard.js
-rw-r--r--.  1 apache apache      809 Mar 24 20:59 user_status-dashboard.js.LICENSE.txt
-rw-r--r--.  1 apache apache    32378 Mar 24 20:59 user_status-dashboard.js.map
-rw-r--r--.  1 apache apache    31982 Mar 24 20:59 user_status-menu.js
-rw-r--r--.  1 apache apache     2557 Mar 24 20:59 user_status-menu.js.LICENSE.txt
-rw-r--r--.  1 apache apache    84900 Mar 24 20:59 user_status-menu.js.map
-rw-r--r--.  1 apache apache    21713 Mar 24 20:59 user-status-modal-8299.js
-rw-r--r--.  1 apache apache    74349 Mar 24 20:59 user-status-modal-8299.js.map
-rw-r--r--.  1 apache apache    68373 Mar 24 20:59 weather_status-weather-status.js
-rw-r--r--.  1 apache apache     1649 Mar 24 20:59 weather_status-weather-status.js.LICENSE.txt
-rw-r--r--.  1 apache apache    74933 Mar 24 20:59 weather_status-weather-status.js.map
-rw-r--r--.  1 apache apache    94459 Mar 24 20:59 workflowengine-workflowengine.js
-rw-r--r--.  1 apache apache     2744 Mar 24 20:59 workflowengine-workflowengine.js.LICENSE.txt
-rw-r--r--.  1 apache apache   226441 Mar 24 20:59 workflowengine-workflowengine.js.map

if i delete dist dir - nextcloud stop working

Please help
Thanks

delete this file.

if i delete dist directory - nextcloud stop working

if i delete dist directory - nextcloud stop working

Hopefully dist isn’t the place you installed your dist-upgrades in…

Anyway. I just want to make sure that you are not trying to update your productive instance and that you’re having a very recent backup.

If you’d have a backup is about time to restore it just now, I think.

If you were about upgrading your productive instance you better think twice of it if you’re not exactly sure how to handle problems.

i try upgrade from GUI and from shell - same result. did not installed your dist-upgrades in some particular place. not chose dist dir like destination.

have backup for now. now nextcloud is working. but can’t upgrade.

don’t know how to solve this. so asking community help.

Look like this is error of 24 beta

restore from backup to ver 23
upgrade to 24.0.0 beta 2 directly

and find dist dir in root of nextcloud

Then please report it to the bug tracker:

I have the same problem when updating from 24.0.0 beta2 to 24.0.0. beta3 and have now opened an issue about it: [Bug]: Update 24.0.0 beta2 to beta3 · Issue #31891 · nextcloud/server · GitHub

image

can confirm that problem exist if upgrade from 23 to 24b1
and also from 24b1 to 24b2
and from 23 to 24b2

they just close it…

I updated from 24.0.0.12 to 24.0.1.1 - stable versions, no beta. I got the same error: unexpected file “dist” (which is a directory). I removed it from the Netxtcloud root and continued the update. It worked perfectly. There is a new directory dist created now. I think, the updater hast to be fixed, seeing the dist directory as known and expected file.

@franz.hartwig if you would have looked into the GH issue you’d see that it’s still open (or better: opened again) and that it comes from a faulty updater.phar. And they don’t know why the faulty one isn’t gonne be replaced by newer ones, yet. At least that’s what I understood from it.

If you’d follow the links given there you’d stumble across someone giving out the hint: try updating from commandline https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html#using-the-command-line-based-updater

1 Like

Bumped into the exact same case. I simply:

  1. temporarily moved the directory to wherever Nextcloud doesn’t know, (in my case /home/pi)
  2. passed the checking step, and then
  3. put the directory back to where it originally was.

Seems like it worked for me, hope this helps.

1 Like

When upgrading from 23 to 24.0 I changed to Beta channel. Upgraded succesfully. Then changed back to stable and ran into same issue described here when trying to upgrade to 24.0.2 . I did what @eojin suggested and it worked. I succesfully upgraded to 24.0.2 on stable channel. Cheers and thanks

1 Like

OK, Upgrade from 24 to 25 improved: ist has this message without dist being in the nextcloud-folder… What if I can’t find a DIST to remove?

I think you try to look in the /nextcloud folder (it’s an absolute path!). Since your are already in the folder, you should use a find . -name ... in order to use the current folder.

Hello to all.
My version is
Current version is 26.0.3. Update to Nextcloud 26.0.4 available. (channel: “stable”)
I have the same problem.
My data folder is mounted over NFS with Synology storage .
In nextcloud/public_html/cloud/data
I ty to start upgrade over Web interface and is stopped and say :slight_smile:
The following extra files have been found: : the cloud
The cloud is new path of data folder.
I found in folder nextcloud/updater/index.php you found around the line 229 with //Folders and after folders around the line 248 //Files add here you new folder if is needed or files if is need to you.
After this entry to file you can start the upgrade over the update or over the console.