Open pranavp10 opened 1 month ago
Hey,
I noticed there was a bug fix related to this issue (https://github.com/coollabsio/coolify/pull/3784) that was recently implemented, but unfortunately, it hasn’t resolved the problem on my end.
I’ve upgraded to the latest version of Coolify, but the default PostHog template still behaves inconsistently. It throws a "bad gateway" error randomly—sometimes the site works fine, but other times it fails without any clear pattern.
Additionally, when I try changing the domain for the service (instead of using the default one generated by Coolify), it never works and always returns an error.
Any insights or suggestions on how to fix this would be really appreciated!
Thanks in advance!
As of right now (v4.0.0-beta364), the Posthog template is not working.
When deployed via the one-click app, the Posthog services all start up and fine, however the webui does not load due to a bunch of 502 errors when loading the javascript for the webui.
snot working for me either. setup a valide FQDN, updated docker-compose file to include SERVICE_FQDN_WEB
rather then SERVICE_FQDN_WEB_8000` didn't work. it still unhealthy.
I 've logged in inside the container and made curl localhost:8000, didn't respond with anything
I somehow can see something going on, like requests are terminating in the posthug web when trying to access from inside the container but nothing happen when you access via fqdn.
2024-11-12T21:40:50.160662Z [info ] request_started [django_structlog.middlewares.request] container_hostname=6fee42600749 host=172.24.0.11:8000 ip=172.24.0.1 pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_agent=curl/7.88.1 x_forwarded_for=
2024-11-12T21:40:50.400021Z [info ] request_finished [django_structlog.middlewares.request] code=302 container_hostname=6fee42600749 host=172.24.0.11:8000 ip=172.24.0.1 pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_id=None x_forwarded_for=
snot working for me either. setup a valide FQDN, updated docker-compose file to include
SERVICE_FQDN_WEB
rather then SERVICE_FQDN_WEB_8000` didn't work. it still unhealthy.I 've logged in inside the container and made curl localhost:8000, didn't respond with anything
I somehow can see something going on, like requests are terminating in the posthug web when trying to access from inside the container but nothing happen when you access via fqdn.
2024-11-12T21:40:50.160662Z [info ] request_started [django_structlog.middlewares.request] container_hostname=6fee42600749 host=172.24.0.11:8000 ip=172.24.0.1 pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_agent=curl/7.88.1 x_forwarded_for= 2024-11-12T21:40:50.400021Z [info ] request_finished [django_structlog.middlewares.request] code=302 container_hostname=6fee42600749 host=172.24.0.11:8000 ip=172.24.0.1 pid=237 request=<WSGIRequest: GET '/'> request_id=c9afeb19-bb90-471b-af1b-fa3ca2fad204 tid=140346526570816 user_id=None x_forwarded_for=
Finally got it to work! Enable a large swap Change SERVICE_FQDN_WEB_8000 to SERVICE_FQDN_WEB After starting posthog, give it a few minutes to boot up
Error Message and Logs
2024-09-27T03:10:09.781573969Z 2024-09-27T03:10:09.781458Z [info ] AXES: BEGIN LOG [axes.apps] pid=1221 tid=129749577902400 2024-09-27T03:10:09.782463528Z 2024-09-27T03:10:09.782345Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1221 tid=129749577902400 2024-09-27T03:10:09.782531305Z 2024-09-27T03:10:09.782456Z [info ] AXES: blocking by IP only. [axes.apps] pid=1221 tid=129749577902400 2024-09-27T03:10:10.128720044Z 2024/09/27 03:10:10 [info] 1353#1353 "posthog" application started 2024-09-27T03:10:16.303566220Z 2024-09-27T03:10:16.303147Z [warning ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1353 tid=129749577902400 2024-09-27T03:10:16.306121412Z 2024-09-27T03:10:16.305753Z [info ] AXES: BEGIN LOG [axes.apps] pid=1353 tid=129749577902400 2024-09-27T03:10:16.306664004Z 2024-09-27T03:10:16.306577Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1353 tid=129749577902400 2024-09-27T03:10:16.306741452Z 2024-09-27T03:10:16.306679Z [info ] AXES: blocking by IP only. [axes.apps] pid=1353 tid=129749577902400 2024-09-27T03:10:16.649950175Z 2024/09/27 03:10:16 [info] 1485#1485 "posthog" application started 2024-09-27T03:10:22.845515928Z 2024-09-27T03:10:22.845242Z [warning ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1485 tid=129749577902400 2024-09-27T03:10:22.847924233Z 2024-09-27T03:10:22.847717Z [info ] AXES: BEGIN LOG [axes.apps] pid=1485 tid=129749577902400 2024-09-27T03:10:22.848425456Z 2024-09-27T03:10:22.848331Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1485 tid=129749577902400 2024-09-27T03:10:22.848498636Z 2024-09-27T03:10:22.848434Z [info ] AXES: blocking by IP only. [axes.apps] pid=1485 tid=129749577902400 2024-09-27T03:10:23.199552262Z 2024/09/27 03:10:23 [info] 1617#1617 "metrics" prototype started 2024-09-27T03:10:23.200194551Z 2024/09/27 03:10:23 [info] 1618#1618 "metrics" application started 2024-09-27T03:10:23.287747978Z /usr/local/bin/docker-entrypoint.sh: OK: HTTP response status code is '200' 2024-09-27T03:10:23.287768203Z { "success": "Reconfiguration done." }
2024-09-27T03:10:23.287771533Z /usr/local/bin/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/... 2024-09-27T03:10:23.290202283Z /usr/local/bin/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/unit.json.tpl 2024-09-27T03:10:23.290241436Z /usr/local/bin/docker-entrypoint.sh: Stopping Unit daemon after initial configuration... 2024-09-27T03:10:23.291316883Z 2024/09/27 03:10:23 [notice] 1076#1076 process 1080 exited with code 0 2024-09-27T03:10:23.292086857Z /usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed... 2024-09-27T03:10:23.294635567Z 2024/09/27 03:10:23 [notice] 1076#1076 process 1081 exited with code 0 2024-09-27T03:10:23.301168507Z 2024/09/27 03:10:23 [notice] 1617#1617 app process 1618 exited with code 0 2024-09-27T03:10:23.301174889Z 2024/09/27 03:10:23 [alert] 1617#1617 sendmsg(13, -1, -1, 2) failed (32: Broken pipe) 2024-09-27T03:10:23.301660725Z 2024/09/27 03:10:23 [notice] 1076#1076 process 1617 exited with code 0 2024-09-27T03:10:24.293454148Z /usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed... 2024-09-27T03:10:24.725867632Z 2024/09/27 03:10:24 [notice] 1088#1088 app process 1353 exited with code 0 2024-09-27T03:10:24.725895226Z 2024/09/27 03:10:24 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe) 2024-09-27T03:10:24.797608182Z 2024/09/27 03:10:24 [notice] 1088#1088 app process 1485 exited with code 0 2024-09-27T03:10:24.797633340Z 2024/09/27 03:10:24 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe) 2024-09-27T03:10:25.185013085Z 2024/09/27 03:10:25 [notice] 1088#1088 app process 1089 exited with code 0 2024-09-27T03:10:25.185034919Z 2024/09/27 03:10:25 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe) 2024-09-27T03:10:25.294728911Z /usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed... 2024-09-27T03:10:25.746830798Z 2024/09/27 03:10:25 [notice] 1088#1088 app process 1221 exited with code 0 2024-09-27T03:10:25.746850296Z 2024/09/27 03:10:25 [alert] 1088#1088 sendmsg(13, -1, -1, 2) failed (32: Broken pipe) 2024-09-27T03:10:25.747422558Z 2024/09/27 03:10:25 [notice] 1076#1076 process 1088 exited with code 0 2024-09-27T03:10:26.296386743Z 2024-09-27T03:10:26.296435751Z /usr/local/bin/docker-entrypoint.sh: Unit initial configuration complete; ready for start up... 2024-09-27T03:10:26.296442646Z 2024-09-27T03:10:26.298848524Z 2024/09/27 03:10:26 [info] 672#672 unit 1.32.0 started 2024-09-27T03:10:26.299270167Z 2024/09/27 03:10:26 [info] 1696#1696 discovery started 2024-09-27T03:10:26.300686069Z 2024/09/27 03:10:26 [notice] 1696#1696 module: python 3.11.8 "/usr/lib/unit/modules/python3.unit.so" 2024-09-27T03:10:26.300864982Z 2024/09/27 03:10:26 [info] 672#672 controller started 2024-09-27T03:10:26.301231095Z 2024/09/27 03:10:26 [notice] 672#672 process 1696 exited with code 0 2024-09-27T03:10:26.301428809Z 2024/09/27 03:10:26 [info] 1698#1698 router started 2024-09-27T03:10:26.302463316Z 2024/09/27 03:10:26 [info] 1698#1698 OpenSSL 1.1.1w 11 Sep 2023, 1010117f 2024-09-27T03:10:26.310623602Z 2024/09/27 03:10:26 [info] 1699#1699 "posthog" prototype started 2024-09-27T03:10:26.311111570Z 2024/09/27 03:10:26 [info] 1700#1700 "posthog" application started 2024-09-27T03:10:32.789296023Z 2024-09-27T03:10:32.788910Z [warning ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1700 tid=130324734585152 2024-09-27T03:10:32.791708667Z 2024-09-27T03:10:32.791568Z [info ] AXES: BEGIN LOG [axes.apps] pid=1700 tid=130324734585152 2024-09-27T03:10:32.792530166Z 2024-09-27T03:10:32.792408Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1700 tid=130324734585152 2024-09-27T03:10:32.792577450Z 2024-09-27T03:10:32.792517Z [info ] AXES: blocking by IP only. [axes.apps] pid=1700 tid=130324734585152 2024-09-27T03:10:33.145526088Z 2024/09/27 03:10:33 [info] 1832#1832 "posthog" application started 2024-09-27T03:10:39.505471046Z 2024-09-27T03:10:39.505118Z [warning ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1832 tid=130324734585152 2024-09-27T03:10:39.507812418Z 2024-09-27T03:10:39.507650Z [info ] AXES: BEGIN LOG [axes.apps] pid=1832 tid=130324734585152 2024-09-27T03:10:39.508450125Z 2024-09-27T03:10:39.508359Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1832 tid=130324734585152 2024-09-27T03:10:39.508521986Z 2024-09-27T03:10:39.508458Z [info ] AXES: blocking by IP only. [axes.apps] pid=1832 tid=130324734585152 2024-09-27T03:10:39.858560984Z 2024/09/27 03:10:39 [info] 1964#1964 "posthog" application started 2024-09-27T03:10:46.148900703Z 2024-09-27T03:10:46.148628Z [warning ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=1964 tid=130324734585152 2024-09-27T03:10:46.151232216Z 2024-09-27T03:10:46.151132Z [info ] AXES: BEGIN LOG [axes.apps] pid=1964 tid=130324734585152 2024-09-27T03:10:46.151836593Z 2024-09-27T03:10:46.151751Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=1964 tid=130324734585152 2024-09-27T03:10:46.151911382Z 2024-09-27T03:10:46.151855Z [info ] AXES: blocking by IP only. [axes.apps] pid=1964 tid=130324734585152 2024-09-27T03:10:46.502052707Z 2024/09/27 03:10:46 [info] 2096#2096 "posthog" application started 2024-09-27T03:10:52.829043105Z 2024-09-27T03:10:52.828777Z [warning ] Skipping async migrations setup. This is unsafe in production! [posthog.apps] pid=2096 tid=130324734585152 2024-09-27T03:10:52.831396055Z 2024-09-27T03:10:52.831297Z [info ] AXES: BEGIN LOG [axes.apps] pid=2096 tid=130324734585152 2024-09-27T03:10:52.831988275Z 2024-09-27T03:10:52.831905Z [info ] AXES: Using django-axes version 5.9.0 [axes.apps] pid=2096 tid=130324734585152 2024-09-27T03:10:52.832063098Z 2024-09-27T03:10:52.832009Z [info ] AXES: blocking by IP only. [axes.apps] pid=2096 tid=130324734585152 2024-09-27T03:10:53.189821319Z 2024/09/27 03:10:53 [info] 2228#2228 "metrics" prototype started 2024-09-27T03:10:53.190348025Z 2024/09/27 03:10:53 [info] 2229#2229 "metrics" application started
Steps to Reproduce
Example Repository URL
No response
Coolify Version
v4.0.0-beta.340
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
The VM hosted on AWS has a 16-core processor and 64GB of RAM. It shows a "Bad Gateway" error, and even after checking back two days later, the issue persists.