Internal Server Error on new user login assigned to a group

An odd problem has recently started with my Nextcloud install. When a new user is created and assigned to 2 particular groups, when they login they get the following error:

Internal Server Error

The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.

More details can be found in the server log.

Some information on my setup:

Nextcloud 10.0.1 (Upgraded from Owncloud 8)

Host OS: Ubuntu Server 16.04

PHP Version: 7.0.11

Database
Type: mysql
Version: 10.0.27

Config.php:

<?php $CONFIG = array ( 'instanceid' => 'BLANKED', 'passwordsalt' => 'BLANKED', 'secret' => 'BLANKED', 'trusted_domains' => array ( 0 => 'BLANKED', 1 => 'BLANKED', 2 => 'BLANKED', ), 'datadirectory' => '/data/data', 'overwrite.cli.url' => 'http://BLANKED/owncloud', 'dbtype' => 'mysql', 'dbname' => 'owncloud', 'dbuser' => 'oc_mysql_user', 'dbpassword' => 'BLANKED', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'version' => '9.1.1.5', 'installed' => true, 'mail_smtpmode' => 'smtp', 'forcessl' => false, 'forceSSLforSubdomains' => false, 'mail_smtphost' => 'mhs.swansea.ac.uk', 'mail_domain' => 'BLANKED', 'mail_from_address' => 'BLANKED', 'mail_smtpport' => '25', 'loglevel' => 0, 'maintenance' => false, 'theme' => '', 'trashbin_retention_obligation' => 'auto', 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'localhost', 'port' => 0, ), );

User groups:
8 in total.

Groups: ad, aa, ac, ap, as, au, spm, sps

When user is assigned to a single group - no error.
When a user is assigned to 2 or more of a particular group, the error occurs. I drew a table showing which groups cause a conflict when assigned to a user.

Now the errors from nextcloud.log:

$

  1. {“reqId”:“f4Mxp3mgC3QrjRQsZPMB”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:07:04+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  2. {“reqId”:“vF/v3VJQKOmp0evdpXWv”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:07:34+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  3. {“reqId”:“BA/YeHAvk9lAT63oZp2S”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:08:04+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  4. {“reqId”:“6CYAGkp0dFcukdWY3YIi”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:08:34+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  5. {“reqId”:“q+rXZTHe/ZhxlaPRH6e8”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:09:04+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  6. {“reqId”:“CrC8C8EflUGc/elfr9Sb”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:09:34+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  7. {“reqId”:“htrljwvCEGuiS1STnpQE”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:10:04+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  8. {“reqId”:“UvqB96r5Q5IJ8Ri5MsfB”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:10:34+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

  9. {“reqId”:“dhDAC/tIpL9LRKyTJiCa”,“remoteAddr”:“BLANKED”,“app”:“PHP”,“message”:“OCP\Files\NotFoundException: at /var/www/owncloud/lib/private/Share20/Share.php#163”,“level”:3,“time”:“2016-11-16T10:11:04+00:00”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v1/notifications?format=json”,“user”:“n.watkins”}

If anyone could help me try to resolve this issue it would greatly be appreciated.

@nickvergessen, @rullzer can you help here?

bump! can anyone please help with this?

Incase anyone has the same issue. I never like to leave a post without a resolution.

Manually applied the follow fix for git to resolve: https://github.com/nextcloud/server/pull/2091/files

Thanks for the help Nextcloud folks!

1 Like