GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
418 stars 111 forks source link

Update fails with STATUSCHECK_IMAGE_PULL_ERR when debugging on Cloud Run emulator #659

Open mycar98765 opened 2 years ago

mycar98765 commented 2 years ago

I get the following error in the output:

Status check started
Resource pod/id status updated to In Progress
Resource deployment/project status updated to In Progress
Resource pod/id status updated to In Progress
Resource deployment/project status failed with waiting for rollout to finish: 0 of 1 updated replicas are available...
Status check failed

Update failed with error code STATUSCHECK_IMAGE_PULL_ERR
1/1 deployment(s) failed
Skaffold exited with code 1.
Cleaning up...
Finished clean up.   

I am getting above error doing following:

  1. Click the Cloud Code button in the status bar (I have the Cloud Code extension installed) Cloud Code button

  2. Click the Debug on Cloud Run Emulator button Debug on Cloud Run Emulator button

I followed the way of this comment in the Github issue but still getting this error.

I don't provide the code because I don't think the error is code related. Feel free to comment on this question if you need more information.

After researching for a long time, I still can't find the source of the problem.

I would appreciate if someone could help me with this error. Thank you in advance!

briandealwis commented 2 years ago

The Cloud Run emulator should run entirely locally on your machine in minikube. Have you been able to determine which images are the problem? Debugging will pull images from gcr.io/k8s-skaffold/skaffold-debug-support but they are publicly visible.

Do you have any SKAFFOLD_* environment variables? Do you have a ~/.skaffold/config file? Are you able to get some logs with kubectl

ChaseMor commented 2 years ago

If you were to Select New Application and choose one of the Cloud Run samples, do you still have this issue? Like Brian pointed out, it might be helpful to figure out which image is not being pulled correctly. You can turn on verbose logging for Cloud Code in the settings, that may give more information as to what is going on.

mycar98765 commented 2 years ago

Hi @briandealwis @ChaseMor. I'm currently following recommendation from this link with Google App Engine