I can ssh into my server and manually create the /tmp/<application> folder with my app/web role. However, when I try to do >cap staging git:check (which does the same thing), it attempts and fails to use my app/web role to create this folder. It succeeds with the db role, but then fails when attempting to use the /tmp/<application>/.git-ssh.sh at the end of the script. (See below) Both my app/web and db roles are members of the same (deploy) group.
I then simply manually created the /tmp/<application> folder on the server, to make sure that the folder's owner and group settings would permit executing the ./git-ssh.sh file, whomever created it. This didn't work, either. I'd appreciate any help.
Yes, I've done the ssh-add on my Mac.
$ cap staging git:check --trace [9:23:58]
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rbenv:validate (first_time)
** Execute rbenv:validate
DEBUG [fa95292a] Running /usr/bin/env [ ! -d /usr/local/bin ] on
apps2.aidt.eduDEBUG [fa95292a] Command: [ ! -d /usr/local/bin ]
DEBUG [f90faa17] Running /usr/bin/env [ ! -d /usr/local/bin ] on
apps2.aidt.eduDEBUG [f90faa17] Command: [ ! -d /usr/local/bin ]
DEBUG [fa95292a] Finished in 0.097 seconds with exit status 1 (failed).
DEBUG [f90faa17] Finished in 0.167 seconds with exit status 1 (failed).
** Invoke rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
INFO [f6132a7c] Running /usr/bin/env mkdir -p /tmp/j3/ on
apps2.aidt.edu INFO [e631d419] Running /usr/bin/env mkdir -p /tmp/j3/ on
apps2.aidt.eduDEBUG [f6132a7c] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.0 /usr/bin/env mkdir -p /tmp/j3/ )
DEBUG [e631d419] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.0 /usr/bin/env mkdir -p /tmp/j3/ )
INFO [f6132a7c] Finished in 0.108 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/j3/git-ssh.sh 0.0%
INFO Uploading /tmp/j3/git-ssh.sh 100.0%
INFO [06c59e05] Running /usr/bin/env chmod +x /tmp/j3/git-ssh.sh on
apps2.aidt.eduDEBUG [06c59e05] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.0 /usr/bin/env chmod +x /tmp/j3/git-ssh.sh )
INFO [06c59e05] Finished in 0.010 seconds with exit status 0 (successful).
INFO [e631d419] Finished in 0.173 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/j3/git-ssh.sh 0.0%
cap aborted!
scp: /tmp/j3/git-ssh.sh: Permission denied