Internal Server Error when calling "Apps" in NC UI

Nextcloud version (eg, 20.0.5): 27.1.3.2
Operating system and version (eg, Ubuntu 20.04): Armbian 23.11.0-trunk Bullseye \l . 6.1.62-current-meson64 (aarch64)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.56 (Debian)
PHP version (eg, 7.4): PHP 8.2.15

The issue you are facing:

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

Steps to replicate it:

  1. Click on user icon in top right corner of NC UI
  2. Click on “+ Apps”
  3. Internal Server Error

The output of your Nextcloud log in Admin > Logging:

{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEgAARAY","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEQAARA4","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/background?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/background): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEgAARAY","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEQAARA4","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/background?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFgAASAo","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/background?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/background): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFwAASAs","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFgAASAo","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/background?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFwAASAs","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWguIQN-3Mp-u2SuNSNwAASRQ","level":3,"time":"2024-01-27T19:16:18+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"internet_connection_check","method":"GET","url":"/settings/ajax/checksetup","message":"Cannot connect to: www.nextcloud.com","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"GuzzleHttp\\Exception\\RequestException","Message":"cURL error 77: error setting certificate verify locations:  CAfile: /media/myCloudDrive/ncdata/files_external/rootcerts.crt CApath: /etc/ssl/certs (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.com/","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":137,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":154,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":107,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":73,"function":"checkRedirect","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php","line":41,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\FulfilledPromise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":

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

<?php
$CONFIG = array (
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    11 => 'XXX',
    1 => '192.168.178.50',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    20 => 'XXX',
    22 => 'XXX',
    23 => 'XXX',
    '' => 'nextcloudpi',
    3 => 'XXX',
    14 => 'nextcloudpi',
    21 => 'XXX',
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '27.1.3.2',
  'overwrite.cli.url' => 'XXX',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'XXX',
  'installed' => true,
  'instanceid' => 'ocrwufnn7knt',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'XXX',
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'XXX',
  'mail_domain' => 'XXX',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
  'loglevel' => '2',
  'log_type' => 'file',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'XXX',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'XXX',
  'mail_smtppassword' => 'XXX',
  'app_install_overwrite' =>
  array (
    0 => 'admin_notifications',
    1 => 'social',
    2 => 'nextcloudpi',
  ),
  'theme' => '',
  'skeletondirectory' => '',
  'default_phone_region' => 'DE',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'XXX',
    14 => 'XXX',
    15 => 'fritz.box',
    16 => '192.168.178.1',
  ),
  'htaccess.RewriteBase' => '/',

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

[Sat Jan 27 17:24:47.546676 2024] [authnz_external:error] [pid 3050:tid 281472760963456] [remote 192.168.178.10:49972] AuthExtern pwauth [/usr/sbin/pwauth]: Failed (1) for>[Sat Jan 27 17:24:47.546810 2024] [auth_basic:error] [pid 3050:tid 281472760963456] [remote 192.168.178.10:49972] AH01617: user ncp: authentication failure for "/": Passwo>[Sat Jan 27 17:25:06.918590 2024] [authnz_external:error] [pid 3135:tid 281472693690752] [remote 192.168.178.10:49974] AuthExtern pwauth [/usr/sbin/pwauth]: Failed (1) for>[Sat Jan 27 17:25:06.918681 2024] [auth_basic:error] [pid 3135:tid 281472693690752] [remote 192.168.178.10:49974] AH01617: user ncp: authentication failure for "/": Passwo>[Sat Jan 27 17:25:14.202719 2024] [authnz_external:error] [pid 3050:tid 281472752554368] [remote 192.168.178.10:49978] AuthExtern pwauth [/usr/sbin/pwauth]: Failed (1) for>[Sat Jan 27 17:25:14.202832 2024] [auth_basic:error] [pid 3050:tid 281472752554368] [remote 192.168.178.10:49978] AH01617: user ncp: authentication failure for "/": Passwo>[Sat Jan 27 17:25:36.794903 2024] [authnz_external:error] [pid 3135:tid 281472886903168] [remote 192.168.178.10:49980] AuthExtern pwauth [/usr/sbin/pwauth]: Failed (1) for>[Sat Jan 27 17:25:36.795015 2024] [auth_basic:error] [pid 3135:tid 281472886903168] [remote 192.168.178.10:49980] AH01617: user ncp: authentication failure for "/": Passwo>[Sat Jan 27 18:58:53.573959 2024] [http2:warn] [pid 3050:tid 281471730303360] [client 192.168.178.10:49981] h2_stream(3050-7-97,CLEANUP): started=1, scheduled=1, ready=0, >[Sat Jan 27 18:59:53.574178 2024] [http2:warn] [pid 3050:tid 281471730303360] [client 192.168.178.10:49981] h2_stream(3050-7-97,CLEANUP): started=1, scheduled=1, ready=0, >[Sat Jan 27 19:00:53.574394 2024] [http2:warn] [pid 3050:tid 281471730303360] [client 192.168.178.10:49981] h2_stream(3050-7-97,CLEANUP): started=1, scheduled=1, ready=0, >[Sat Jan 27 19:12:59.417444 2024] [mpm_event:notice] [pid 1731:tid 281472905068560] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jan 27 19:12:59.449723 2024] [ssl:warn] [pid 1731:tid 281472905068560] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server na>[Sat Jan 27 19:12:59.450014 2024] [ssl:error] [pid 1731:tid 281472905068560] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidhc4 / i>[Sat Jan 27 19:12:59.450046 2024] [ssl:error] [pid 1731:tid 281472905068560] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 27 19:12:59.452890 2024] [mpm_event:notice] [pid 1731:tid 281472905068560] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Sat Jan 27 19:12:59.452947 2024] [core:notice] [pid 1731:tid 281472905068560] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 27 19:35:48.682942 2024] [mpm_event:notice] [pid 1731:tid 281472905068560] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Jan 27 19:35:52.052471 2024] [core:warn] [pid 1731:tid 281472905068560] AH00045: child process 3135 still did not exit, sending a SIGTERM
[Sat Jan 27 19:35:54.054766 2024] [core:warn] [pid 1731:tid 281472905068560] AH00045: child process 3135 still did not exit, sending a SIGTERM
[Sat Jan 27 19:35:56.056997 2024] [core:warn] [pid 1731:tid 281472905068560] AH00045: child process 3135 still did not exit, sending a SIGTERM
[Sat Jan 27 19:35:58.059207 2024] [core:error] [pid 1731:tid 281472905068560] AH00046: child process 3135 still did not exit, sending a SIGKILL
[Sat Jan 27 19:35:59.206466 2024] [ssl:warn] [pid 72879:tid 281473089572880] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server n>[Sat Jan 27 19:35:59.206884 2024] [ssl:error] [pid 72879:tid 281473089572880] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidhc4 / >[Sat Jan 27 19:35:59.206972 2024] [ssl:error] [pid 72879:tid 281473089572880] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 27 19:35:59.235991 2024] [ssl:warn] [pid 72881:tid 281473089572880] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server n>[Sat Jan 27 19:35:59.236299 2024] [ssl:error] [pid 72881:tid 281473089572880] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidhc4 / >[Sat Jan 27 19:35:59.236342 2024] [ssl:error] [pid 72881:tid 281473089572880] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 27 19:35:59.242058 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations[Sat Jan 27 19:35:59.242150 2024] [core:notice] [pid 72881:tid 281473089572880] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 27 20:50:09.914698 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jan 27 20:50:09.946219 2024] [ssl:warn] [pid 72881:tid 281473089572880] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server n>[Sat Jan 27 20:50:09.946489 2024] [ssl:error] [pid 72881:tid 281473089572880] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=odroidhc4 / >[Sat Jan 27 20:50:09.946522 2024] [ssl:error] [pid 72881:tid 281473089572880] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 27 20:50:09.950717 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations[Sat Jan 27 20:50:09.950765 2024] [core:notice] [pid 72881:tid 281473089572880] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 27 20:54:35.279171 2024] [authz_core:error] [pid 78170:tid 281471512191360] [client 104.131.1.32:58262] AH01630: client denied by server configuration: /var/www/n>[Sat Jan 27 20:55:02.697027 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jan 27 20:55:02.732395 2024] [ssl:warn] [pid 72881:tid 281473089572880] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server n>[Sat Jan 27 20:55:02.736089 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations[Sat Jan 27 20:55:02.736142 2024] [core:notice] [pid 72881:tid 281473089572880] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 27 20:55:36.104252 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jan 27 20:55:36.131440 2024] [ssl:warn] [pid 72881:tid 281473089572880] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server n>[Sat Jan 27 20:55:36.134760 2024] [mpm_event:notice] [pid 72881:tid 281473089572880] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations[Sat Jan 27 20:55:36.134810 2024] [core:notice] [pid 72881:tid 281473089572880] AH00094: Command line: '/usr/sbin/apache2'

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:26:15+0000
Fehler	index	OCP\Files\GenericFileException: 	
2024-01-27T21:26:01+0000
Fehler	PHP	file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305	
2024-01-27T21:26:01+0000
Fehler	index	OCP\Files\GenericFileException: 	
2024-01-27T21:26:00+0000
Fehler	PHP	file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305	
2024-01-27T21:26:00+0000
Fehler	index	OCP\Files\GenericFileException: 	
2024-01-27T21:25:59+0000
Fehler	PHP	file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305	
2024-01-27T21:25:59+0000
Fehler	internet_connection_check	GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile: /media/myCloudDrive/ncdata/files_external/rootcerts.crt CApath: /etc/ssl/certs (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.edri.org/	
2024-01-27T21:25:55+0000
Fehler	internet_connection_check	GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile: /media/myCloudDrive/ncdata/files_external/rootcerts.crt CApath: /etc/ssl/certs (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.eff.org/	
2024-01-27T21:25:54+0000
Fehler	internet_connection_check	GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile: /media/myCloudDrive/ncdata/files_external/rootcerts.crt CApath: /etc/ssl/certs (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.startpage.com/	
2024-01-27T21:25:54+0000
Fehler	index	OCP\Files\GenericFileException: 	
2024-01-27T21:25:54+0000
Fehler	PHP	file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305	
2024-01-27T21:25:54+0000
Fehler	internet_connection_check	GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile: /media/myCloudDrive/ncdata/files_external/rootcerts.crt CApath: /etc/ssl/certs (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.com/	
2024-01-27T21:25:54+0000
Fehler	index	OCP\Files\GenericFileException: 	
2024-01-27T21:25:53+0000
Fehler	PHP	file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305	
2024-01-27T21:25:53+0000
Fehler	index	OCP\Files\GenericFileException: 	
2024-01-27T21:25:52+0000
Fehler	PHP	file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305	
2024-01-27T21:25:52+0000
Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:25:14+0000
Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:24:14+0000
Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:23:14+0000
Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:22:14+0000
Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:21:15+0000
Fehler	webdav	Sabre\DAV\Exception\ServiceUnavailable: Datei konnte nicht geöffnet werden	
2024-01-27T21:20:14+0000

Additionally in NC Admin UI I get displayed, that I do not have internet connection. Which is not the case. I can reach NC internally and externally. With SSH I can ping external addresses as well.

But in nextcloud.log I found:

{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEgAARAY","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEQAARA4","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/background?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/background): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEgAARAY","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWgOIQN-3Mp-u2SuNSEQAARA4","level":3,"time":"2024-01-27T19:16:16+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/background?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFgAASAo","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/background?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/background): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFwAASAs","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"PHP","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"file_get_contents(/media/myCloudDrive/ncdata/appdata_ocrwufnn7knt/theming/global/images/logoheader): Failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","data":{"app":"PHP"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFgAASAo","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/background?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWgeIQN-3Mp-u2SuNSFwAASAs","level":3,"time":"2024-01-27T19:16:17+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"index","method":"GET","url":"/apps/theming/image/logoheader?v=13","message":"","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/FileDisplayResponse.php","line":67,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":240,"function":"callback","class":"OCP\\AppFramework\\Http\\FileDisplayResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"--"}}
{"reqId":"ZbVWguIQN-3Mp-u2SuNSNwAASRQ","level":3,"time":"2024-01-27T19:16:18+00:00","remoteAddr":"192.168.178.10","user":"Aircan","app":"internet_connection_check","method":"GET","url":"/settings/ajax/checksetup","message":"Cannot connect to: www.nextcloud.com","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0","version":"27.1.3.2","exception":{"Exception":"GuzzleHttp\\Exception\\RequestException","Message":"cURL error 77: error setting certificate verify locations:  CAfile: /media/myCloudDrive/ncdata/files_external/rootcerts.crt CApath: /etc/ssl/certs (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.com/","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":137,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":154,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":107,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":73,"function":"checkRedirect","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php","line":41,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\FulfilledPromise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":/media/myCloudDrive/ncdata/nextcloud.log

It’s a CurL 77 error. Some certificate issue. I spent 2 hours searching this forum and www on how to fix this, but did not succeed.

Any idea, if this two things are related?
Any idea how to solve?