[chef] git deploy wrapper No such file or directory


Chronological Thread 
  • From: Edward Sargisson < >
  • To: chef < >
  • Subject: [chef] git deploy wrapper No such file or directory
  • Date: Wed, 22 Aug 2012 07:13:37 -0700

Hi all,
I'm feeling really stupid at not being able to spot this problem but I'm at a dead end.

My chef recipe is using a git deploy with the wrapper from [1]. 

The recipe fragment is:
git "Terrain" do
  repository " :ejsarge/Terrain.git"
  revision "master"
  action :sync
  destination "/var/lib/trailhunger/map/terrain"
  user "ubuntu"
  ssh_wrapper "/tmp/private_code/wrap-ssh4git.sh"
end

The command line and output is:

 git clone -v :ejsarge/Terrain.git /var/lib/trailhunger/map/terrain
Initialized empty Git repository in /mnt/var/trailhunger/map/terrain/.git/
: No such file or directory
fatal: The remote end hung up unexpectedly

Investigation shows that it's the wrapper which is producing that output and does so when run on its own.

My wrapper is currently:
#!/usr/bin/env /bin/bash
/usr/bin/env /usr/bin/ssh -o "StrictHostKeyChecking=no" -i "/tmp/private_code/.ssh/id_deploy" $1 $2

All paths seem correct and readable. I've run everything through strace several times and that's not telling me much.

What am I missing?

Thanks for your help.
Edward

Links:

--
Edward Sargisson
Founder, TrailHunger.com
Get trail news and running health updates: @trailhunger www.facebook.com/TrailHunger





Archive powered by MHonArc 2.6.16.

§