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

**URL:** <https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991>\
**Category:** Support\
**Tags:** error, yunohost, english\
**Created:** [September 13, 2026, 12:59pm UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991 "2026-09-13T12:59:14Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 4:36am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/21 "2026-09-14T04:36:04Z")

</div>

[https://paste.yunohost.org/raw/eluxohucoz](https://paste.yunohost.org/raw/eluxohucoz)

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

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 4:39am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/22 "2026-09-14T04:39:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 4:42am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/23 "2026-09-14T04:42:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [September 14, 2026, 6:42am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/24 "2026-09-14T06:42:28Z")

</div>

`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

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 9:12am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/25 "2026-09-14T09:12:34Z")

</div>

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/.../`

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [September 14, 2026, 9:17am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/26 "2026-09-14T09:17:19Z")

</div>

Did ldap work?

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 9:22am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/27 "2026-09-14T09:22:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [September 14, 2026, 12:13pm UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/28 "2026-09-14T12:13:49Z")

</div>

`systemctl restart slapd` and `systemctl status slapd`

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 4:16pm UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/29 "2026-09-14T16:16:54Z")

</div>

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)?

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [September 14, 2026, 4:27pm UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/30 "2026-09-14T16:27:04Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 14, 2026, 5:08pm UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/31 "2026-09-14T17:08:43Z")

</div>

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

At least that was a step in the right direction.

---

<div class="post-metadata">

**Author:** ![jacobb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jacobb](https://forum.yunohost.org/u/jacobb)\
**Post date:** [September 15, 2026, 5:19am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/32 "2026-09-15T05:19:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [October 15, 2026, 5:20am UTC](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991/33 "2026-10-15T05:20:40Z")

</div>

Closed on October 15, 2026, 5:20am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.yunohost.org/t/error-500-handling-get-yunohost-api-domains/42991.md?page=1)
