server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Upgrade 31.0.10 > 32.0.1 apps go missing

Open stoneubi opened this issue 1 year ago • 36 comments

⚠️ This issue respects the following points: ⚠️

Bug description

I would like to bring this topic into the issue report: https://help.nextcloud.com/t/upgrade-31-0-10-32-0-1-apps-go-missing/234715

Bug: I upgraded from 31.0.10 to 32.0.1 and all my apps are gone. No calendar, contacts, deck, passwords, NextPod, Mail, Memories, Forms are any more available.

Thanks to proxmox and my nextcloud server installed on an dietpi vm, I made a backup before and restored my backup. Otherwise this is a fatal error.

Steps to reproduce

  1. upgrade from 31.010 to 32.0.1
  2. open nextcloud
  3. check if metioned apps are still there

Expected behavior

All apps should be in status active after the upgrade.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • [x] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report


List of activated Apps


Nextcloud Signing status


Nextcloud Logs


Additional info

No response

stoneubi avatar Oct 30 '25 09:10 stoneubi

This happened for me when upgrading from 32.0.0 to 32.0.1. I used nextcloudpi as installation and used php8.3. I think it's mor an issue for NC v32 and not NC v31.

sirdrakeistda avatar Oct 30 '25 13:10 sirdrakeistda

has been reported in the forum https://help.nextcloud.com/t/upgrade-31-0-10-32-0-1-apps-go-missing/234715

mepreston avatar Nov 04 '25 19:11 mepreston

updated to 32.0.2 and problem seems to be fixed, maybe because of PRs https://github.com/nextcloud/server/pull/56061 or https://github.com/nextcloud/server/pull/55832 - anyways: thanks!

EDIT: ok, it seems the apps worked because NC restarted during the update, after some while i get the "not found" again. Restarting apache then helps again, but for how long? :/

x29a avatar Nov 20 '25 19:11 x29a

I upgraded from 31.0.11 to 32.0.2 and all my apps were missing. i've been using NC since the first release and i've never seen an upgrade go this badly before. If this is intended behavior it should have been listed in the release notes. If this is not intended behavior then the release testing should be updated to catch something like this before it is released.

mepreston avatar Nov 21 '25 17:11 mepreston

Digging through open issues before attempting to upgrade from v31 to v32 I discovered this issue. What did you affected users do? Are the apps physically deleted in the apps folder or are they "just" disabled?

Sounds like a deal-breaker to me at the moment. Rollbacks take too much time to trust and "just give it a try".

bcutter avatar Nov 23 '25 16:11 bcutter

Yesterday I updated from nc 31.0.10 to 31.0.11. All apps where still active.

After that I updated from 31.0.11 to 32.0.2 and all apps are still active and work correctly.

This time the update was successfull.

As mentioned everywhere, it is a must to backup the instance before every update to be able to rollback if things happen like this prior bug.

stoneubi avatar Nov 23 '25 16:11 stoneubi

Update from 31.0.11.2 to 32.0.2.2 worked without running into this issue.

bcutter avatar Nov 23 '25 19:11 bcutter

Just updated from 31.0.6 -> 32.0.2: All Apps gone, had to reinstall them Perhaps this log output during the update helps a bit:

Initializing nextcloud 32.0.2.2 ...
Upgrading nextcloud from 31.0.6.2 ...
=> Searching for hook scripts (*.sh) to run, located in the folder "/docker-entrypoint-hooks.d/pre-upgrade"
==> Skipped: the "pre-upgrade" folder is empty (or does not exist)
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Disabled incompatible app: collectives
Disabled incompatible app: contacts
Disabled incompatible app: deck
Disabled incompatible app: gpxpod
Disabled incompatible app: integration_deepl
Disabled incompatible app: integration_excalidraw
Disabled incompatible app: integration_giphy
Disabled incompatible app: integration_openstreetmap
Disabled incompatible app: mail
Disabled incompatible app: memories
Disabled incompatible app: notes
Disabled incompatible app: notify_push
Disabled incompatible app: onlyoffice
Disabled incompatible app: polls
Disabled incompatible app: previewgenerator
Disabled incompatible app: recognize
Disabled incompatible app: user_oidc
Disabled incompatible app: whiteboard
Updating <federation> ...
Updated <federation> to 1.22.0
Updating <lookup_server_connector> ...
Updated <lookup_server_connector> to 1.20.0
Updating <oauth2> ...
Updated <oauth2> to 1.20.0
Updating <password_policy> ...
Updated <password_policy> to 4.0.0-dev.0
Updating <photos> ...
Updated <photos> to 5.0.0-dev.1
Updating <user_ldap> ...
Updated <user_ldap> to 1.23.0
Updating <activity> ...
Updated <activity> to 5.0.0-dev.0
Updating <circles> ...
Updated <circles> to 32.0.0
Updating <cloud_federation_api> ...
Updated <cloud_federation_api> to 1.16.0
Updating <dav> ...
Fix broken values of calendar objects
 Starting ...
Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0/0 [>---------------------------]   0% Starting ...
 0/2 [>---------------------------]   0%
 Starting ...
