Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Failed to install via Cloud formation template #238
I've successfully setup the Cloud Formation stack on AWS. I had a fully functioning auto-scaling group setup which was scaling my DynamoDB table. For testing purposes i terminated the EC2 instance to check another was launched. Another was successfully launched but
I can see in the
I've ssh'd onto the ec2 instance and manually tried to install via pip, and saw the following:
Do you have any suggestions on how i can resolve this please?
Thanks for the report. It seems like the reinstall lacks root privileges.
Will update here when I've looked at it.
On Fri, Apr 10, 2015, 16:29 Pete Roome firstname.lastname@example.org wrote:
(Be aware - Friday afternoon hack below!)
As said, I'm busy. But I couldn't resist looking at it quickly. If you have some spare time you could try the following CF template: https://gist.github.com/sebdah/164a128f05f7fa4ed26b
The only change is that I enforce
@sebdah this hasn't worked unfortunately. Still no install of on boot after a termination of the EC2 instance.
This indicates to me there is a problem with this line in the template:
…continuing to debug this and will report back with anything i find.
I've updated the Cloudformation template with the line above, but this still isn't working on reboot of the terminated EC2 instance. I still see this line in the
I'm having the same problem.
I do think this is a permissions problem but as @coolbox pointed out, adding sudo doesn't work. Surprisingly though running:
on the server works fine, so not sure if this is to do specifically with AWS.
Here is my cloud init log if it helps:
I'm having similar problems. There appears to be a problem with the 'sudo' configuration for this instance. I was only able to get dynamic-dynamodb installed using the above mentioned command:
sudo /usr/local/bin/pip install -U -r /etc/dynamic-dynamodb/requirements.txt
If I try to run sudo pip it can't find it in the path.
Also, after I get the configuration setup I wasn't able to use the "service" command to start and stop the service.
sudo service dynamic-dynamodb start
For a work around I used the following command to run dynamic-dynamodb:
dynamic-dynamodb -c /etc/dynamic-dynamodb/dynamic-dynamodb.conf &
This appears to be working for me now, but any hints on how to get service working would be appreciated.
referenced this issue
Apr 24, 2015
I ran into this issue today as well. I created PR #242 to fix it, but to summarize, as @coolbox pointed out, invoking pip via its absolute path (
To get the service aspect working, and thereby fix the issue of dynamic-dynamodb not starting up after an ec2 instance termination, you have to modify the init.d file that gets written by the cloudformation template to point to the correct location of the dynamic-dynamodb binary. Since pip is installed in