Skip to content

Instantly share code, notes, and snippets.

@allomov
Created April 28, 2014 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allomov/11374976 to your computer and use it in GitHub Desktop.
Save allomov/11374976 to your computer and use it in GitHub Desktop.
→ juju ssh service-name/0
ssh: Could not resolve hostname ip-172-31-21-242.us-west-2.compute.internal: Name or service not known
ERROR subprocess encountered error code 255
machines:
"0":
agent-state: started
agent-version: 1.18.1
dns-name: ec2-54-186-183-60.us-west-2.compute.amazonaws.com
instance-id: i-ca1ecfc2
instance-state: running
series: trusty
hardware: arch=amd64 cpu-cores=2 cpu-power=6500 mem=7680M root-disk=8192M
services:
service-name:
charm: local:trusty/service-name-3
exposed: false
relations:
...
units:
service-name/0:
agent-state: started
agent-version: 1.18.1
machine: "0"
public-address: ec2-54-186-183-60.us-west-2.compute.amazonaws.com
→ juju version
1.19.1-trusty-amd64
→ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
@allomov
Copy link
Author

allomov commented Apr 28, 2014

I am still able to ssh to the instance with → ssh -i ~/.juju/ssh/juju_id_rsa ubuntu@ec2-54-186-183-60.us-west-2.compute.amazonaws.com

@ziralabs
Copy link

ziralabs commented Feb 8, 2015

Hi! im trying to deploy a Rails app Using Juju ( version 1.21.1-trusty-amd64 ) + with AWS EC2
all stages go normal til this step when it want to connect with SSH --> $ juju ssh courestarcom/0 run rake db:migrate
Warning: Permanently added 'h' (ECDSA) to the list of known hosts.
Warning: Permanently added '172.31.59.231' (ECDSA) to the list of known hosts.
bash: run: command not found
Connection to 172.31.59.231 closed.
ERROR subprocess encountered error code 127

@ziralabs
Copy link

ziralabs commented Feb 8, 2015

environment: amazon
machines:
"0":
agent-state: started
agent-version: 1.21.1
dns-name: 52.0.12.49
instance-id: i-6c499a83
instance-state: running
series: trusty
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
state-server-member-status: has-vote
"1":
agent-state: started
agent-version: 1.21.1
dns-name: 52.0.54.69
instance-id: i-132c63e2
instance-state: running
series: precise
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
"2":
agent-state: started
agent-version: 1.21.1
dns-name: 52.0.110.37
instance-id: i-e68e5e1c
instance-state: running
series: trusty
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
"3":
agent-state: started
agent-version: 1.21.1
dns-name: 52.0.224.130
instance-id: i-6812cf87
instance-state: running
series: trusty
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
services:
courestarcom:
charm: cs:precise/rails-3
exposed: false
relations:
mysql:
- mysql
proxy:
- haproxy
units:
courestarcom/0:
agent-state: error
agent-state-info: 'hook failed: "install"'
agent-version: 1.21.1
machine: "1"
public-address: 52.0.54.69
haproxy:
charm: cs:trusty/haproxy-3
exposed: false
relations:
peer:
- haproxy
reverseproxy:
- courestarcom
units:
haproxy/0:
agent-state: started
agent-version: 1.21.1
machine: "2"
public-address: 52.0.110.37
mysql:
charm: cs:trusty/mysql-16
exposed: false
relations:
cluster:
- mysql
db:
- courestarcom
units:
mysql/0:
agent-state: started
agent-version: 1.21.1
machine: "3"
public-address: 52.0.224.130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment