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:
$
-
{“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”}
-
{“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”}
-
{“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”}
-
{“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”}
-
{“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”}
-
{“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”}
-
{“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”}
-
{“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”}
-
{“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.