Nextcloud shows error 500 in browser following package update

I am running Nextcloud off of an Ubuntu server 18.04 LTS with Apache2 and Let’s Encrypt certificates. So far so good. Until a couple of days ago, everything worked brilliantly. Then, presumably following a package update (apt-get update + upgrade), NC stopped. In the client it shows “Unknown error” and on the web it shows http error 500 (An otherwise unspecified Failed to load resource: the server responded with a status of 500 (Internal Server Error)). All other web sites work fine.

Apache reports this…

[Sun Aug 11 13:33:01.981315 2019] [mpm_prefork:notice] [pid 11317] AH00169: caught SIGTERM, shutting down
[Sun Aug 11 13:33:02.066967 2019] [ssl:warn] [pid 11382] AH01909: bogt.dk:443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 11 13:33:02.102413 2019] [ssl:warn] [pid 11383] AH01909: bogt.dk:443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 11 13:33:02.109223 2019] [mpm_prefork:notice] [pid 11383] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1c configured -- resuming normal operations
[Sun Aug 11 13:33:02.109259 2019] [core:notice] [pid 11383] AH00094: Command line: '/usr/sbin/apache2'

Nextcloud doesn’t say much…

{"reqId":"jUuXFDpiBlLVYgZl5q1b","level":3,"time":"2019-08-11T13:43:32+00:00","remoteAddr":"212.112.154.169","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Error: Call to undefined function OC\\App\\simplexml_load_file() at \/var\/www\/nextcloud\/lib\/private\/App\/InfoParser.php#64","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.100 Safari\/537.36","version":"16.0.3.0"}
{"reqId":"jUuXFDpiBlLVYgZl5q1b","level":3,"time":"2019-08-11T13:43:32+00:00","remoteAddr":"212.112.154.169","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/var\/www\/nextcloud\/3rdparty\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.100 Safari\/537.36","version":"16.0.3.0"}

Now, accessing the root web automatically redirects to the SSL version and both work. Once I access Nextcloud, I get the error.

There has been absolutely no configuration changes other than the mentioned package update. NC is version 16.0.3

I don’t know how to approach this error. Does anybody recognize this even just a little bit, to point me in the right direction?

This is what I have tried to fix/find the issue…

  • Certificates have not expired
  • I tried having the certbot tool rewrite the configuration
  • I did a command line update of NC (I think it made a minor version jump)
  • Momentarily revert Apache2 conf files to a minimum
  • A few other things that I have forgotten about now

Has your apt-get upgrade changed the defallt php version?
From the error messages it seems like your are missing the php-xml extension.
Maybe you can fix the error with “apt-get install php-xml”.

There is also an github issue with your problem:
https://github.com/nextcloud/server/issues/2180

https://github.com/nextcloud/server/issues/15708

1 Like

Blimey, that was a good catch! It appears to be exactly what happened. Installing specifically php7.2-xml fixed it. Something must be reverted from php 7.3 which was the default before, to 7.2. Installing that one module appears to have fixed the issue at hand. Now I just need to find out why this happened and get it cleaned back up.

Thank you very very much! I will dig deep in my last will and testament, to see if I can find you a spot there.