ownership mismatch for local repositories #415
-
My
And I am starting the docker container with:
But the container has this error, and doesn't seem to have indexed any repositories:
Everything is owned by the same user (the user who owns the files also invokes docker run). Maybe this is because the docker container is running as root? What's the right way to get the UIDs properly aligned so this works? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Following up, confirm that this config results in a broken deploy. When I visit localhost:3000, I see the welcome screen, but on the "Create Owner Account" screen, whenever I enter an email and password and click "Sign up", it goes back to the first screen "Welcome to Sourcebot". The errors in the server logs are:
|
Beta Was this translation helpful? Give feedback.
-
To your first issue, could you see if #168 is relevant to the issue you are running into? For the second issue: I'm not exactly sure what's going on there.. as a first step, could you wipe all cookies for the site? Additionally, if you are running this in a deployed environment (i.e., not locally on |
Beta Was this translation helpful? Give feedback.
-
Thank you for these suggestions. Adding a
I'd like to analyze the local repositories that are already cloned & mounted within the docker container. If I must configure access to the remote git server, I can, but is that really necessary? |
Beta Was this translation helpful? Give feedback.
-
Going to close this Discussion - feel free to reopen if needed |
Beta Was this translation helpful? Give feedback.
-
Got it working, plugged in my OpenAI key, it's wonderful. 🙇 |
Beta Was this translation helpful? Give feedback.
Ah yea I was able to repro this locally with a gitea repo and a similar config as yours, this is a bug. Looks like it's in this method in zoekt: https://github.com/sourcebot-dev/zoekt/blob/12a2f4ad075359a09bd8a91793acb002211217aa/gitindex/index.go#L293.
I'll file a issue to fix this. Besides the error message, it shouldn't impact anything else - the repos should be indexed and searchable.
*Edit: filed the issue here: #434