PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.5k stars 1.28k forks source link

Hobby deployment failing - Clickhouse errors #25533

Open Jdimango opened 6 days ago

Jdimango commented 6 days ago

Bug Description

When attempting to run the hobby deployment script after 10 minutes the deployment does not update. Checking the docker containers with ps I see four containers continuously restarting.

  1. clickhouse
  2. plugins
  3. web
  4. worker

I believe I've deduced the issue to the click house not starting due to a dependency issue.

How to reproduce

  1. Run hobby deployment script from docs /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"
  2. Wait for the 5-10 minutes
  3. Check docker logs for click house

Additional context

I have run the upgrade script a few times over the last few days after viewing some other similar click house issues being resolved. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/upgrade-hobby)"

I am running this on a GCP VM. The image was built with the following.

I've pasted the error logs from the click house container below.

Debug info

/entrypoint.sh: running /docker-entrypoint-initdb.d/init-db.sh
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
python3.9 is already the newest version (3.9.5-3ubuntu0~20.04.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.32) but 2.35-0ubuntu3 is to be installed
 libc6 : Breaks: locales (< 2.35) but 2.31-0ubuntu9.14 is to be installed
         Recommends: libnss-nis but it is not installable
         Recommends: libnss-nisplus but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Jdimango commented 2 days ago

Any updates on the dependencies? I've attempted the update script again with no luck.