Internal Server Error - NC22

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: 22.1.1
Operating system and version: Debian 9.12
Apache or nginx version: 2.4.25
PHP version (eg, 7.4): 7.4.6

The issue you are facing:
Unable to login via Chrome or Firefox on both Windows & MacOS

image

Is this the first time you’ve seen this error? Y

The output of your Nextcloud log in Admin > Logging:

Error	index	TypeError: Argument 1 passed to OC\Group\Manager::getUserIdGroupIds() must be of the type string, null given, called in /var/www/html/cloud/nextcloud/lib/private/Group/Manager.php on line 316

    /var/www/html/cloud/nextcloud/lib/private/Group/Manager.php - line 316:

    OC\Group\Manager->getUserIdGroupIds()

    /var/www/html/cloud/nextcloud/apps/deck/lib/Service/PermissionService.php - line 316:

    OC\Group\Manager->isInGroup()

    /var/www/html/cloud/nextcloud/apps/deck/lib/Capabilities.php - line 53:

    OCA\Deck\Service\PermissionService->canCreate()

    /var/www/html/cloud/nextcloud/lib/private/CapabilitiesManager.php - line 69:

    OCA\Deck\Capabilities->getCapabilities()

    /var/www/html/cloud/nextcloud/lib/private/Template/JSConfigHelper.php - line 190:

    OC\CapabilitiesManager->getCapabilities()

    /var/www/html/cloud/nextcloud/lib/private/TemplateLayout.php - line 220:

    OC\Template\JSConfigHelper->getConfig()

    /var/www/html/cloud/nextcloud/lib/private/legacy/OC_Template.php - line 182:

    OC\TemplateLayout->__construct()

    /var/www/html/cloud/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php - line 204:

    OC_Template->fetchPage()

    /var/www/html/cloud/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 171:

    OCP\AppFramework\Http\TemplateResponse->render()

    /var/www/html/cloud/nextcloud/lib/private/AppFramework/App.php - line 156:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/html/cloud/nextcloud/lib/private/Route/Router.php - line 301:

    OC\AppFramework\App::main()

    /var/www/html/cloud/nextcloud/lib/base.php - line 1000:

    OC\Route\Router->match()

    /var/www/html/cloud/nextcloud/index.php - line 36:

    OC::handleRequest()


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

root@XXXXXXX:/var/www/html/cloud/nextcloud/config# cat config.php
<?php
$CONFIG = array (
  'instanceid' => 'oc1vr8s47dkv',
  'passwordsalt' => 'XXXXXXXXXX',
  'secret' => 'XXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'cloud.example.com',
    1 => '192.168.1.100',
  ),
  'datadirectory' => '/var/www/html/cloud/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'https://cloud.example.com/cloud/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXXXXXX',
  'dbpassword' => 'XXXXXXX',
  'installed' => true,
  'mail_smtpmode' => 'sendmail',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'jay',
  'mail_domain' => 'cloud.example.com',
  'mail_smtphost' => 'smtp.localhost',
  'mail_smtpport' => '25',
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'has_rebuilt_cache' => true,
  'theme' => '',
  'loglevel' => 1,
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'app_install_overwrite' =>
  array (
    0 => 'cookbook',
    1 => 'dicomviewer',
    2 => 'emlviewer',
  ),
);

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

{"reqId":"ethy7rah1PV0v55jjA6z","level":3,"time":"2021-09-04T20:39:13+00:00","remoteAddr":"192.168.1.10","user":"--","app":"index","method":"GET","url":"/cloud/nextcloud/index.php/login?redirect_url=/cloud/nextcloud/index.php/apps/files/?dir%3D/%26fileid%3D6","message":"Argument 1 passed to OC\\Group\\Manager::getUserIdGroupIds() must be of the type string, null given, called in /var/www/html/cloud/nextcloud/lib/private/Group/Manager.php on line 316","userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36","version":"22.1.1.2","exception":{"Exception":"TypeError","Message":"Argument 1 passed to OC\\Group\\Manager::getUserIdGroupIds() must be of the type string, null given, called in /var/www/html/cloud/nextcloud/lib/private/Group/Manager.php on line 316","Code":0,"Trace":[{"file":"/var/www/html/cloud/nextcloud/lib/private/Group/Manager.php","line":316,"function":"getUserIdGroupIds","class":"OC\\Group\\Manager","type":"->"},{"file":"/var/www/html/cloud/nextcloud/apps/deck/lib/Service/PermissionService.php","line":316,"function":"isInGroup","class":"OC\\Group\\Manager","type":"->"},{"file":"/var/www/html/cloud/nextcloud/apps/deck/lib/Capabilities.php","line":53,"function":"canCreate","class":"OCA\\Deck\\Service\\PermissionService","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/CapabilitiesManager.php","line":69,"function":"getCapabilities","class":"OCA\\Deck\\Capabilities","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/Template/JSConfigHelper.php","line":190,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/TemplateLayout.php","line":220,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php","line":204,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":171,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/cloud/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/cloud/nextcloud/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/cloud/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/cloud/nextcloud/lib/private/Group/Manager.php","Line":333,"CustomMessage":"--"}}

Update: Just noticed there was a pending update for “Deck” from ver.1.5.0 to 1.5.1. After updating Deck to 1.5.1 I’m now able to login.