AppScale / appscale-tools

A set of command-line tools that can be used to interact with AppScale.
Other
51 stars 49 forks source link

SSH login problems when starting cloud-mode on GCE #715

Closed dmitrii closed 5 years ago

dmitrii commented 5 years ago

I generated AppScalefile with 'appscale init cloud' (on MacOS) and configured to use GCE, pointing client_secrets to a file I got from GCP console. I am using AppScale 3.5.3 image. Running 'appscale up' fails with:

message : Executing command 'ssh -F /dev/null -i /Users/dmitrii/.appscale/appscale3bd920bcdac84af9b766e3f2401a5ef6.key -o LogLevel=quiet -o NumberOfPasswordPrompts=0 -o StrictHostkeyChecking=no -o UserKnownHostsFile=/dev/null dmitrii@35.224.204.48 bash sudo touch /root/.ssh/authorized_keys' failed

I see two problems:

  1. The user in the above SSH command is wrong. (The tool seems to be picking up my MacOS user.)

  2. The key SSH is using is not present anywhere on the instance. (Not in any authorized_keys. And there is no key associated with the instance.)

scragraham commented 5 years ago

I'm not able to reproduce this exact issue on OSX or Linux, I suspect that there is a GCE issue where the key is not getting put into your project's metadata. 'appscale up' is getting past this point, which is setting up root access to the instance.

I think we should take a look at the following:

scragraham commented 5 years ago

@dmitrii I'm able to successfully launch a 3.6.0 environment as done through the instructions on the homepage. I created an image from the GCS appscale-images/latest/appscale.tar.gz file. Its looking like this could be a client_secrets.json issue. Even if you got past the ssh issue you're going to hit the monit issue with 3.5.3. So I think the first step is to move to 3.6.0.