# Owntracks Error 502

**URL:** <https://syncloud.discourse.group/t/owntracks-error-502/574>\
**Category:** Existing Apps\
**Tags:** owntracks\
**Created:** [21 May 2025 11:37 UTC](https://syncloud.discourse.group/t/owntracks-error-502/574 "2025-05-21T11:37:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://yyz2.discourse-cdn.com/free1/user_avatar/syncloud.discourse.group/dan/32/138_2.png) [@Dan](https://syncloud.discourse.group/u/Dan)\
**Post date:** [21 May 2025 11:37 UTC](https://syncloud.discourse.group/t/owntracks-error-502/574/1 "2025-05-21T11:37:06Z")

</div>

Every couple of days I’ll get an error 502 on both the desktop and android application. Backing up, removing, re-installing and restoring backup temporarily fixes the issue.

Here are some logs that might be useful

```auto
May 21 11:17:28 syncloud platform.nginx-public[536]: 2025/05/21 11:17:28 [crit] 1797#1797: *111 connect() to unix:/var/snap/owntracks/common/web.socket failed (2: No such file or directory) while connecting to upstream, client: 2400:a842:a4c8:0:be7c:6d32:c68b:c344, server: ~^(.*\.)?(?P<app>.*)\.domain\.au$, request: "GET /favicon.ico HTTP/2.0", upstream: "http://unix:/var/snap/owntracks/common/web.socket:/favicon.ico", host: "owntracks.domain.net", referrer: "https://owntracks.domain.net/"

May 21 11:17:28 syncloud ld-2.31.so[1797]: syncloud nginx: 2025/05/21 11:17:28 [crit] 1797#1797: *111 connect() to unix:/var/snap/owntracks/common/web.socket failed (2: No such file or directory) while connecting to upstream, client: 2400:a842:a4c8:0:be7c:6d32:c68b:c344, server: ~^(.*\.)?(?P<app>.*)\.domain\.au$, request: "GET /favicon.ico HTTP/2.0", upstream: "http://unix:/var/snap/owntracks/common/web.socket:/favicon.ico", host: "owntracks.domain.net", referrer: "https://owntracks.domain.net/"

May 21 11:17:28 syncloud ld-2.31.so[1797]: syncloud nginx: 2400:a842:a4c8:0:be7c:6d32:c68b:c344 - - [21/May/2025:11:17:28 +0000] "GET / HTTP/2.0" 502 157 "https://domain.net/" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"

May 21 11:17:28 syncloud platform.nginx-public[536]: 2025/05/21 11:17:28 [crit] 1797#1797: *111 connect() to unix:/var/snap/owntracks/common/web.socket failed (2: No such file or directory) while connecting to upstream, client: 2400:a842:a4c8:0:be7c:6d32:c68b:c344, server: ~^(.*\.)?(?P<app>.*)\.domain\.au$, request: "GET / HTTP/2.0", upstream: "http://unix:/var/snap/owntracks/common/web.socket:/", host: "owntracks.domain.net", referrer: "https://domain.net/"

May 21 11:17:28 syncloud ld-2.31.so[1797]: syncloud nginx: 2025/05/21 11:17:28 [crit] 1797#1797: *111 connect() to unix:/var/snap/owntracks/common/web.socket failed (2: No such file or directory) while connecting to upstream, client: 2400:a842:a4c8:0:be7c:6d32:c68b:c344, server: ~^(.*\.)?(?P<app>.*)\.domain\.au$, request: "GET / HTTP/2.0", upstream: "http://unix:/var/snap/owntracks/common/web.socket:/", host: "owntracks.domain.net", referrer: "https://domain.net/"

May 21 11:17:27 syncloud ld-2.31.so[1797]: syncloud nginx: 192.168.0.1 - - [21/May/2025:11:17:27 +0000] "GET /rest/app?app_id=owntracks HTTP/2.0" 200 253 "https://domain.net/app?id=owntracks" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"

May 21 11:17:26 syncloud platform.backend[652]: info snap/server.go:219 find {"query": "owntracks"}

May 21 11:17:26 syncloud platform.backend[652]: info snap/server.go:245 find in store

May 21 11:17:26 syncloud platform.backend[652]: info rest/middleware.go:71 GET: /rest/app?app_id=owntracks

May 21 11:17:26 syncloud ld-2.31.so[1797]: syncloud nginx: 192.168.0.1 - - [21/May/2025:11:17:26 +0000] "GET /rest/installer/status HTTP/2.0" 200 58 "https://domain.net/app?id=owntracks" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"

May 21 11:17:26 syncloud platform.backend[652]: info snap/changes_client.go:27 snap changes

May 21 11:17:26 syncloud platform.backend[652]: info rest/middleware.go:71 GET: /rest/installer/status

May 21 11:17:26 syncloud ld-2.31.so[1797]: syncloud nginx: 192.168.0.1 - - [21/May/2025:11:17:26 +0000] "GET /rest/app?app_id=owntracks HTTP/2.0" 200 253 "https://domain.net/app?id=owntracks" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"

May 21 11:17:25 syncloud platform.backend[652]: info snap/server.go:219 find {"query": "owntracks"}

May 21 11:17:25 syncloud platform.backend[652]: info snap/server.go:245 find in store

May 21 11:17:25 syncloud platform.backend[652]: info rest/middleware.go:71 GET: /rest/app?app_id=owntracks

```

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [21 May 2025 16:57 UTC](https://syncloud.discourse.group/t/owntracks-error-502/574/2 "2025-05-21T16:57:23Z")

</div>

Can you send logs from settings - support when it show 502 next time?  
It can be various things like disk, cpu or memory related.

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [26 July 2025 11:26 UTC](https://syncloud.discourse.group/t/owntracks-error-502/574/3 "2025-07-26T11:26:12Z")

</div>

From the logs you sent unfortunately they are two days after owntracks stopped working (ideally it should be the same hour as other logs will take over)

> Thu 2025-07-17 02:02:16 UTC; 2 days ago

But I have an idea, testing a potential fix (auto restarts).  
I will let you know when the update is out.

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)\
**Post date:** [28 July 2025 06:45 UTC](https://syncloud.discourse.group/t/owntracks-error-502/574/4 "2025-07-28T06:45:18Z")

</div>

Pushed a potential fix under version 73 (should update within a day or two), let me know if it happens again.

---

<div class="post-metadata">

**Author:** ![Dan](https://yyz2.discourse-cdn.com/free1/user_avatar/syncloud.discourse.group/dan/32/138_2.png) [@Dan](https://syncloud.discourse.group/u/Dan)\
**Post date:** [28 July 2025 09:35 UTC](https://syncloud.discourse.group/t/owntracks-error-502/574/5 "2025-07-28T09:35:43Z")

</div>

Was wondering why my owntracks started working again. I’ll resume this thread if it errors out again. Cheers!