Updated <dav> to 1.34.2
Updating <files> ...
Updated <files> to 2.4.0
Updating <files_external> ...
Updated <files_external> to 1.24.0
Updating <files_sharing> ...
Updated <files_sharing> to 1.24.1
Updating <files_trashbin> ...
Updated <files_trashbin> to 1.22.0
Updating <files_versions> ...
Updated <files_versions> to 1.25.0
Updating <sharebymail> ...
Updated <sharebymail> to 1.22.0
Updating <webhook_listeners> ...
Updated <webhook_listeners> to 1.3.0
Updating <workflowengine> ...
Updated <workflowengine> to 2.14.0
Updating <logreader> ...
Updated <logreader> to 5.0.0-dev.0
Updating <notifications> ...
Updated <notifications> to 5.0.0-dev.0
Updating <systemtags> ...
Updated <systemtags> to 1.22.0
Updating <theming> ...
Updated <theming> to 2.7.0
Updating <app_api> ...
Updated <app_api> to 32.0.0
Updating <dashboard> ...
Updated <dashboard> to 7.12.0
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 1.22.0
Updating <files_downloadlimit> ...
Updated <files_downloadlimit> to 5.0.0-dev.0
Updating <files_pdfviewer> ...
Updated <files_pdfviewer> to 5.0.0-dev.0
Updating <files_reminders> ...
Updated <files_reminders> to 1.5.0
Updating <profile> ...
Updated <profile> to 1.1.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 1.22.0
Updating <related_resources> ...
Updated <related_resources> to 3.0.0-dev.0
Updating <settings> ...
Updated <settings> to 1.15.1
Updating <text> ...
Updated <text> to 6.0.1
Updating <twofactor_backupcodes> ...
Updated <twofactor_backupcodes> to 1.21.0
Updating <twofactor_nextcloud_notification> ...
Updated <twofactor_nextcloud_notification> to 6.0.0-dev.0
Updating <updatenotification> ...
Updated <updatenotification> to 1.22.0
Updating <user_status> ...
Updated <user_status> to 1.12.0
Updating <viewer> ...
Updated <viewer> to 5.0.0-dev.0
Updating <weather_status> ...
Updated <weather_status> to 1.12.0
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level
The following apps have been disabled:
 activity
 app_api
 calendar
 circles
 cloud_federation_api
 collectives
 contacts
 cookbook
 dashboard
 dav
 deck
 drawio
 extract
 federatedfilesharing
 federation
 files
 files_downloadlimit
 files_external
 files_pdfviewer
 files_reminders
 files_sharing
 files_trashbin
 files_versions
 gpxpod
 integration_deepl
 integration_excalidraw
 integration_giphy
 integration_openstreetmap
 keeweb
 logreader
 lookup_server_connector
 mail
 memories
 news
 notes
 notifications
 notify_push
 oauth2
 onlyoffice
 password_policy
 photos
 polls
 previewgenerator
 profile
 provisioning_api
 recognize
 related_resources
 settings
 sharebymail
 spreed
 systemtags
 text
 theming
 twofactor_backupcodes
 twofactor_nextcloud_notification
 updatenotification
 user_ldap
 user_oidc
 user_status
 viewer
 weather_status
 webhook_listeners
 whiteboard
 workflowengine

Why does the log say, those apps got disabled? Even those which got succesfully updated a few lines above... Most of the mentioned apps where completely gone from the apps folders, a few even weren't disabled, but active (the files_* apps for example)

Very strange output IMHO....

t0mcat1337 avatar Nov 23 '25 22:11 t0mcat1337

Same issue here. Fortunately no data is lost, but it is extremely annoying to have to remember which apps you had installed, and to manually reinstall them one-by-one.

It is not the first time it has happened for me. The past two upgrades, the exact same thing happened.

In case it matters, I'm running Nextcloud via the Docker container.

Compizfox avatar Nov 24 '25 17:11 Compizfox

I'm running it in containers. This solution (chown -R your-webserver-user:your-webserver-user nextcloud_directory/) helped me. Maybe this also works for other installation methods.

tsueri avatar Nov 25 '25 01:11 tsueri

I'm also using the containerized version of nextcloud but running in Kubernetes, not via docker(-compose) for years now and never had this issue during updates. The filesystem permissions / ownerships also are correct (www-data:www-data) and never changed the last years, the html and data dir both resides at persistent volumes.

t0mcat1337 avatar Nov 25 '25 15:11 t0mcat1337

Since this update, the preview generation for .mp4 and .jpg isn't working anymore. Has somebody experienced the same issue?

sirdrakeistda avatar Dec 03 '25 10:12 sirdrakeistda

Today my Nextcloud container updated and once again all my apps are gone.

This is getting really annoying. I'm turning off updates for now. Meanwhile, is there anything I can do to help troubleshoot this issue?

Compizfox avatar Dec 12 '25 13:12 Compizfox

I am having the same issue with apps missing after updating. I am running mine in a ubuntu vm and manually updating. Have been doing it this way for years with no issues and now since nextcloud 32 have been dealing with this. My permissions seem all correct and I havent changed anything on how i update. I am now on 32.0.3 and all i have to do is go to the app store and reinstall all the apps then everything is back to normal however is a pain to do it that way. I have never been able to get the web updater to work right and always ends up stalling with parsing response failed so i am unable to try that.

csterling8 avatar Dec 13 '25 22:12 csterling8

I am seeing this same behaviour while upgrading to the last >=2 point releases. I'm also using docker with the nextcloud:apache image. As above, re-enabling the apps brings everything back but it's a pain.

geez0x1 avatar Dec 14 '25 14:12 geez0x1

Fun fact: If the desktop app sees shared folders / group folders are no longer available on the remote server (because the apps on the server were disabled, but the desktop app has no knowledge of this), it will unceremoniously delete all files locally. Shutting down the desktop app on all local computers is now an official step in our upgrade process. :P

RayCulp avatar Dec 20 '25 11:12 RayCulp

How many of you are on this image of docker? https://hub.docker.com/_/nextcloud

And how many of you migrated from an existing installation of nextcloud to the Docker version without doing all those steps described here: https://github.com/docker-library/docs/blob/master/nextcloud/README.md#migrating-an-existing-installation

Especially step 3.iii makes sure that new apps are installed into a separate directory instead of apps and therefore are preserved during upgrades/updates: https://github.com/nextcloud/docker/blob/master/32/apache/config/apps.config.php

I am not saying that is true for all of you, but at least for me that was the problem.

func0der avatar Dec 25 '25 15:12 func0der

not using docker

mepreston avatar Dec 26 '25 17:12 mepreston

@func0der thanks for this tidbit! I've actually been using the docker container for years (never migrated from a bare metal installation) and it looks like this has probably never been set up correctly. Not sure why it never caused problems previously, but fingers crossed they are no more!

mehalter avatar Dec 27 '25 02:12 mehalter

I'm not using Docker either and I experienced the Same issue.

Am 26. Dezember 2025 18:53:16 MEZ schrieb mark preston @.***>:

mepreston left a comment (nextcloud/server#56093)

not using docker

-- Reply to this email directly or view it on GitHub: https://github.com/nextcloud/server/issues/56093#issuecomment-3693169285 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

sirdrakeistda avatar Dec 27 '25 12:12 sirdrakeistda