|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Ruby Gems not updating; network errorI am having a problem updating Ruby Gems through NetBeans. This is the error message:
Nothing found: Network problem> Check NetBeans proxy settings. ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 407 fetching http://gems.rubyforge.org/yaml I connect to the internet through a firewall and a proxy server, but this seems to be set up okay, as I can download and install plug-ins through NetBeans, and it uses identical settings. However, I can also navigate to http://gems.rubyforge.org/yaml and see the gems in my web browser. I am on WinXP SP2 and NetBeans 6.1, connecting through a Server 2003 proxy. |
|
|
Re: Ruby Gems not updating; network errorF2Andy wrote:
> I am having a problem updating Ruby Gems through NetBeans. This is the error > message: > > Nothing found: Network problem> Check NetBeans proxy settings. > ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response > 407 fetching http://gems.rubyforge.org/yaml > > I connect to the internet through a firewall and a proxy server, but this > seems to be set up okay, as I can download and install plug-ins through > NetBeans, and it uses identical settings. However, I can also navigate to > http://gems.rubyforge.org/yaml and see the gems in my web browser. > > I am on WinXP SP2 and NetBeans 6.1, connecting through a Server 2003 proxy. Hi, when the NetBeans proxy is set we will set appropriately "HTTP_PROXY", "http_proxy" environment variable for process which runs the 'gem' tool. Nothing special there we just delegate to the underlying Gem tool. So question is how whether it works for you from command line and if yes how do you run. You might also see what is exactly run by NetBeans and what environment does it set by turning on logging: http://wiki.netbeans.org/FaqRubyNBLogging So how it is from CLI? Regards, m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Ruby Gems not updating; network errorHere is out the log file outputs (I have replaced my password with <password> for obvious reasons). The http_proxy looks good to me. WARNING [org.openide.filesystems.Ordering]: Not all children in JSPPalette/ marked with the position attribute: [jMaki Dojo, jMaki Dojo Dijit, jMaki Flickr, jMaki Google, jMaki Scriptaculous, jMaki Spry, jMaki Webtop, jMaki Widgets, jMaki Yahoo], but some are: [HTML.shadow, HTML_Forms.shadow, JSP, JSF, Database] FINE [org.netbeans.modules.ruby.platform.execution.ExecutionService]: Running: (basedir: C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin) "C:\Program Files\Java\jdk1.6.0_03\jre\bin\java -Xverify:none -da -Xmx512m -Xss1024k -classpath "C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib\jruby.jar;C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib\bsf.jar" -Djruby.base=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1 -Djruby.home=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1 -Djruby.lib=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib -Djruby.shell="cmd.exe" -Djruby.script=jruby.bat org.jruby.Main C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin\gem list --both --details" FINE [org.netbeans.modules.ruby.platform.execution.ExecutionService]: Environment: {USERPROFILE=C:\Documents and Settings\andyj, GEM_PATH=C:/Program Files/NetBeans 6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH, USERDNSDOMAIN=F2CHEMICALS.LOCAL, JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_03, TEMP=C:\DOCUME~1\andyj\LOCALS~1\Temp, SystemDrive=C:, ProgramFiles=C:\Program Files, Path=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Java\glassfish\bin, HOMEDRIVE=H:, HTTP_PROXY=http://andyj:<password>@10.0.0.1:8080, PROCESSOR_REVISION=0207, USERDOMAIN=F2CHEMICALS, ALLUSERSPROFILE=C:\Documents and Settings\All Users, PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel, SESSIONNAME=Console, TMP=C:\DOCUME~1\andyj\LOCALS~1\Temp, PROCESSOR_ARCHITECTURE=x86, CommonProgramFiles=C:\Program Files\Common Files, LOGONSERVER=\\F2SVR, FP_NO_HOST_CHECK=NO, OS=Windows_NT, HOMEPATH=\, GEM_HOME=C:/Program Files/NetBeans 6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8, http_proxy=http://andyj:<password>@10.0.0.1:8080, PROCESSOR_LEVEL=15, HOMESHARE=\\f2svr\users\AndyJ, COMPUTERNAME=ANDYJ04, SystemRoot=C:\WINDOWS, windir=C:\WINDOWS, NUMBER_OF_PROCESSORS=1, USERNAME=andyj, ComSpec=C:\WINDOWS\system32\cmd.exe, APPDATA=C:\Documents and Settings\andyj\Application Data} Nothing found: Network problem? Check NetBeans proxy settings. ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 407 fetching http://gems.rubyforge.org/yamlFINE [org.netbeans.modules.ruby.platform.execution.ExecutionService]: Running: (basedir: C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin) "C:\Program Files\Java\jdk1.6.0_03\jre\bin\java -Xverify:none -da -Xmx512m -Xss1024k -classpath "C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib\jruby.jar;C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib\bsf.jar" -Djruby.base=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1 -Djruby.home=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1 -Djruby.lib=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib -Djruby.shell="cmd.exe" -Djruby.script=jruby.bat org.jruby.Main C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin\gem list --both --details" FINE [org.netbeans.modules.ruby.platform.execution.ExecutionService]: Environment: {USERPROFILE=C:\Documents and Settings\andyj, GEM_PATH=C:/Program Files/NetBeans 6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH, USERDNSDOMAIN=F2CHEMICALS.LOCAL, JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_03, TEMP=C:\DOCUME~1\andyj\LOCALS~1\Temp, SystemDrive=C:, ProgramFiles=C:\Program Files, Path=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Java\glassfish\bin, HOMEDRIVE=H:, HTTP_PROXY=http://andyj:<password>@10.0.0.1:8080, PROCESSOR_REVISION=0207, USERDOMAIN=F2CHEMICALS, ALLUSERSPROFILE=C:\Documents and Settings\All Users, PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel, SESSIONNAME=Console, TMP=C:\DOCUME~1\andyj\LOCALS~1\Temp, PROCESSOR_ARCHITECTURE=x86, CommonProgramFiles=C:\Program Files\Common Files, LOGONSERVER=\\F2SVR, FP_NO_HOST_CHECK=NO, OS=Windows_NT, HOMEPATH=\, GEM_HOME=C:/Program Files/NetBeans 6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8, http_proxy=http://andyj:<password>@10.0.0.1:8080, PROCESSOR_LEVEL=15, HOMESHARE=\\f2svr\users\AndyJ, COMPUTERNAME=ANDYJ04, SystemRoot=C:\WINDOWS, windir=C:\WINDOWS, NUMBER_OF_PROCESSORS=1, USERNAME=andyj, ComSpec=C:\WINDOWS\system32\cmd.exe, APPDATA=C:\Documents and Settings\andyj\Application Data} Nothing found: Network problem? Check NetBeans proxy settings. ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 407 fetching http://gems.rubyforge.org/yamlFINE [org.netbeans.modules.ruby.platform.execution.ExecutionService]: Running: (basedir: C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin) "C:\Program Files\Java\jdk1.6.0_03\jre\bin\java -Xverify:none -da -Xmx512m -Xss1024k -classpath "C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib\jruby.jar;C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib\bsf.jar" -Djruby.base=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1 -Djruby.home=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1 -Djruby.lib=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\lib -Djruby.shell="cmd.exe" -Djruby.script=jruby.bat org.jruby.Main C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin\gem list --both --details" FINE [org.netbeans.modules.ruby.platform.execution.ExecutionService]: Environment: {USERPROFILE=C:\Documents and Settings\andyj, GEM_PATH=C:/Program Files/NetBeans 6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH, USERDNSDOMAIN=F2CHEMICALS.LOCAL, JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_03, TEMP=C:\DOCUME~1\andyj\LOCALS~1\Temp, SystemDrive=C:, ProgramFiles=C:\Program Files, Path=C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Java\glassfish\bin, HOMEDRIVE=H:, HTTP_PROXY=http://andyj:<password>@10.0.0.1:8080, PROCESSOR_REVISION=0207, USERDOMAIN=F2CHEMICALS, ALLUSERSPROFILE=C:\Documents and Settings\All Users, PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel, SESSIONNAME=Console, TMP=C:\DOCUME~1\andyj\LOCALS~1\Temp, PROCESSOR_ARCHITECTURE=x86, CommonProgramFiles=C:\Program Files\Common Files, LOGONSERVER=\\F2SVR, FP_NO_HOST_CHECK=NO, OS=Windows_NT, HOMEPATH=\, GEM_HOME=C:/Program Files/NetBeans 6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8, http_proxy=http://andyj:<password>@10.0.0.1:8080, PROCESSOR_LEVEL=15, HOMESHARE=\\f2svr\users\AndyJ, COMPUTERNAME=ANDYJ04, SystemRoot=C:\WINDOWS, windir=C:\WINDOWS, NUMBER_OF_PROCESSORS=1, USERNAME=andyj, ComSpec=C:\WINDOWS\system32\cmd.exe, APPDATA=C:\Documents and Settings\andyj\Application Data} Nothing found: Network problem? Check NetBeans proxy settings. ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 407 fetching http://gems.rubyforge.org/yaml I tried from the commnd line: gem query -r -p http://andyj:<password>@10.0.0.1:8080 ... and got the same error, so I guess that lets NetBeans off the hook! |
|
|
Re: Ruby Gems not updating; network errorF2Andy wrote:
> I tried from the commnd line: > gem query -r -p http://andyj:<password>@10.0.0.1:8080 > > ... and got the same error, so I guess that lets NetBeans off the hook! Great ;) To the point, if you feel you do not have problem with other applications (i.e. not general OS settings problem), I would try to contact: http://rubyforge.org/mail/?group_id=126 I'm hanging there around and the list is quite responsive. Or might be debug into RubyGems itself. There are only three files handling proxy in RubyGems: - rubygems/local_remote_options.rb - rubygems/remote_fetcher.rb - rubygems/commands/fetch_command.rb So might be you can catch the culprit. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Ruby Gems not updating; network errorI followed some advice here (esp. install Ruby Win32 SSPI):
http://exceptionz.wordpress.com/2008/03/18/run-gem-install-behind-a-firewall-in-windows/ Then set NetBeans not to use a proxy at all, and it worked. |
|
|
Re: Ruby Gems not updating; network errorF2Andy wrote:
> I followed some advice here (esp. install Ruby Win32 SSPI): > http://exceptionz.wordpress.com/2008/03/18/run-gem-install-behind-a-firewall-in-windows/ Thanks for the pointer. I've entered a new wiki page for this problem: http://wiki.netbeans.org/FaqRubyGemsProxy > Then set NetBeans not to use a proxy at all, and it worked. Feel free to update with your experience. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |