Getting internal error when trying to load the application

Nextcloud version (eg, 29.0.5): Latest
Operating system and version (eg, Ubuntu 24.04): LXC Debian 12
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 8.3): 8.2.20

The issue you are facing:
When i try to load Nextcloud i get an internal error

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

The output of your Nextcloud log in Admin > Logging:

No access

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

$CONFIG = array (
  'passwordsalt' => '*****************************'
  'secret' => '***********************************',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'nextcloud.neoteams.io',
  ),
  'datadirectory' => '/var/www/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '29.0.3.4',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '***********************************'
  'installed' => true,
  'instanceid' => 'b902f575ac915',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'log_type' => 'file',
  'logfile' => '/var/www/nextcloud-data/nextcloud.log',
  'loglevel' => 0,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'theme' => '',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_sendmailmode' => 'smtp',
);

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.

{"reqId":"ZqzuTYMzM00Kfs2X8h25igAAAAg","level":0,"time":"2024-08-02T14:33:49+00:00","remoteAddr":"88.127.127.232","user":"--","app":"no app in context","method":"GET","url":"/index.php/apps/user_saml/saml/login?originalUrl=&idp=1&requesttoken=iExEk6CjftTJ%2BF/WPNAFg1aERQznRzHfhk/Ed761jss%3D:8iYP8NTsNqeRmx3ueZRN5j%2B3dUaNcHaIvjyXRdPhwIk%3D","message":"The loading of lazy AppConfig values have been requested","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.3.4","exception":{"Exception":"RuntimeException","Message":"ignorable exception","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1208,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":127,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":196,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":133,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":74,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":133,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":45,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":50,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":124,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":437,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":216,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1022,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1222,"message":"The loading of lazy AppConfig values have been requested","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been requested"}}
{"reqId":"ZqzuTYMzM00Kfs2X8h25igAAAAg","level":0,"time":"2024-08-02T14:33:49+00:00","remoteAddr":"88.127.127.232","user":"--","app":"user_saml","method":"GET","url":"/index.php/apps/user_saml/saml/login?originalUrl=&idp=1&requesttoken=iExEk6CjftTJ%2BF/WPNAFg1aERQznRzHfhk/Ed761jss%3D:8iYP8NTsNqeRmx3ueZRN5j%2B3dUaNcHaIvjyXRdPhwIk%3D","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.3.4","data":{"app":"user_saml"}}
{"reqId":"ZqzuTYMzM00Kfs2X8h25igAAAAg","level":0,"time":"2024-08-02T14:33:49+00:00","remoteAddr":"88.127.127.232","user":"--","app":"encryption","method":"GET","url":"/index.php/apps/user_saml/saml/login?originalUrl=&idp=1&requesttoken=iExEk6CjftTJ%2BF/WPNAFg1aERQznRzHfhk/Ed761jss%3D:8iYP8NTsNqeRmx3ueZRN5j%2B3dUaNcHaIvjyXRdPhwIk%3D","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.3.4","data":{"app":"encryption"}}
{"reqId":"ZqzuTYMzM00Kfs2X8h25igAAAAg","level":3,"time":"2024-08-02T14:33:49+00:00","remoteAddr":"88.127.127.232","user":"--","app":"index","method":"GET","url":"/index.php/apps/user_saml/saml/login?originalUrl=&idp=1&requesttoken=iExEk6CjftTJ%2BF/WPNAFg1aERQznRzHfhk/Ed761jss%3D:8iYP8NTsNqeRmx3ueZRN5j%2B3dUaNcHaIvjyXRdPhwIk%3D","message":"Invalid array settings: idp_entityId_not_found, idp_sso_not_found, idp_cert_or_fingerprint_not_found_and_required","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.3.4","exception":{"Exception":"OneLogin\\Saml2\\Error","Message":"Invalid array settings: idp_entityId_not_found, idp_sso_not_found, idp_cert_or_fingerprint_not_found_and_required","Code":2,"Trace":[{"file":"/var/www/nextcloud/apps/user_saml/3rdparty/vendor/onelogin/php-saml/src/Saml2/Auth.php","line":176,"function":"__construct","class":"OneLogin\\Saml2\\Settings","type":"->"},{"file":"/var/www/nextcloud/apps/user_saml/lib/Controller/SAMLController.php","line":191,"function":"__construct","class":"OneLogin\\Saml2\\Auth","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"login","class":"OCA\\User_SAML\\Controller\\SAMLController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/user_saml/3rdparty/vendor/onelogin/php-saml/src/Saml2/Settings.php","Line":139,"message":"Invalid array settings: idp_entityId_not_found, idp_sso_not_found, idp_cert_or_fingerprint_not_found_and_required","exception":{},"CustomMessage":"Invalid array settings: idp_entityId_not_found, idp_sso_not_found, idp_cert_or_fingerprint_not_found_and_required"}}
They come from an unique access via the following command :
cat ../nextcloud-data/nextcloud.log | grep "ZqzuTYMzM00Kfs2X8h25igAAAAg"

The error is coming from the optional app user_saml.

When did the problem start?

Is this a new installation or did this work previously?

It started 4 hours ago and it was working perfectly for about 2/3 months.
After disabling user_saml it worked perfectly again

I should have investigate it a little more.
It look like the app user_saml was the issue, i disabled it through occ and i can now use the application like before.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.