nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.31k stars 4.06k forks source link

After upgrade to 16.0.4 new user can no longer log on and group membership display problem #16965

Closed patagfa closed 5 years ago

patagfa commented 5 years ago

After the upgrade from 15.0.7 to 16.0.4 some groups do not display members. The GUI shows no users in here and pop-up unable to proceed is shown. It seems that only groups which contain members who previously worked with nextcloud are displayed fine. If there is 1 member who never logged to the system then the group is no longer displayed. Remove the user from the group via occ command and the content of the group is displayed fine. Add the user again via occ command and group shows no users in here. A new user cannot log on anymore to nextcloud. (internal server error etc.) see added nextcloud log entry Workaround: When I create an empty homefolder with file subfolder for a new user, then the content of the group is displayed fine and the new user can log in. Nextcloud runs as apache user and this user has needed rights on our data folder so create the folder. The datadirectoy in our config is not modified by the upgrade process and is ‘datadirectory’ => ‘/data’ in config.php

Steps to reproduce

  1. Log on as new user
  2. Go to user Users App and click on group containing member who never logged on to nextcloud

    Expected behaviour

  3. users is logged on and his home folder is created
  4. Group members are shown

    Actual behaviour

    1) User gets intenal server error and link to ReqID file to check in the logfile 2) You see No users in here and browser shows "An error occured during the request. Unable to proceed."

    Server configuration

    Operating system: CentOS 7.4.1708 Web server: Apache 2.4.6 Database: 5.5.56-MariaDB PHP version: PHP 7.1.27 Nextcloud version: Nextcloud version 16.0.4 Updated from an older Nextcloud/ownCloud or fresh install: Updated from 15.0.7

    
    Login as admin user into your Nextcloud and access 
    http://example.com/index.php/settings/integrity/failed 
    paste the results here.
    No errors have been found

List of activated apps: Enabled:

Nextcloud configuration: "system": { "updatechecker": false, "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "agfabox.agfa.net" ], "datadirectory": "REMOVED SENSITIVE VALUE", "overwrite.cli.url": "http:\/\/morsuv579.agfa.be\/owncloud", "dbtype": "mysql", "version": "16.0.4.1", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbtableprefix": "oc", "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "logtimezone": "UTC", "installed": true, "ldapIgnoreNamingRules": false, "memcache.local": "\OC\Memcache\APCu", "trashbin_retention_obligation": "10, auto", "ldapUserCleanupInterval": 20, "loglevel": 3, "trusted_proxies": "REMOVED SENSITIVE VALUE", "maintenance": false, "log_rotate_size": 1073741824, "ldapProviderFactory": "\OCA\User_LDAP\LDAPProviderFactory", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "mysql.utf8mb4": true

**Are you using external storage no

Are you using encryption: url is https

**Are you using an external user-backend ActiveDirectory We sync to 8 different AD's ```

Nextcloud log (data/nextcloud.log)

{"reqId":"XWeasOnBPaaSxs1C0IdAVgAAAA8","level":3,"time":"2019-08-29T09:28:16+00:00","remoteAddr":"10.232.62.164","user":"aprpj","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/","message":"$absolutePath must be relative to \"files\", value is \"%s\"","userAgent":"Mozilla\/5.0 (Windows NT 10.0; WOW64; Trident\/7.0; rv:11.0) like Gecko","version":"16.0.4.1"} {"reqId":"XWeasOnBPaaSxs1C0IdAVgAAAA8","level":3,"time":"2019-08-29T09:28:16+00:00","remoteAddr":"10.232.62.164","user":"aprpj","app":"index","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/","message":{"Exception":"OCP\Lock\LockedException","Message":"\"\/aprpj\" is locked","Code":0,"Trace":[{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","line":1149,"function":"changeLock","class":"OC\Files\View","type":"->","args":["\/aprpj",2]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","line":270,"function":"basicOperation","class":"OC\Files\View","type":"->","args":["mkdir","\/aprpj",["create","write"]]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/Folder.php","line":161,"function":"mkdir","class":"OC\Files\View","type":"->","args":["\/aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/Root.php","line":381,"function":"newFolder","class":"OC\Files\Node\Folder","type":"->","args":["\/aprpj"]},{"function":"getUserFolder","class":"OC\Files\Node\Root","type":"->","args":["aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php","line":64,"function":"call_user_func_array","args":[[{"class":"OC\Files\Node\Root"},"getUserFolder"],["aprpj"]]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php","line":281,"function":"call","class":"OC\Files\Node\LazyRoot","type":"->","args":["getUserFolder",["aprpj"]]},{"file":"\/var\/www\/html\/owncloud\/apps\/groupfolders\/lib\/Mount\/MountProvider.php","line":90,"function":"getUserFolder","class":"OC\Files\Node\LazyRoot","type":"->","args":["aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Config\/MountProviderCollection.php","line":103,"function":"getMountsForUser","class":"OCA\GroupFolders\Mount\MountProvider","type":"->","args":[{"class":"OC\User\User"},{"class":"OC\Files\Storage\StorageFactory"}]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Filesystem.php","line":447,"function":"addMountForUser","class":"OC\Files\Config\MountProviderCollection","type":"->","args":[{"class":"OC\User\User"},{"class":"OC\Files\Mount\Manager"}]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Filesystem.php","line":376,"function":"initMountPoints","class":"OC\Files\Filesystem","type":"::","args":["aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/legacy\/util.php","line":309,"function":"init","class":"OC\Files\Filesystem","type":"::","args":["aprpj","\/aprpj\/files"]},{"file":"\/var\/www\/html\/owncloud\/lib\/base.php","line":974,"function":"setupFS","class":"OC_Util","type":"::","args":[]},{"file":"\/var\/www\/html\/owncloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","Line":1992,"Previous":{"Exception":"InvalidArgumentException","Message":"$absolutePath must be relative to \"files\"","Code":0,"Trace":[{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","line":1988,"function":"getPathRelativeToFiles","class":"OC\Files\View","type":"->","args":["\/aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","line":1149,"function":"changeLock","class":"OC\Files\View","type":"->","args":["\/aprpj",2]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","line":270,"function":"basicOperation","class":"OC\Files\View","type":"->","args":["mkdir","\/aprpj",["create","write"]]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/Folder.php","line":161,"function":"mkdir","class":"OC\Files\View","type":"->","args":["\/aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/Root.php","line":381,"function":"newFolder","class":"OC\Files\Node\Folder","type":"->","args":["\/aprpj"]},{"function":"getUserFolder","class":"OC\Files\Node\Root","type":"->","args":["aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php","line":64,"function":"call_user_func_array","args":[[{"class":"OC\Files\Node\Root"},"getUserFolder"],["aprpj"]]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php","line":281,"function":"call","class":"OC\Files\Node\LazyRoot","type":"->","args":["getUserFolder",["aprpj"]]},{"file":"\/var\/www\/html\/owncloud\/apps\/groupfolders\/lib\/Mount\/MountProvider.php","line":90,"function":"getUserFolder","class":"OC\Files\Node\LazyRoot","type":"->","args":["aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Config\/MountProviderCollection.php","line":103,"function":"getMountsForUser","class":"OCA\GroupFolders\Mount\MountProvider","type":"->","args":[{"class":"OC\User\User"},{"class":"OC\Files\Storage\StorageFactory"}]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Filesystem.php","line":447,"function":"addMountForUser","class":"OC\Files\Config\MountProviderCollection","type":"->","args":[{"class":"OC\User\User"},{"class":"OC\Files\Mount\Manager"}]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/Filesystem.php","line":376,"function":"initMountPoints","class":"OC\Files\Filesystem","type":"::","args":["aprpj"]},{"file":"\/var\/www\/html\/owncloud\/lib\/private\/legacy\/util.php","line":309,"function":"init","class":"OC\Files\Filesystem","type":"::","args":["aprpj","\/aprpj\/files"]},{"file":"\/var\/www\/html\/owncloud\/lib\/base.php","line":974,"function":"setupFS","class":"OC_Util","type":"::","args":[]},{"file":"\/var\/www\/html\/owncloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/html\/owncloud\/lib\/private\/Files\/View.php","Line":2127},"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; WOW64; Trident\/7.0; rv:11.0) like Gecko","version":"16.0.4.1"}

geoglis commented 5 years ago

I have the same issue. When I login as administrator and go to the users panel, I am not able to change the user-permissions or anything else. I always get the message: "No users here. An error occured during the request. Unable to proceed."

Server configuration

Operating system: OpenSuse Leap 42.3 Web server: Apache 2.4.23 Database: 5.7.26-MySQL PHP version: PHP 7.3.9 Nextcloud version: Nextcloud version 16.0.4 Updated from an older Nextcloud/ownCloud or fresh install: Yes, updated some time ago from 15.x.x (but don't remember the accurate number anymore)

geoglis commented 5 years ago

I was able to solve the problems with the user-panel. There were error-messages in the log saying there are problems with user directories. I've seen that there are missing base-directories for some users. After I created them (under nextcloud/data/) I got access to the users-panel again.

patagfa commented 5 years ago

I compared all users according to database with the missing user directories on the file system After creating the empty directories ( for about 150 users ) the problem was gone