New or Reset users unable to log in, internal server error


#1

We are experiencing a very odd issues where only new users of ones that have their passwords changed are getting a internal server error message and are not able to log in. The system has not be changed or upgraded in months not changes have been made to our ldap directories or the underlying infrastructure. This seems to have happened withing the week.

Steps to reproduce

  1. Create New User or reset existing user's ldap password
    2.User attempts to login
    3.Internal Server Error displays

Expected behaviour

Users should log into the system and access files as normal.

Actual behaviour

Users that have been created within the last week are receiving an "Internal Server Error". Existing users seem to be unaffected unless we reset their password then they receive the same error. I have also tested this with local created users and they are experiencing the same issue. The results are the same regardless if its a ldap user or local user.

Server configuration

Operating system:
Ubuntu 14.04

Web server:
Apache 2.47

Database:
MySQL 5.6.27

PHP version:
PHP 5.5.36

ownCloud version: (see ownCloud admin page)
9.02

config/config.php:
{
"system": {
"updatechecker": false,
"instanceid": "ocdipjjtzg86",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"ec2-54-86-88-15.compute-1.amazonaws.com",
"owncloud.ilabsqa.com"
],
"datadirectory": "\/var\/www\/owncloud\/data",
"overwrite.cli.url": "https\/\/owncloud.ilabsqa.com\/owncloud",
"dbtype": "mysql",
"version": "9.0.2.2",
"dbname": "ownclouddb01",
"dbhost": "REMOVED SENSITIVE VALUE"",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"logtimezone": "UTC",
"installed": true,
"ldapIgnoreNamingRules": false,
"ldapUserCleanupInterval": 15,
"mail_smtpmode": "smtp",
"mail_from_address": "owncloud",
"mail_domain": "ilabquality.com",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "email-smtp.us-east-1.amazonaws.com",
"mail_smtpport": "25",
"mail_smtpsecure": "tls",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"theme": "ilab2016",
"memcache.local": "\OC\Memcache\APCu",
"log_rotate_size": 104857600,
"loglevel": 2
},
"apps": {
"activity": {
"enabled": "yes",
"installed_version": "2.2.1",
"types": "filesystem"
},
"announcementcenter": {
"enabled": "yes",
"installed_version": "1.1.2",
"ocsid": "173921",
"signed": "true",
"types": ""
},
"backgroundjob": {
"lastjob": "6678"
},
"comments": {
"enabled": "yes",
"installed_version": "0.2",
"types": "logging"
},
"core": {
"incoming_server2server_share_enabled": "no",
"installedat": "1462560077.8421",
"lastcron": "1520539530",
"lastupdatedat": "1462560077.8601",
"oc.integritycheck.checker": "{\"core\":{\"INVALID_HASH\":{\"core\\/img\\/actions\\/checkbox-checked.svg\":{\"expected\":\"fe8c1004d92ccee52144829266d8f970017d157bd2722f045450db26a0862bed84506f345191020c942d837a1d01550af256c17333e631009a2ddb4a63de9111\",\"current\":\"8ee18a0b993e6b86a1abd7e79992ac97f096cdf4593c6151044ec44bc13199d4eb788d033d61214a6e0435a9c3f7e10583c618a244c4967ac47758d8b261f037\"},\"core\\/img\\/filetypes\\/folder-drag-accept.svg\":{\"expected\":\"082cc44f21148ecec51068fafaba770ddf3bada3a66a0371e95a62b63a85d58fd1d7aa40531e2e643f049327a90e87e59667209cbe8f46ce4c8fcf16d8819313\",\"current\":\"3aa5da760120d1c0c878c6efe74ba5d72219a40cfb90422d3f5cf7e236f3d403cbbd1c75192a7fd03912f936373bff95f229e7c64e60a5b331b9e83ed54e5389\"},\"core\\/img\\/filetypes\\/folder-external.svg\":{\"expected\":\"9fd5fab7d27f92de4667fb329c8792f573202a806fae10a63508e78b438f3c26bd3f05fb3f56d74330ac8b93a9bf9309b90670dd333d4ef39cb856e8416eb5e7\",\"current\":\"5afddd49c25ee14db536c4873a3975ec1b4f2646f6d1872ff0172106d32ad33412cbbdeefdddb2ad12644b2ab379f33b0e74126ba2a384aa5bf828d8746398be\"},\"core\\/img\\/filetypes\\/folder-shared.svg\":{\"expected\":\"86d428e380a33564231b7b9da4728876ed6b25244228742851f88500a322bf0948f78641ed1c0c16f5575f1f1ae2a7ea10b3b9b6ef5f505a23da445bcef44901\",\"current\":\"24eab9877520febbee1a008ca034c40d99f20f9203f18ef82707b4c76011823ea24db5f948533cd88eb5a61d0a7ad0bcc998703c0160212ccbac74d9e8b5d267\"},\"core\\/img\\/filetypes\\/folder-starred.svg\":{\"expected\":\"3591fe5919adb18cf65a03613bb900570cab1cb62fd7bd3870ed992fa04e32f96c9aef432746e6d3bbbcdea6674c430199fb98d07d449a0b4a87c5c5f95bf06f\",\"current\":\"f8e86fe1ba580791529ff59c1a790ddbe6a10b9320a572341fb147840768dfd51e6341249c80ee4f343d2222bddca21361bc8f45035bb820e9aa8fabc2f34334\"},\"core\\/img\\/filetypes\\/folder.svg\":{\"expected\":\"02d69a54d719b9746787415b28763af6ea509807baca3c636ab8e0a108b870e6a13c21e81c5d7a727c57f6d686663310f8ddfae40897acc844605d37b097fe9e\",\"current\":\"cb7121bd7e36a2ffff6066d11c6f5e562ee691224b000c7f90560574723d3bd348e0a3ac3df06949dec41cedd04b31325338f17e6d1aabb1dd45184744203036\"},\"settings\\/js\\/users\\/users.js\":{\"expected\":\"c212728eefe97484ba3be112d2f4e04ec47085fb260ad1ce6087531a0db5f881c73bc2dc025027d4addf493e35e3f9cbe156e7bd47f69438e1d411d83637037c\",\"current\":\"b1e1491c2f1450186d326c1fe70a6e404993cf3ec67af307845cedebbffff6c7238acc5209057470b1e362a3f08d9cdb2de85c83a15f54f15fa7b238638271bb\"}}},\"Application to check\":{\"EXCEPTION\":{\"class\":\"OC\\IntegrityCheck\\Exceptions\\InvalidSignatureException\",\"message\":\"Signature data not found.\"}}}",
"outgoing_server2server_share_enabled": "no",
"public_files": "files_sharing\/public.php",
"public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
"remote_caldav": "dav\/appinfo\/v1\/caldav.php",
"remote_calendar": "dav\/appinfo\/v1\/caldav.php",
"remote_carddav": "dav\/appinfo\/v1\/carddav.php",
"remote_contacts": "dav\/appinfo\/v1\/carddav.php",
"remote_dav": "dav\/appinfo\/v2\/remote.php",
"remote_files": "dav\/appinfo\/v1\/webdav.php",
"remote_webdav": "dav\/appinfo\/v1\/webdav.php",
"shareapi_allow_group_sharing": "yes",
"shareapi_allow_mail_notification": "yes",
"shareapi_allow_resharing": "no",
"shareapi_allow_share_dialog_user_enumeration": "yes",
"shareapi_enforce_links_password": "yes",
"shareapi_exclude_groups": "no",
"shareapi_exclude_groups_list": "[\"\"]"
},
"dav": {
"enabled": "yes",
"installed_version": "0.1.6",
"types": "filesystem"
},
"federatedfilesharing": {
"enabled": "yes",
"installed_version": "0.1.0",
"types": ""
},
"federation": {
"autoAddServers": "0",
"enabled": "yes",
"installed_version": "0.0.4",
"types": "authentication"
},
"files": {
"cronjob_scan_files": "500",
"enabled": "yes",
"installed_version": "1.4.4",
"types": "filesystem"
},
"files_external": {
"enabled": "yes",
"installed_version": "0.5.2",
"ocsid": "166048",
"types": "filesystem"
},
"files_pdfviewer": {
"enabled": "yes",
"installed_version": "0.8.1",
"ocsid": "166049",
"types": ""
},
"files_sharing": {
"enabled": "yes",
"incoming_server2server_share_enabled": "no",
"installed_version": "0.9.1",
"outgoing_server2server_share_enabled": "no",
"types": "filesystem"
},
"files_texteditor": {
"enabled": "yes",
"installed_version": "2.1",
"ocsid": "166051",
"types": ""
},
"files_trashbin": {
"enabled": "yes",
"installed_version": "0.8.0",
"types": "filesystem"
},
"files_versions": {
"enabled": "yes",
"installed_version": "1.2.0",
"types": "filesystem"
},
"files_videoplayer": {
"enabled": "yes",
"installed_version": "0.9.8",
"types": ""
},
"firstrunwizard": {
"enabled": "yes",
"installed_version": "1.1",
"ocsid": "166055",
"types": ""
},
"gallery": {
"enabled": "yes",
"installed_version": "14.5.0",
"types": ""
},
"notifications": {
"enabled": "yes",
"installed_version": "0.2.3",
"types": "logging"
},
"ownbackup": {
"enabled": "no",
"installed_version": "0.3.8",
"ocsid": "170674",
"types": ""
},
"provisioning_api": {
"enabled": "yes",
"installed_version": "0.4.1",
"types": "prevent_group_restriction"
},
"systemtags": {
"enabled": "yes",
"installed_version": "0.2",
"types": "logging"
},
"templateeditor": {
"enabled": "yes",
"installed_version": "0.1",
"types": ""
},
"updatenotification": {
"enabled": "yes",
"installed_version": "0.1.0",
"types": ""
},

Are you using encryption: no

**Are you using an external user-backend, if yes which one:
LDAP

LDAP is authenticating and not changes have been made can submit if relavant

ownCloud log (data/owncloud.log)

{"reqId":"iUIsYdNgt69wg0rLz+3m","remoteAddr":"XXX.XXX.XXX.","app":"handleLogin","message":"Exception: {\"Exception\":\"InvalidArgumentException\",\"Message\":\"$absolutePath must be relative to \\"files\\"\",\"Code\":0,\"Trace\":\"

0 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php(1859): OC\\Files\\View->getPathRelativeToFiles('\\/')\n

1 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php(1960): OC\\Files\\View->lockPath('\\/', 1)\n

2 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php(1234): OC\\Files\\View->lockFile('\\/temp.user', 1)\n#3 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php(1281): OC\\Files\\View->getCacheEntry(Object(OCA\\Files_Trashbin\\Storage), '', '\\/temp.user')\n

4 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/node\\/root.php(179): OC\\Files\\View->getFileInfo('\\/temp.user')\n

5 \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/node\\/root.php(341): OC\\Files\\Node\\Root->get('\\/temp.user')\n

6 \\/var\\/www\\/owncloud\\/lib\\/private\\/server.php(742): OC\\Files\\Node\\Root->getUserFolder('temp.user')\n

7 \\/var\\/www\\/owncloud\\/lib\\/private\\/user.php(170): OC\\Server->getUserFolder('temp.user')\n

8 \\/var\\/www\\/owncloud\\/lib\\/base.php(1082): OC_User::login(*** username and password replaced ***)\n

9 \\/var\\/www\\/owncloud\\/lib\\/base.php(978): OC::tryFormLogin()\n

10 \\/var\\/www\\/owncloud\\/lib\\/base.php(940): OC::handleLogin()\n

11 \\/var\\/www\\/owncloud\\/index.php(39): OC::handleRequest()\n

12 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/view.php\",\"Line\":2027}","level":3,"time":"2018-03-06T20:32:50+00:00","method":"POST","url":"\/owncloud\/","user":"temp.user"}

The only change that has been made was a change to /var/www/owncloud/settings/js/users/users/js because the user list would not load we changed the initial load from 250 to 50. At this time I am not in a position to upgrade this system as it is still functional for all users but three but as users are added they are not longer able to login. We are also not aware of any other changes to the system, as far as we can tell there have been.


#2

ownCloud 9.0.2 looks quite outdated to me.

Addition:

Yes, it seem 9.0.2 was released nearly two years ago (May 2016). I think the main issue you will face here is that no one can say after such a long time if your not hitting just a known bug.