# Nextcloud upgrade repeated failure due to incompatible NC apps with v32 (that also breaks Immich)

**URL:** <https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727>\
**Category:** Support apps\
**Tags:** nextcloud, english\
**Created:** [March 3, 2026, 10:49am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727 "2026-03-03T10:49:49Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 5, 2026, 4:14pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/21 "2026-03-05T16:14:47Z")

</div>

> [@marc](#):
>
> sudo yunohost log share /var/log/nextcloud/nextcloud.log

otm, I dont think so, I never added anything that I am aware of . It seems to point to localhost. See scree scrape.

 ![LDAP Screenshot 2026-03-05 161146](https://forum.yunohost.org/uploads/default/original/2X/c/cc5499bfb6d7f73b416503a9327034252af95305.jpeg)

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 5, 2026, 4:22pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/22 "2026-03-05T16:22:22Z")

</div>

> [@marc](#):
>
> sudo yunohost log share /var/log/nextcloud/nextcloud.log

I tried to run this command but it seems to just run in an infinite loop and does not end. Sorry.

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 5, 2026, 4:23pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/23 "2026-03-05T16:23:16Z")

</div>

The php log command gave me this 🙂

root@giliker:~# ls /var/log | grep php8.3  
php8.3-fpm.log  
php8.3-fpm.log.1  
php8.3-fpm.log.10.gz  
php8.3-fpm.log.11.gz  
php8.3-fpm.log.12.gz  
php8.3-fpm.log.2.gz  
php8.3-fpm.log.3.gz  
php8.3-fpm.log.4.gz  
php8.3-fpm.log.5.gz  
php8.3-fpm.log.6.gz  
php8.3-fpm.log.7.gz  
php8.3-fpm.log.8.gz  
php8.3-fpm.log.9.gz  
root@giliker:~#

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 5, 2026, 4:24pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/24 "2026-03-05T16:24:19Z")

</div>

Does any of the above help? Thanks for the assistance,

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 5, 2026, 4:28pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/25 "2026-03-05T16:28:19Z")

</div>

otm, ahhh, perhaps that’s what you mean, it is empty?

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [March 5, 2026, 5:19pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/26 "2026-03-05T17:19:54Z")

</div>

The drop-down doesn’t show any other server?

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 5, 2026, 5:44pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/27 "2026-03-05T17:44:35Z")

</div>

Good question… not that I can see.

 ![image](https://forum.yunohost.org/uploads/default/original/2X/1/1fb80a1457594d61dd540268c331ab55139d2eb7.png)

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [March 5, 2026, 6:10pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/28 "2026-03-05T18:10:55Z")

</div>

I would try this:

- back up Nextcloud first and make sure there is a valid backup.
- In LDAP/AD integration, ensure that servers n°2 and n°3 are empty and delete them.
- Retry the upgrade.

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 7:05am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/29 "2026-03-06T07:05:19Z")

</div>

i will try this tonight. in the meantime look what i spotted ///

 ![image](https://forum.yunohost.org/uploads/default/original/2X/b/b454854ceadb9555a0a7c9e91eb0aab134084e8e.png)

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 7:06am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/30 "2026-03-06T07:06:08Z")

</div>

i deleted the second and third ldap and that warning has gone.

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 3:07pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/31 "2026-03-06T15:07:11Z")

</div>

I tried the upgrade….. Sadly, it failed again with this message:-

**Error** : `"500"`

**Action** : `"PUT" /yunohost/api/apps/nextcloud/upgrade`

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 3:10pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/32 "2026-03-06T15:10:01Z")

</div>

I may be mistaken but I spotted and interesting fact. I did a manual backup of Nextcloud this morning as advised by otm33. This backup is 3.5Gb. The backup created by the system just before the upgrade is only 1.4Gb. Could it be that the automatic backup is failing NOT the actual install of the new version of Nextcloud?

