Setup problems: AWS


(Deepak) #941

Yes, I gave permissions. When I scanned the video carefully, I realized that I should ask for p2.xlarge instead of g2.2xlarge. I called just now and changed it. I reinstalled Python 2.7. I will try. Hope it works this time


(Raymond Wong) #942

Hi all,

I’m new to Fast.ai

I just requested the AWS p2.xlarge, but they replied:

"I’m sorry; I’m unable to process the limit increase you requested for EC2 Instances at this time.

As your account has hardly been utilized, with minimal usage up to this point, we would need you to first utilize your current instance capacity before granting such a request.

These limits are put in place to help you gradually ramp up activity and decrease the likelihood of large bills due to sudden, unexpected spikes. Once we have a broader window of usage on your account to review, we are happy to reassess any requests.

I hope this information helps."

Does anyone know what should I do now? Thanks.


(Cynosure) #943

Have you checked the new course material? For that you dont need to request an aws instance directly.


(Raymond Wong) #944

I’m not sure about the “new course material”, since the get started said it needs the server to learn.


(Cynosure) #945

Please see the new videos. For that you need account on paperspace.


(Raymond Wong) #946

Thanks a lot!
I’ll take a look on this


(Mac Yeh) #947

Hi,
I just got some problems on ssh problems during the setup. It looks like the connection problem, not quite sure how I resolve this one, Thanks for the any guidance and help in advance.

hohsiny@HOHSINY ~
$ ssh -i /home/hohsiny/.ssh/aws-key.pem ubuntu@ec2-52-35-153-32.us-west-2.compute.amazonaws.com
ssh_exchange_identification: read: Software caused connection abort


(KRO) #948

I have this problem also, under both cygwin and ubuntu bash for windows. I am pretty stuck with this setup and would appreciate a hint Jeremy or others!

krobinso@DESKTOP-P06HRTM:/mnt/c/Users/krobi$ aws
C:\Programs\Anaconda2\python.exe: can’t open file ‘/mnt/c/Programs/Anaconda2/Scripts/aws’: [Errno 2] No such file or directory
krobinso@DESKTOP-P06HRTM:/mnt/c/Users/krobi$ ls /mnt/c/Programs/Anaconda2/python.exe
/mnt/c/Programs/Anaconda2/python.exe
krobinso@DESKTOP-P06HRTM:/mnt/c/Users/krobi$ less /mnt/c/Programs/Anaconda2/Scripts/aws
krobinso@DESKTOP-P06HRTM:/mnt/c/Users/krobi$ cat /mnt/c/Programs/Anaconda2/Scripts/aws
#!/mnt/c/Programs/Anaconda2/python.exe
#C:\Programs\Anaconda2\python.exe
#/cygdrive/c/Programs/Anaconda2/python.exe

Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.


(KRO) #949

Yesterday I completed setup and connected to my EC2 p2 instance, using the jupyter notebook via console and via browser. Today I can’t connect (couldn’t ping even, until I twiddled some settings in the Inbound tab).

So I tried running the setup file again in case that’s what made it work yesterday.

I also ran it twice yesterday because I wasn’t sure it had worked the first time; now I wonder if extra VPCs are what’s messing things up.

So I’ll check the faq that Jeremy sent poppin3000.


(mahesh) #950

When we want to watch movies on our kodi we may get https:// olpair kodi


(Fwick) #951

I am having trouble setting up using bash setup_p2.sh. I am new to AWS. I have been approved for a p2.xlarge instance.

I am using a mac. I restarted aws and still cannot setup an instance.

$ bash setup_p2.sh
True

An error occurred (InvalidKeyPair.NotFound) when calling the RunInstances operation: The key pair ‘aws-key-fast-ai’ does not exist

An error occurred (MissingParameter) when calling the CreateTags operation: The request must contain the parameter resourceIdSet
Waiting for instance start…

Waiter InstanceRunning failed: Max attempts exceeded
usage: aws [options] [ …] [parameters]
To see help text, you can run:

aws help
aws help
aws help
aws: error: argument --instance-id: expected one argument

An error occurred (MissingParameter) when calling the RebootInstances operation: The request must contain the parameter InstancesSet

All done. Find all you need to connect in the fast-ai-commands.txt file and to remove the stack call fast-ai-remove.sh
Connect to your instance: ssh -i /Users/Farah/.ssh/aws-key-fast-ai.pem ubuntu@None

I really appreciate your help! Thanks!


(Fwick) #952

UPDATE: I removed the fast-ai.pem key and tried running the script. This time it worked.


#953

Hi @jicherry , I am having the same problem you had.
I’d appreciate it if you could explain a bit more how I can find the credential file and after modifying it, from which step should I continue the setup.


(Gaurav Rele) #954

you should find the credential file in ~/.aws/credential but you can always use the command “aws configure” to setup your access key and secret key


#955

Windows 8 people: just a heads up. I was having trouble setting up AWS using cygwin, almost in tears from the frustration.

(I had the p2.xlarge approved from amazon prior to figuring these steps out)

After 5 hours of reinstalling cygwin and trying many things to make the bash shell see aws, I would suggest using (loosely written for people with some experience with VM’s):

install virtualbox
set up Ubuntu on it
open terminal
type “sudo apt-get install python-pip”, enter
git clone https://github.com/fastai/courses
cd to ~/courses/setup/
run setup_p2.sh
then I could follow the install AWS video and everything worked like the video.

Conclusion: this lets you avoid configuring the proxy for jupyter notebook, changing PATH on cygwin, making python work on cygwin, making the right version of python come up on cygwin, etc.


(Florian Rohrer) #956

Hi everyone, during setup I get the following errors. I am using Ubuntu 16.04. Can anybody tell me what to click on the Amazon AWS site for this OptIn?

Thank you!

bash setup_p2.sh 

An error occurred (OptInRequired) when calling the CreateVpc operation: You are not subscribed to this service. Please go to http://aws.amazon.com to subscribe.

An error occurred (OptInRequired) when calling the CreateTags operation: You are not subscribed to this service. Please go to http://aws.amazon.com to subscribe.
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: argument --vpc-id: expected one argument
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: argument --vpc-id: expected one argument

(Karthik) #957

Hi Alex,
I have re-run aws configure and have provided proper values and I still get this problem. Please help me.


(Florian Rohrer) #958

How did you fix this error?
An error occurred (OptInRequired) when calling the CreateInternetGateway operation: You are not subscribed to this service. Please go to http://aws.amazon.com to subscribe. Did you click something on the amazon website?


(Amulya) #959

Hey! I’m very new to the Deep Learning course. I’ve to work on a project in my University. Can I register for an AWS server without giving Credit Card information because I don’t have one.


#960

Hi
I just installed cygwin and installed awscli
but when I run aws ,it shows below:

fei@Guo ~
$ aws
D:\anaconda31\python.exe: can’t open file ‘/cygdrive/d/anaconda31/Scripts/aws’: [Errno 2] No such file or directory

fei@Guo ~
$
I don’t know why, It seems cygwin is not running so well in my computer?