Hello, friends! I am new to OpenHands and I am in...
# questions
f
Hello, friends! I am new to OpenHands and I am interested in experimenting with my own on-prem deployment using the open-source helm charts. Is this the best place to ask for troubleshooting assistance? Is there a more appropriate channel?
👋 2
I've managed to follow most of the instructions presented here: https://github.com/All-Hands-AI/OpenHands-Cloud/tree/main/charts/openhands I think I am very close to getting a working setup, but am still tripping up on some parts. Here's the latest symptom that I am seeing: The runtime api is set up to run with an image that I am not able to pull. I figure the tag either doesn't exist, or I don't have permission to access it.
ghcr.io/all-hands-ai/runtime-api:sha-96c3513
appears to be the image and tag in question.
Perhaps my issue is related to the version of the helm chart that I am trying to deploy. Could someone confirm what the latest version of the chart is? I am new to OCI-based helm registries. It's not clear if there is a straightforward way to list available charts with their versions. I remember this operation being very straightforward with traditional yaml-based helm registries.
g
Hey Omar welcome 🤝 Yup feel free to drop your integration questions here 🙌
w
This is the second report I've seen of runtime-api images disappearing
try tag sha-359ac6a
f
Thank you, @wooden-umbrella-84098! I've tried making this adjustment to my helm chart values:
Copy code
...

runtime-api:
  enabled: true
  image:
    repository: ghcr.io/all-hands-ai/runtime-api
    tag: sha-359ac6a
    pullPolicy: Always

...
This time, the pod starts up but fails with a Python exception. I've attached the logs. I've tried completely deleting and recreating the helm release from scratch. I've checked for any PVC and thinking there might have been some stale data with an old schema lying around, but I did not find any. Any ideas?
w
hmm looks like a database migration didn't run
any logs from the db-migration pod?
f
I'm not seeing a db-migration pod.
Are you referring to the
*-litellm-migrations-*
pod?
All I see there is
Copy code
19:20:39 - LiteLLM Proxy:ERROR: prisma_migration.py:93 - 'prisma db push' failed with exit code 1.
@wooden-umbrella-84098, any ideas on how to move forward with troubleshooting?
w
oh we've seen this before. prisma is a pain
we saw it before once where
npm
wasn't being allowed to install prisma
f
We're also seeing this issue on the latest 0.1.13 version: pod:
openhands-858f47495f-sdzzx
On the init container:
I'm wondering if these are oversights that we can help contribute fixes for or if these are symptoms of me making mistakes.
w
hmm I think we have a newer image w/ jq pre-installed
this is a moving target in active development. we're working with a few different partners on the installation process
did you pin the tag on that image? or is it using the one from the chart values?
f
It's all defaults from the chart.
Other than the tag you mentioned above.
w
Can you confirm which image is on the pod with the
jq
error?
CC @flaky-jordan-67349
f
Approved and merged.
@flat-tailor-90537, can you try chart version 0.1.14?
f
@flaky-jordan-67349 thanks for the quick fix! I will try the new chart version momentarily!
👍 1
Here's a summary of where I currently stand:
openhands pod logs:
For context, my chart values disable github, and bitbucket; and opts for the gitlab integration.
👀 1
f
@flat-tailor-90537, can you try adding this to your values.yaml file (I had to make a code change):
Copy code
image:
  tag: sha-24b6a23
f
Would that go at the top-level of my values file?
f
Yes.
I need to step out for a bit. I'll check in when I get back.
🙏 1
f
That seems to have addressed the issue with the openhands pod! As a reminder: I am still experiencing issues related to the runtime-api pod running a query and failing because (I think) the postgres db had not been correctly initialized by that point. This may or may not be related to the issue due to the litellm-migration pods trying to run
prisma db push
and failing. Logs from the latest attempt attached (for the openhands-runtime-api pod):
f
That doesn't look LiteLLM related. It looks like the runtime-api DB migration job didn't run.
f
image.png
This is the list of jobs that I see.
Are any of these the migration job? Is the chart just not creating it?
f
Should be a job named: openhands-runtime-api-migrate-db
f
Definitely never showed up.
At least that explains the other errors.
f
It's probably the helm hooks. I'll be back in 1.5 - 2 hours. I can try to update the chart at that point.
I did some testing but doesn't seem to be an issue with my install.
Can you uninstall and then try to install but add
--debug > /tmp/helm.log 2>&1
to the end of the helm command (redirect to whatever file location you want).
Then send me the log. I want to see the difference with what my install shows.
f
Hi, Chuck. I've started looking into this, again. It looks like this issue is my fault; my apologies! As it turns out, I have been using [fluxcd](https://fluxcd.io/) to manage my helm releases. It is a set of controllers that, among other things, render the charts internally and reconcile the resulting manifests against the current cluster state. Apparently, it has a [bug](https://github.com/helm/helm/pull/30968) preventing it from correctly handling hooks. There seems to be a [fix](https://github.com/helm/helm/pull/30968), but they've yet to cut a release with the fix. In the end, I just tried using the helm CLI and that does seem to work without issue. I will keep iterating on my deployment and follow up here if I have more issues or questions. It might be worth adding a note in the docs warning users of fluxcd about the issue.
f
Thanks for the information!
f
Have we (or I) just gotten rate-limited on ghcr?
Copy code
Release "openhands" does not exist. Installing it now.
Error: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://ghcr.io/token?scope=repository%3Aall-hands-ai%2Fhelm-charts%3Apull&service=ghcr.io: 403 Forbidden
f
I was just able to run it.
f
Darn. It's still kicking back 403s for me. I wonder what I have done to anger github! 😆
lolsob 2
I've been able to deploy the openhands helm chart! 🎉 Next question: I've set up the OH deployment to use gitlab: a gitlab instance that I have created using the gitlab operator, also local to the same cluster. But, I am only presented with the option of logging into gitlab.com; not my gitlab instance. Is this expected?
f
Ah, yes we need to add a config option to point to a custom gitlab install.
👍 1
f
Is there anything needed from me for this step?
f
Not right now. We need to make changes to allow a different Gitlab URL. When that is done then we can point you to where it needs to be configured. Not sure I can get to this today (or tomorrow).
f
I understand. Thanks for your help! I'll check in every now and then to see if there's any new developments.
👍 1
Good afternoon, @flaky-jordan-67349! Has there been any new developments on the Gitlab URL matter?
f
Not as of this morning. I shall have to see what my day looks like today. Keep pinging me though!
f
Good morning, @flaky-jordan-67349! I thought I'd ping you and also ask a question: Were you planning on implementing oath for different github/bitbucket url as well as for gitlab? I ask because we are hoping to eventually hook OH up to our GHE deployment in production, whereas I am currently running a local gitlab deployment for testing purposes.
f
Yes, that is the plan.
👍 1
f
Good morning, @flaky-jordan-67349 and friends! Hope everyone had a lovely weekend. Has there been any movement on this issue?
w
Thanks Omar! This is not on our immediate roadmap, but it should be a reasonably small change. Let me bubble it up with the product team
In the meantime, we're moving all this code into the OpenHands repo: https://github.com/All-Hands-AI/OpenHands/pull/10770 So in the future small changes like this should be easier to self-service 😄
Is this blocking your usage of OpenHands currently? or more nice-to-have?
f
This is a blocker for us.
👍 1