Nextcloud version (eg, 18.0.2): 19.0.3
Operating system and version (eg, Ubuntu 20.04): Rasphian 10 (Buster)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38
PHP version (eg, 7.1): PHP 7.4.10
Internal Server error. It started from nothing and no changes were made prior this issue. Tried to force update PHP from 7.3 to 7.4 but the error still persists. Can only access and check files on Android and iOS app.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Tried disabling the Theming app but no changes.
The output of your Nextcloud log in Admin > Logging:
{"reqId":"VkcavvJC6veEvdDGFsEe","level":3,"time":"2020-09-21T11:09:37+00:00","remoteAddr":"165.225.92.156","user":"--","app":"PHP","method":"GET","url":"/index.php/login","message":"ini_set(): Headers already sent. You cannot change the session module's ini settings at this time at /var/www/html/nextcloud/lib/base.php#409","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51","version":"19.0.3.1"}
{"reqId":"VkcavvJC6veEvdDGFsEe","level":3,"time":"2020-09-21T11:09:37+00:00","remoteAddr":"165.225.92.156","user":"--","app":"PHP","method":"GET","url":"/index.php/login","message":"ini_set(): Headers already sent. You cannot change the session module's ini settings at this time at /var/www/html/nextcloud/lib/base.php#413","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51","version":"19.0.3.1"}
{"reqId":"VkcavvJC6veEvdDGFsEe","level":3,"time":"2020-09-21T11:09:37+00:00","remoteAddr":"165.225.92.156","user":"--","app":"PHP","method":"GET","url":"/index.php/login","message":"ini_set(): Headers already sent. You cannot change the session module's ini settings at this time at /var/www/html/nextcloud/lib/base.php#417","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51","version":"19.0.3.1"}
{"reqId":"VkcavvJC6veEvdDGFsEe","level":3,"time":"2020-09-21T11:09:37+00:00","remoteAddr":"165.225.92.156","user":"--","app":"base","method":"GET","url":"/index.php/login","message":{"Exception":"ErrorException","Message":"session_name(): Cannot change session name when headers already sent","Code":0,"Trace":[{"function":"trapError","class":"OC\\Session\\Internal","type":"->","args":[2,"session_name(): Cannot change session name when headers already sent","/var/www/html/nextcloud/lib/private/Session/Internal.php",209,{"functionName":"session_name","parameters":["ocsbemngx6sy"],"silence":false}]},{"function":"session_name","args":["ocsbemngx6sy"]},{"file":"/var/www/html/nextcloud/lib/private/Session/Internal.php","line":209,"function":"call_user_func_array","args":["session_name",["ocsbemngx6sy"]]},{"file":"/var/www/html/nextcloud/lib/private/Session/Internal.php","line":55,"function":"invoke","class":"OC\\Session\\Internal","type":"->","args":["session_name",["ocsbemngx6sy"]]},{"file":"/var/www/html/nextcloud/lib/base.php","line":429,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["ocsbemngx6sy"]},{"file":"/var/www/html/nextcloud/lib/base.php","line":650,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/lib/base.php","line":1095,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/index.php","line":35,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Session/Internal.php","Line":185,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51","version":"19.0.3.1"}
{"reqId":"VkcavvJC6veEvdDGFsEe","level":3,"time":"2020-09-21T11:09:37+00:00","remoteAddr":"165.225.92.156","user":"--","app":"no app in context","method":"GET","url":"/index.php/login","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"settings.Help.help\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":338,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["settings.Help.help",[],1]},{"file":"/var/www/html/nextcloud/lib/private/Route/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["settings.Help.help",[],false]},{"file":"/var/www/html/nextcloud/lib/private/URLGenerator.php","line":83,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["settings.Help.help",[]]},{"file":"/var/www/html/nextcloud/lib/private/NavigationManager.php","line":204,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["settings.Help.help"]},{"file":"/var/www/html/nextcloud/lib/private/NavigationManager.php","line":115,"function":"init","class":"OC\\NavigationManager","type":"->","args":[]},{"file":"/var/www/html/nextcloud/apps/theming/lib/ThemingDefaults.php","line":183,"function":"getAll","class":"OC\\NavigationManager","type":"->","args":["guest"]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Defaults.php","line":263,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/public/Defaults.php","line":169,"function":"getLongFooter","class":"OC_Defaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/core/templates/layout.guest.php","line":55,"function":"getLongFooter","class":"OCP\\Defaults","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":178,"args":["/var/www/html/nextcloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/html/nextcloud/core/templates/layout.guest.php",null]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Template.php","line":213,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Template.php","line":334,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/base.php","line":440,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[{"__class__":"ErrorException"},500]},{"file":"/var/www/html/nextcloud/lib/base.php","line":650,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/lib/base.php","line":1095,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/index.php","line":35,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51","version":"19.0.3.1"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'instanceid' =>SENSITIVE INFORMATION
'passwordsalt' => SENSITIVE INFORMATION
'secret' =>SENSITIVE INFORMATION
'trusted_domains' =>
array (
0 => SENSITIVE INFORMATION
1 => SENSITIVE INFORMATION
3 => SENSITIVE INFORMATION
5 => SENSITIVE INFORMATION
),
'datadirectory' => '/mnt/servidor/SENSITIVE INFORMATION/data',
'dbtype' => 'mysql',
'version' => '19.0.3.1',
'overwrite.cli.url' => SENSITIVE INFORMATION
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' =>SENSITIVE INFORMATION,
'dbpassword' => SENSITIVE INFORMATION,
'installed' => true,
'theme' => '',
'loglevel' => 0,
'maintenance' => false,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' =>SENSITIVE INFORMATION,
'mail_domain' => SENSITIVE INFORMATION,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtpname' =>SENSITIVE INFORMATION,
'mail_smtppassword' => SENSITIVE INFORMATION,
'mail_smtphost' => SENSITIVE INFORMATION,
'mail_smtpport' => '465',
'filelocking.enabled' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'app_install_overwrite' =>
array (
0 => 'sharerenamer',
),
);