https://prefect.io logo
j

James Keegan

05/20/2022, 3:47 PM
Hello! I'm trying to clone a bitbucket repository into a Prefect Docker image (using the
ShellTask
task) but keep running into this error. Any suggestions? The SSH key is set up correctly, but there doesn't appear to be a user associated with the
ShellTask
commands. This wasn't an issue previously, as older flow images can pull git projects just fine. Only came up recently after I rebuilt the image again (Prefect version & python version are still the same).
Copy code
Cloning into './dbt_project'...
No user exists for uid 1000190000
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
k

Kevin Kho

05/20/2022, 3:50 PM
Is this behavior just when you use the
ShellTask
or does it also happen when you go into the container and try to clone?
j

James Keegan

05/20/2022, 3:50 PM
Only via the shell task - can pull fine when bashing into the container and doing the same clone command
k

Kevin Kho

05/20/2022, 3:52 PM
Is it using bash in both cases?
j

James Keegan

05/20/2022, 3:55 PM
Yes (if ShellTask defaults to bash)
k

Kevin Kho

05/20/2022, 4:01 PM
Yeah considering it’s the same Prefect and Python version, unsure where the difference could be.
j

James Keegan

05/20/2022, 4:06 PM
Yeah it's odd 🤔 Going to ditch the ShellTask and see if that fixes anything 👍