(From the google groups thread about 0.9.10)
I am able to build an AMI from Paul's experimental branch, but the ec2onrails:setup task prompts me for a password, which it should not.
Here's what I'm doing:
- Build 0.9.10 gem:
[~/workspace/bploetz-ec2onrails/ec2onrails]> git checkout experimental
Already on "experimental"
[~/workspace/bploetz-ec2onrails/ec2onrails]> git remote show
origin
pauldowman
skippy
[~/workspace/bploetz-ec2onrails/ec2onrails]> git pull pauldowman
experimental
From git://github.com/pauldowman/ec2onrails
* branch experimental -> FETCH_HEAD
Already up-to-date.
[~/workspace/bploetz-ec2onrails/ec2onrails]> rake install
(in /Users/bploetz/workspace/bploetz-ec2onrails/ec2onrails)
Missing manifest. You can build one with 'rake manifest'.
[~/workspace/bploetz-ec2onrails/ec2onrails]> rake manifest
.......manifest output.........
[~/workspace/bploetz-ec2onrails/ec2onrails]> sudo rake install
(in /Users/bploetz/workspace/bploetz-ec2onrails/ec2onrails)
.......install output..........
cd -
Successfully built RubyGem
Name: ec2onrails
Version: 0.9.10
File: ec2onrails-0.9.10.gem
mv ec2onrails-0.9.10.gem pkg/ec2onrails-0.9.10.gem
Private key not found; gem will not be signed.
Targeting "ruby" platform.
ERROR: While executing gem ... (Gem::InstallError)
Unknown gem ec2onrails >= 0
Successfully installed ec2onrails-0.9.10
1 gem installed
Installing ri documentation for ec2onrails-0.9.10...
Installing RDoc documentation for ec2onrails-0.9.10...
[~/workspace/bploetz-ec2onrails/ec2onrails]> gem list
..............
ec2onrails (0.9.10)
..............
Build AMI using experimental branch (output too long to include here)
Register the AMI:
ec2-register bploetz-ec2onrails/bploetz-ec2onrails-0.9.10.manifest.xml
Start an instance using the AMI
Try to run ec2onrails:setup in my app (I use multistage cap, but
I've taken that out of the equation and get the same error). Note it
prompts for a password, which it should not be:
[~/workspace/myApp]> cap staging ec2onrails:setup
* executing `staging'
triggering start callbacks for `ec2onrails:setup'
- executing `multistage:ensure'
- executing `ec2onrails:setup'
- executing `ec2onrails:server:upload_deploy_keys'
- executing `deploy:setup'
- executing "mkdir -p /mnt/app /mnt/app/releases /mnt/app/shared /
mnt/app/shared/system /mnt/app/shared/log /mnt/app/shared/pids &&
chmod g+w /mnt/app /mnt/app/releases /mnt/app/shared /mnt/app/shared/
system /mnt/app/shared/log /mnt/app/shared/pids"
servers: ["ec2-174-129-87-153.compute-1.amazonaws.com"]
Password:
connection failed for: ec2-174-129-87-153.compute-1.amazonaws.com
(Net::SSH::AuthenticationFailed: app)
I've already run "cap staging ec2onrails:get_public_key_from_server" but that has no effect. I still get prompted for a password.
Others on the google groups have commented that they're able to run the cap tasks locally, so this appears to be something weird going on in my environment. Closing....