Issue with user groups (8.1.1 > update > 8.2.latest)

Steps to reproduce

We’ve updated OwnCloud 8.1.1 to 8.2.latest (11). In the course of the update we updated PHP to 7.1 too.

Expected behaviour

Each group should count and show its users.

Actual behaviour

A problem in regards to user groups occured. Some of the groups can’t load its users. The groups are server-, not ldap groups! The usercount (right hand side) is missing too.

Server configuration

Operating system:
CentOS Linux release 7.4.1708 (Core)

Web server:
Server version: Apache/2.4.6 (CentOS)

Database:
MariaDB database server (mysql, CentOS)

PHP version:
PHP 7.1.18

ownCloud version: (see ownCloud admin page)
8.2.11

Updated from an older ownCloud or fresh install:
from 8.1.1 to 8.2.11

Where did you install ownCloud from:
Official tarball.

The content of config/config.php:
{
“system”: {
“instanceid”: “ocwvbfomk18y”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“cloud-dev.domain”,
“web-cloud-dev.domain”
],
“datadirectory”: “/var/www/html/owncloud/data”,
“overwrite.cli.url”: “http://cloud.h.domain”,
“dbtype”: “mysql”,
“version”: “8.2.11.1”,
“dbname”: “owncloud”,
“dbhost”: “127.0.0.1”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“ldapIgnoreNamingRules”: false,
“forcessl”: true,
“forceSSLforSubdomains”: true,
“theme”: “”,
“maintenance”: false,
“loglevel”: 3,
“trashbin_retention_obligation”: “auto”
}
}

List of activated apps:
Enabled:

  • activity: 2.1.4
  • files: 1.2.1
  • files_pdfviewer: 0.7.1
  • files_sharing: 0.7.0
  • files_texteditor: 2.0
  • files_trashbin: 0.7.0
  • files_versions: 1.1.0
  • files_videoviewer: 0.1.3
  • firstrunwizard: 1.1
  • gallery: 14.2.0
  • provisioning_api: 0.3.0
  • templateeditor: 0.1
  • updater: 0.6
  • user_ldap: 0.7.1
    Disabled:
  • encryption
  • external
  • files_antivirus
  • files_external
  • notifications
  • user_external

Are you using external storage, if yes which one: local/smb/sftp/…
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
freeIPA

LDAP configuration (delete this part if not used)

±------------------------------±----------------------------------------------------------------------------------------+
| Configuration | s01 |
±------------------------------±----------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport | |
| hasPagedResultSupport | |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | uid=system,cn=sysaccounts,cn=etc,dc=domain,dc=local |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | ldaps://sys-ipa-0-prod.domain.at |
| ldapBackupPort | 636 |
| ldapBase | cn=users,cn=accounts,dc=domain,dc=local |
| ldapBaseGroups | cn=groups,cn=compat,dc=domain,dc=local |
| ldapBaseUsers | cn=users,cn=accounts,dc=domain,dc=local |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | uidNumber |
| ldapExpertUsernameAttr | |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (|(cn=users)) |
| ldapGroupFilterGroups | users |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | |
| ldapGroupMemberAssocAttr | memberUid |
| ldapHost | ldaps://sys-ipa-1-prod.domain.at |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(|(objectclass=posixAccount))(|(uid=%uid)(|(cn=%uid)(ipaAnchorUUID=%uid)(uid=%uid)))) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 636 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | cn |
| ldapUserDisplayName2 | |
| ldapUserFilter | (|(objectclass=posixAccount)) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 1 |
| ldapUserFilterObjectclass | posixAccount |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 1 |
| useMemberOfToDetectMembership | 1 |
±------------------------------±----------------------------------------------------------------------------------------+

Client configuration

Browser:
FF/chrome

Operating system:
any

Logs

Web server error log

PHP Fatal error:  Cannot use lexical variable $eventName as a parameter name in /var/www/html/owncloud/3rdparty/guzzlehttp/guzzle/src/Event/Emitter.php on line 48

