Internal Server Error - Setting Page

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, 12.0.2): 13.0.4
Operating system and version (eg, Ubuntu 17.04): Ubuntu 16.0.4
Apache or nginx version (eg, Apache 2.4.25): Default
PHP version (eg, 7.1): Default

The issue you are facing: I had installed File Access Control from the Apps tab and after navigating to the settings tab (http://domainname/index.php/settings/user) I was greeted with a page saying Internal Server Error (Request ID: o6pmGB6QGNts62JQC7VS).

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

Steps to replicate it:

  1. Install File Access Control
  2. Navigate to Settings Tab

The output of your Nextcloud log in Admin > Logging:

I can't get to the setting panel...

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

<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'passwordsalt' => 'redacted',
  'secret' => 'redacted',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'redacted',
  ),
  'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'overwrite.cli.url' => 'http://localhost',
  'dbtype' => 'mysql',
  'version' => '13.0.4.0',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'redacted',
  'installed' => true,
  'instanceid' => 'oczvbq5mrlyt',
);

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

{"reqId":"XmJsEqyQ7N9ExKUQP7V0","level":3,"time":"2018-07-08T10:15:04+00:00","remoteAddr":"ip","user":"name","app":"index","method":"GET","url":"\/index.php\
/settings\/user","message":"Exception: {\"Exception\":\"Symfony\\\\Component\\\\Routing\\\\Exception\\\\InvalidParameterException\",\"Message\":\"Parameter \\\"id\\\" for route
\\\"external.site.showPage\\\" must match \\\"[^\\\/]++\\\" (\\\"\\\" given) to generate a corresponding URL.\",\"Code\":0,\"Trace\":\"#0 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/
3rdparty\\\/symfony\\\/routing\\\/Generator\\\/UrlGenerator.php(136): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'exter
nal.site.s...', 1, Array, Array)\\n#1 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/Route\\\/Router.php(337): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerato
r->generate('external.site.s...', Array, 1)\\n#2 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/Route\\\/CachingRouter.php(60): OC\\\\Route\\\\Router->generate('external.
site.s...', Array, false)\\n#3 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/URLGenerator.php(80): OC\\\\Route\\\\CachingRouter->generate('external.site.s...', Array)\\n#
4 \\\/var\\\/snap\\\/nextcloud\\\/7658\\\/nextcloud\\\/extra-apps\\\/external\\\/lib\\\/Settings\\\/Personal.php(60): OC\\\\URLGenerator->linkToRoute('external.site.s...', Array)\\n
#5 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(115): OCA\\\\External\\\\Settings\\\\Personal->getForm()\\n#6 \\\/snap\\\/nextcloud\\
\/7658\\\/htdocs\\\/settings\\\/Controller\\\/PersonalSettingsController.php(67): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->formatSettings(Array)\\n#7 \\\/snap\\\/
nextcloud\\\/7658\\\/htdocs\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(126): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->getSettings('personal-info')\\n#8
\\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/settings\\\/Controller\\\/PersonalSettingsController.php(57): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->getIndexRespon
se('personal', 'personal-info')\\n#9 [internal function]: OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->index('personal-i
nfo')\\n#10 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(161): call_user_func_array(Array, Array)\\n#11 \\\/snap\
\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(91): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OC\\\\Setti
ngs\\\\Controller\\\\PersonalSettingsController), 'index')\\n#12 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/AppFramework\\\/App.php(115): OC\\\\AppFramework\\
\\Http\\\\Dispatcher->dispatch(Object(OC\\\\Settings\\\\Controller\\\\PersonalSettingsController), 'index')\\n#13 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/private\\\/App
Framework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('OC\\\\\\\\Settings\\\\\\\\Con...', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection
\\\\DIContainer), Array)\\n#14 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#15 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/p
rivate\\\/Route\\\/Router.php(297): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#16 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/lib\\\/base
.php(999): OC\\\\Route\\\\Router->match('\\\/settings\\\/user')\\n#17 \\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/index.php(42): OC::handleRequest()\\n#18 {main}\",\"File\":\"
\\\/snap\\\/nextcloud\\\/7658\\\/htdocs\\\/3rdparty\\\/symfony\\\/routing\\\/Generator\\\/UrlGenerator.php\",\"Line\":163}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64)
 AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.99 Safari\/537.36","version":"13.0.4.0"}

Sorry if this is considered spam but, bump

It seems disabling the third party app symfony would make things usable, if that’s what you’re trying to get help with. The app is configured incorrectly, it’s looking for a setting that isn’t there. It doesn’t look by category you’re looking for application support, so if you’re unable to disable it through the web, you can use the nextcloud tool occ to do it on the command line.

Update: the issue is actually caused by the external sites plugin, not entirely sure why but disabling it fixes the issue.

I can now view the settings page error log:

Error index Symfony\Component\Routing\Exception\InvalidParameterException: Parameter “id” for route “external.site.showPage” must match “[^/]++” ("" given) to generate a corresponding URL. 2018-07-15T20:23:13-0500
Error PHP Undefined index: id at /var/snap/nextcloud/7658/nextcloud/extra-apps/external/lib/Settings/Personal.php#60 2018-07-15T20:23:13-0500
Error PHP Undefined index: redirect at /var/snap/nextcloud/7658/nextcloud/extra-apps/external/lib/Settings/Personal.php#59 2018-07-15T20:23:13-0500
Error PHP Undefined index: url at /var/snap/nextcloud/7658/nextcloud/extra-apps/external/lib/Settings/Personal.php#58 2018-07-15T20:23:13-0500

Link to issue on github: https://github.com/nextcloud/external/issues/104

I had the same issue - though no symfony nor external sites plugin was installed.
The workaround with entering URL/settings/admin didn’t work either.

For me, it was OnlyOffice that I had to remove.
Found it through setting ‘debug’ => true in config.php

Nextcloud: 13.0.5.

Thx @ralpheroo. OnlyOffice was not activated but when I deleted it, the settings and admin was again available.

1 Like