Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too short ldap_dn varchar(255) #27984

Closed
akurach opened this issue May 23, 2017 · 14 comments
Closed

too short ldap_dn varchar(255) #27984

akurach opened this issue May 23, 2017 · 14 comments

Comments

@akurach
Copy link

akurach commented May 23, 2017

Steps to reproduce

  1. ad user dn CN=Андреев Андрей Андреевич,OU=Отдел эксплуатации базовой инфраструктуры межведомственных ИС,OU=Служба эксплуатации межведомственных информационных систем,OU=Users,OU=МНОГОБУКВ,OU=Государственные казённые учреждения,OU=Подведомственные организации,DC=
  2. user won't able to login and get 500 error

Expected behaviour

correct login

Actual behaviour

500 error

Server configuration

Operating system: rhel

Web server: Apache/2.4.7 (Ubuntu)

Database: mariadb

PHP version: root@ubuntu:/var/www/owncloud# php -v
PHP 5.5.9-1ubuntu4.16 (cli) (built: Apr 20 2016 14:31:27)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

ownCloud version: ownCloud 9.0.2 (stable)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from: self-hosted

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

{
    "system": {
        "updatechecker": false,
        "instanceid": "ocdlau1qyxc9",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.mosreg.ru"
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Memcached",
        "memcached_servers": [
            [
                "IP",
                11211
            ]
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/cloud.example.ru",
        "dbtype": "mysql",
        "version": "9.0.2.2",
        "dbname": "owncloud",
        "dbhost": "IP",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "mail_from_address": "noreply",
        "mail_smtpmode": "smtp",
        "mail_domain": "example",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "smtp.example.ru",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls"
    }
}

List of activated apps:

Enabled:
  - activity: 2.2.1
  - comments: 0.2
  - dav: 0.1.6
  - federatedfilesharing: 0.1.0
  - federation: 0.0.4
  - files: 1.4.4
  - files_pdfviewer: 0.8.1
  - files_sharing: 0.9.1
  - files_texteditor: 2.1
  - files_trashbin: 0.8.0
  - files_versions: 1.2.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 14.5.0
  - notifications: 0.2.3
  - provisioning_api: 0.4.1
  - systemtags: 0.2
  - templateeditor: 0.1
  - updatenotification: 0.1.0
  - user_ldap: 0.8.0
Disabled:
  - encryption
  - external
  - files_external
  - user_external

Are you using external storage, if yes which one: IP:/ibm/FS-POOL-01/cloud-starage 79T 62T 17T 79% /var/www/owncloud/data

Are you using encryption: no

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

LDAP configuration (delete this part if not used)

+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 |                                                                                                                                       |
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                                     |
| hasPagedResultSupport         |                                                                                                                                       |
| homeFolderNamingRule          |                                                                                                                                       |
| lastJpegPhotoLookup           | 0                                                                                                                                     |
| ldapAgentName                 | CN=gitlabauthuser,OU=ServiceAcc,OU=Служебное,DC=dp,DC=example,DC=ru                                                                    |
| ldapAgentPassword             | ***                                                                                                                                   |
| ldapAttributesForGroupSearch  |                                                                                                                                       |
| ldapAttributesForUserSearch   |                                                                                                                                       |
| ldapBackupHost                |                                                                                                                                       |
| ldapBackupPort                |                                                                                                                                       |
| ldapBase                      | DC=dp,DC=example,DC=ru                                                                                                                 |
| ldapBaseGroups                | DC=dp,DC=example,DC=ru                                                                                                                 |
| ldapBaseUsers                 | DC=dp,DC=example,DC=ru                                                                                                                 |
| ldapCacheTTL                  | 600                                                                                                                                   |
| ldapConfigurationActive       | 1                                                                                                                                     |
| ldapDynamicGroupMemberURL     |                                                                                                                                       |
| ldapEmailAttribute            | mail                                                                                                                                  |
| ldapExperiencedAdmin          | 0                                                                                                                                     |
| ldapExpertUUIDGroupAttr       |                                                                                                                                       |
| ldapExpertUUIDUserAttr        |                                                                                                                                       |
| ldapExpertUsernameAttr        |                                                                                                                                       |
| ldapGroupDisplayName          | cn                                                                                                                                    |
| ldapGroupFilter               | (&(|(objectclass=group))(|(cn=Domain Users)))                                                                                         |
| ldapGroupFilterGroups         | Domain Users                                                                                                                          |
| ldapGroupFilterMode           | 0                                                                                                                                     |
| ldapGroupFilterObjectclass    | group                                                                                                                                 |
| ldapGroupMemberAssocAttr      | member                                                                                                                                |
| ldapHost                      | IP                                                                                                                           |
| ldapIgnoreNamingRules         |                                                                                                                                       |
| ldapLoginFilter               | (&(&(|(objectclass=person))(|(|(memberof=CN=Domain Users,CN=Users,DC=dp,DC=example,DC=ru)(primaryGroupID=513))))(samaccountname=%uid)) |
| ldapLoginFilterAttributes     |                                                                                                                                       |
| ldapLoginFilterEmail          | 0                                                                                                                                     |
| ldapLoginFilterMode           | 0                                                                                                                                     |
| ldapLoginFilterUsername       | 1                                                                                                                                     |
| ldapNestedGroups              | 0                                                                                                                                     |
| ldapOverrideMainServer        |                                                                                                                                       |
| ldapPagingSize                | 1000                                                                                                                                  |
| ldapPort                      | 389                                                                                                                                   |
| ldapQuotaAttribute            |                                                                                                                                       |
| ldapQuotaDefault              |                                                                                                                                       |
| ldapTLS                       | 0                                                                                                                                     |
| ldapUserDisplayName           | displayname                                                                                                                           |
| ldapUserDisplayName2          |                                                                                                                                       |
| ldapUserFilter                | (&(|(objectclass=person))(|(|(memberof=CN=Domain Users,CN=Users,DC=dp,DC=example,DC=ru)(primaryGroupID=513))))                         |
| ldapUserFilterGroups          | Domain Users                                                                                                                          |
| ldapUserFilterMode            | 0                                                                                                                                     |
| ldapUserFilterObjectclass     | person                                                                                                                                |
| ldapUuidGroupAttribute        | auto                                                                                                                                  |
| ldapUuidUserAttribute         | auto                                                                                                                                  |
| turnOffCertCheck              | 1                                                                                                                                     |
| useMemberOfToDetectMembership | 1                                                                                                                                     |
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+

Client configuration

Browser:

Operating system:

Logs

Web server error log

root@ubuntu:/var/www/owncloud# tail -f /var/log/apache2/error.log
[Mon May 22 09:38:38.670776 2017] [:error] [pid 22060] [client 10.10.30.209:49024] PHP Fatal error:  Call to a member function processAttributes() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 733
[Mon May 22 11:03:32.346253 2017] [:error] [pid 22096] [client 10.10.30.209:37858] PHP Fatal error:  Call to a member function processAttributes() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 733, referer: https://cloud.mosreg.ru/index.php/s/7wm2ZoyGVMpAAfF/authenticate
[Tue May 23 10:38:33.218704 2017] [:error] [pid 22688] [client 10.10.30.209:36153] PHP Fatal error:  Call to a member function processAttributes() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 733
[Tue May 23 13:25:21.320338 2017] [:error] [pid 22096] [client 10.10.30.209:36917] PHP Fatal error:  Call to a member function processAttributes() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 733
[Tue May 23 13:26:12.964355 2017] [autoindex:error] [pid 27793] [client 10.10.30.209:37421] AH01276: Cannot serve directory /var/www/owncloud/core/doc/user/_static/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive, referer: https://cloud.mosreg.ru/core/doc/user/index.html
[Tue May 23 13:29:20.669039 2017] [authz_core:error] [pid 23149] [client 10.10.30.209:39059] AH01630: client denied by server configuration: /var/www/owncloud/data/.ocdata
[Tue May 23 13:31:11.904713 2017] [authz_core:error] [pid 22060] [client 10.10.30.209:40053] AH01630: client denied by server configuration: /var/www/owncloud/data/.ocdata
[Tue May 23 13:31:24.526748 2017] [authz_core:error] [pid 28454] [client 10.10.30.209:40158] AH01630: client denied by server configuration: /var/www/owncloud/data/.ocdata
[Tue May 23 13:31:49.187935 2017] [:error] [pid 23194] [client 10.10.30.209:40357] PHP Fatal error:  Call to a member function processAttributes() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 733
[Tue May 23 13:31:56.683642 2017] [authz_core:error] [pid 27794] [client 10.10.30.209:40465] AH01630: client denied by server configuration: /var/www/owncloud/data/.ocdata


ownCloud log (data/owncloud.log)

root@ubuntu:/var/www/owncloud# tail -f data/owncloud.log
{"reqId":"UbDOWrkiBYnFuRGlNebC","remoteAddr":"10.10.30.209","app":"files","message":" Backends provided no user object for 8FA7F58F-33FF-4C89-9E2B-E93BD21489C7","level":3,"time":"2017-05-23T10:31:48+00:00","method":"GET","url":"\/index.php\/avatar\/FFDE801C-6075-4C8A-A15B-7D6A18F14698\/28","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"UbDOWrkiBYnFuRGlNebC","remoteAddr":"10.10.30.209","app":"no app in context","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Backends provided no user object for 8FA7F58F-33FF-4C89-9E2B-E93BD21489C7\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(89): OC\\\\Files\\\\Filesystem::initMountPoints('8FA7F58F-33FF-4...')\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(581): OC\\\\Files\\\\Storage\\\\Shared->init()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(381): OC\\\\Files\\\\Storage\\\\Shared->getCache('', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1306): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/FFDE801C-6075-...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(341): OC\\\\Files\\\\Node\\\\Root->get('\\\/FFDE801C-6075-...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/server.php(742): OC\\\\Files\\\\Node\\\\Root->getUserFolder('FFDE801C-6075-4...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/core\\\/application.php(124): OC\\\\Server->getUserFolder()\\n#8 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Core\\\\Application->OC\\\\Core\\\\{closure}(Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/utility\\\/simplecontainer.php(102): Pimple\\\\Container->offsetGet('UserFolder')\\n#10 \\\/var\\\/www\\\/owncloud\\\/core\\\/application.php(88): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('UserFolder')\\n#11 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Core\\\\Application->OC\\\\Core\\\\{closure}(Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/utility\\\/simplecontainer.php(102): Pimple\\\\Container->offsetGet('AvatarControlle...')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(93): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('AvatarControlle...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('AvatarControlle...', 'getAvatar', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#15 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#17 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/avatar\\\/FFDE801...')\\n#18 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#19 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php\",\"Line\":390}","level":3,"time":"2017-05-23T10:31:48+00:00","method":"GET","url":"\/index.php\/avatar\/FFDE801C-6075-4C8A-A15B-7D6A18F14698\/28","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"UbDOWrkiBYnFuRGlNebC","remoteAddr":"10.10.30.209","app":"no app in context","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"File with id \\\"69232\\\" has not been found.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(90): OC\\\\Files\\\\View->getPath(69232)\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(581): OC\\\\Files\\\\Storage\\\\Shared->init()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(381): OC\\\\Files\\\\Storage\\\\Shared->getCache('', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1306): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/FFDE801C-6075-...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(341): OC\\\\Files\\\\Node\\\\Root->get('\\\/FFDE801C-6075-...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/server.php(742): OC\\\\Files\\\\Node\\\\Root->getUserFolder('FFDE801C-6075-4...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/core\\\/application.php(124): OC\\\\Server->getUserFolder()\\n#8 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Core\\\\Application->OC\\\\Core\\\\{closure}(Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/utility\\\/simplecontainer.php(102): Pimple\\\\Container->offsetGet('UserFolder')\\n#10 \\\/var\\\/www\\\/owncloud\\\/core\\\/application.php(88): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('UserFolder')\\n#11 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Core\\\\Application->OC\\\\Core\\\\{closure}(Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/utility\\\/simplecontainer.php(102): Pimple\\\\Container->offsetGet('AvatarControlle...')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(93): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('AvatarControlle...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('AvatarControlle...', 'getAvatar', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#15 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#17 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/avatar\\\/FFDE801...')\\n#18 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#19 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php\",\"Line\":1643}","level":3,"time":"2017-05-23T10:31:48+00:00","method":"GET","url":"\/index.php\/avatar\/FFDE801C-6075-4C8A-A15B-7D6A18F14698\/28","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"vJ2MX+H6CnFA1gtzC4Bf","remoteAddr":"10.10.30.209","app":"PHP","message":"Call to a member function processAttributes() on a non-object at \/var\/www\/owncloud\/apps\/user_ldap\/lib\/access.php#733","level":3,"time":"2017-05-23T10:31:49+00:00","method":"GET","url":"\/cron.php","user":"--"}
{"reqId":"iZ7MUVONIRLMTt09XYE9","remoteAddr":"10.10.30.209","app":"files","message":" Backends provided no user object for 8FA7F58F-33FF-4C89-9E2B-E93BD21489C7","level":3,"time":"2017-05-23T10:31:56+00:00","method":"GET","url":"\/index.php\/settings\/admin","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"iZ7MUVONIRLMTt09XYE9","remoteAddr":"10.10.30.209","app":"no app in context","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Backends provided no user object for 8FA7F58F-33FF-4C89-9E2B-E93BD21489C7\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(89): OC\\\\Files\\\\Filesystem::initMountPoints('8FA7F58F-33FF-4...')\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(581): OC\\\\Files\\\\Storage\\\\Shared->init()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(381): OC\\\\Files\\\\Storage\\\\Shared->getCache('', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1306): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/FFDE801C-6075-...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/avatarmanager.php(93): OC\\\\Files\\\\Node\\\\Root->get('\\\/FFDE801C-6075-...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/templatelayout.php(113): OC\\\\AvatarManager->getAvatar('FFDE801C-6075-4...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template.php(225): OC\\\\TemplateLayout->__construct('user', 'settings')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template\\\/base.php(122): OC_Template->fetchPage()\\n#9 \\\/var\\\/www\\\/owncloud\\\/settings\\\/admin.php(253): OC\\\\Template\\\\Base->printPage()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/ownclo...')\\n#11 [internal function]: __lambda_func(Array)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func('?lambda_4', Array)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/settings\\\/admin')\\n#14 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php\",\"Line\":390}","level":3,"time":"2017-05-23T10:31:56+00:00","method":"GET","url":"\/index.php\/settings\/admin","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"iZ7MUVONIRLMTt09XYE9","remoteAddr":"10.10.30.209","app":"no app in context","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"File with id \\\"69232\\\" has not been found.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(90): OC\\\\Files\\\\View->getPath(69232)\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(581): OC\\\\Files\\\\Storage\\\\Shared->init()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(381): OC\\\\Files\\\\Storage\\\\Shared->getCache('', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1306): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/FFDE801C-6075-...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/avatarmanager.php(93): OC\\\\Files\\\\Node\\\\Root->get('\\\/FFDE801C-6075-...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/templatelayout.php(113): OC\\\\AvatarManager->getAvatar('FFDE801C-6075-4...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template.php(225): OC\\\\TemplateLayout->__construct('user', 'settings')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template\\\/base.php(122): OC_Template->fetchPage()\\n#9 \\\/var\\\/www\\\/owncloud\\\/settings\\\/admin.php(253): OC\\\\Template\\\\Base->printPage()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/ownclo...')\\n#11 [internal function]: __lambda_func(Array)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func('?lambda_4', Array)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/settings\\\/admin')\\n#14 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php\",\"Line\":1643}","level":3,"time":"2017-05-23T10:31:56+00:00","method":"GET","url":"\/index.php\/settings\/admin","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"YIo8ZSZt6IdTilmd6ESz","remoteAddr":"10.10.30.209","app":"files","message":" Backends provided no user object for 8FA7F58F-33FF-4C89-9E2B-E93BD21489C7","level":3,"time":"2017-05-23T10:31:57+00:00","method":"PROPFIND","url":"\/remote.php\/webdav","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"YIo8ZSZt6IdTilmd6ESz","remoteAddr":"10.10.30.209","app":"no app in context","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Backends provided no user object for 8FA7F58F-33FF-4C89-9E2B-E93BD21489C7\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(89): OC\\\\Files\\\\Filesystem::initMountPoints('8FA7F58F-33FF-4...')\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(581): OC\\\\Files\\\\Storage\\\\Shared->init()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(381): OC\\\\Files\\\\Storage\\\\Shared->getCache('', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1306): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/FFDE801C-6075-...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(341): OC\\\\Files\\\\Node\\\\Root->get('\\\/FFDE801C-6075-...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/server.php(742): OC\\\\Files\\\\Node\\\\Root->getUserFolder('FFDE801C-6075-4...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/serverfactory.php(126): OC\\\\Server->getUserFolder()\\n#8 [internal function]: OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ServerFactory->OCA\\\\DAV\\\\Connector\\\\Sabre\\\\{closure}(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#9 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Object(Closure), Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#12 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(55): Sabre\\\\DAV\\\\Server->exec()\\n#13 \\\/var\\\/www\\\/owncloud\\\/remote.php(138): require_once('\\\/var\\\/www\\\/ownclo...')\\n#14 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/filesystem.php\",\"Line\":390}","level":3,"time":"2017-05-23T10:31:57+00:00","method":"PROPFIND","url":"\/remote.php\/webdav","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}
{"reqId":"YIo8ZSZt6IdTilmd6ESz","remoteAddr":"10.10.30.209","app":"no app in context","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"File with id \\\"69232\\\" has not been found.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(90): OC\\\\Files\\\\View->getPath(69232)\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/sharedstorage.php(581): OC\\\\Files\\\\Storage\\\\Shared->init()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(381): OC\\\\Files\\\\Storage\\\\Shared->getCache('', Object(OCA\\\\Files_Trashbin\\\\Storage))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1306): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getCache('')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/FFDE801C-6075-...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(341): OC\\\\Files\\\\Node\\\\Root->get('\\\/FFDE801C-6075-...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/server.php(742): OC\\\\Files\\\\Node\\\\Root->getUserFolder('FFDE801C-6075-4...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/serverfactory.php(126): OC\\\\Server->getUserFolder()\\n#8 [internal function]: OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ServerFactory->OCA\\\\DAV\\\\Connector\\\\Sabre\\\\{closure}(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#9 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Object(Closure), Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#12 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(55): Sabre\\\\DAV\\\\Server->exec()\\n#13 \\\/var\\\/www\\\/owncloud\\\/remote.php(138): require_once('\\\/var\\\/www\\\/ownclo...')\\n#14 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php\",\"Line\":1643}","level":3,"time":"2017-05-23T10:31:57+00:00","method":"PROPFIND","url":"\/remote.php\/webdav","user":"FFDE801C-6075-4C8A-A15B-7D6A18F14698"}

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
@akurach
Copy link
Author

akurach commented May 23, 2017

i've tried this:

MariaDB [owncloud]> drop index ldap_dn_users on oc_ldap_user_mapping;
Query OK, 0 rows affected (0.01 sec)
Records: 0  Duplicates: 0  Warnings: 0

MariaDB [owncloud]> alter table oc_ldap_user_mapping modify ldap_dn varchar(1024);
Query OK, 7456 rows affected, 2 warnings (0.09 sec)
Records: 7456  Duplicates: 0  Warnings: 2

MariaDB [owncloud]> create unique index ldap_dn_users on oc_ldap_user_mapping (ldap_dn);
ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes

@ghost
Copy link

ghost commented May 23, 2017

ownCloud version: ownCloud 9.0.2 (stable)

From the issue template you have filled out:

Before reporting any issues please make sure that you're using the latest available version for your major branch (e.g. 9.0.x), see https://owncloud.org/changelog/

For oC 9.0.x version 9.0.9 is current and you're missing 7 updates. Could be also possible that you're just hitting a bug here which might be already fixed in a recent version.

@akurach
Copy link
Author

akurach commented May 24, 2017

this bug is the reason why I can't upgrade owncloud. It fails to upgrade db.
@kdslkdsaldsal

here is update log:

root@ubuntu:/var/www/owncloud# sudo -u www-data php occ upgrade
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Checking whether the database schema can be updated (this can take a long time depending on the database size)
 Done
 24/24 [============================] 100%
Checked database schema update
Checking updates of apps
Checking whether the database schema for <activity> can be updated (this can take a long time depending on the database size)
 Done
 2/2 [============================] 100%
Checking whether the database schema for <dav> can be updated (this can take a long time depending on the database size)
 Done
 10/10 [============================] 100%
Checking whether the database schema for <federatedfilesharing> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <federation> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <files_sharing> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <files_trashbin> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <notifications> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <user_ldap> can be updated (this can take a long time depending on the database size)
 Done
 3/3 [============================] 100%
Checked database schema update for apps
Updating database schema
Updated database
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 0.3.0
Updating <gallery> ...
Updated <gallery> to 15.0.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 0.5.0
Updating <updatenotification> ...
Updated <updatenotification> to 0.2.1
Updating <federation> ...
Updated <federation> to 0.1.0
Updating <user_ldap> ...
Updated <user_ldap> to 0.9.0
Updating <files> ...
Updated <files> to 1.5.1
Updating <activity> ...
Updated <activity> to 2.3.2
Updating <dav> ...
Fix classification for calendar objects
 Done
    0/0 [>---------------------------]   0%
Updated <dav> to 0.2.7
Updating <files_sharing> ...
Updated <files_sharing> to 0.10.0
Updating <files_trashbin> ...
Updated <files_trashbin> to 0.9.0
Updating <files_versions> ...
Updated <files_versions> to 1.3.0
Updating <comments> ...
Updated <comments> to 0.3.0
Updating <notifications> ...
Updated <notifications> to 0.3.0
Updating <systemtags> ...
Updated <systemtags> to 0.3.0
Drop old database tables
 Done
 28/28 [============================] 100%
Remove old (< 9.0) calendar/contact shares
 Done
 4/4 [============================] 100%
Fix permissions so avatars can be stored again
 Done
 2/2 [============================] 100%
Repair unmerged shares
 Starting ...
     1/54664 [>---------------------------]   0% Exception: Error 5 interacting with memcached : WRITE FAILURE
Update failed
Maintenance mode is kept active
Reset log level

@terrytibbles
Copy link

Try disabling memcached and try again?

@akurach
Copy link
Author

akurach commented May 25, 2017

@terrytibbles nope^ error

root@ubuntu:/var/www/owncloud# sudo -u www-data php occ upgrade
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Checking whether the database schema can be updated (this can take a long time depending on the database size)
 Done
 24/24 [============================] 100%
Checked database schema update
Checking updates of apps
Checking whether the database schema for <activity> can be updated (this can take a long time depending on the database size)
 Done
 2/2 [============================] 100%
Checking whether the database schema for <dav> can be updated (this can take a long time depending on the database size)
 Done
 10/10 [============================] 100%
Checking whether the database schema for <federatedfilesharing> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <federation> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <files_sharing> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <files_trashbin> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <notifications> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <user_ldap> can be updated (this can take a long time depending on the database size)
 Done
 3/3 [============================] 100%
Checked database schema update for apps
Updating database schema
Updated database
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 0.3.0
Updating <gallery> ...
Updated <gallery> to 15.0.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 0.5.0
Updating <updatenotification> ...
Updated <updatenotification> to 0.2.1
Updating <federation> ...
Updated <federation> to 0.1.0
Updating <user_ldap> ...
Updated <user_ldap> to 0.9.0
Updating <files> ...
Updated <files> to 1.5.1
Updating <activity> ...
Updated <activity> to 2.3.2
Updating <dav> ...
Fix classification for calendar objects
 Done
    0/0 [>---------------------------]   0%
Updated <dav> to 0.2.7
Updating <files_sharing> ...
Updated <files_sharing> to 0.10.0
Updating <files_trashbin> ...
Updated <files_trashbin> to 0.9.0
Updating <files_versions> ...
Updated <files_versions> to 1.3.0
Updating <comments> ...
Updated <comments> to 0.3.0
Updating <notifications> ...
Updated <notifications> to 0.3.0
Updating <systemtags> ...
Updated <systemtags> to 0.3.0
Drop old database tables
 Done
 28/28 [============================] 100%
Remove old (< 9.0) calendar/contact shares
 Done
 4/4 [============================] 100%
Fix permissions so avatars can be stored again
 Done
 2/2 [============================] 100%
Repair unmerged shares
 Starting ...
     1/54838 [>---------------------------]   0% PHP Fatal error:  Call to a member function composeAndStoreDisplayName() on a non-object in /var/www/owncloud/apps/user_ldap/lib/Access.php on line 586

and /var/www/owncloud/data/owncloud.log:

{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}
{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"user_ldap","message":"initializing paged search for  Filter (&(|(objectclass=person))(|(|(memberof=CN=Domain Users,CN=Users,DC=dp,DC=mosreg,DC=ru)(primaryGroupID=513)))) base Array\n(\n    [0] => cn=\u0441\u0438\u0433\u0443\u043d\u043e\u0432 \u0430\u043b\u0435\u043a\u0441\u0435\u0439 \u0430\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u0438\u0447,ou=\u0448\u0442\u0430\u0442\u043d\u044b\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438,ou=users,ou=\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u043c\u0438 \u0433\u0443\u0431\u0435\u0440\u043d\u0430\u0442\u043e\u0440\u0430 \u043c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438,ou=\u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043e\u0440\u0433\u0430\u043d\u044b,ou=\u043e\u0440\u0433\u0430\u043d\u044b \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0432\u043b\u0430\u0441\u0442\u0438,dc=dp,dc=mosreg,dc=ru\n)\n attr Array\n(\n    [0] => \n)\n limit 1000 offset 0","level":0,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}
{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}
{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"user_ldap","message":"readAttribute: cn=\u0441\u0438\u0433\u0443\u043d\u043e\u0432 \u0430\u043b\u0435\u043a\u0441\u0435\u0439 \u0430\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u0438\u0447,ou=\u0448\u0442\u0430\u0442\u043d\u044b\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438,ou=users,ou=\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u043c\u0438 \u0433\u0443\u0431\u0435\u0440\u043d\u0430\u0442\u043e\u0440\u0430 \u043c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438,ou=\u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043e\u0440\u0433\u0430\u043d\u044b,ou=\u043e\u0440\u0433\u0430\u043d\u044b \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0432\u043b\u0430\u0441\u0442\u0438,dc=dp,dc=mosreg,dc=ru found","level":0,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}
{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"user_ldap","message":"initializing paged search for  Filter objectClass=* base Array\n(\n    [0] => cn=\u0431\u043e\u0439\u043a\u043e\u0432\u0430 \u043d\u0430\u0434\u0435\u0436\u0434\u0430 \u043d\u0438\u043a\u043e\u043b\u0430\u0435\u0432\u043d\u0430,ou=\u043e\u0442\u0434\u0435\u043b \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0439,ou=\u0441\u043b\u0443\u0436\u0431\u0430 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0439,ou=users,ou=\u0433\u0431\u0443 \u043c\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u0442\u0441\u043e,ou=\u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0435 \u0443\u0447\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f,ou=\u043f\u043e\u0434\u0432\u0435\u0434\u043e\u043c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438,dc=dp,dc=mosreg,dc=ru\n)\n attr Array\n(\n    [0] => objectguid\n)\n limit 1000 offset 0","level":0,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}
{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}
{"reqId":"K1zOZHOfdOjwOM4eRTV7","remoteAddr":"","app":"PHP","message":"Call to a member function composeAndStoreDisplayName() on a non-object at \/var\/www\/owncloud\/apps\/user_ldap\/lib\/Access.php#586","level":3,"time":"2017-05-25T06:17:13+00:00","method":"--","url":"--","user":"--"}

@ghost
Copy link

ghost commented May 25, 2017

@akurach It might really help if you could provide some background info about your current version and the version you're trying to upgrade to. The output shows that you're not trying to upgrade from 9.0.2 to 9.0.9 but to another newer version.

@akurach
Copy link
Author

akurach commented May 25, 2017

current ownCloud 9.0.2 (stable)
trying to update to 9.1.5-1.1

I'll try to update to latest 9.0.*

@ghost
Copy link

ghost commented May 25, 2017

I'll try to update to latest 9.0.*

Yes, thats highly recommended. Always jump to the latest minor release of your branch before doing the jump to the next major release:

9.0.2 -> 9.0.9 -> 9.1.5

Also make sure that you're deleting all files and folders except /data/ and /config/ in between the steps.

@akurach
Copy link
Author

akurach commented May 25, 2017

@kdslkdsaldsal same error

Setting up owncloud (9.0.9-1.1) ...
root@ubuntu:/var/www/owncloud# sudo -u www-data php occ upgrade -vvv
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2017-05-25T08:36:46+00:00 Set log level to debug
2017-05-25T08:36:46+00:00 Repair step: Repair encryption app incompatibility
2017-05-25T08:36:46+00:00 Repair info: No repair necessary
2017-05-25T08:36:46+00:00 Repair step: Repair MySQL database engine
2017-05-25T08:36:46+00:00 Repair step: Repair MySQL collation
2017-05-25T08:36:46+00:00 Repair step: Repair SQLite autoincrement
2017-05-25T08:36:46+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-05-25T08:36:46+00:00 Repair info: lucene_status table does not exist -> nothing to do
2017-05-25T08:36:46+00:00 Repair step: Copy the rewrite base to the config file
2017-05-25T08:36:46+00:00 Checking whether the database schema can be updated (this can take a long time depending on the database size)
2017-05-25T08:36:56+00:00 Checked database schema update
2017-05-25T08:36:56+00:00 Checking updates of apps
2017-05-25T08:36:56+00:00 Checked database schema update for apps
2017-05-25T08:36:56+00:00 Updating database schema
2017-05-25T08:36:56+00:00 Updated database
2017-05-25T08:36:56+00:00 Repair step: Repair mime types
2017-05-25T08:36:56+00:00 Repair step: Clear asset cache after upgrade
2017-05-25T08:36:56+00:00 Repair info: Asset pipeline disabled -> nothing to do
2017-05-25T08:36:56+00:00 Repair step: Generate ETags for file where no ETag is present.
2017-05-25T08:36:57+00:00 Repair info: ETags have been fixed for 0 files/folders.
2017-05-25T08:36:57+00:00 Repair step: Clean tags and favorites
2017-05-25T08:36:57+00:00 Repair info: 0 tags for delete files have been removed.
2017-05-25T08:36:57+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2017-05-25T08:36:57+00:00 Repair info: 0 tags with no entries have been removed.
2017-05-25T08:36:57+00:00 Repair step: Drop old database tables
2017-05-25T08:36:57+00:00 Repair step: Drop old background jobs
2017-05-25T08:36:57+00:00 Repair step: Remove getetag entries in properties table
2017-05-25T08:36:57+00:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
2017-05-25T08:36:57+00:00 Repair step: Repair outdated OCS IDs
2017-05-25T08:36:57+00:00 Repair step: Repair invalid shares
2017-05-25T08:36:57+00:00 Repair step: Repair unmerged shares
PHP Fatal error:  Call to a member function composeAndStoreDisplayName() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 584

@ghost
Copy link

ghost commented May 25, 2017

PHP Fatal error: Call to a member function composeAndStoreDisplayName() on a non-object in /var/www/owncloud/apps/user_ldap/lib/access.php on line 584

Looks like a duplicate of #26281 with a possible unreleased fix in #26337

@akurach
Copy link
Author

akurach commented May 25, 2017

same issue with long DN
nextcloud/server#2213

@akurach
Copy link
Author

akurach commented May 25, 2017

@kdslkdsaldsal dont you think that ignoring users that are exists - bad idea?) )i'm about unreleased fix

@akurach
Copy link
Author

akurach commented May 31, 2017

fix that worked for me:
Migrate mariadb to postgres
Alter table oc_ldap_user_mapping Alter column ldap_dn type varchar(65565);

profit

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants