Problem with creating groups/users

[details=“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:

Nextcloud version 18.1
Operating system and version UBUNTU 18.04LTS
Apache or nginx version
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2019-09-16T12:58:48

PHP version

PHP 7.2.24-0ubuntu0.18.04.3 (cli) (built: Feb 11 2020 15:55:52) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.2.24-0ubuntu0.18.04.3, Copyright © 1999-2018, by Zend Technologies

The issue:

After installing NC and creating the admins account I first created a usergroup and two users as members of this grp.

The users can login to nextcloud, no problem there.

But when I login as admin, the created usergroup and the two users are not shown when using the user-management.

(Because I use german language I only can post the german messages.)

action: klicking the “Benutzer”-Icon is followed by the error-message
“Es ist ein Fehler bei der Anfrage aufgetreten. Es kann nicht fortgefahren werden.”

The same message occurs, whe I klick one of the items

  • Jeder
  • Administratoren
  • Gruppen
    – and the items related to the created groups.

Is this the first time you’ve seen this error? (Y/N):
it’s a fresh install!. Getting this error-message I rrepeated the installation-procedure repeated after cleaning the appropriate folders and config-files.
the mysql-server is running stable without problems. It’s using innodb/barracuda,

Steps to replicate it: ??

The output of your Nextcloud log in Admin > Logging:

***"]},{"file":"/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"}],"*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":80,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":92,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Database.php","line":136,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Manager.php","line":370,"function":"createUser","class":"OC\\User\\Database","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Manager.php","line":315,"function":"createUserFromBackend","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***",{"__class__":"OC\\User\\Database"}]},{"file":"/var/www/html/nextcloud/apps/provisioning_api/lib/Controller/UsersController.php","line":314,"function":"createUser","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"addUser","class":"OCA\\Provisioning_API\\Controller\\UsersController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Provisioning_API\\Controller\\UsersController"},"addUser"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Provisioning_API\\Controller\\UsersController"},"addUser"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Provisioning_API\\Controller\\UsersController","addUser",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.provisioning_api.Users.addUser"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"ocs.provisioning_api.Users.addUser"}]},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"ocs.provisioning_api.Users.addUser"}]},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":82,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/cloud/users"]},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":24,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/password_policy/lib/Validator/CommonPasswordsValidator.php","Line":53,"Hint":"Das Passwort ist unter den 1.000.000 h\u00e4ufigsten Passw\u00f6rtern. Bitte w\u00e4hle ein anderes.","CustomMessage":"Failed addUser attempt with hint exception."},"userAgent":"Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0","version":"18.0.1.3"}
{"reqId":"ifcrerCc7u3xwauMMl1g","level":2,"time":"March 02, 2020 09:08:40","remoteAddr":"invoking_from_address","user":"admins_name","app":"ocs_api","method":"POST","url":"/ocs/v2.php/cloud/users","message":{"Exception":"OC\\HintException","Message":"Password is among the 1,000,000 most common ones. Please make it unique.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/password_policy/lib/PasswordValidator.php","line":77,"function":"validate","class":"OCA\\Password_Policy\\Validator\\CommonPasswordsValidator","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/apps/password_policy/lib/AppInfo/Application.php","line":59,"function":"validate","class":"OCA\\Password_Policy\\PasswordValidator","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":247,"function":"OCA\\Password_Policy\\AppInfo\\{closure}","class":"OCA\\Password_Policy\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"}],"*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":80,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":92,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Database.php","line":136,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Manager.php","line":370,"function":"createUser","class":"OC\\User\\Database","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Manager.php","line":315,"function":"createUserFromBackend","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***",{"__class__":"OC\\User\\Database"}]},{"file":"/var/www/html/nextcloud/apps/provisioning_api/lib/Controller/UsersController.php","line":314,"function":"createUser","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"addUser","class":"OCA\\Provisioning_API\\Controller\\UsersController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Provisioning_API\\Controller\\UsersController"},"addUser"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Provisioning_API\\Controller\\UsersController"},"addUser"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Provisioning_API\\Controller\\UsersController","addUser",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.provisioning_api.Users.addUser"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"ocs.provisioning_api.Users.addUser"}]},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"ocs.provisioning_api.Users.addUser"}]},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":82,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/cloud/users"]},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":24,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/password_policy/lib/Validator/CommonPasswordsValidator.php","Line":53,"Hint":"Das Passwort ist unter den 1.000.000 h\u00e4ufigsten Passw\u00f6rtern. Bitte w\u00e4hle ein anderes.","CustomMessage":"Failed addUser attempt with hint exception."},"userAgent":"Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0","version":"18.0.1.3"}
{"reqId":"80SbMR2RCm16oRaGWTqU","level":2,"time":"March 02, 2020 09:08:43","remoteAddr":"invoking_from_address","user":"admins_name","app":"ocs_api","method":"POST","url":"/ocs/v2.php/cloud/users","message":{"Exception":"OC\\HintException","Message":"Password is among the 1,000,000 most common ones. Please make it unique.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/password_policy/lib/PasswordValidator.php","line":77,"function":"validate","class":"OCA\\Password_Policy\\Validator\\CommonPasswordsValidator","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/apps/password_policy/lib/AppInfo/Application.php","line":59,"function":"validate","class":"OCA\\Password_Policy\\PasswordValidator","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":247,"function":"OCA\\Password_Policy\\AppInfo\\{closure}","class":"OCA\\Password_Policy\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"}],"*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":80,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":92,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Database.php","line":136,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Manager.php","line":370,"function":"createUser","class":"OC\\User\\Database","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/User/Manager.php","line":315,"function":"createUserFromBackend","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***",{"__class__":"OC\\User\\Database"}]},{"file":"/var/www/html/nextcloud/apps/provisioning_api/lib/Controller/UsersController.php","line":314,"function":"createUser","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"addUser","class":"OCA\\Provisioning_API\\Controller\\UsersController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Provisioning_API\\Controller\\UsersController"},"addUser"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Provisioning_API\\Controller\\UsersController"},"addUser"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Provisioning_API\\Controller\\UsersController","addUser",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.provisioning_api.Users.addUser"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"ocs.provisioning_api.Users.addUser"}]},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"ocs.provisioning_api.Users.addUser"}]},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":82,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/cloud/users"]},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":24,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/password_policy/lib/Validator/CommonPasswordsValidator.php","Line":53,"Hint":"Das Passwort ist unter den 1.000.000 h\u00e4ufigsten Passw\u00f6rtern. Bitte w\u00e4hle ein anderes.","CustomMessage":"Failed addUser attempt with hint exception."},"userAgent":"Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0","version":"18.0.1.3"}


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

<?php
$CONFIG = array (
  'instanceid' => 'ocb002pu13sz',
  'passwordsalt' => '????????????????????????',
  'secret' => '?????????????????????????????????',
  'trusted_domains' => 
  array (
    0 => 'public_address',
    1 => 'internal_address',
    2 => 'localhost',
  ),
  'datadirectory' => '/mnt/r1p1/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '18.0.1.3',
  'overwrite.cli.url' => 'https://public_address',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '???????',
  'installed' => true,
  'defaultapp' => 'files',
  'allow_user_to_change_display_name' => true,
  'auth.bruteforce.protection.enabled' => true,
  'mysql.utf8mb4' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'my_name',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'ist_set',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'is_set',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'my_email_address',
  'mail_smtppassword' => 'PW',
  'mail_smtpauthtype' => 'LOGIN',
  'maintenance' => false,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'logfilemode' => 416,
  'loglevel' => 1,
  'syslog_tag' => 'Nextcloud',
  'logdateformat' => 'F d, Y H:i:s',
  'logtimezone' => 'Europe/Berlin',
  'log_query' => false,
  'log_rotate_size' => 104857600,
);

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

[Sun Mar 01 06:25:02.699620 2020] [mpm_prefork:notice] [pid 1515] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Mar 01 06:25:02.699671 2020] [core:notice] [pid 1515] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 01 16:16:51.948216 2020] [mpm_prefork:notice] [pid 1515] AH00169: caught SIGTERM, shutting down
[Sun Mar 01 16:16:52.134422 2020] [mpm_prefork:notice] [pid 23083] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Mar 01 16:16:52.134527 2020] [core:notice] [pid 23083] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 01 16:17:00.764045 2020] [mpm_prefork:notice] [pid 23083] AH00169: caught SIGTERM, shutting down
[Sun Mar 01 16:17:07.073558 2020] [mpm_prefork:notice] [pid 23190] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Mar 01 16:17:07.073664 2020] [core:notice] [pid 23190] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 01 16:39:51.780345 2020] [mpm_prefork:notice] [pid 23190] AH00169: caught SIGTERM, shutting down
[Sun Mar 01 16:39:51.959479 2020] [mpm_prefork:notice] [pid 23870] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Mar 01 16:39:51.959583 2020] [core:notice] [pid 23870] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 01 17:06:08.880204 2020] [mpm_prefork:notice] [pid 23870] AH00169: caught SIGTERM, shutting down
[Sun Mar 01 17:06:09.054771 2020] [mpm_prefork:notice] [pid 24202] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Mar 01 17:06:09.054871 2020] [core:notice] [pid 24202] AH00094: Command line: '/usr/sbin/apache2'
[Sun Mar 01 18:47:20.010213 2020] [mpm_prefork:notice] [pid 24202] AH00169: caught SIGTERM, shutting down
[Sun Mar 01 18:51:14.273606 2020] [mpm_prefork:notice] [pid 29520] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Mar 01 18:51:14.273715 2020] [core:notice] [pid 29520] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 02 06:25:01.581400 2020] [mpm_prefork:notice] [pid 29520] AH00171: Graceful restart requested, doing restart

Solved!

When using Chrome, Firefox, Safari or MS Edge, the problem does not appear.
Only Opera seems to produce the problem described above.
May be, there is some php-specific behavior in Opera.