The backend <OCA\User_LDAP\User_Proxy> does not exist. Did you forget to enable the app?

Symptom

When using the occ user:sync command you get the following message The backend <OCA\User_LDAP\User_Proxy> does not exist. Did you forget to enable the app?

Environment

owncloud 10.x

Steps to reproduce

1.Run the occ user:sync command (manually or within a cron job)

2.Notice the message/notification : The backend <OCA\User_LDAP\User_Proxy> does not exist. Did you forget to enable the app?

Cause

Possibles causes :

The backend used is with wrong quotes. For example “OCA\User_LDAP\User_Proxy” instead of “OCA\User_LDAP\User_Proxy”

Something is wrong with the occ script used

Solution/Workaround

Make sure the backend used is with the correct quotes " : “OCA\User_LDAP\User_Proxy”

Make sure the occ script used is correct. For this, you can try our ansible script for troubleshooting https://github.com/owncloud-ansible/owncloud/blob/master/templates/usr/local/bin/occ.j2

References