'bundle exec cf bootstrap aws': [ERROR] sh ./update: No such file or directory

14 views
Skip to first unread message

Og Iwunze

unread,
Nov 1, 2013, 7:34:26 AM11/1/13
to bosh-...@cloudfoundry.org
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.

James Bayer

unread,
Nov 1, 2013, 10:58:25 AM11/1/13
to bosh-...@cloudfoundry.org
thanks for all of this detail. this is very helpful for filing the bug.


To unsubscribe from this group and stop receiving emails from it, send an email to bosh-users+...@cloudfoundry.org.



--
Thank you,

James Bayer
Reply all
Reply to author
Forward
0 new messages