# NC17 update - ! disable group folders app before performing the update of your server!

**URL:** <https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112>\
**Category:** 🎁 Releases\
**Tags:** update\_problems, nc17\
**Created:** [October 1, 2019, 12:08pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112 "2019-10-01T12:08:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [October 1, 2019, 12:08pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/1 "2019-10-01T12:08:06Z")

</div>

Hello everyone,

There is an issue right now with the group folders app which may leave you with a blank page during the update to NC17.

**Please make sure to disable the app “Group folders” before you perform the update to NC17 via the web updater!**  
After the update to NC17 check that the app “Group folders” is updated to version 5.x.  
If not, update the app manually. After the app update, you can enable “Group folders” again.

In case you already ran into this issue, please:

- login to your server via ssh
- run the occ command “upgrade”:  
`sudo -u <web user> php /path/to/nc/occ upgrade`

Ref:

> <https://github.com/nextcloud/server/issues/17338>
>
> Hello,
> Im facing a bug from my NC 16 updated to NC 17 r2 instance.
> After a suc…cessful updating process, it wanted to load the web interface and caused the Error 500.
> No access is possible.
> In the php error log, I got this information:
> 
> \[Mon Sep 30 11:40:59 2019\] \[warn\] \[client 94.223.33.225\] mod\_fcgid: stderr: PHP Fatal error: Declaration of OCA\\\\GroupFolders\\\\Versions\\\\VersionsBackend::getVersionFile(OCP\\\\IUser $user, OCP\\\\Files\\\\FileInfo $sourceFile, int $revision): OCP\\\\Files\\\\File must be compatible with OCA\\\\Files\_Versions\\\\Versions\\\\IVersionBackend::getVersionFile(OCP\\\\IUser $user, OCP\\\\Files\\\\FileInfo $sourceFile, $revision): OCP\\\\Files\\\\File in /var/www/virtual/petrk/nextcloud.xxx/apps/groupfolders/lib/Versions/VersionsBackend.php on line 37
> \[Mon Sep 30 11:41:01 2019\] \[warn\] \[client 66.102.8.52\] mod\_fcgid: stderr: PHP Fatal error: Declaration of OCA\\\\GroupFolders\\\\Versions\\\\VersionsBackend::getVersionFile(OCP\\\\IUser $user, OCP\\\\Files\\\\FileInfo $sourceFile, int $revision): OCP\\\\Files\\\\File must be compatible with OCA\\\\Files\_Versions\\\\Versions\\\\IVersionBackend::getVersionFile(OCP\\\\IUser $user, OCP\\\\Files\\\\FileInfo $sourceFile, $revision): OCP\\\\Files\\\\File in /var/www/virtual/petrk/nextcloud.xxx/apps/groupfolders/lib/Versions/VersionsBackend.php on line 37
> 
> I hope you can help me to restore it to bring it back to work.
> 
> Greets

> [@Web updater from NC 16.0.4 to 17 doesn't work with group folders. Use command line](https://help.nextcloud.com/t/web-updater-from-nc-16-0-4-to-17-doesnt-work-with-group-folders-use-command-line/61110/):
>
> Updated several instances of NC using web updater. From 16.0.5 was ok. From 16.0.4 after first stage (to continue with web update) page doesn’t work (Internal error 500). Had to use occ upgrade command to finish update. Logfile contains this error: [proxy\_fcgi:error] (…) AH01071: Got error ‘PHP message: PHP Fatal error: Declaration of OCA\GroupFolders\Versions\VersionsBackend::getVersionFile(OCP\IUser $user, OCP\Files\FileInfo $sourceFile, int $revision): OCP\Files\File must be compatible …

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [October 1, 2019, 12:08pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/2 "2019-10-01T12:08:51Z")

</div>



---

<div class="post-metadata">

**Author:** ![Sumaleth](https://help.nextcloud.com/letter_avatar/sumaleth/32/5_5575768a8748004e209b776fc1b2916d.png) [@Sumaleth](https://help.nextcloud.com/u/Sumaleth)\
**Post date:** [October 1, 2019, 5:11pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/3 "2019-10-01T17:11:54Z")

</div>

I read somewhere that all of the apps should be disabled before attempting any upgrade; is that still true? Or just “group folders” if it’s present?

I have a _lot_ of NextCloud apps to upgrade (probably thousands) so I’m looking for a smart way to automate this. I thought about running this:

```
UPDATE `{$PREFIX}appconfig` SET `configvalue`='no' WHERE `appid`!='core' AND `configkey`='enabled' AND `configvalue`='yes'

```

And that does appear to work, but it leaves the app looking rather bare after the upgrade so I’m not sure if it’s a good idea or not. This is the list of apps that it disables for an upgrade from 16.0.5:

```
accessibility
activity
bruteforcesettings
cloud_federation_api
comments
dav
federatedfilesharing
federation
files
files_pdfviewer
files_rightclick
files_sharing
files_texteditor
files_trashbin
files_versions
files_videoplayer
firstrunwizard
gallery
logreader
lookup_server_connector
nextcloud_announcements
notifications
oauth2
password_policy
privacy
provisioning_api
recommendations
serverinfo
sharebymail
support
survey_client
systemtags
theming
twofactor_backupcodes
updatenotification
viewer
workflowengine

```

I notice that “group folders” isn’t there; is that an optional app you would have installed yourself?

Any advice you can give would be great. If I can just check for an app named “group\_folders”, or something, and disable it if present then that would be a nice simple solution.

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [October 1, 2019, 7:49pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/4 "2019-10-01T19:49:48Z")

</div>

> [@Sumaleth](#):
>
> I read somewhere that all of the apps should be disabled before attempting any upgrade; is that still true? Or just “group folders” if it’s present?

For now (update to NC17) this has to be done only for the optional app “Group folders”.  
So usually you don’t have to disable any apps. Nextcloud disables incompatible apps itself during the update process.  
Here there was just an issue with the upgrade path.

To be on the safe side and if you want to avoid any issues which slipped through in the Beta phase you can of course disable all apps yourself before upgrade.  
This was the first issue with an app for a long time for me however.

> [@Sumaleth](#):
>
> I have a _lot_ of NextCloud apps to upgrade (probably thousands) so I’m looking for a smart way to automate this. I thought about running this:
> 
> ```auto
> UPDATE `{$PREFIX}appconfig` SET `configvalue`='no' WHERE `appid`!='core' AND `configkey`='enabled' AND `configvalue`='yes'
> 
> ```

The way I understand your code line, it only disables all your apps. It doesn’t really update the app.

To update all apps at once via automatism, there is an occ command:  
`sudo -u <web user> php /path/to/nextcloud/occ app:update --all`

So you could probably combine all that.

1. disable all apps with your command
2. run the NC update
3. update all apps (if not automatically done by the update) with the occ command
4. enable all the apps with your slightly adapted command (SET ‘configvalue’=‘yes’)

> [@Sumaleth](#):
>
> I notice that “group folders” isn’t there; is that an optional app you would have installed yourself?

Yes, this app is not shipped by default. You would have to download it from the store. So only users who (use this app or) had the app downloaded and enabled before, are affected.

---

<div class="post-metadata">

**Author:** ![jakobssystems](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jakobssystems/32/51759_2.png) [@jakobssystems](https://help.nextcloud.com/u/jakobssystems)\
**Post date:** [October 1, 2019, 8:53pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/5 "2019-10-01T20:53:07Z")

</div>

I am lucky, have had group folder app installed but it seems not in use anymore. I am removing it right now and waiting for further information.

---

<div class="post-metadata">

**Author:** ![nicolacredi](https://help.nextcloud.com/letter_avatar/nicolacredi/32/5_5575768a8748004e209b776fc1b2916d.png) [@nicolacredi](https://help.nextcloud.com/u/nicolacredi)\
**Post date:** [October 2, 2019, 8:26am UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/6 "2019-10-02T08:26:36Z")

</div>

EezssyklZz

-------- Messaggio originale --------

---

<div class="post-metadata">

**Author:** ![bimmelmurks](https://help.nextcloud.com/letter_avatar/bimmelmurks/32/5_5575768a8748004e209b776fc1b2916d.png) [@bimmelmurks](https://help.nextcloud.com/u/bimmelmurks)\
**Post date:** [October 2, 2019, 9:06am UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/7 "2019-10-02T09:06:09Z")

</div>

im my case ( shared Hosting [all-inkl.de](http://all-inkl.de) with ssh )

- ssh-connect to my account (mobaxterm or something)
- I changed temp. the permissions of occ to 777 (/mycloudinstallation/occ)
- cd /mycloudinstallation/
- php73 ./occ upgrade

thats it

---

<div class="post-metadata">

**Author:** ![Sumaleth](https://help.nextcloud.com/letter_avatar/sumaleth/32/5_5575768a8748004e209b776fc1b2916d.png) [@Sumaleth](https://help.nextcloud.com/u/Sumaleth)\
**Post date:** [October 3, 2019, 2:14pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/8 "2019-10-03T14:14:55Z")

</div>

@Schmu That was just what I needed, thanks!

---

<div class="post-metadata">

**Author:** ![Nobody](https://help.nextcloud.com/letter_avatar/nobody/32/5_5575768a8748004e209b776fc1b2916d.png) [@Nobody](https://help.nextcloud.com/u/Nobody)\
**Post date:** [October 4, 2019, 5:06pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/9 "2019-10-04T17:06:39Z")

</div>

what I think is a bit frustrating/confusing: in the settings there was written “for every app an update is available!” so I did the upgrade and _baaamm_ “the following 23 apps are incompatible and disabled”. Very nice.

---

<div class="post-metadata">

**Author:** ![Rui\_Ogawa](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rui_ogawa/32/19453_2.png) [@Rui\_Ogawa](https://help.nextcloud.com/u/Rui_Ogawa)\
**Post date:** [December 1, 2019, 5:08pm UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/10 "2019-12-01T17:08:33Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 6, 2025, 8:38am UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/11 "2025-01-06T08:38:02Z")

</div>

close old topics

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 7:36am UTC](https://help.nextcloud.com/t/nc17-update-disable-group-folders-app-before-performing-the-update-of-your-server/61112/12 "2025-01-16T07:36:03Z")

</div>


