Server: Apps cannot be installed using Chrome

Created on 12 Feb 2017  路  8Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Log in as administrator using Chrome
  2. Go to settings/apps

Expected behaviour

You should be able to select and deselect the apps.
bildschirmfoto 2017-02-12 um 13 33 45

Actual behaviour

You see the text "Die App kann nicht installiert werden, weil die folgenden Abh盲ngigkeiten nicht erf眉llt sind:"
bildschirmfoto 2017-02-12 um 13 34 08

Server configuration

Operating system:
Synology NAS DS412+ with DSM 6.0.2-8451 Update 9

Web server:
Apache 2.2.31

Database:
MariaDB 5.5.53

PHP version:
5.6.28

Nextcloud version: (see Nextcloud admin page)
11.0.1

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install

Where did you install Nextcloud from:
From https://download.nextcloud.com/server/releases/nextcloud-11.0.1.zip

Signing status:


Signing status
No errors have been found.

List of activated apps:


App list

Enabled:
  - audioplayer: 1.4.1
  - bookmarks: 0.9.1
  - calendar: 1.5.0
  - comments: 1.1.0
  - contacts: 1.5.3
  - dav: 1.1.1
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_pdfviewer: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - gallery: 16.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.0
  - notes: 2.2.0
  - notifications: 1.0.1
  - ojsxc: 3.0.2
  - password_policy: 1.1.0
  - previewgenerator: 1.0.1
  - provisioning_api: 1.1.0
  - rainloop: 4.26.0
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - survey_client: 0.1.5
  - systemtags: 1.1.3
  - tasks: 0.9.4
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - updatenotification: 1.1.1
  - user_ldap: 1.1.1
  - workflowengine: 1.1.1
Disabled:
  - activity
  - admin_audit
  - encryption
  - external
  - files_accesscontrol
  - files_automatedtagging
  - files_external
  - files_retention
  - mail
  - templateeditor
  - user_external
  - user_saml

The content of config/config.php:


Config report

{
    "system": {
        "instanceid": "myidthingy",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "42.42.42.42",
            "some.domain.tld"
        ],
        "datadirectory": "\/volume1\/archive\/nextcloud",
        "overwrite.cli.url": "https:\/\/some.domain.tld\/nextcloud",
        "dbtype": "mysql",
        "version": "11.0.1.2",
        "dbname": "nextcloud",
        "dbhost": "localhost",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "mail_from_address": "username",
        "mail_smtpmode": "sendmail",
        "mail_domain": "domain.tld",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "loglevel": 2,
        "maintenance": false,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory"
    }
}

Are you using external storage, if yes which one:
no

Are you using encryption:
no

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

LDAP configuration (delete this part if not used)


LDAP config

| Configuration                 |                                                                                                          |
+-------------------------------+----------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                        |
| hasPagedResultSupport         |                                                                                                          |
| homeFolderNamingRule          |                                                                                                          |
| lastJpegPhotoLookup           | 0                                                                                                        |
| ldapAgentName                 | uid=root,cn=users,dc=domain,dc=tld                                                                          |
| ldapAgentPassword             | ***                                                                                                      |
| ldapAttributesForGroupSearch  |                                                                                                          |
| ldapAttributesForUserSearch   |                                                                                                          |
| ldapBackupHost                |                                                                                                          |
| ldapBackupPort                |                                                                                                          |
| ldapBase                      | dc=domain,dc=tld                                                                                         |
| ldapBaseGroups                | dc=+-------------------------------+----------------------------------------------------------------------------------------------------------+
| Configuration                 |                                                                                                          |
+-------------------------------+----------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                        |
| hasPagedResultSupport         |                                                                                                          |
| homeFolderNamingRule          |                                                                                                          |
| lastJpegPhotoLookup           | 0                                                                                                        |
| ldapAgentName                 | uid=root,cn=users,dc=domain,dc=tld                                                                          |
| ldapAgentPassword             | ***                                                                                                      |
| ldapAttributesForGroupSearch  |                                                                                                          |
| ldapAttributesForUserSearch   |                                                                                                          |
| ldapBackupHost                |                                                                                                          |
| ldapBackupPort                |                                                                                                          |
| ldapBase                      | dc=domain,dc=tld                                                                                            |
| ldapBaseGroups                | dc=domain,dc=tld                                                                                            |
| ldapBaseUsers                 | dc=domain,dc=tld                                                                                            |
| ldapCacheTTL                  | 600                                                                                                      |
| ldapConfigurationActive       | 1                                                                                                        |
| ldapDynamicGroupMemberURL     |                                                                                                          |
| ldapEmailAttribute            |                                                                                                          |
| ldapExperiencedAdmin          | 0                                                                                                        |
| ldapExpertUUIDGroupAttr       |                                                                                                          |
| ldapExpertUUIDUserAttr        |                                                                                                          |
| ldapExpertUsernameAttr        |                                                                                                          |
| ldapGroupDisplayName          | cn                                                                                                       |
| ldapGroupFilter               |                                                                                                          |
| ldapGroupFilterGroups         |                                                                                                          |
| ldapGroupFilterMode           | 0                                                                                                        |
| ldapGroupFilterObjectclass    |                                                                                                          |
| ldapGroupMemberAssocAttr      | uniqueMember                                                                                             |
| ldapHost                      | 42.42.23.23                                                                                            |
| ldapIgnoreNamingRules         |                                                                                                          |
| ldapLoginFilter               | (&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=Directory Clients,cn=groups,dc=dabo,dc=de)))(uid=%uid)) |
| ldapLoginFilterAttributes     |                                                                                                          |
| ldapLoginFilterEmail          | 0                                                                                                        |
| ldapLoginFilterMode           | 0                                                                                                        |
| ldapLoginFilterUsername       | 1                                                                                                        |
| ldapNestedGroups              | 0                                                                                                        |
| ldapOverrideMainServer        |                                                                                                          |
| ldapPagingSize                | 500                                                                                                      |
| ldapPort                      | 389                                                                                                      |
| ldapQuotaAttribute            |                                                                                                          |
| ldapQuotaDefault              |                                                                                                          |
| ldapTLS                       | 1                                                                                                        |
| ldapUserDisplayName           | displayname                                                                                              |
| ldapUserDisplayName2          |                                                                                                          |
| ldapUserFilter                | (&(|(objectclass=inetOrgPerson))(|(memberof=cn=Directory Clients,cn=groups,dc=dabo,dc=de)))              |
| ldapUserFilterGroups          | Directory Clients                                                                                        |
| ldapUserFilterMode            | 0                                                                                                        |
| ldapUserFilterObjectclass     | inetOrgPerson                                                                                            |
| ldapUuidGroupAttribute        | auto                                                                                                     |
| ldapUuidUserAttribute         | auto                                                                                                     |
| turnOffCertCheck              | 0                                                                                                        |
| turnOnPasswordChange          | 0                                                                                                        |
| useMemberOfToDetectMembership | 1                                                                                                        |
+-------------------------------+----------------------------------------------------------------------------------------------------------+                                                                                         |
| ldapBaseUsers                 | dc=domain,dc=tld                                                                                            |
| ldapCacheTTL                  | 600                                                                                                      |
| ldapConfigurationActive       | 1                                                                                                        |
| ldapDynamicGroupMemberURL     |                                                                                                          |
| ldapEmailAttribute            |                                                                                                          |
| ldapExperiencedAdmin          | 0                                                                                                        |
| ldapExpertUUIDGroupAttr       |                                                                                                          |
| ldapExpertUUIDUserAttr        |                                                                                                          |
| ldapExpertUsernameAttr        |                                                                                                          |
| ldapGroupDisplayName          | cn                                                                                                       |
| ldapGroupFilter               |                                                                                                          |
| ldapGroupFilterGroups         |                                                                                                          |
| ldapGroupFilterMode           | 0                                                                                                        |
| ldapGroupFilterObjectclass    |                                                                                                          |
| ldapGroupMemberAssocAttr      | uniqueMember                                                                                             |
| ldapHost                      | 42.42.23.23                                                                                            |
| ldapIgnoreNamingRules         |                                                                                                          |
| ldapLoginFilter               | (&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=Directory Clients,cn=groups,dc=domain,dc=tld)))(uid=%uid)) |
| ldapLoginFilterAttributes     |                                                                                                          |
| ldapLoginFilterEmail          | 0                                                                                                        |
| ldapLoginFilterMode           | 0                                                                                                        |
| ldapLoginFilterUsername       | 1                                                                                                        |
| ldapNestedGroups              | 0                                                                                                        |
| ldapOverrideMainServer        |                                                                                                          |
| ldapPagingSize                | 500                                                                                                      |
| ldapPort                      | 389                                                                                                      |
| ldapQuotaAttribute            |                                                                                                          |
| ldapQuotaDefault              |                                                                                                          |
| ldapTLS                       | 1                                                                                                        |
| ldapUserDisplayName           | displayname                                                                                              |
| ldapUserDisplayName2          |                                                                                                          |
| ldapUserFilter                | (&(|(objectclass=inetOrgPerson))(|(memberof=cn=Directory Clients,cn=groups,dc=domain,dc=tld)))              |
| ldapUserFilterGroups          | Directory Clients                                                                                        |
| ldapUserFilterMode            | 0                                                                                                        |
| ldapUserFilterObjectclass     | inetOrgPerson                                                                                            |
| ldapUuidGroupAttribute        | auto                                                                                                     |
| ldapUuidUserAttribute         | auto                                                                                                     |
| turnOffCertCheck              | 0                                                                                                        |
| turnOnPasswordChange          | 0                                                                                                        |
| useMemberOfToDetectMembership | 1                                                                                                        |
+-------------------------------+----------------------------------------------------------------------------------------------------------+

Client configuration

Browser:
Chrome 56.0.2924.87 (64-bit)

Operating system:
MacOS 10.11.6 and Linux Ubuntu 16.04.

Logs

Web server error log


Web server error log

Sorry, no logs here due to the NAS.

Nextcloud log (data/nextcloud.log)


Nextcloud log

{"reqId":"rWQjgsyhmoMqxALe9ps5","remoteAddr":"42.42.23.23","app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/volume1\/web\/nextcloud\/lib\/private\/legacy\/image.php#597","level":3,"time":"2017-02-12T09:40:08+00:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FBilder%2FDropbox+-+2014_Bezwahl_HH_Plakate_14_medium.jpg","user":"1ee9390a-17e6-1034-987a-45cc9ebd0ecc","version":"11.0.1.2"}
{"reqId":"N0gJ3orGLtaJqBRpd4hL","remoteAddr":"42.42.23.23","app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/volume1\/web\/nextcloud\/lib\/private\/legacy\/image.php#597","level":3,"time":"2017-02-12T09:40:14+00:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FBilder%2FDropbox+-+2014_Bezwahl_HH_Plakate_14_medium.jpg","user":"1ee9390a-17e6-1034-987a-45cc9ebd0ecc","version":"11.0.1.2"}
{"reqId":"NvyXJHkQMU7cbuDNPeNE","remoteAddr":"42.42.23.23","app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/volume1\/web\/nextcloud\/lib\/private\/legacy\/image.php#597","level":3,"time":"2017-02-12T09:41:12+00:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FBilder%2FDropbox+-+2014_Bezwahl_HH_Plakate_14_medium.jpg","user":"1ee9390a-17e6-1034-987a-45cc9ebd0ecc","version":"11.0.1.2"}
{"reqId":"3RM53F8\/WcNPIZv+y5vC","remoteAddr":"42.42.23.23","app":"no app in context","message":"Missing expected parameters in change user hook","level":2,"time":"2017-02-12T09:41:35+00:00","method":"POST","url":"\/nextcloud\/index.php\/avatar\/cropped","user":"1ee9390a-17e6-1034-987a-45cc9ebd0ecc","version":"11.0.1.2"}
{"reqId":"3RM53F8\/WcNPIZv+y5vC","remoteAddr":"42.42.23.23","app":"no app in context","message":"Missing expected parameters in change user hook","level":2,"time":"2017-02-12T09:41:37+00:00","method":"POST","url":"\/nextcloud\/index.php\/avatar\/cropped","user":"1ee9390a-17e6-1034-987a-45cc9ebd0ecc","version":"11.0.1.2"}
{"reqId":"j3lXZQ262PxWa95EmNFG","remoteAddr":"42.42.23.23","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2017-02-12T10:23:03+00:00","method":"POST","url":"\/nextcloud\/index.php\/heartbeat","user":"--","version":"11.0.1.2"}
{"reqId":"xBs2tTMlSHYgQIwQbcRa","remoteAddr":"42.42.23.23","app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/volume1\/web\/nextcloud\/lib\/private\/legacy\/image.php#597","level":3,"time":"2017-02-12T10:26:09+00:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FBilder%2FDropbox+-+2014_Bezwahl_HH_Plakate_14_medium.jpg&c=aec051ec8b8c27b2151330cb1c490166&x=32&y=32&forceIcon=0","user":"1ee9390a-17e6-1034-987a-45cc9ebd0ecc","version":"11.0.1.2"}
{"reqId":"SWA6NY5KmPm6t8wzb41b","remoteAddr":"42.42.23.23","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2017-02-12T11:06:58+00:00","method":"POST","url":"\/nextcloud\/index.php\/heartbeat","user":"--","version":"11.0.1.2"}
{"reqId":"i6SJXzEPFbsuDGsJP06H","remoteAddr":"42.42.23.23","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2017-02-12T11:19:02+00:00","method":"POST","url":"\/nextcloud\/index.php\/heartbeat","user":"--","version":"11.0.1.2"}
{"reqId":"T3nh2rX0YPqTKvI0f2JT","remoteAddr":"42.42.23.23","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2017-02-12T12:02:29+00:00","method":"POST","url":"\/nextcloud\/index.php\/settings\/admin\/mailtest","user":"username","version":"11.0.1.2"}

Browser log


Browser log


needs info

Most helpful comment

This is a really funny issue. :joy:

All 8 comments

Works fine here using Nextcloud 11 and 12 with Chrome 55

Looks like some JS goes wild. This is also the page with already installed apps. Mmmmh. Is there anything in the web developer tools console in your browser?

I will have a look at it when I'm back at the clients again that are making these problems.

I know what caused the problem: I'm using the "Binnen-I be gone" extension in chrome. This causes the problem.

I know what caused the problem: I'm using the "Binnen-I be gone" extension in chrome. This causes the problem.

Do you have any further details what this extension actually broke? Has it replaced some code on our side or what was going wrong there?

"Binnen-I be gone" is a script that changes the content of a page. It normalizes the different forms of "Binnen-I", "Gender-Gap", "Gender Star" and their different variations.

I guess that somewhere in the nextcloud javascript code that is responsible for displaying this warning, there is a text that was falsely replaced by this extension.

The extension replaces canInstall with canstall and canUnInstall with canUnstall in our ajax responses, so our checks don't pass anymore...

This is a really funny issue. :joy:

Was this page helpful?
0 / 5 - 0 ratings