[Bug]: Bad Gateway in PostHog
Error Message and Logs
After deploy PostHog this show Bad Gateway in browser
Steps to Reproduce
1.Install last version of Coolify 2.Configure DNS in my domain 3.Deploy PostHog 4.Try to load PostHog url
Example Repository URL
No response
Coolify Version
v4.0.0-beta.418
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04
Additional Information
I downgrade version to v4.0.0-beta.409 and same error
I'm having the same issue with PostHog. I thought it was because of incompatibility with ARM processor at first, but I got the same issue on x64 Intel processor.
Same here. Running on Digital Ocean Ubuntu droplet with intel.
+1. This template seems to be outdated. I got the following errors from the web container (I think these errors are related):
2025-06-29T07:48:52.929603631Z Traceback (most recent call last):
2025-06-29T07:48:52.929671873Z File "/code/manage.py", line 22, in <module>
2025-06-29T07:48:52.929830618Z main()
2025-06-29T07:48:52.929860619Z File "/code/manage.py", line 18, in main
2025-06-29T07:48:52.930073442Z execute_from_command_line(sys.argv)
2025-06-29T07:48:52.930109067Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
2025-06-29T07:48:52.930593652Z utility.execute()
2025-06-29T07:48:52.930622115Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
2025-06-29T07:48:52.930643843Z self.fetch_command(subcommand).run_from_argv(self.argv)
2025-06-29T07:48:52.930762694Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
2025-06-29T07:48:52.931205177Z self.execute(*args, **cmd_options)
2025-06-29T07:48:52.932715331Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
2025-06-29T07:48:52.932752901Z output = self.handle(*args, **options)
2025-06-29T07:48:52.932762946Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-29T07:48:52.932798605Z File "/code/posthog/management/commands/run_async_migrations.py", line 76, in handle
2025-06-29T07:48:52.932808196Z handle_complete_noop_migrations()
2025-06-29T07:48:52.932815568Z File "/code/posthog/management/commands/run_async_migrations.py", line 164, in handle_complete_noop_migrations
2025-06-29T07:48:52.932823410Z is_required = ALL_ASYNC_MIGRATIONS[migration_name].is_required()
2025-06-29T07:48:52.932831096Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-29T07:48:52.932838544Z File "/code/posthog/async_migrations/migrations/0002_events_sample_by.py", line 154, in is_required
2025-06-29T07:48:52.932846430Z table_engine = sync_execute(
2025-06-29T07:48:52.932853765Z ^^^^^^^^^^^^^
2025-06-29T07:48:52.932861384Z IndexError: list index out of range
and
06-29T07:57:53.472395031Z During handling of the above exception, another exception occurred:
2025-06-29T07:57:53.472402656Z
2025-06-29T07:57:53.472410742Z Traceback (most recent call last):
2025-06-29T07:57:53.472418354Z File "/code/manage.py", line 22, in <module>
2025-06-29T07:57:53.472635776Z main()
2025-06-29T07:57:53.472672916Z File "/code/manage.py", line 18, in main
2025-06-29T07:57:53.472795245Z execute_from_command_line(sys.argv)
2025-06-29T07:57:53.472928549Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
2025-06-29T07:57:53.473425138Z utility.execute()
2025-06-29T07:57:53.473574768Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
2025-06-29T07:57:53.474014849Z self.fetch_command(subcommand).run_from_argv(self.argv)
2025-06-29T07:57:53.474160803Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
2025-06-29T07:57:53.474529484Z self.execute(*args, **cmd_options)
2025-06-29T07:57:53.474692444Z File "/python-runtime/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
2025-06-29T07:57:53.475135066Z output = self.handle(*args, **options)
2025-06-29T07:57:53.475269389Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-29T07:57:53.475294198Z File "/code/posthog/management/commands/migrate_clickhouse.py", line 54, in handle
2025-06-29T07:57:53.475641997Z self.migrate(CLICKHOUSE_HTTP_URL, options)
2025-06-29T07:57:53.475750040Z File "/code/posthog/management/commands/migrate_clickhouse.py", line 95, in migrate
2025-06-29T07:57:53.476150537Z database.migrate(MIGRATIONS_PACKAGE_NAME, options["upto"], replicated=True)
2025-06-29T07:57:53.476259824Z File "/python-runtime/lib/python3.11/site-packages/infi/clickhouse_orm/database.py", line 350, in migrate
2025-06-29T07:57:53.476664613Z applied_migrations = self._get_applied_migrations_and_create_tables(migrations_package_name, replicated=replicated)
2025-06-29T07:57:53.477220224Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-29T07:57:53.477255682Z File "/python-runtime/lib/python3.11/site-packages/infi/clickhouse_orm/database.py", line 370, in _get_applied_migrations_and_create_tables
2025-06-29T07:57:53.477662130Z self.create_table(MigrationHistoryReplicated)
2025-06-29T07:57:53.477826714Z File "/python-runtime/lib/python3.11/site-packages/infi/clickhouse_orm/database.py", line 156, in create_table
2025-06-29T07:57:53.478130325Z self._send(model_class.create_table_sql(self))
2025-06-29T07:57:53.478340833Z File "/python-runtime/lib/python3.11/site-packages/infi/clickhouse_orm/database.py", line 393, in _send
2025-06-29T07:57:53.478809450Z raise ServerError(r.text)
2025-06-29T07:57:53.478832800Z infi.clickhouse_orm.database.ServerError: Code: 701. DB::Exception: Requested cluster 'posthog_migrations' not found. (CLUSTER_DOESNT_EXIST) (version 23.11.2.11 (official build))
I have the same issue on beta 420.6
Might be related to https://github.com/coollabsio/coolify/issues/3597
does anybody able to fix that ??????