loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
8.43k stars 307 forks source link

GCP workspace unable to launch for the first time #999

Open SGudbrandsson opened 2 months ago

SGudbrandsson commented 2 months ago

What happened?
Trying to boot up a new GCP instance doesn't work - stuck in Waiting for devpod agent to come up...

What did you expect to happen instead?
Devpod would come up

How can we reproduce the bug? (as minimally and precisely as possible)
Unknown - I haven't been able to boot yet! Just create a new server in Google, point to a github repo, then wait.

Local Environment:

DevPod Provider:

Anything else we need to know?
Initial test, fresh build, first container. image image No meaningful logs. image

SGudbrandsson commented 2 months ago

Here's the log when I try to launch this locally with docker image

fatal: could not read Username for 'https://github.com': terminal prompts disabled

image

SGudbrandsson commented 2 months ago

The next person reporting an issue gets the lucky #1000 .. maybe I should create a separate issue for the docker stuff? :grin:

pascalbreuninger commented 2 months ago

Hey @SGudbrandsson, thanks for reporting the issue. couple of questions here:

  1. What's the configuration for your gcloud provider? I just tried with basically no modification and it worked just fine
  2. Regarding the docker issue fatal: could not read Username for 'https://github.com': terminal prompts disabled: Are you able to clone the repository using https on your local machine? And if so, do you have an insteadOf in your git config?
SGudbrandsson commented 2 months ago

Hey @pascalbreuninger, thanks for responding so quickly.

  1. I dunno, just vanilla gcloud login. Are you looking for some specifics? Any command you want me to run?
  2. Generally I clone with git@... - should I try that instead? This repo is private.
pascalbreuninger commented 2 months ago
  1. So you just ran devpod provider add gcloud without changing any configuration?
  2. That's cloning via SSH - should also work though, let me try to reproduce
pascalbreuninger commented 2 months ago

Update on the second issue: did you also enter git@$YOUR_REPO in the DevPod UI? If not, it'll fall back to https based cloning and you might not have the git credentials helper configure on your host.