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

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

How can I see if /var/lib/ldap is owned by openldap ?

I wish I had asked first.

I do not remember exactly how I came to this solution, but some time ago I had the issue of not being able to upload files via FileZilla. I read somewhere that this was probably because of the ownership and found the solution to change the owner. That worked and has worked since, but probably not at the var level.

Is there a way to restore original ownerships?

Once I fix this, I will learn to make snapshots.

But since I ran the chown -R my_admin_user: varcommand, I suspect the owner is not openldp

chown -R openldap:openldap /var/lib/ldap
Puis redémarrer ldap.
Pour les autres dossiers à l’intérieur de /var/lib :

  • postfix > postfix:postfix
  • postgresql > postgres:postgres
  • redis > redis:redis

Thanks.

There is no postgres and redis directory in /var/lib.

find -name postgress from # gives one folder: /var/www/myspeed/.../postgres

find -name redis from # gives

  • one folder under /var/www/cryptpad/.../
  • two folders under /var/lib/php/modules/.../
  • two folders under /usr/share/yunohost/.../

Did ldap work?

I am not sure how to test that - it has nothing to do with slapd, right?

systemctl restart slapd and systemctl status slapd

It seems to be running now.

Thank you so much.

Unfortunately, my cryptpad-server is still not working. When opening it, I get

502 Bad Gateway

If you see this page, your connection with the server is working but the internal service providing this path is not responding.

Administrator, make sure that the service is running, and check its logs if it is not.
The Services page is in your webadmin, under Tools > Services.

Thank you for using YunoHost.

I suspect it could be the same issue with my_admin_user being the owner of all folders under /var

Do you know what would be the correct owners or where I can look it up (if that is even possible)?

Forcing the upgrade of all your apps (via webadmin or CLI -yunohost app upgrade xxx -b --force-) should fix some of the permissions issues for the apps. But there are many folders under /var…

ls -la /var

After force upgrading it now says “loading…” but no more happens.

At least that was a step in the right direction.

I think I will have to backup the user data on my cryptpad instance, make a fresh install of it and copy the backed up user data.

I will start a new topic for that.

@otm33 and @jarod5001 Thanks for your help so far. It is highly appreciated.