Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Creating and accessing an edx instance on aws #219

Closed
maximfilippov opened this issue Aug 20, 2013 · 14 comments
Closed

Creating and accessing an edx instance on aws #219

maximfilippov opened this issue Aug 20, 2013 · 14 comments

Comments

@maximfilippov
Copy link

Hello guys,

We've finished the whole instructions for configuring servers on aws. Could you please point us out to next steps i.e. how do we actually deploy and get the code to run?

Thanks so much,

Max

@elimence
Copy link

which set of instructions did you follow?
Using cloud formation or using ansible? etc.

On Tue, Aug 20, 2013 at 2:46 PM, Maxim Filippov notifications@github.comwrote:

Hello guys,

We've finished the whole instructions for configuring servers on aws.
Could you please point us out to next steps i.e. how do we actually deploy
and get the code to run?

Thanks so much,

Max


Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/219
.

@maximfilippov
Copy link
Author

We've used cloud formation!

On 20 Aug 2013, at 17:25, elimence notifications@github.com wrote:

which set of instructions did you follow?
Using cloud formation or using ansible? etc.

On Tue, Aug 20, 2013 at 2:46 PM, Maxim Filippov notifications@github.comwrote:

Hello guys,

We've finished the whole instructions for configuring servers on aws.
Could you please point us out to next steps i.e. how do we actually deploy
and get the code to run?

Thanks so much,

Max


Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/219
.


Reply to this email directly or view it on GitHub.

@e0d
Copy link
Contributor

e0d commented Aug 20, 2013

@maximfilippov
Copy link
Author

Ha that's the only thing i've been looking at for the past few days! But its not telling me how to deploy & run code as well as access the platform!

On 20 Aug 2013, at 17:59, e0d notifications@github.com wrote:

@maximfilippov Have you looked at this: https://github.com/edx/configuration/wiki/AWS-Installation


Reply to this email directly or view it on GitHub.

@e0d
Copy link
Contributor

e0d commented Aug 20, 2013

Have you run ansible? That will deploy the code.

@maximfilippov
Copy link
Author

Running the configuration playbook seems to only configure the stack. We have done that through the was console so that's the done. Now we want to actually upload and run the code actual code (not just the server configuration stuff that we have done already).

Many thanks!

On 20 Aug 2013, at 18:31, e0d notifications@github.com wrote:

Have you run ansible? That will deploy the code.


Reply to this email directly or view it on GitHub.

@e0d
Copy link
Contributor

e0d commented Aug 20, 2013

Have you created the full VPC version or are you trying to build a sandbox that runs multiple services?

@maximfilippov
Copy link
Author

We are trying to create the full platform. By following the instructions we end up with a VPC running 12 ec2 instances i.e. we have what seems to be the full stack configured.
On 20 Aug 2013, at 18:58, e0d notifications@github.com wrote:

Have you created the full VPC version or are you trying to build a sandbox that runs multiple services?


Reply to this email directly or view it on GitHub.

@maximfilippov
Copy link
Author

Wait a minute… I'm realising that I have launched the configuration playbook with ansible using the same stack name (say STACK1) that I used for the stack I had configured through the console (which of course messed up the whole stack).

Are you telling me that if I specify a new stack name (say STACK2) and launch the configuration playbook i'll have all the code loaded on STACK1?

That would be very awesome!

On 20 Aug 2013, at 18:58, e0d notifications@github.com wrote:

Have you created the full VPC version or are you trying to build a sandbox that runs multiple services?


Reply to this email directly or view it on GitHub.

@jarv
Copy link
Contributor

jarv commented Nov 15, 2013

@maximfilippov We don't have polished docs available yet for running edX in a vpc. It's something we plan to do eventually though it may not happen for awhile.

@jarv jarv closed this as completed Nov 15, 2013
@disisid
Copy link

disisid commented Dec 1, 2013

I have created an edx single ec2 instance using the config wiki. I have also configured using ansible playbook from edx master.

sudo ansible-playbook -c local --limit "localhost:127.0.0.1"
./edx_sandbox.yml -i "localhost," -e "edx_platform_commit=master"

However I cannot access LMS or CMS on public IP port 18010 or 18000. The public IP is http://ec2-54-254-185-46.ap-southeast-1.compute.amazonaws.com/

I was getting data not received error while accessing these ports. Can you please guide me on this?

@elimence
Copy link

elimence commented Dec 1, 2013

Where there any error messages when during the setup process?
Also i'd advice you setup an elastic IP as opposed to using the default public DNS (not that i think this is the cause, but at the least, it's cleaner)

You should also check to see if the nginx and gunicorn are running, or even try restarting them (assuming you aren't using something else in their stead)

@disisid
Copy link

disisid commented Dec 1, 2013

Although there were no errors. I used ansible on the server yesterday.
Today when I sshed into the server and ran these commands
sudo service gunicorn status
sudo service edxapp status

these services were not recognised. Should I run ansible again?

Although sudo service nginx status returns nginx running.

On Sun, Dec 1, 2013 at 7:08 PM, elimence notifications@github.com wrote:

Where there any error messages when during the setup process?
Also i'd advice you setup an elastic IP as opposed to using the default
public DNS (not that i think this is the cause, but at the least, it's
cleaner)

You should also check to see if the nginx and gunicorn are running, or
even try restarting them (assuming you aren't using something else in their
stead)


Reply to this email directly or view it on GitHubhttps://github.com/edx/configuration/issues/219#issuecomment-29573850
.

@disisid
Copy link

disisid commented Dec 1, 2013

So I executed ansible again. This time it failed at elasticsearch

TASK: [elasticsearch | Ensure elasticsearch is enabled and started] ***********
failed: [localhost] => {"failed": true, "item": ""}
msg: * Starting ElasticSearch Server
...fail!

FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/ubuntu/edx_sandbox.retry

localhost : ok=175 changed=44 unreachable=0 failed=1

Now gunicorn is still unrecognised as well as edxapp. elasticsearch shouldn't affect gunicorn or edxapp as such. Anyone - please guide.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants