8000 PostHog does not start when running using Podman · Issue #31547 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PostHog does not start when running using Podman #31547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
suraj-mandal opened this issue Apr 24, 2025 · 0 comments
Open

PostHog does not start when running using Podman #31547

suraj-mandal opened this issue Apr 24, 2025 · 0 comments
Labels
bug Something isn't working right

Comments

@suraj-mandal
Copy link

Bug Description

I am trying to setup PostHog locally on my Mac Machine (x86 intel chip i7). I previously tried using colima as an alternative to docker, but eventually it was not working. So I changed to podman.

Now when using podman, while spinning up clickhouse, I am getting the following errors in the docker logs:

clickhouse-1  | Processing configuration file '/etc/clickhouse-server/config.xml'.
clickhouse-1  | Merging configuration file '/etc/clickhouse-server/config.d/default.xml'.
clickhouse-1  | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
clickhouse-1  | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
clickhouse-1  | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
clickhouse-1  | 
clickhouse-1  | /entrypoint.sh: running /docker-entrypoint-initdb.d/init-db.sh
clickhouse-1  | Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
clickhouse-1  |   Temporary failure resolving 'archive.ubuntu.com'
clickhouse-1  | Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
clickhouse-1  |   Temporary failure resolving 'security.ubuntu.com'
clickhouse-1  | Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
clickhouse-1  |   Temporary failure resolving 'archive.ubuntu.com'
clickhouse-1  | Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
clickhouse-1  |   Temporary failure resolving 'archive.ubuntu.com'
clickhouse-1  | Reading package lists...
clickhouse-1  | W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Temporary failure resolving 'archive.ubuntu.com'
clickhouse-1  | W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
clickhouse-1  | W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
clickhouse-1  | W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
clickhouse-1  | W: Some index files failed to download. They have been ignored, or old ones used instead.
clickhouse-1  | Reading package lists...
clickhouse-1  | Building dependency tree...
clickhouse-1  | Reading state information...
clickhouse-1  | E: Unable to locate package python3.9
clickhouse-1  | E: Couldn't find any package by glob 'python3.9'
clickhouse-1  | E: Couldn't find any package by regex 'python3.9'
clickhouse-1  | ClickHouse Database directory appears to contain a database; Skipping initialization
clickhouse-1  | Processing configuration file '/etc/clickhouse-server/config.xml'.
clickhouse-1  | Merging configuration file '/etc/clickhouse-server/config.d/default.xml'.
clickhouse-1  | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
clickhouse-1  | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
clickhouse-1  | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
clickhouse-1  | ClickHouse Database directory appears to contain a database; Skipping initialization
clickhouse-1  | Processing configuration file '/etc/clickhouse-server/config.xml'.
clickhouse-1  | Merging configuration file '/etc/clickhouse-server/config.d/default.xml'.
clickhouse-1  | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
clickhouse-1  | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
clickhouse-1  | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log

I did go through the documentation, and there I was being told to explicitly set the containers.conf file to include the following lines:

base_hosts_file="none"

Now, I do not have root access to my machine. So, as an alternative I tried to create a custom containers.conf file at a location, and passed the location of the file as an environment variable is **CONTAINERS_CONF ** when doing podman init

I also changed the file present within podman by doing ssh into it, and still I am seeing that I am not able to figure out how to start clickhouse.

I have been searching for articles for the past couple of days, but I am somehow not able to make podman work for running PostHog.

Kindly help regarding this issue.

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
@suraj-mandal suraj-mandal added the bug Something isn't working right label Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right
Projects
None yet
Development

No branches or pull requests

1 participant
0