-
Notifications
You must be signed in to change notification settings - Fork 74
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
GCP deployment results in 502 http error #94
Comments
Bit more information, It appears that the GCP load balancer believes that the postgres service is unhealthy However port-forwarding indicates that it's all up and running, and the ingress configuration in k8s seems correct $ kubectl -n posthog1 port-forward service/posthog 28015:8000
Forwarding from 127.0.0.1:28015 -> 8000
Forwarding from [::1]:28015 -> 8000
Handling connection for 28015
$ http HEAD http://localhost:28015/preflight
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 2708
Content-Type: text/html; charset=utf-8
Date: Fri, 06 Aug 2021 17:25:00 GMT
Referrer-Policy: same-origin
Server: gunicorn
Vary: Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: DENY Are there any other network fields that require setup in GCP? |
Hey @mands sorry you're having difficulty here. Some debugging info that might be useful (in the right namespace):
Another thing to try: to make sure this is caused by https, try setting For deleting the old ClickhouseInstallation: It can get stuck on finalizers. One thing I've done in the past is cc @tiina303 |
Hi, Thanks for the feedback, unfortunately I wasn't able to rescue the namespace and have since deleted it (although as above, it's still stuck deleting due to the ClickHouse finalizer). The We run a similar setup for our own product, also on GCP/GKE, and the networking side looks pretty much the same. The main difference I could see what between using the For now we're moving to using PostHog Cloud, but may be worth testing the instructions from the readme, using the config above, on a clean-room GKE cluster to see if you can repro. However feel free to close either way. Cheers! |
Added to our backlog for this. |
I've rested gcp install/upgrade a few times now, didn't see the same problem. |
Bug description
Upon installing to GCP with the default values in the README.md, I get a 502 upon going to the main URL
helm command
$ helm --kube-context analytics --namespace posthog1 install posthog posthog/posthog --values ./posthog-values-v2.yaml --set email.password=$SENDGRID_API_KEY --atomic --create-namespace
values
posthog NodePort
seems to be upExpected behavior
Environment
Additional context
posthog1
as a namespace, as I'm unable to delete the initialposthog
namespace due to theClickHouseInstallation
operator not deleting when runninghelm uninstall
Thank you for your bug report – we love squashing them!
The text was updated successfully, but these errors were encountered: