Hi all!
I hope somebody can help me with this, I’m a bit out of ideas…
How can I restore my LDAP-Settings in Nextcloud?
My YunoHost server
Hardware: Old laptop
YunoHost version: 3.7.0.12
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
After upgrading Yunohost and Nextcloud all seemed good. Then I was checking the LDAP-Settings in Nextcloud. Since then I’m not able to reach Nextcloud anymore. I’m only getting an Internal Server Error:
Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
As it happend after I was fiddling with the ldap settings in Nextcloud I think it must have a connection and I think this shows me I’m right:
sudo grep -i error /home/yunohost.app/nextcloud/data/nextcloud.log | tail
{"reqId":"Jb5Hd6lGv8flhlZPzhiI","level":2,"time":"2020-04-04T13:11:11+00:00","remoteAddr":"MYIP","user":"--","app":"user_ldap","method":"PROPFIND","url":"/nextcloud/remote.php/webdav/","message":"Configuration Error (prefix ): login filter does not contain %uid place holder.","userAgent":"Mozilla/5.0 (Linux) mirall/2.6.1stable (build 20191104) (Nextcloud)","version":"18.0.2.2"}
sudo -u nextcloud php7.3 /var/www/nextcloud/occ ldap:test-config s01
The configuration is invalid. Please have a look at the logs for further details.
But I’m not sure what I have done. So I was thinking of restoring the ldap settings from my old backup.
The backup restore FullSystemBackup --system conf_ldap
seemed to have worked but didn’t change anything.
The backup restore Nextcloud-Pre-Upgrade --apps
didn’t go through:
ended_at: 2020-04-04 11:55:44.867435
error: Operation unit has not been closed properly
operation: backup_restore_app
related_to:
- - app
- nextcloud
started_at: 2020-04-04 11:55:44.865748
success: false
============
2020-04-04 13:55:44,866: INFO - Restoring the app 'nextcloud'…
2020-04-04 13:55:44,867: ERROR - An app with the ID 'nextcloud' is already installed
Maybe there is a possibility to write the ldap settings manually but I don’t know how.