Error: "500" Handling: "GET /yunohost/api/domains

I have searched the forum for similar issues

on

This category is for general issues(=something is broken) regarding YunoHost, NOT apps.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What type of hardware are you using

VPS bought online

What YunoHost version are you running

latest (just updated)

How are you able to access your server

The webadmin

Describe your issue

After messing around with PluXml (blog software) I get this message

<Error: “500” Handling: "GET /yunohost/api/domains>

and I am encouraged to consult the forum or the chat.

The further message is “Service slapd is not running but is required to perform this action … You can try to investigate what’s happening with ‘systenctl status slapd’”

But I do not know how to do that.

Just before things went wrong I had uploaded a theme for the PluXml (it did work for a while) by using FileZilla. In order to be able to use FileZilla I changed ownershio of var:

< chown -R my_admin_user: var >

(I did it first without the colon, which worked while I was logged into the server (via ssh in terminal. Shortly aft er it did not work anymore, and I added the colon - not really knowing if that would make a difference. But worked. At least for a short while)

I do not recall the exact detail of what I did the second when things broke down, but I was adding content to a blog post.

Any ideas of how to solve this?
E.g. how can I "investigate what’s happening with systemctl status slapd’?

Share relevant logs or error messages

It is quite strange.

Through a browser, I seem to bi ‘in’ the server, but I cannot see any apps. In fact it states that there are no apps installed.

Going through ssh via terminal I just get a “Permission denied, please try again.” I also cannot connect through FileZilla (which makes good sense cf. I can’t access through ssh).

This is really weird.

Even YH now states that there are no apps installed, some of them work. E.g., just before this ‘crash’ I installed PluXml (a flat CMS to build lightweight websites easily without database) and the blog post I made for testing is actually accessible. Also, my collabora server another blog I have (using my_webapp) work.

But e.g. my cryptpad server does not work ???

Via webadmin > tools > services > slapd you can restart slapd and share its log via yunopaste.

Just a few minutes ago I was suddenly logged out and now I cannot lob back in.

Wrong password or username

That is really troublesome because now I apparently have no access to the server!!??

By the way, I have tried to restart the server in two ways., First through Hetzner’s web console, secondly from the terminal, when I had access via ssh.

Try

systemctl start slapd
journalctl -u slapd -n 100 --no-pager

But I would have to login to the yunohost server itself to do that, right?

It does not accept my user+password combination

Yes, using the root account (not the admin user).

At this moment, I have no idea of another user+password combination… I am searching through all my notes about this.

The login is root

It is so long time ago I installed this, that I don’t remember, how exactly I did. As far as I can recall, I only have one user, which is my admin.
Still, following your advice, I logged in as root with my admin-user’s password, and that worked. I am in :slight_smile:

systemctl start slapd returns:

Job for slapd.service failed because the control process exited with error code.

See “systemctl status slapd.service” and “journalctl -xeu slapd.service” for details.

Running systemctl status slapd.service gives 13 lines of code, and I am not able to copy the from Hetzner’s webterminal

journalctl -xeu slapd.service gives 4339 lines of response, which cannot be copied.

Do you know if there is a way to copy and save those responses?

When running
journalctl -u slapd -n 100 --no-pager

it is reported again and again that slapd.service process is exited and status=1/FAILURE

It failed with result ‘exit-code’

I have now uninstalled the PluXml app. I cannot know for sure that that was the problem, but I do not want it anyway. I could remove it using yunohost app remove, but when I tried yunohost app remove --purge I was told the something could not be done because of slapd not running.

I am now trying to uninstall dokuwiki, which I also do not want, but again I get the same error message as when first ran systemctl start slapd above:

Job for slapd.service failed because the control process exited with error code.

See “systemctl status slapd.service” and “journalctl -xeu slapd.service” for details.

You can share the logs with

journalctl -u slapd -n 100 --no-pager | yunopaste
journalctl -xeu slapd.service | yunopaste
journalctl -u slapd -n 100 --no-pager | yunopaste

https://paste.yunohost.org/raw/osekuvopoh

journalctl -xeu slapd.service | yunopaste

https://paste.yunohost.org/raw/tequcamako

Can you share the output of

ls -la /var/lib/ldap

Is /var/lib/ldap owned by openldap ?

That’s very bad.
This folder should be owned by root:root. Inside it, the folder mail should be owned by root:mail and inside it, all the folders should be owned by vmail:mail. The www subfolders are owned by their respective system user apps.

You should fix the ldap issue before.
If you ever have a snapshot of your server, it would be much easier to fix