Remote Ruby SDK Fails to Find Gems
I'm trying to setup a remote SDK on RubyMine on Windows, and I'm having trouble. The target machine is an Ubuntu 14.04 server. I've tried RubyMine 6.3.3 and 7.0.1, and on Ubuntu I'm running ruby 1.9.3. What's strange is I can setup the remote SDK just find on my Mac with RubyMine (same versions).
I've tried re-adding the SDK several times, and it always succeeds, but lists no gems. This becomes a problem because then I can't run any of the rails tools from RubyMine.
I checked the log and didn't see anything odd (please note I'm purposely logged in as root, because its just a test VM):
2014-12-05 13:50:18,203 [ 813826] INFO - sdk.transport.SshRemoteSession - New ssh session created: root@127.0.0.1:2022 2014-12-05 13:50:18,302 [ 813925] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -v for root@127.0.0.1:2022 2014-12-05 13:50:18,662 [ 814285] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -v for root@127.0.0.1:2022 2014-12-05 13:50:18,947 [ 814570] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -e "print(defined?(RUBY_PATCHLEVEL) ? RUBY_PATCHLEVEL : 0)" for root@127.0.0.1:2022 2014-12-05 13:50:19,343 [ 814966] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -e "print(defined?(RUBY_PATCHLEVEL) ? RUBY_PATCHLEVEL : 0)" for root@127.0.0.1:2022 2014-12-05 13:50:19,689 [ 815312] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -e "print(defined?(RUBY_PATCHLEVEL) ? RUBY_PATCHLEVEL : 0)" for root@127.0.0.1:2022 2014-12-05 13:50:19,979 [ 815602] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -e "print RUBY_VERSION" for root@127.0.0.1:2022 2014-12-05 13:50:20,202 [ 815825] INFO - yCreateRemoteInterpreterDialog - initializing Remote:ruby-1.9.3-p551: ver.1.9.3p551 ( revision 48407) p551 (sftp://root@127.0.0.1:2022/usr/bin/ruby) 2014-12-05 13:50:20,203 [ 815826] INFO - ruby.remote.RubyRemoteTransfer - Uploading helpers 2014-12-05 13:50:20,205 [ 815828] INFO - ugins.remotesdk.RemoteTransfer - Uploading helpers to /root/.rubymine_helpers/rb 2014-12-05 13:50:20,283 [ 815906] INFO - ugins.remotesdk.RemoteTransfer - Remote helpers version is RM-139.631, local helpers version is RM-139.631 2014-12-05 13:50:20,284 [ 815907] INFO - ugins.remotesdk.RemoteTransfer - Helpers upload successfully completed 2014-12-05 13:50:20,285 [ 815908] INFO - ruby.remote.RubyRemoteTransfer - Helpers uploaded 2014-12-05 13:50:20,286 [ 815909] INFO - yCreateRemoteInterpreterDialog - localGemsBinPath=/Users/jbotelho/.RubyMine70/system/ruby_stubs/2110639998\170586877, remoteGemsBinPath=/usr/bin 2014-12-05 13:50:20,287 [ 815910] INFO - ruby.remote.RubyRemoteTransfer - Updating gems' local copy 2014-12-05 13:50:20,298 [ 815921] INFO - ruby.remote.RubyRemoteTransfer - Gems copied. 2014-12-05 13:50:20,329 [ 815952] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -v for root@127.0.0.1:2022 2014-12-05 13:50:20,689 [ 816312] INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "RM_INFO"="RM-139.631" "ANSICON"="" /usr/bin/ruby -e "print(defined?(RUBY_PATCHLEVEL) ? RUBY_PATCHLEVEL : 0)" for root@127.0.0.1:2022 2014-12-05 13:50:21,021 [ 816644] INFO - ruby.remote.RubyRemoteTransfer - Updating gems' local copy 2014-12-05 13:50:21,043 [ 816666] INFO - ruby.remote.RubyRemoteTransfer - Gems copied. 2014-12-05 13:50:21,044 [ 816667] INFO - yCreateRemoteInterpreterDialog - Remote:ruby-1.9.3-p551: ver.1.9.3p551 ( revision 48407) p551 (sftp://root@127.0.0.1:2022/usr/bin/ruby) initialized 2014-12-05 13:50:21,094 [ 816717] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2 ms 2014-12-05 13:50:21,126 [ 816749] INFO - esdk.transport.JschExecProcess - Executing ssh command: cd /root/src/rails; env "ANSICON"="" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "RUBYMINE_TESTUNIT_REPORTER"="/root/.rubymine_helpers/rb/testing/patch/testunit" "PATH"="/usr/bin:$PATH" "JETBRAINS_REMOTE_RUN"="1" "RUBYLIB"="/root/.rubymine_helpers/rb/testing/patch/common:/root/.rubymine_helpers/rb/testing/patch/testunit" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":test_unit :shoulda " "RM_INFO"="RM-139.631" /usr/bin/ruby /root/src/rails/script/rails generate for root@127.0.0.1:2022 2014-12-05 13:50:21,442 [ 817065] WARN - ions.generators.GeneratorsUtil - Get available generators script executes with errors: bash: line 0: cd: /root/src/rails: No such file or directory /usr/bin/ruby: No such file or directory -- /root/src/rails/script/rails (LoadError)
请先登录再写评论。
Hi,
is the log from Windows machine? (/Users/jbotelho/.RubyMine70/ looks like a Mac path :( )
Could you please try to remove/add the sdk on Windows and attach RubyMine's logs.
Thanks in advance, Oleg.
That is in fact the Windows log, after removing and re-adding the SDK. The home directory structure on Windows 7+ looks very similar to Mac.
Could you please provide jdk.table.xml (it should be somewhere inside /Users/jbotelho/.RubyMine70/), or just the node from the file which describe the problematic sdk.
Thanks in advance, Oleg.
Here's the relevant node from jdk.table.xml:
Where is "gem" command is localed on your remote system and is such file exists in ~/.RubyMine70/system/ruby_stubs/2110639998/170586877
Thanks in advance, Oleg.
It looks like I don't have a ruby_stubs directory on either system.
According to the sdk description "$USER_HOME$/.RubyMine70/system/ruby_stubs/2110639998/170586877" is used to store local copy of "/usr/bin"
so it should be somewhere.
Regards, Oleg.