Previews workflow -- "fatal: could not read Username for 'https://github.com': No such device or address"

I have okteto self-hosted running - it’s just lovely. thank you. working great for dev environments.

Now I’m trying to get the preview worfklows running based on these instructions, but the workflow is failing. I’m at a bit of a loss here - I haven’t changed anything in the workfows (well, I did remove the -cindy-lopez suffix, but I don’t think that should be an issue right?)

any ideas!?

checkout command: '[git clone --depth 1 https://github.com/parrot-time/fuji-service -b otketo-previews /okteto/src]'
24
Cloning git repository 'https://github.com/parrot-time/fuji-service' branch 'otketo-previews'...
25
Cloning into '/okteto/src'...
26
fatal: could not read Username for 'https://github.com': No such device or address
27
failed to clone repository with URL 'https://github.com/parrot-time/fuji-service'
28
falling back to 'ssh://git@github.com/parrot-time/fuji-service'....
29
checkout command: '[git clone --depth 1 ssh://git@github.com/parrot-time/fuji-service -b otketo-previews /okteto/src]'
30
Cloning git repository 'ssh://git@github.com/parrot-time/fuji-service' branch 'otketo-previews'...
31
Cloning into '/okteto/src'...
32
Warning: Permanently added the ECDSA host key for IP address '192.30.255.113' to the list of known hosts.
33
git@github.com: Permission denied (publickey).
34
fatal: Could not read from remote repository.
35
Please make sure you have the correct access rights
36
and the repository exists.
37
exit status 128
38
git-pull
39
 x  Pipeline 'pr-10' failed

Hey @benjoldersma ! From the logs, it seems like the repo you are using is private?

If that’s the case, you need to do some additional configuration on your Okteto Self-Hosted instance to let Okteto clone private repositories.

With Github, there are two different options:

  1. Add the cluster SSH key to your Github Account, and use an SSH URL instead of https. This page documents how to configure that.
  2. Create a Github App in your organization, and use Okteto to use it. This page documents that process.

Hope this helps!

1 Like