ownCloud log (data/owncloud.log)

tail /var/www/html/owncloud/data/owncloud.log
{"reqId":"W0Sd7EoEvuVcCJzpi9HYhwAAAAY","remoteAddr":"127.0.0.1","app":"user_ldap","message":"Could not autodetect the UUID attribute","level":3,"time":"2018-07-10T11:52:12+00:00"}
{"reqId":"W0Sd-xJITKDhcRfP6pJv-AAAAAA","remoteAddr":"127.0.0.1","app":"PHP","message":"tempnam(): file created in the system's temporary directory at \/var\/www\/html\/owncloud\/lib\/private\/tempmanager.php#228","level":3,"time":"2018-07-10T11:52:31+00:00"}
{"reqId":"W0Sd-xJITKDhcRfP6pJv-AAAAAA","remoteAddr":"127.0.0.1","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2018-07-10T11:52:31+00:00"}
{"reqId":"W0Sd-xJITKDhcRfP6pJv-AAAAAA","remoteAddr":"127.0.0.1","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2018-07-10T11:52:31+00:00"}
{"reqId":"W0Sd-xJITKDhcRfP6pJv-AAAAAA","remoteAddr":"127.0.0.1","app":"PHP","message":"ldap_control_paged_result_response(): No server controls in result at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#70","level":3,"time":"2018-07-10T11:52:31+00:00"}
{"reqId":"W0Sd-xJITKDhcRfP6pJv-AAAAAA","remoteAddr":"127.0.0.1","app":"user_ldap","message":"Could not autodetect the UUID attribute","level":3,"time":"2018-07-10T11:52:31+00:00"}
{"reqId":"vGTvYA3tQnzpYNqm9KAs","remoteAddr":"","app":"PHP","message":"tempnam(): file created in the system's temporary directory at \/var\/www\/html\/owncloud\/lib\/private\/tempmanager.php#228","level":3,"time":"2018-07-11T09:58:19+00:00"}
{"reqId":"bJIX85JU4WuPBU2C4RrF","remoteAddr":"","app":"PHP","message":"tempnam(): file created in the system's temporary directory at \/var\/www\/html\/owncloud\/lib\/private\/tempmanager.php#228","level":3,"time":"2018-07-11T09:59:41+00:00"}
{"reqId":"fc59Jot+M\/\/MmnypZHqh","remoteAddr":"","app":"PHP","message":"tempnam(): file created in the system's temporary directory at \/var\/www\/html\/owncloud\/lib\/private\/tempmanager.php#228","level":3,"time":"2018-07-11T10:00:26+00:00"}

Hey, from what i know ownCoud 8.2.11 is end of life since a little bit more then one year ago so its probably the best to continue with the upgrade to the latest ownCloud 10.0.8

hi tom, thank you for your response.
We’ve already updated to the latest version, and faced the same issue for ALL groups in the end. So we reverted our dev system and started to upgrade step by step to resolve issues as soon as they occur.

KR Hannes

Hey, from what i know ownCloud 8.2.11 isn’t compatible with PHP 7.1 so this could explain your current issue with the local groups and the messages in the logs.

For the ldap groups in ownCloud 10.0 this could be interesting as well:

https://doc.owncloud.org/server/latest/admin_manual/release_notes.html#existing-ldap-users-only-show-up-in-the-user-management-page-and-the-share-dialog-after-being-synced

hey,

we actually do not want to use LDAP Groups for our owncloud instance.

anyways, i’m going to upgrade to the next version and I’d keep you updated. thank you

upgrade to 9.1.X fixed this issue. Reason: unknown.

1 Like

Hey, maybe ownCloud 9.1.x was the first version with PHP 7.0/7.1 support?

I have also found this post about ownCloud 10.0.8, maybe this doesn’t happen on 9.1.x currently?