# \[SOLVED\] Nextcloud fails to update

**URL:** https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267
**Category:** Support apps
**Tags:** nextcloud, update, english
**Created:** [January 28, 2024, 6:10pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267 "2024-01-28T18:10:08Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 28, 2024, 6:10pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/1 "2024-01-28T18:10:08Z")

</div>

**Hardware:** VPS bought online ( Contabo )  
**YunoHost version:** 11.2.9.1  
**I have access to my server :** Through SSH | through the webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoH**

i was just trying to update my nextcloud app, specifically from `v27.1.4` to `v28.0.1` and it crashed with an error.

i run this command  
`yunohost app upgrade nextcloud --force`  
following [this advice](https://forum.yunohost.org/t/issue-upgrading-nextcloud-app-via-web-ui/28230/2), but it didn’t work. same error.

now, when i navigate to my nextcloud page, i’ welcome by a blank page with this error

> Internal Server Error
> 
> The server encountered an internal error and was unable to complete your request.  
> Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.  
> More details can be found in the server log.

[here](https://paste.yunohost.org/raw/amedepavot) you can find the logs for the failed update.

this isn’t my main cloud, which now i’m scared to update even though in that case the update would be from `28.0.1~ynh1` to `28.0.1~ynh2`. should that be effortless?

---

<div class="post-metadata">

### Author: ![OniriCorpe](https://forum.yunohost.org/user_avatar/forum.yunohost.org/oniricorpe/32/3356_2.png) [@OniriCorpe](https://forum.yunohost.org/u/OniriCorpe)
#### Post date: [January 28, 2024, 7:04pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/2 "2024-01-28T19:04:18Z")

</div>

hi!

> Error: App “Breeze Dark” cannot be installed because the following dependencies are not fulfilled: Server version 27 or lower is required.

Breeze dark is incompatible with NextCloud 28, please disable it before upgrade, as asked in the pre-upgrade message

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 28, 2024, 8:48pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/3 "2024-01-28T20:48:43Z")

</div>

> [@unmy](#):
>
> now, when i navigate to my nextcloud page, i’ welcome by a blank page with this error
> 
> > Internal Server Error
> > 
> > The server encountered an internal error and was unable to complete your request.  
> > Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.  
> > More details can be found in the server log.

i cannot access my nextcloud anymore as i said in the op.

also, i don’t remember if the message was popping up yesterday, when i originally tried to update, that’s why i didn’t check.

if it did, i completely missed.

---

<div class="post-metadata">

### Author: ![OniriCorpe](https://forum.yunohost.org/user_avatar/forum.yunohost.org/oniricorpe/32/3356_2.png) [@OniriCorpe](https://forum.yunohost.org/u/OniriCorpe)
#### Post date: [January 28, 2024, 8:53pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/4 "2024-01-28T20:53:44Z")

</div>

can you try the following command please?

`sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ app:disable breezedark`

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 29, 2024, 9:03am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/5 "2024-01-29T09:03:12Z")

</div>

i tried with both the admin account and the main user with admin privileges and that’s the error message i receive:

`Sorry, user admin is not allowed to execute '/usr/bin/php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ app:disable breezedark' as nextcloud on domain.ltd.`

and if i try with root, i receive  
`No such app enabled: breezedark`

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 29, 2024, 12:09pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/6 "2024-01-29T12:09:35Z")

</div>

> [@unmy](#):
>
> `No such app enabled: breezedark`

Then you already disabled breezedark at some point

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 29, 2024, 5:18pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/7 "2024-01-29T17:18:12Z")

</div>

why would i be getting that error then: 😢

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 29, 2024, 5:56pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/8 "2024-01-29T17:56:39Z")

</div>

I mean maybe you did disable breezedark during all your attempts at disabling it, and you should re-try the upgrade

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 30, 2024, 10:03am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/9 "2024-01-30T10:03:03Z")

</div>

sorry, i get what you mean now. 😅

however, i tried again and got [the same error](https://paste.yunohost.org/raw/sekiwovase). tried both in the webadmin and ssh.

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 30, 2024, 10:13am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/10 "2024-01-30T10:13:40Z")

</div>

i thought of switching it app and running

`sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ app:enable breezedark`

as `root` and that’s the message i received:

`App "Breeze Dark" cannot be installed because it is not compatible with this version of the server.`

does it mean my app believes it is already updated to version 28.1 for some reason? 🙃

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 30, 2024, 2:54pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/11 "2024-01-30T14:54:52Z")

</div>

> [@unmy](#):
>
> i tried again and got [the same error](https://paste.yunohost.org/raw/sekiwovase). tried both in the webadmin and ssh.

I don’t know how / why it would try to update the app if it’s not installed …

Can you run the following and confirm that it doesn’t return anything ..?

```auto
cd /var/www/nextcloud
sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:list | grep dark

```

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 30, 2024, 5:39pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/12 "2024-01-30T17:39:53Z")

</div>

> [@Aleks](#):
>
> `sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:list | grep dark`

it actually returns this

```auto
- breezedark: 26.0.0 (installed 26.0.0)

```

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 30, 2024, 6:13pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/13 "2024-01-30T18:13:43Z")

</div>

Hmm my bad, i think there are “enabled” apps and “disabled” apps so let’s display the full list with

```auto
cd /var/www/nextcloud
sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:list

```

Is it listed in the enabled apps, or the disabled apps ?

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 31, 2024, 1:15am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/14 "2024-01-31T01:15:18Z")

</div>

it’s in the disabled apps:

```auto
Enabled:
  - activity: 2.19.0
  - calendar: 4.5.3
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_external: 1.19.0
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - fileslibreofficeedit: 1.1.0
  - firstrunwizard: 2.16.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - oauth2: 1.15.1
  - onlyoffice: 8.2.4
  - password_policy: 1.17.0
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - user_ldap: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - breezedark: 26.0.0 (installed 26.0.0)
  - bruteforcesettings: 2.7.0
  - encryption: 2.15.0
  - suspicious_login: 5.0.0
  - twofactor_totp: 9.0.0
  - updatenotification: 1.17.0 (installed 1.15.0)

```

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 31, 2024, 1:17am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/15 "2024-01-31T01:17:46Z")

</div>

Well that’s totally confusing, that goes beyond what I know about Nextcloud …

My guess is that when we tell it to “update” the apps, it want to update even apps that are not even enabled … Isn’t there anything in your Nextcloud admin interface to really uninstall the app, not just disable it ?

---

<div class="post-metadata">

### Author: ![OniriCorpe](https://forum.yunohost.org/user_avatar/forum.yunohost.org/oniricorpe/32/3356_2.png) [@OniriCorpe](https://forum.yunohost.org/u/OniriCorpe)
#### Post date: [January 31, 2024, 2:04am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/16 "2024-01-31T02:04:16Z")

</div>

> [@unmy](#):
>
> i cannot access my nextcloud anymore as i said in the op.

the web nextcloud admin interface is not accessible 😬

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 31, 2024, 2:10am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/17 "2024-01-31T02:10:53Z")

</div>

![psy](https://forum.yunohost.org/uploads/default/original/2X/c/ca5e7e4531640226f253f0bcc68bac280f601047.png)

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [January 31, 2024, 8:29am UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/18 "2024-01-31T08:29:03Z")

</div>

🥲 🥲 🥲

---

<div class="post-metadata">

### Author: ![snm](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@snm](https://forum.yunohost.org/u/snm)
#### Post date: [February 5, 2024, 1:45pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/19 "2024-02-05T13:45:03Z")

</div>

Maybe it helps to uninstall the app (`app:remove` instead of `app:disable`)?

```auto
sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ app:remove breezedark

```

---

<div class="post-metadata">

### Author: ![unmy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/u/dfb087/32.png) [@unmy](https://forum.yunohost.org/u/unmy)
#### Post date: [February 11, 2024, 3:14pm UTC](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267/20 "2024-02-11T15:14:52Z")

</div>

Yes, it worked! Thank you very much for your help!!! 🥳

[Next page](https://forum.yunohost.org/t/solved-nextcloud-fails-to-update/28267.md?page=2)
