Internal server error when running settings

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.2.3.0
Operating system and version (eg, Ubuntu 20.04): Raspberry Pi OS Bullseye
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Debian)
PHP version (eg, 7.4): 7.4.27

The issue you are facing:

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

Steps to replicate it:

  1. Log in to NC using admin credentials
  2. Click item “Settings” on users menu
  3. Error page “internal Server Error” opens

All other menu items are opening as expected.

The output of your Nextcloud log in Admin > Logging (masked sensitive):

{"reqId":"Tq1cheVvKBXO17in20Dv","level":3,"time":"2022-02-14T16:38:01+01:00","remoteAddr":"<WANIP>","user":"ncadmin","app":"index","method":"GET","url":"/settings/user","message":"Class 'OCA\\Viewer\\Event\\LoadViewer' not found","userAgent":"Mozilla/5.0 (Android 9; Mobile; rv:97.0) Gecko/97.0 Firefox/97.0","version":"22.2.3.0","exception":{"Exception":"Exception","Message":"Class 'OCA\\Viewer\\Event\\LoadViewer' not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1006,"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/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"Error","Message":"Class 'OCA\\Viewer\\Event\\LoadViewer' not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":137,"function":"getForm","class":"OCA\\Settings\\Settings\\Personal\\ServerDevNotice","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/PersonalSettingsController.php","line":76,"function":"formatSettings","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":148,"function":"getSettings","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/PersonalSettingsController.php","line":67,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/settings/lib/Settings/Personal/ServerDevNotice.php","Line":86},"CustomMessage":"--"}}

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

<?php
$CONFIG = array (
  'overwriteprotocol' => 'https',
  'overwritehost' => '<sub.SLD.TLD>',
  'instanceid' => '<***********>',
  'passwordsalt' => '<*****************************>',
  'secret' => '<*****************************>',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '<SLD.TLD>',
    2 => '<sub.SLD.TLD>',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'filesystem_check_changes' => 0,
  'dbtype' => 'pgsql',
  'version' => '22.2.3.0',
  'overwrite.cli.url' => 'https://<SLD.TLD>',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '5432',
  'dbtableprefix' => 'oc_',
  'dbuser' => '<user>',
  'dbpassword' => '<************>',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => '<sub.SLD.TLD>',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpname' => '<****************>',
  'mail_smtppassword' => '<*****************>',
  'mail_from_address' => '<*****************>',
  'mail_domain' => 'gmx.net',
  'default_language' => 'de_DE',
  'default_phone_region' => 'DE',
  'knowledgebaseenabled' => false,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'activity_expire_days' => 14,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' => 
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'integrity.check.disabled' => false,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 104857600,
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'redis' => 
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'quota_include_external_storage' => false,
  'share_folder' => '/Freigaben',
  'skeletondirectory' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'DATABASE_URL' => 'postgres://<user>:<*********>@<host>/nextcloud?sslmode=disable',
  'DATABASE_PREFIX' => 'oc_',
  'REDIS_URL' => 'redis://localhost',
  'NEXTCLOUD_URL' => 'https://<sub.SLD.TLD>',
);

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

[Mon Feb 14 00:00:02.985101 2022] [http2:warn] [pid 662] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Mon Feb 14 00:00:03.208131 2022] [mpm_prefork:notice] [pid 662] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Mon Feb 14 00:00:03.208191 2022] [core:notice] [pid 662] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 05:09:08.507227 2022] [mpm_prefork:notice] [pid 662] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Feb 14 05:29:56.949319 2022] [http2:warn] [pid 16097] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Mon Feb 14 05:29:57.156566 2022] [mpm_prefork:notice] [pid 16097] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Mon Feb 14 05:29:57.156757 2022] [core:notice] [pid 16097] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 14:49:45.538060 2022] [core:error] [pid 16109] [client 45.146.165.37:56972] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh)

Logging at warning level to file: /tmp/coolwsd.w8GOiMuqM9/coolwsd.log
Security: coolforkit incorrect user-name, other than 'cool'
Init vcl
preload: merged ucpchelp1 msforms vbaobj pcr vbaswobj sw animcore hwp chartcore solver sc wpftcalc ucpcmis1 wpftdraw sd svgfilter graphicfilter wpftimpress sdfilt sm pdffilter PresentationMinimizer protocolhandler ucpdav1 wpftwriter msword writerfilter t602filter binaryurp uuresolver scd chartcontroller ldapbe2 dba sdbt deploymentgui migrationoo2 migrationoo3 sdd embobj emboleobj log expwrap storagefd textconversiondlgs smd mozbootstrap oox scfilt slideshow proxyfac dlgprov dbaxml calc dbase flat writer reflection bootstrap introspection invocation invocadapt namingservice stocservices cached1 ucppkg1 swd cui bib scn scriptframe dbpool2 xmlsecurity analysis date pricing xsec_xmlsec pdfimport mysql_jdbc
Disabled: ucpftp1 rptxml dbu rptui rpt mork odbc sdbc2 cmdmail PresenterScreen abp dbp 
Allowlisted languages: de_DE el en_GB en_US es_ES fr_FR hu it nl pt_BR pt_PT ru 
Preloading dictionaries: de_DE en_US fr_FR it_IT nl_NL pt_BR ru_RU en_GB nl_BE pt_PT es_ES 
Preloading thesauri: de_DE en_US fr_FR it_IT nl_NL pt_BR ru_RU en_GB nl_BE pt_PT es_ES 
Preload icons
Preload languages
Preload fonts
Preload config
Ready to accept connections on port 9983.

[Mon Feb 14 16:06:57.287312 2022] [mpm_prefork:notice] [pid 16097] AH00170: caught SIGWINCH, shutting down gracefully
frk-27517-27517 2022-02-14 16:06:57.336549 +0100 [ forkit ] SIG   Shutdown signal received: SIGTERM
wsd-27498-27498 2022-02-14 16:06:57.346561 +0100 [ coolwsd ] SIG   Shutdown signal received: SIGTERM
kit-27579-27517 2022-02-14 16:06:57.347021 +0100 [ kit_spare_001 ] SIG   Shutdown signal received: SIGTERM
[Mon Feb 14 16:07:25.440302 2022] [http2:warn] [pid 644] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Mon Feb 14 16:07:25.763728 2022] [mpm_prefork:notice] [pid 644] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Mon Feb 14 16:07:25.763894 2022] [core:notice] [pid 644] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 16:31:47.193998 2022] [mpm_prefork:notice] [pid 644] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Feb 14 16:31:56.770163 2022] [http2:warn] [pid 678] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Mon Feb 14 16:31:56.951624 2022] [mpm_prefork:notice] [pid 678] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Mon Feb 14 16:31:56.951755 2022] [core:notice] [pid 678] AH00094: Command line: '/usr/sbin/apache2'

I have done a restore from the yesterdays morning backup. All running again
An OS package needed an upgrade, but it’s not the cause.

Don’t know, what happened.