WordPress Not responding. Could not update option 'authLDAPOptions'.
-
Dear,
After auto Ubuntu security updates, I reboot today,
but, some WordPress Not responding.Log is
Mar 07 17:21:31 ==> Configuring LDAP
Mar 07 17:21:32 Error: Could not update option 'authLDAPOptions'.I try to delete plugin autoLDAP. but.. same..
Would you any comment how to solve this ?
-
Dear,
After auto Ubuntu security updates, I reboot today,
but, some WordPress Not responding.Log is
Mar 07 17:21:31 ==> Configuring LDAP
Mar 07 17:21:32 Error: Could not update option 'authLDAPOptions'.I try to delete plugin autoLDAP. but.. same..
Would you any comment how to solve this ?
-
@nebulon I have about 10 wordpress (developer) sites, but only 2 are not working, with this error:
Error: Could not update option 'authLDAPOptions'.
The only difference between these two and the other ones is that these two had been installed very recently, only a day before I updated cloudron
-
Just resetting the value and setting it again, makes it work in both instances. It's not clear why. From what I can make out, the LDAP url got some escaped slashes and this seems to confuse WP CLI.
root@ae694692-72b5-42ae-96bd-f8558c33e48e:/app/code# sudo -u www-data -i -- /app/pkg/wp --path=/app/data/public/ --skip-themes --skip-plugins --format=json options get authLDAPOptions {"Enabled":"1","CachePW":false,"URI":"ldap:\/\/172.18.0.1:3002\/ou=users,dc=cloudron","Filter":"(username=%s)","NameAttr":"givenName","SecName":"sn","UidAttr":"username","MailAttr":"mail","WebAttr":"","Debug":false,"DefaultRole":"administrator","GroupEnable":false,"GroupOverUser":false,"Version":1,"URISeparator":"","StartTLS":false,"Groups":{"administrator":"","editor":"","author":"","contributor":"","subscriber":""},"GroupSeparator":"","GroupBase":"","GroupAttr":"","GroupFilter":"","DoNotOverwriteNonLdapUsers":false}The fix was:
- Put app in repair mode
- Run below in web terminal
# sudo -u www-data -i -- /app/pkg/wp --path=/app/data/public/ --skip-themes --skip-plugins --format=json options update authLDAPOptions '{}'- Disable repair mode
-
Just resetting the value and setting it again, makes it work in both instances. It's not clear why. From what I can make out, the LDAP url got some escaped slashes and this seems to confuse WP CLI.
root@ae694692-72b5-42ae-96bd-f8558c33e48e:/app/code# sudo -u www-data -i -- /app/pkg/wp --path=/app/data/public/ --skip-themes --skip-plugins --format=json options get authLDAPOptions {"Enabled":"1","CachePW":false,"URI":"ldap:\/\/172.18.0.1:3002\/ou=users,dc=cloudron","Filter":"(username=%s)","NameAttr":"givenName","SecName":"sn","UidAttr":"username","MailAttr":"mail","WebAttr":"","Debug":false,"DefaultRole":"administrator","GroupEnable":false,"GroupOverUser":false,"Version":1,"URISeparator":"","StartTLS":false,"Groups":{"administrator":"","editor":"","author":"","contributor":"","subscriber":""},"GroupSeparator":"","GroupBase":"","GroupAttr":"","GroupFilter":"","DoNotOverwriteNonLdapUsers":false}The fix was:
- Put app in repair mode
- Run below in web terminal
# sudo -u www-data -i -- /app/pkg/wp --path=/app/data/public/ --skip-themes --skip-plugins --format=json options update authLDAPOptions '{}'- Disable repair mode
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
