# HTTP 500 error while updating to 17.0.1

**URL:** <https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263>\
**Category:** ℹ️ Support\
**Tags:** update\_problems, nc17\
**Created:** [November 16, 2019, 8:03pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263 "2019-11-16T20:03:24Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![odemau](https://help.nextcloud.com/letter_avatar/odemau/32/6_449c533f586939b6e5f246632a46421f.png) [@odemau](https://help.nextcloud.com/u/odemau)\
**Post date:** [November 16, 2019, 8:03pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/1 "2019-11-16T20:03:24Z")

</div>

Dear Support,

I tried to update my Nextcloud instance, which I host in an Plesk environment. Unfortunately I was not able to retrieve the Apache/nginx/system log. In Plesk have a page for this. In my case I use just the standard settings.

Grateful for push me into the direction to get this issue resolved.

Regards

Nextcloud version: _(eg, 12.0.2)_: 17.0.1  
Operating system and version _(eg, Ubuntu 17.04)_:  
Apache or nginx version _(eg, Apache 2.4.25)_:  
PHP version _(eg, 7.1)_:7.3

The issue you are facing:  
Updating Nextcloud to latest version, HTTP 500 error

Is this the first time you’ve seen this error? _(Y/N)_: Y

Steps to replicate it:

1. [nextcloud.maurolito.net](http://nextcloud.maurolito.net)
2. 
3. 

The output of your Nextcloud log in **Admin \> Logging** :

```auto
[Sat Nov 16 20:09:05.839273 2019] [proxy_fcgi:error] [pid 2401] [client 46.126.236.26:57064] 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 with OCA\\Files_Versions\\Versions\\IVersionBackend::getVersionFile(OCP\\IUser $user, OCP\\Files\\FileInfo $sourceFile, $revision): OCP\\Files\\File in /home/httpd/vhosts/maurolito.net/nextcloud.maurolito.net/apps/groupfolders/lib/Versions/VersionsBackend.php on line 38'

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'instanceid' => 'ocx064jiujum',
  'passwordsalt' => 'GOMxfgefpw9fSv+gaVVOXcw6/E/aHQ',
  'secret' => 'g6cbQZLBBK1FetO1GMwUZ1XABs3tXgS59Wt/E67DtXMHrKg6',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.maurolito.net',
  ),
  'datadirectory' => '',
  'dbtype' => 'mysql',
  'version' => '16.0.5.1',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud_',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'maintenance' => false,
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'mail.messagingengine.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'mail_smtpsecure' => 'ssl',
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => '$2y$10$/BTTBzPxqQ6RUfboc1RH4eGYzJojWNhW28OYfE.uBKWsGmkJfT1Ri',
);

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
Allgemeine Apache-Einstellungen
MIME-Typen:Standard
Handler:Standard
Zugriff auf Website verweigern:Standard
Indexdateien:Standard
Ablaufdatum:Standard
Zusätzliche Header:Standard

nginx-Einstellungen

Proxymodus: on
Intelligente Bearbeitung statischer Dateien: on
Statische Dateien direkt durch nginx bedienen: off
nginx-Caching aktivieren: no

```

---

<div class="post-metadata">

**Author:** ![NVEDV](https://help.nextcloud.com/letter_avatar/nvedv/32/6_449c533f586939b6e5f246632a46421f.png) [@NVEDV](https://help.nextcloud.com/u/NVEDV)\
**Post date:** [November 16, 2019, 8:50pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/2 "2019-11-16T20:50:13Z")

</div>

same problem on my site:

nextcloud\_error.log:

[Sat Nov 16 10:15:03.766004 2019] [php7:error] [pid 30532] [client 10.10.10.101:36064] 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/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 38

Ove

---

<div class="post-metadata">

**Author:** ![adoucette](https://help.nextcloud.com/letter_avatar/adoucette/32/6_449c533f586939b6e5f246632a46421f.png) [@adoucette](https://help.nextcloud.com/u/adoucette)\
**Post date:** [November 16, 2019, 9:56pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/3 "2019-11-16T21:56:45Z")

</div>

Same on my site. On shared hosting, running plesk. Nextcloud 16.0.6 --\> 17.0.1 upgrade causes 500 server error.  
Now trying to restore site from daily backup.

Dang, should have checked the forums first for problems before I clicked that upgrade button – when will I learn?  
Still, I would have expected a xx.0.1 release to have fixed most bugs.

---

<div class="post-metadata">

**Author:** ![NVEDV](https://help.nextcloud.com/letter_avatar/nvedv/32/6_449c533f586939b6e5f246632a46421f.png) [@NVEDV](https://help.nextcloud.com/u/NVEDV)\
**Post date:** [November 16, 2019, 10:05pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/4 "2019-11-16T22:05:46Z")

</div>

found a solution:

> <https://github.com/nextcloud/groupfolders/issues/625>
>
> Hi,
> I´ve upgraded my nextcloud from latest version of 16 to 17 with Group Folders App and fully encrypted mode on. During...

  
Problem on my site was, that occ was not “executable”…so started the web-updater.  
At the end selected “keep maintenance-mode” and go on via cli.  
chmod +x /var/www/nextcloud/occ  
cd /var/www/nextcloud  
sudo -u www-data ./occ upgrade -vv  
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off  
after that all was OK

Ove

---

<div class="post-metadata">

**Author:** ![mathieufoucher](https://help.nextcloud.com/letter_avatar/mathieufoucher/32/6_449c533f586939b6e5f246632a46421f.png) [@mathieufoucher](https://help.nextcloud.com/u/mathieufoucher)\
**Post date:** [November 17, 2019, 5:40pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/5 "2019-11-17T17:40:09Z")

</div>

Hello everyone,  
I tried to use the same steps but still I got the exact same error… Did someone finally found a way out ?

Best regards

---

<div class="post-metadata">

**Author:** ![euanod](https://help.nextcloud.com/letter_avatar/euanod/32/6_449c533f586939b6e5f246632a46421f.png) [@euanod](https://help.nextcloud.com/u/euanod)\
**Post date:** [November 17, 2019, 6:28pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/6 "2019-11-17T18:28:04Z")

</div>

I am exactly the same, except getting a 503 error! This is a crucial install, how do I revert to previous version?

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [November 17, 2019, 6:45pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/7 "2019-11-17T18:45:48Z")

</div>

> [@NVEDV](#):
>
> 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/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 38

What about patching the source code as described here …

> <https://github.com/nextcloud/groupfolders/issues/625#issuecomment-536782353>
>
> Hi,
> 
> I´ve upgraded my nextcloud from latest version of 16 to 17 with Group Fol…ders App and fully encrypted mode on. During the Web Update of the modules after the core upgrade succeeded I got the following:
> 
> \`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/kunden/cloud-secure/httpdocs/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 38\`
> 
> What can I do to solve it?
> 
> Environment:
> \- Debian 9
> \- Nginx, php 7.3

… or disabling the groupfolders app, as described here:

> <https://github.com/nextcloud/groupfolders/issues/565#issuecomment-526503021>
>
> As soon as the app is enabled on Nextcloud 17, the browser throws a 500 error. D…eleting the app folder allows Nextcloud to work again.

---

<div class="post-metadata">

**Author:** ![NVEDV](https://help.nextcloud.com/letter_avatar/nvedv/32/6_449c533f586939b6e5f246632a46421f.png) [@NVEDV](https://help.nextcloud.com/u/NVEDV)\
**Post date:** [November 17, 2019, 6:53pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/8 "2019-11-17T18:53:53Z")

</div>

pls give more detailed information what steps exactly you tried and what error you get.

Ove

---

<div class="post-metadata">

**Author:** ![NVEDV](https://help.nextcloud.com/letter_avatar/nvedv/32/6_449c533f586939b6e5f246632a46421f.png) [@NVEDV](https://help.nextcloud.com/u/NVEDV)\
**Post date:** [November 17, 2019, 6:58pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/9 "2019-11-17T18:58:35Z")

</div>

reads like patching the source-code is the preferred solution. Disabling the groupfolders app is a NoGo on most installations - because this feature is crucial!

Ove

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [November 17, 2019, 7:07pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/10 "2019-11-17T19:07:16Z")

</div>

> [@NVEDV](#):
>
> Disabling the groupfolders app is a NoGo on most installations - because this feature is crucial!

Sorry, but disabling the group folders app during the update process and re-enabling it afterwards is **ALWAYS** a way to go, because an [updated version](https://github.com/nextcloud/groupfolders/releases/download/v5.0.4/groupfolders-5.0.4.tar.gz) of the app already exists for Nextcloud 17 😉

---

<div class="post-metadata">

**Author:** ![NVEDV](https://help.nextcloud.com/letter_avatar/nvedv/32/6_449c533f586939b6e5f246632a46421f.png) [@NVEDV](https://help.nextcloud.com/u/NVEDV)\
**Post date:** [November 17, 2019, 7:13pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/11 "2019-11-17T19:13:17Z")

</div>

of course - if this is a temporary disabling - i’m with you!  
Understood this as a perm solution.

Ove

---

<div class="post-metadata">

**Author:** ![mathieufoucher](https://help.nextcloud.com/letter_avatar/mathieufoucher/32/6_449c533f586939b6e5f246632a46421f.png) [@mathieufoucher](https://help.nextcloud.com/u/mathieufoucher)\
**Post date:** [November 17, 2019, 7:22pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/12 "2019-11-17T19:22:36Z")

</div>

Well I tried to disable the app, but any command give me the exact same error :

```
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/html/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 38

```

The command I used to disable the app is :

```
sudo -u www-data ./occ app:disable groupfolders

```

OLD sentence :  
_And I did a locate command to find the " VersionBackend.php" file, but I don’t have any. The closer name is “IVersionBackend.php” and it doesn’t contain any “int” to remove._

I don’t know why my locate didn’t find this file, but i’m an idiot as it is mentioned in the error message…  
I did the trick (code modification) and now my NC is back : sorry for this !

Thank you very much !

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [November 17, 2019, 7:36pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/13 "2019-11-17T19:36:12Z")

</div>

> [@mathieufoucher](#):
>
> And I did a locate command to find the " VersionBackend.php" file, but I don’t have any.

I cannot believe this, because the groupfolders app archives in e.g. v4.1.4 or v5.0.4 both contain such a file “`[NC_DOC_ROOT]/apps/groupfolders/lib/Versions/VersionsBackend.php`”.

---

<div class="post-metadata">

**Author:** ![mathieufoucher](https://help.nextcloud.com/letter_avatar/mathieufoucher/32/6_449c533f586939b6e5f246632a46421f.png) [@mathieufoucher](https://help.nextcloud.com/u/mathieufoucher)\
**Post date:** [November 17, 2019, 7:37pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/14 "2019-11-17T19:37:59Z")

</div>

I edited by previous post, I guess I’m just an idiot… or tired, but sorry for wasting your time !

---

<div class="post-metadata">

**Author:** ![euanod](https://help.nextcloud.com/letter_avatar/euanod/32/6_449c533f586939b6e5f246632a46421f.png) [@euanod](https://help.nextcloud.com/u/euanod)\
**Post date:** [November 17, 2019, 8:12pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/15 "2019-11-17T20:12:32Z")

</div>

An update from me…

Turned out php7. 2-fpm would not start. Completely uninstalled and installed php 7.3. Everything running again.

Thanks

---

<div class="post-metadata">

**Author:** ![Danfro](https://help.nextcloud.com/user_avatar/help.nextcloud.com/danfro/32/29334_2.png) [@Danfro](https://help.nextcloud.com/u/Danfro)\
**Post date:** [September 25, 2020, 4:51pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/16 "2020-09-25T16:51:04Z")

</div>

Just in case you do have trouble with ssh commands in this or linked posts, a simple renaming does the job.

Rename `../yournextcloudfolder/apps/groupfolders` to `groupfolders_old` or the like. Then enter the web inferface. I got the update screen. After running the update, a new `groupfolders` folder was created.

---

<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:** [December 4, 2024, 12:19pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/17 "2024-12-04T12:19:56Z")

</div>



---

<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:** [December 11, 2024, 3:58pm UTC](https://help.nextcloud.com/t/http-500-error-while-updating-to-17-0-1/64263/18 "2024-12-11T15:58:40Z")

</div>