It implies the backup script is complete but perhaps NOT the actual backup? See below. What is this ‘Backup Core Only’ setting? Its not something I recognise as setting.

**While processing the action the server said:**

Collecting files to be backed up for nextcloud…

Declaring files to be backed up…

/home/yunohost.app/nextcloud will not be saved, because ‘BACKUP\_CORE\_ONLY’ is set.

/var/log/nextcloud will not be saved, because ‘BACKUP\_CORE\_ONLY’ is set.

Backing up the MySQL database…

Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).

[https://paste.yunohost.org/raw/galigitala](https://paste.yunohost.org/raw/galigitala)

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [March 6, 2026, 4:08pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/33 "2026-03-06T16:08:12Z")

</div>

Size difference is normal, pre-upgrade doesn’t include data (in /home/yunohost.app/nextcloud)

So, I didn’t get through all your posts but we can make some basic checks :

sudo yunohost app shell nextcloud

php occ app:update

php occ db:add-missing-indices

php occ maintenance:repair --include-expensive

# # ldap check

php occ ldap:show-config

php occ ldap:test config

php occ ldap:show-remnants

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 4:18pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/34 "2026-03-06T16:18:55Z")

</div>

I will try these shortly.I noticed something else that’s really wierd. You will tell me it’s just a coincidence but it happens every time…. When my Nextcloud update fails, it restores itself really fast (as if it wasnt removed ) but….. My Immich instance on the server ALWAYS starts to give a 502 Bad gateway. This happens every time. I fix it by removing Immich and then resoring from a recent Backup and everything is fine again. AM I imagining a link betweek these two issues? update - I think it may be 502 bad gateway I can’t quite remember.

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 4:23pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/35 "2026-03-06T16:23:21Z")

</div>

> [@jarod5001](#):
>
> php occ ldap:show-config

nextcloud@giliker:~$ php occ ldap:show-config  
±------------------------------±------------------------------------------------------------------------------------------------------------------------+  
| Configuration | |  
±------------------------------±------------------------------------------------------------------------------------------------------------------------+  
| hasMemberOfFilterSupport | 1 |  
| homeFolderNamingRule | |  
| lastJpegPhotoLookup | 0 |  
| ldapAdminGroup | |  
| ldapAgentName | |  
| ldapAgentPassword | \*\*\* |  
| ldapAttributeAddress | |  
| ldapAttributeAnniversaryDate | |  
| ldapAttributeBiography | |  
| ldapAttributeBirthDate | |  
| ldapAttributeFediverse | |  
| ldapAttributeHeadline | |  
| ldapAttributeOrganisation | |  
| ldapAttributePhone | |  
| ldapAttributePronouns | |  
| ldapAttributeRole | |  
| ldapAttributeTwitter | |  
| ldapAttributeWebsite | |  
| ldapAttributesForGroupSearch | |  
| ldapAttributesForUserSearch | |  
| ldapBackgroundHost | |  
| ldapBackgroundPort | |  
| ldapBackupHost | |  
| ldapBackupPort | 389 |  
| ldapBase | dc=yunohost,dc=org |  
| ldapBaseGroups | ou=groups,dc=yunohost,dc=org |  
| ldapBaseUsers | ou=users,dc=yunohost,dc=org |  
| ldapCacheTTL | 600 |  
| ldapConfigurationActive | 1 |  
| ldapConnectionTimeout | 15 |  
| ldapDefaultPPolicyDN | |  
| ldapDynamicGroupMemberURL | |  
| ldapEmailAttribute | mail |  
| ldapExperiencedAdmin | 0 |  
| ldapExpertUUIDGroupAttr | |  
| ldapExpertUUIDUserAttr | |  
| ldapExpertUsernameAttr | uid |  
| ldapExtStorageHomeAttribute | |  
| ldapGidNumber | gidnumber |  
| ldapGroupDisplayName | cn |  
| ldapGroupFilter | (&(objectclass=top)(memberUid=\*)) |  
| ldapGroupFilterGroups | |  
| ldapGroupFilterMode | 0 |  
| ldapGroupFilterObjectclass | posixGroup |  
| ldapGroupMemberAssocAttr | memberuid |  
| ldapHost | localhost |  
| ldapIgnoreNamingRules | |  
| ldapLoginFilter | (&(|(objectclass=posixAccount))(|(uid=%uid)(mail=%uid))(permission=cn=nextcloud.main,ou=permission,dc=yunohost,dc=org)) |  
| ldapLoginFilterAttributes | |  
| ldapLoginFilterEmail | 0 |  
| ldapLoginFilterMode | 0 |  
| ldapLoginFilterUsername | 1 |  
| ldapMatchingRuleInChainState | unknown |  
| ldapNestedGroups | 0 |  
| ldapOverrideMainServer | |  
| ldapPagingSize | 500 |  
| ldapPort | 389 |  
| ldapQuotaAttribute | userquota |  
| ldapQuotaDefault | |  
| ldapTLS | 0 |  
| ldapUserAvatarRule | default |  
| ldapUserDisplayName | displayname |  
| ldapUserDisplayName2 | |  
| ldapUserFilter | objectclass=posixAccount |  
| ldapUserFilterGroups | |  
| ldapUserFilterMode | 0 |  
| ldapUserFilterObjectclass | posixAccount |  
| ldapUuidGroupAttribute | auto |  
| ldapUuidUserAttribute | auto |  
| markRemnantsAsDisabled | 0 |  
| turnOffCertCheck | 0 |  
| turnOnPasswordChange | 0 |  
| useMemberOfToDetectMembership | 1 |  
±------------------------------±------------------------------------------------------------------------------------------------------------------------+

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 4:24pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/36 "2026-03-06T16:24:49Z")

</div>

> [@jarod5001](#):
>
> php occ ldap:test config

Command “ldap:test” is ambiguous.  
Did you mean one of these?  
ldap:test-config tests an LDAP configuration  
ldap:test-user-settings Runs tests and show information about user related LDAP settings.

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 4:25pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/37 "2026-03-06T16:25:32Z")

</div>

> [@jarod5001](#):
>
> php occ ldap:show-remnants

nextcloud@giliker:~$ php occ ldap:show-remnants  
±---------------±-------------±---------±--------±-----------±------------±----±-------+  
| Nextcloud name | Display Name | LDAP UID | LDAP DN | Last Login | Detected on | Dir | Sharer |  
±---------------±-------------±---------±--------±-----------±------------±----±-------+  
nextcloud@giliker:~$

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 4:31pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/38 "2026-03-06T16:31:55Z")

</div>

Jarod, are the below commands going to gather info or try to force the Nextcloud update? I only ask as my famiy will kill me if I screw the Immich service again today…

php occ app:update

php occ db:add-missing-indices

php occ maintenance:repair --include-expensive

---

<div class="post-metadata">

**Author:** ![tzb6js](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tzb6js/32/11899_2.png) [@tzb6js](https://forum.yunohost.org/u/tzb6js)\
**Post date:** [March 6, 2026, 4:32pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/39 "2026-03-06T16:32:59Z")

</div>

YNH has become very important to my family! What a great product and support team.

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [March 6, 2026, 9:04pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727/40 "2026-03-06T21:04:21Z")

</div>

This will update the nextcloud apps. NC apps need to be updated, you can do this from the webui in nextcloud. The other two commands will fix NC db issues that sometimes break the upgrade.

But that’s very weird that updating NC breaks immich.

Do you have anything special in your immich config?

Can you share the last upgrade and restore of NC THAT broke immich?

[Previous page](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727.md?page=1)

[Next page](https://forum.yunohost.org/t/nextcloud-upgrade-repeated-failure-due-to-incompatible-nc-apps-with-v32-that-also-breaks-immich/41727.md?page=3)
