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

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

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

The php log command gave me this :slight_smile:

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:~#

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

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

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

Good question… not that I can see.

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.

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

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

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

Error: "500"

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

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

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

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.

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 |
±------------------------------±------------------------------------------------------------------------------------------------------------------------+

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.

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

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

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

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?