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]'
Cloning git repository 'https://github.com/parrot-time/fuji-service' branch 'otketo-previews'...
Cloning into '/okteto/src'...
fatal: could not read Username for 'https://github.com': No such device or address
failed to clone repository with URL 'https://github.com/parrot-time/fuji-service'
falling back to 'ssh://git@github.com/parrot-time/fuji-service'....
checkout command: '[git clone --depth 1 ssh://git@github.com/parrot-time/fuji-service -b otketo-previews /okteto/src]'
Cloning git repository 'ssh://git@github.com/parrot-time/fuji-service' branch 'otketo-previews'...
Cloning into '/okteto/src'...
Warning: Permanently added the ECDSA host key for IP address '192.30.255.113' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit status 128
git-pull
 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