-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update setup.sh #224
base: master
Are you sure you want to change the base?
Update setup.sh #224
Conversation
Updated setup.sh
Thanks for the PR @Ahtidevin! Does this work when it's run, or are there still issues? |
It solved few of the problems but minion worker still does not seem to start. |
Hi Scott,
Thanks again for looking into the issue. It would be really great if you could suggest changes in the script as I am unsure why the minion worker is not starting up. I really appreciate the help.
Thank you,
Niveditha
…________________________________
From: Scott Sievert <[email protected]>
Sent: Monday, April 13, 2020 5:07 PM
To: nextml/NEXT <[email protected]>
Cc: NIVEDITHA HARIHARAN <[email protected]>; Mention <[email protected]>
Subject: Re: [nextml/NEXT] Update setup.sh (#224)
Thanks for the PR @Ahtidevin<https://github.com/Ahtidevin>! Does this work when it's run, or are there still issues?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#224 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALGG2NPSPOM5GYTWP63ICOTRMOELPANCNFSM4MHG44GQ>.
|
Thanks for the ping. I've launched the current master branch locally, and it launches just fine. That means the error is EC2-specific. I'm not the biggest fan of the If you want to resolve the issue with EC2, let's look at the an error message from your error logs:
Again, this is EC2 specific, not NEXT.
AMQP is a message passing protocol. At first glance, this diff might solve it: - BROKER_URL = 'amqp://{user}:{password}@{hostname}:{port}/{vhost}/'.format(
- vhost=os.environ.get('RABBIT_ENV_VHOST', ''))
+ BROKER_URL = 'amqp://{user}:{password}@{hostname}:{port}/{vhost}'.format(
+ vhost=os.environ.get('RABBIT_ENV_VHOST', '/')) But I'm not seeing any modification of any |
Hi Scott,
I really appreciate your update. I am trying to understand the changes suggested by you. I will update once the ec2 script works successfully.
Thank you,
Niveditha
…________________________________
From: Scott Sievert <[email protected]>
Sent: Friday, April 17, 2020 12:20 PM
To: nextml/NEXT <[email protected]>
Cc: NIVEDITHA HARIHARAN <[email protected]>; Mention <[email protected]>
Subject: Re: [nextml/NEXT] Update setup.sh (#224)
Thanks for the ping. I've launched the current master branch locally, and it launches just fine. That means the error is EC2-specific.
I'm not the biggest fan of the ec2/ directory. It's definitely outdated. If you wanted, you could launch the NEXT AMI yourself, rsync your files up and re-launch the docker machines (though you'd have to modify ami/next.sh<https://github.com/nextml/NEXT/blob/master/ami/next.sh#L15>).
________________________________
If you want to resolve the issue with EC2, let's look at the an error message from your error logs:
minionworker_1 | [2020-04-13 03:25:01,493: ERROR/MainProcess] consumer:
Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Again, this is EC2 specific, not NEXT.
1. Look at this SO answer: https://stackoverflow.com/questions/50222808/celery-not-work-cannot-connect-to-amqp-guest127-0-0-15672 CELERY_BROKER_URL might need to be configured in the minionworker environment variables for docker-compose.yml<https://github.com/nextml/NEXT/blob/a9b3edf223841f7a8d00bc7a138d838690673d76/ec2/templates/docker-compose.yml#L38>.
2. The relevant URL is configured in https://github.com/nextml/NEXT/blob/7f604f9f2ca8d1bcbd72a371d7bb8e77ba001a99/next/constants.py#L66-L71
AMQP<https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol> is a message passing protocol. At first glance, this diff might solve it:
- BROKER_URL = 'amqp://{user}:{password}@{hostname}:{port}/{vhost}/'.format(
- vhost=os.environ.get('RABBIT_ENV_VHOST', ''))
+ BROKER_URL = 'amqp://{user}:{password}@{hostname}:{port}/{vhost}'.format(
+ vhost=os.environ.get('RABBIT_ENV_VHOST', '/'))
But I'm not seeing any modification of any RABBIT_* environment variables in ec2/...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#224 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALGG2NJZQNNSOFOWNJ7V6BDRNCFUDANCNFSM4MHG44GQ>.
|
Sounds good. Keep in mind when I say "EC2-specific" I mean "NEXT launches fine on my local machine. It seems there's a modification to some of the EC2 integration NEXT has in |
Hi Scott,
Oh, I see. I get it now. I will check to see if I can fix this or help Prof Dewey set this up locally. Thanks for your input.
Thank you,
Niveditha
…________________________________
From: Scott Sievert <[email protected]>
Sent: Friday, April 17, 2020 4:24 PM
To: nextml/NEXT <[email protected]>
Cc: NIVEDITHA HARIHARAN <[email protected]>; Mention <[email protected]>
Subject: Re: [nextml/NEXT] Update setup.sh (#224)
Sounds good. Keep in mind when I say "EC2-specific" I mean "NEXT launches fine on my local machine. It seems there's a modification to some of the EC2 integration NEXT has in ec2/ going wrong".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#224 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALGG2NLFA6IWN7W2JGXXK63RNDCIJANCNFSM4MHG44GQ>.
|
I think they're specified in NEXT/ec2/templates/docker-compose.yml Lines 38 to 40 in 7f604f9
The values that are filled are configured in Lines 770 to 771 in 7f604f9
|
If any of these environment variables need to be changed, I suspect they can be added in
For example, if I wanted to change
minionredis:
environment:
MINIONREDIS_1_PORT: {{MINIONREDIS_1_PORT}}
image: redis
... |
I am unable to see the rabbitmq-env.conf or other conf files. I can see only redis.conf. |
My point: I think those environment variables can be changed, as long as they're in the environment before NEXT launches. This can be done by modifiying the For example, let's say I want to change Lines 770 to 771 in a9b3edf
I'd propagate this down to NEXT/ec2/templates/docker-compose.yml Lines 19 to 21 in a9b3edf
That is, I'd append this code: environment:
MINIONREDIS_1_PORT: {{MINIONREDIS_1_PORT}} Note: all environment variables should be strings. |
Updated setup.sh since the source from which docker was being installed expired.