google-github-actions/ssh-compute failed with: failed to execute gcloud command `gcloud compute ssh user@instance-1 --zone us-central1-f --ssh-key-file /tmp/2f1453eb3c66956a31c40f2d/google_compute_engine --quiet --tunnel-through-iap --project deepgit --command bash -c "#!/bin/bash
# This should be run inside GCP compute engine
# pull deploy branch
cd ~/projects/deepgit
git pull origin deploy
# build and deploy the frontend
cd ~/projects/deepgit
npm install
rm -rf dist
npm run build
touch dist/$(git log -1 --pretty=format:%H)
sudo rm -rf /var/www/deepgit-app/*
sudo cp -rf ~/projects/deepgit/dist/* /var/www/deepgit-app/.
# build and deploy the backend
cd ~/projects/deepgit
cd backend
~/projects/deepgit/.venv/bin/pip install -r requirements.txt
# restart nginx and gunicorn
sudo systemctl restart nginx
sudo systemctl restart gunicorn
"`: Updating project ssh metadata...
.failed.
WARNING:
To increase the performance of the tunnel, consider installing NumPy. For instructions,
please see https://cloud.google.com/iap/docs/using-tcp-forwarding#increasing_the_tcp_upload_bandwidth
WARNING: [0] Failed to send all data from [stdin].
Connection closed by UNKNOWN port 65535
Recommendation: To check for possible causes of SSH connectivity issues and get
recommendations, rerun the ssh command with the --troubleshoot option.
gcloud compute ssh instance-1 --project=deepgit --zone=us-central1-f --ssh-key-file=/tmp/2f1453eb3c66956a31c40f2d/google_compute_engine --troubleshoot
Or, to investigate an IAP tunneling issue:
gcloud compute ssh instance-1 --project=deepgit --zone=us-central1-f --ssh-key-file=/tmp/2f1453eb3c66956a31c40f2d/google_compute_engine --troubleshoot --tunnel-through-iap
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].