capistrano / rvm

MIT License
140 stars 47 forks source link

Hangs on rvm:hook with capistrano 3.3.3 #61

Open vidmantas opened 9 years ago

vidmantas commented 9 years ago

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)
doe300 commented 9 years ago

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.

emirkin commented 9 years ago

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

vidmantas commented 9 years ago

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

emirkin commented 9 years ago

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.

vidmantas commented 9 years ago

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

onlinetocode commented 8 years ago

@emirkin how do you suppressing :hook?