HTTP ERROR 500 after update to nc 13

Nextcloud version (12.0.5.3):
Operating system and version (? hosting at goneo and all-inkl):
Apache or nginx version (2.4.29):
PHP version (7.1):

Dear friends,

After update 12.0.5 to 13 I can´t reach my cloud
HTTP ERROR 500

Es funktionierten nur 2 updates nicht von meinen cloud Installationen, 5 andere funkttionierten reibungslos.

Steps to replicate it:

  1. Start the updater from the Admin section of Nextcloud 12.0.5
  2. after finishing the update: HTTP ERROR 500

The output of your Nextcloud log in Admin > Logging:

can`t reach he backend

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

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'J
  'trusted_domains' => 
  array (
    0 => 'nc.raxxx.de',
  ),
  'datadirectory' => '/web/1/000xxx',
  'overwrite.cli.url' => 'http://nc.raxxx',
  'dbtype' => 'sqlite3',
  'version' => '12.0.5.3',
  'logtimezone' => 'UTC',
  'installed' => true,
  'maintenance' => false,
  'filelocking.enabled' => false,
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'php',
  'mail_from_address' => 'info',
  'mail_domain' => 'raxxx',
  'custom_csp_policy' => 'default-src \'self\'; script-src \'self\' http://piwxxx \'unsafe-inline\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *; font-src \'self\' data:; media-src *',
  'updater.release.channel' => 'beta',
  'updater.secret' => 'xxx',
);

The output of your Apache/nginx/system log in /var/log/____:
I don`t have those logfile at my hosting provider?

Does anybody have a solution?

1 Like

Same problem here :frowning:

My Cloud have the same problem.
Hoster: all-inkl
PHP version: 7.1

Had the same issue. Used occ upgrade to finish the update.

cd into nextcloud folder and do:

sudo -u www-data php occ upgrade

Without shell access a php script using shell-exec may help (Link)

5 Likes

Worked for me !!! but…
image

I don´t have shell access and have no idea how i can fix this with a php script.

1 Like

Had the same problem, http error 500 after doing the upgrade via the web updater. Thanks to the tip to finish upgrade with command line, things got working again luckily. But this should have come up in tests…

Same issue with me. 12.0.0.4 to 13.0.0.0
The OCC command worked !
Also php 7.
But I think it has something to do with IPv4 and IPv6 access next to each other. SSL cert and other security measurements are ok.
DNS could not resolve the address cloud.mydomain.x anymore during the update process…

Thanks a lot! had the same issue an it worked! :+1:

Hi,
I have the same issue.
The web updater process finished with success and after “Done” step I click on “Go back to your Nextcloud…” but…
Because I have no shell access I tried to create a php file (as suggested by flux84) in nextcloud root and I execute it from the control pannel of my web hosting unfortunately without success, probably because there are some system limitation…

<?php $output = shell_exec('occ upgrade'); echo "
$output
"; ?>

Some questions:

  • Why ‘version’ => ‘12.0.4.3’, ?
  • Why ‘updater.secret’ => ‘$2y$10$CKoaRLlfThsHqduvxKY74.hZNyb7qozzGiatDONAEYx26ioZhVWyK’,
    ‘theme’ => ‘’,

may be there is a webserver configuration issue see here
NC wont work correct without a correct webserver config

Same here @all-inkl.com PHP 7.1 (tested also with 7.2) --> error 500

I’ve also got the same problem after updating to v13 with hoster all-inkl.com, any solutions someone?

Edit: After consulting the All-Inkl-Team, the app “files_accesscontrol” was causing the problems within my installation. Try disabling this app via mysql in table _appconfig (files_accesscontrol – enabled – no) and try to update again.

4 Likes

Hello dne

and thank you very much for your answer. Really saved me.
Was just the right tip, I forgot to update my apps.

I learn from this, before the next update check apps!

oh man, thank you so much:heart_eyes:. it worked for me with no issue.

Perhaps it was solved in the mean time, if not, you can try to manually recreate your css/js-cache on your server:

1 Like

Going in theming settings and updating the color fixed the problem !

I had the same problem on my nextcloud installation on my Qnap NAS.

First I had "Content Encoding Error"
and after running

sudo -u httpdusr /mnt/ext/opt/apache/bin/php occ upgrade

I had HTTP 500 Internal Server Error
What surprisingly fixed this issue for me was restarting my webserver deamon:

/etc/init.d/Qthttpd.sh restart

This is still happening if you upgrade from 12.0.6 to 13.0.1

[Wed Mar 21 08:02:42.264942 2018] [:error] [pid 21857] [client MYIP:54670] PHP Fatal error:      Declaration of 
OCA\\FilesAccessControl\\StorageWrapper::copyFromStorage(OCP\\Files\\Storage     $sourceStorage,     $sourceInternalPath, $t
argetInternalPath) must be compatible with OCP\\Files\\Storage::copyFromStorage(    OCP\\Files\\Storage\\IStorage $sourc
eStorage, $sourceInternalPath, $targetInternalPath) in /var/www/owncloud/apps/    files_accesscontrol/lib/StorageWrapper
.php on line 628
[Wed Mar 21 08:02:45.437060 2018] [:error] [pid 21836] [client MYIP:56817] PHP Fatal error:      Declaration of 
OCA\\FilesAccessControl\\StorageWrapper::copyFromStorage(OCP\\Files\\Storage $sourceStorage,     $sourceInternalPath, $t
argetInternalPath) must be compatible with OCP\\Files\\Storage::copyFromStorage(    OCP\\Files\\Storage\\IStorage $sourc
eStorage, $sourceInternalPath, $targetInternalPath) in /var/www/owncloud/apps/    files_accesscontrol/lib/StorageWrapper
.php on line 628

i needed to disable it via CLI, then it runs.
How can this still happen after such a long time?

No, it was fixed for NC 13.0.1. So if it still happens, please report it directly to Issues · nextcloud/server · GitHub