Comments (15)
I suspect that you don't have host name resolution enabled in your VPC. If
you dig that hostname from your jump box, does it resolve?
If not, you can enable host name resolution or address your machines by
their internal, 10-dot IPs.
Best,
Ed.
On Jul 13, 2013 2:43 PM, "elimence" [email protected] wrote:
I am setting up the edx stack and have come to the point where i need to
connect to host in the stack using ssh. Here's the urlhttps://github.com/edx/configuration#connecting-to-hosts-in-the-stack
.
I added these lines to my ~/.ssh/config file:Host *.us-west-1.compute-internal
ProxyCommand ssh -W %h:%p vpc-us-west-1-jumpbox
ForwardAgent yesHost vpc-us-west-1-jumpbox
HostName 54.236.202.101
ForwardAgent yesafter modifying to this:
Host *.us-east-1.compute-internal
ProxyCommand ssh -W %h:%p vpc-us-east-1-jumpbox
ForwardAgent yesHost vpc-us-east-1-jumpbox
HostName 54.236.202.101
ForwardAgent yesI changed the region from us-west-1 to us-east-1
Because i realised the region for the instances created by the stack are
in us east 1
I also changed the HostName to one of the elastic ips created by the
stackWhen i tried testing with the given command:
ssh ip-10-0-10-1.us-west-1.compute.internal
I had the following error:
ssh: Could not resolve hostname ip-10-0-10-1.us-west-1.compute.internal: No such file or directory
I realised that in the config file, we had something like
compute-internal at the end of the hostname, while in the command, we had
compute.internal. I wonder if this is the cause?But i had the same error even after changing from dot to hyphen.
I am wondering if i made any unnecessary changes or overlooked any.—
Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/153
.
from configuration.
Thanks, but i don't really know how to get this done,
I would be glad if you could direct me on how to check the hostname from my
jump box and how to get it working if it's the cause.
Also, was i right to make those edits?
Thanks.
On Sat, Jul 13, 2013 at 7:13 PM, e0d [email protected] wrote:
I suspect that you don't have host name resolution enabled in your VPC. If
you dig that hostname from your jump box, does it resolve?If not, you can enable host name resolution or address your machines by
their internal, 10-dot IPs.Best,
Ed.
On Jul 13, 2013 2:43 PM, "elimence" [email protected] wrote:I am setting up the edx stack and have come to the point where i need to
connect to host in the stack using ssh. Here's the url<
https://github.com/edx/configuration#connecting-to-hosts-in-the-stack>
.
I added these lines to my ~/.ssh/config file:Host *.us-west-1.compute-internal
ProxyCommand ssh -W %h:%p vpc-us-west-1-jumpbox
ForwardAgent yesHost vpc-us-west-1-jumpbox
HostName 54.236.202.101
ForwardAgent yesafter modifying to this:
Host *.us-east-1.compute-internal
ProxyCommand ssh -W %h:%p vpc-us-east-1-jumpbox
ForwardAgent yesHost vpc-us-east-1-jumpbox
HostName 54.236.202.101
ForwardAgent yesI changed the region from us-west-1 to us-east-1
Because i realised the region for the instances created by the stack are
in us east 1
I also changed the HostName to one of the elastic ips created by the
stackWhen i tried testing with the given command:
ssh ip-10-0-10-1.us-west-1.compute.internal
I had the following error:
ssh: Could not resolve hostname ip-10-0-10-1.us-west-1.compute.internal:
No such file or directoryI realised that in the config file, we had something like
compute-internal at the end of the hostname, while in the command, we
had
compute.internal. I wonder if this is the cause?But i had the same error even after changing from dot to hyphen.
I am wondering if i made any unnecessary changes or overlooked any.—
Reply to this email directly or view it on GitHub<
https://github.com/edx/configuration/issues/153>
.—
Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/153#issuecomment-20924974
.
from configuration.
OK, looking more closely at you changes, I'm not sure that they are correct. Have you successfully run the cloud formation template and created the servers? If so, from the AWS cloud formation UI, look at the resources tab and find the IP of your bastion box. That's the IP that you will need to use to configure your jumpbox, not 54.236.202.101.
Best,
Ed.
from configuration.
Yes, i have completed the server creation and after following your
instructions, i found the right IP.
I know have this error showing up when i run the command
Permission denied (publickey).
ssh_exchange_identification: Connection closed by remote host
I wonder if i need to use any key file?
Also, since the ssh config file has "compute-internal"
And the ssh connection has "compute.internal"
Which one should i change?
Thanks.
On Mon, Jul 15, 2013 at 5:20 PM, e0d [email protected] wrote:
OK, looking more closely at you changes, I'm not sure that they are
correct. Have you successfully run the cloud formation template and created
the servers? If so, from the AWS cloud formation UI, look at the resources
tab and find the IP of your bastion box. That's the IP that you will need
to use to configure your jumpbox, not 54.236.202.101.Best,
Ed.
—
Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/153#issuecomment-20985491
.
from configuration.
Try adding the AWS key such that ssh will have it available:
ssh-add ~/where/you/dowloaded/aws.pem
from configuration.
I have the key i created in the .ssh directory, (i have used chmod 400 on it), i also run the ssh-add command.
However, i still get that same error:
Permission denied (publickey).
ssh_exchange_identification: Connection closed by remote host
from configuration.
Can you do:
> ssh -i ~/where/you/dowloaded/aws.pem ec2_user@<right_ip>
?
from configuration.
Yes, it works, i am able to ssh into an instance with the following promt:
ubuntu@ip-10-0-0-77:~$
I guess i should move on to the boto part "Finding your hosts via boto"
?
from configuration.
Yes.
from configuration.
I have realized that continuing with this approach would really cost a lot of money, hence the project i would like to undertake would not be sustainable. Is there any alternative i could use that would be less expensive?
from configuration.
Hi elimence - You can install the entire edX stack on a single server (without setting up a VPC) by following these instructions. https://github.com/edx/configuration/wiki#installation
That would be the cheapest option since it only requires a single ec2 instance, it does not however give you any redundancy and I'm not sure how it will perform under load.
-John
from configuration.
Thanks John, I'm trying that out now.
I'll let you know how it works.
Best Wishes.
Samuel A.
On Tue, Jul 16, 2013 at 2:58 PM, John Jarvis [email protected]:
Hi elimence - You can install the entire edX stack on a single server
(without setting up a VPC) by following these instructions.
https://github.com/edx/configuration/wiki#installation
That would be the cheapest option since it only requires a single ec2
instance, it does not however give you any redundancy and I'm not sure how
it will perform under load.-John
—
Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/153#issuecomment-21047719
.
from configuration.
Hi, I have tried out the instructions at the link you gave me, but i run into an error.
I have appended the output of the command.
PLAY [Configure instance(s)] **************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [Create 'edx' users group] **********************************************
ok: [localhost]
TASK: [Add user 'ubuntu' to 'edx' group] **************************************
ok: [localhost]
TASK: [Creating admin users] **************************************************
skipping: [localhost] => (item=admin_users)
TASK: [Copying ssh keys for admin users] **************************************
skipping: [localhost] => (item=admin_keys)
TASK: [Creating env users] ****************************************************
skipping: [localhost] => (item=env_users)
TASK: [Copying ssh keys for env users] ****************************************
skipping: [localhost] => (item=env_keys)
TASK: [Group adm passwordless sudo] *******************************************
ok: [localhost]
TASK: [Add user www-data] *****************************************************
ok: [localhost]
TASK: [Create application root] ***********************************************
ok: [localhost]
TASK: [Create upload directory] ***********************************************
ok: [localhost]
TASK: [Create data dir] *******************************************************
ok: [localhost]
TASK: [Create staticfiles dir] ************************************************
ok: [localhost]
TASK: [Install role-independent useful system packages] ***********************
ok: [localhost]
TASK: [Create log directory] **************************************************
ok: [localhost]
TASK: [Create alias from app_base_dir to the log_base_dir] ********************
failed: [localhost] => {"failed": true, "item": ""}
msg: absolute paths are required
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/var/tmp/ansible/edx_sandbox.retry
localhost : ok=15 changed=0 unreachable=0 failed=1
from configuration.
I saw this same error recently, will check it out and let you know when it is fixed
from configuration.
Thanks :)
On Wed, Jul 17, 2013 at 2:06 PM, John Jarvis [email protected]:
I saw this same error recently, will check it out and let you know when it
is fixed—
Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/153#issuecomment-21115044
.
from configuration.
Related Issues (20)
- Broken link to sqoop
- Native Open edX Ubuntu 16.04 64 bit Installation---behind a proxy:-----TASK [forum : initialize elasticsearch] fatal: HOT 2
- An error occurred while I was executing the sandbox.sh file.
- An error occurred while I was executing the TASK [edxapp : code sandbox | Install base sandbox requirements and create sandbox virtualenv]
- Fixes a bug that occurs in the installation of Analytics Single
- Fail on Insights when install Analytics_Single
- Error install bower dependencies Task insights - Native Open edX Ubuntu 16.04 64 bit Installation HOT 3
- Missing Variables for Journals causing errors during installation HOT 5
- Ansible task that install bower dependencies failing due to bower repository at . http://bower.herokuapp.com/ HOT 5
- conflicting requirements in requirements.txt
- TASK [edxapp : install node dependencies] fails when launched from native.sh
- ImportError: No module named settings.local HOT 1
- Install failing on GCP HOT 4
- nginx config prevents loading of xml files in xblock
- Installation failed due to LibSass warning HOT 9
- stuck on TASK [edxapp : checkout edx-platform repo into /edx/app/edxapp/edx-platform] HOT 3
- Unavailable (access denied) all vagrant boxes from http://files.edx.org/
- 'dict object' has no attribute 'iteritems' and rbenv error on fresh install attempt HOT 2
- TASK [oraclejdk : Download Oracle Java] FAILED! HOT 1
- apt packages installation might need to be reviewed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from configuration.