# Nextcloud upgrade from 32.0.6~ynh1 to 33.0.2~ynh1 fails

**URL:** <https://forum.yunohost.org/t/nextcloud-upgrade-from-32-0-6-ynh1-to-33-0-2-ynh1-fails/42126>\
**Category:** Support apps\
**Tags:** nextcloud, update, english\
**Created:** [April 22, 2026, 4:14pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-from-32-0-6-ynh1-to-33-0-2-ynh1-fails/42126 "2026-04-22T16:14:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [April 22, 2026, 4:48pm UTC](https://forum.yunohost.org/t/nextcloud-upgrade-from-32-0-6-ynh1-to-33-0-2-ynh1-fails/42126/4 "2026-04-22T16:48:49Z")

</div>

So you have the same issue as explain here

> [@Nextcloud upgrade from 32.0.5~ynh1 to 32.0.6~ynh1 fails](https://forum.yunohost.org/t/nextcloud-upgrade-from-32-0-5-ynh1-to-32-0-6-ynh1-fails/41678/4):
>
> So, a closer look into the upgrade script revealed, that my situation (having ldap config without prefix used to be normal) had already been contemplated by alexAubin, thus modifying the setting ldap\_config\_prefix from ldap\_config\_prefix: s02 to ldap\_config\_prefix: '' was sufficient to take advantage of the upgrade logic and smoothly transition to 32.0.6! # Before NCv32, Yunohost was not using any prefix for the LDAP config. # This is now mandatory so we need to create a new config with a prefi…

You need have a prefix for LDAP config…

try a shell in nextcloud

`yunohost app shell nextcloud`

and then then copy-paste this bloc

```auto

if ["$ldap_config_prefix" = ""]
then
    ldap_config_prefix=$(exec_occ ldap:create-empty-config --only-print-prefix)
    ynh_app_setting_set --key=ldap_config_prefix --value="$ldap_config_prefix"
fi

```

---

_[View the full topic](https://forum.yunohost.org/t/nextcloud-upgrade-from-32-0-6-ynh1-to-33-0-2-ynh1-fails/42126)._
