RailsCasts Pro episodes are now free!

Learn more or hide this

itmanager223's Profile

GitHub User: itmanager223

Comments by

Avatar

yep i noticed the same problem, wonder why the default nginx install has that issue.

Anyways your fix worked.

Thanks

Avatar

hey guys tried the guide again and i am again getting the following error:

fighterpilot@JJDRORPROD01:~/jjdowns$ cap deploy:cold
  * executing `deploy:cold'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote gitolite@10.0.14.14:jjdowns master"
    command finished in 166ms
  * executing "if [ -d /home/fighterpilot/jjdowns/shared/cached-copy ]; then cd /home/fighterpilot/jjdowns/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 019cbef11c95698d7e8e7788e04fd77d07c47ae7 && git clean -q -d -x -f; else git clone -q gitolite@10.0.14.14:jjdowns /home/fighterpilot/jjdowns/shared/cached-copy && cd /home/fighterpilot/jjdowns/shared/cached-copy && git checkout -q -b deploy 019cbef11c95698d7e8e7788e04fd77d07c47ae7; fi"
    servers: ["10.0.14.17"]
    [10.0.14.17] executing command
 ** [10.0.14.17 :: out] Error writing to authentication socket.
 ** [10.0.14.17 :: out] Error writing to authentication socket.
    command finished in 1111ms
    copying the cached version to /home/fighterpilot/jjdowns/releases/20120909041546
  * executing "cp -RPp /home/fighterpilot/jjdowns/shared/cached-copy /home/fighterpilot/jjdowns/releases/20120909041546 && (echo 019cbef11c95698d7e8e7788e04fd77d07c47ae7 > /home/fighterpilot/jjdowns/releases/20120909041546/REVISION)"
    servers: ["10.0.14.17"]
    [10.0.14.17] executing command
 ** [out :: 10.0.14.17] cp: cannot create directory `/home/fighterpilot/jjdowns/releases/20120909041546': Permission denied
    command finished in 141ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/fighterpilot/jjdowns/releases/20120909041546; true"
    servers: ["10.0.14.17"]
    [10.0.14.17] executing command
    command finished in 140ms
failed: "sh -c 'cp -RPp /home/fighterpilot/jjdowns/shared/cached-copy /home/fighterpilot/jjdowns/releases/20120909041546 && (echo 019cbef11c95698d7e8e7788e04fd77d07c47ae7 > /home/fighterpilot/jjdowns/releases/20120909041546/REVISION)'" on 10.0.14.17
fighterpilot@JJDRORPROD01:~/jjdowns$ 

any ideas?

Avatar

Hey guys i am getting this error:

   command finished in 6676ms
  * executing `deploy:start'
  * executing "/etc/init.d/unicorn_default start"
    servers: ["10.0.14.17"]
    [10.0.14.17] executing command
 ** [out :: 10.0.14.17] sh: /etc/init.d/unicorn_default: not found
    command finished in 126ms
failed: "sh -c '/etc/init.d/unicorn_default start'" on 10.0.14.17

any ideas?

this is at the cap deploy:cold step