hi guys,
I thought I should share an error I encountered and how I resolved it just in case it helps anyone out there.
I encountered this error when I ran 'bundle exec cf bootstrap aws' following CF v2 deployment to AWS instructions.
Creating release cf-release
sh: ./update: No such file or directory
Time of crash:
2013-11-01 11:03:41 +0000
RuntimeError: Failed to run: cd /var/folders/zw/kqpt1vdj7b79nn5n7mx98wjxzk_yv8/T/cf-release && ./update
bootstrap-cf-plugin-ee90e91d0309/lib/bootstrap-cf-plugin/infrastructure/aws.rb:87:in `sh'
bootstrap-cf-plugin-ee90e91d0309/lib/bootstrap-cf-plugin/infrastructure/aws.rb:47:in `update_release'
bootstrap-cf-plugin-ee90e91d0309/lib/bootstrap-cf-plugin/infrastructure/aws.rb:51:in `prepare_release'
bootstrap-cf-plugin-ee90e91d0309/lib/bootstrap-cf-plugin/infrastructure/aws.rb:31:in `deploy_release'
bootstrap-cf-plugin-ee90e91d0309/lib/bootstrap-cf-plugin/infrastructure/aws.rb:9:in `bootstrap'
bootstrap-cf-plugin-ee90e91d0309/lib/bootstrap-cf-plugin/plugin.rb:15:in `bootstrap'
I checked the cf-release directory (in the error snippet above) but couldn't find any 'update' script. However, in cf-release git repo and I could see 'update' file, which runs 'git pull' among other things. It therefore suggested to me that I could 'cd' to my local cf-release directory and run the same commands. But NO, its not a git repo (no .git).
FIX- cd /path/to/local/cf-release (as can be seen in the error you get)
- cd ../
- mv cf-release orig_cf-release
- git clone https://github.com/cloudfoundry/cf-release.git
- cd $HOME/cf # Assuming this is your CF workspace
- bundle exec cf bootstrap aws
...and you should be alright.
BUG: The above issue suggests there is a BUG with 'bundle exec cf bootstrap aws' command. Precisely, 'cf-release' created by this command is expected to be a clone of cf-release git repo but it is not.