rvm icon indicating copy to clipboard operation
rvm copied to clipboard

Hangs on rvm:hook with capistrano 3.3.3

Open vidmantas opened this issue 11 years ago • 6 comments

Hello,

I have capistrano 3.2.1 running with capistrano-rvm normally, but after trying to upgrade to 3.3.3, I get hanging process -- seems like forever -- during rvm:hook task (also note double -d ~/.rvm commant, which was not the case in 3.2.1):

➜  repo git:(capistrano3) ✗ cap test deploy
DEBUG[cc47b8d0] Running /usr/bin/env [ -d ~/.rvm ] on test.myapp.com
DEBUG[cc47b8d0] Command: [ -d ~/.rvm ]
DEBUG[b89780bb] Running /usr/bin/env [ -d ~/.rvm ] on test.myapp.com
DEBUG[b89780bb] Command: [ -d ~/.rvm ]
DEBUG[b89780bb] Finished in 0.544 seconds with exit status 0 (successful).
^C(Backtrace restricted to imported tasks)
cap aborted!
Interrupt: 

Tasks: TOP => rvm:hook
(See full trace by running task with --trace)

vidmantas avatar Dec 01 '14 15:12 vidmantas

Same here:

DEBUG [7a6f7459] Running /usr/bin/env [ -d ~/.rvm ] as ****@********
DEBUG [7a6f7459] Command: [ -d ~/.rvm ]
DEBUG [789b3ce5] Running /usr/bin/env [ -d ~/.rvm ] as ****@********
DEBUG [789b3ce5] Command: [ -d ~/.rvm ]
DEBUG [789b3ce5] Finished in 5.239 seconds with exit status 1 (failed).
DEBUG [471e48f2] Running /usr/bin/env [ -d /usr/local/rvm ] as ****@********
DEBUG [471e48f2] Command: [ -d /usr/local/rvm ]
DEBUG [471e48f2] Finished in 0.005 seconds with exit status 0 (successful).
^C(Backtrace restricted to imported tasks)
cap aborted!
Interrupt: 

Tasks: TOP => rvm:hook
(See full trace by running task with --trace)

Just set up capistrano with rvm so can't say since when this error occurs.

doe300 avatar Feb 02 '15 10:02 doe300

You probably don't have rvm installed. I ran into the same problem before.

emirkin avatar Apr 17 '15 00:04 emirkin

First thing I do is rvm installation ;-) so not the case

vidmantas avatar Apr 17 '15 08:04 vidmantas

Did you see https://github.com/capistrano/rvm/issues/66?

To be clear, I have solved my problem by suppressing :hook until after I install rvm.

emirkin avatar Apr 17 '15 17:04 emirkin

rvm is installed on the server, no problems using it with 3.2.1

However, I'll ask to check this with suppressing :hook and return with outcome

vidmantas avatar Apr 20 '15 04:04 vidmantas

@emirkin how do you suppressing :hook?

onlinetocode avatar Oct 02 '15 12:10 onlinetocode