Nextcloud suddenly encountered internal error

Nextcloud version (eg, 20.0.5): 22.2.10
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): 2.4.54
PHP version (eg, 7.4): 8.2

The issue you are facing:

Hello everyone,

since few days, my NC instance is inaccessible. I have this message when i try to load the web interface :

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.

Nothing relevant in the logs but maybe i’m missing something.

This might be due because of an update ?

If someone can help me to start searching to resolve this issue, it would be great :slight_smile:

Thanks a lot in advance for your help

WIthout the logs it’s gonna be a bit difficult. Is it just completely blank or does it at least produce a stack trace?

i’ve trying put the log level down to 0 but nothing.

The last logs i have in the logfile stops on the 27th of december.

Here are the last lines :

{"reqId":"Y6tQ6zv8BWwIqesX6QHppQAAAAU","level":3,"time":"2022-12-27T20:09:15+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/js/core/merged-template-prepend.js?v=71e625fe-0","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tSCjv8BWwIqesX6QHppgAAAAU","level":3,"time":"2022-12-27T20:14:02+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tSCyjhCCMqtNpWLxKQyAAAAAg","level":3,"time":"2022-12-27T20:14:03+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tSDjZbKOeS_RH4ZDwsKQAAAAk","level":3,"time":"2022-12-27T20:14:06+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tSENiNSOSDdeiuzbIP-AAAAAo","level":3,"time":"2022-12-27T20:14:08+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tSw5v8YPv454A5Q8FX0QAAAAs","level":3,"time":"2022-12-27T20:17:07+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tSxNdT2r-zV6hvP_KejgAAAAI","level":3,"time":"2022-12-27T20:17:08+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/js/core/merged-template-prepend.js?v=71e625fe-0","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tVUEXxEKaZpnkq6q56WQAAAAA","level":3,"time":"2022-12-27T20:28:00+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tVUKIDCj3xW97bgwCs5AAAAAM","level":3,"time":"2022-12-27T20:28:01+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/js/core/merged-template-prepend.js?v=71e625fe-0","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tV86Xjf6o-Sr29mbvNhwAAAAA","level":3,"time":"2022-12-27T20:30:44+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tV9KXjf6o-Sr29mbvNiAAAAAA","level":3,"time":"2022-12-27T20:30:44+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/js/core/merged-template-prepend.js?v=71e625fe-0","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tZFiNIl9hpYYhcOu-FtwAAAAA","level":3,"time":"2022-12-27T20:44:07+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tZfLp8plFkOut_oshDTwAAAAE","level":3,"time":"2022-12-27T20:45:48+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/csrftoken","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tc_hlIl4NgsrBZLuIX4wAAAAI","level":3,"time":"2022-12-27T21:00:46+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/csrftoken","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6tgHoFCsNR91GYTtLZBGAAAAAA","level":3,"time":"2022-12-27T21:14:06+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tgIOJXU_5LqgpPO4gLNwAAAAE","level":3,"time":"2022-12-27T21:14:08+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/remote.php/webdav/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"--","version":"22.2.10.2"}
{"reqId":"Y6tghDP1quYNSCGZYXNVyAAAAAI","level":3,"time":"2022-12-27T21:15:48+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/csrftoken","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6thBfuJD4cfxMcyJQZThgAAAAQ","level":3,"time":"2022-12-27T21:17:57+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}
{"reqId":"Y6thBoFCsNR91GYTtLZBGQAAAAA","level":3,"time":"2022-12-27T21:17:58+00:00","remoteAddr":"192.168.215.3","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/js/core/merged-template-prepend.js?v=71e625fe-0","message":"Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"22.2.10.2"}

Check your Apache or Nginx logs next.

Apache might be any of those:

  • /var/log/apache/access.log
  • /var/log/apache2/access.log
  • /etc/httpd/log/access_log (on MacOS)
  • /var/log/apache2/error.log

If you have Nginx check for the error_log directive in your Nginx config. Default path would be ./logs/error.log

that could be THE problem since no NC version up to now would work correctly with >PHP8.1

so I guess some automatic updateprocess installed php 8.2 to your system and you should try to get rid of it again.

1 Like

Thanks,

that was the point. I just downgrade to php 8.1 and now i got my interface back. Thanks for your help.

Thread closed

1 Like