Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managed VM Deployment hangs on "Copying certificates for secure access..."

I'm running the following command to deploy my Managed VMs app (on Windows 10):

gcloud preview app deploy app.yaml --project=<PROJECT> --promote

The deployment starts bug hangs on the following line:

Copying certificates for secure access. You may be prompted to create an SSH keypair.

And after some time I get the error:

ERROR: (gcloud.preview.app.deploy) Unable to copy certificates.

I've already:

  • Made sure that there are SSH keys in ~\.ssh\google_compute_engine
  • Tried to run with --quiet - same results
  • Renamed ssh-term.exe to ssh.exe - same results
  • Run the command as an administrator.
  • Run the command with --verbosity debug, which prints the following line multiple times: DEBUG: File [f] does not exist locally.

Any help will be much appreciated!

like image 780
Tzach Avatar asked Oct 18 '22 13:10

Tzach


2 Answers

Found the cause! It was the project's firewall that blocked SSH by default. Fixed that and it worked.

like image 190
Tzach Avatar answered Oct 24 '22 09:10

Tzach


Glad you fixed it, I had the same problem and will use your fix. I did happen accros a work around. By using the Container Build API to perform the build.

enter the command

gcloud config set app/use_cloud_build true

Before you

gcloud preview app deploy

Cite: https://github.com/isusanin/google-cloud-sdk/issues/533

like image 44
Peter Coghill Avatar answered Oct 24 '22 09:10

Peter Coghill