Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334935 - hudson proxy issues
Summary: hudson proxy issues
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295393
  Show dependency tree
 
Reported: 2011-01-20 13:50 EST by Kim Moir CLA
Modified: 2011-03-02 09:27 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Moir CLA 2011-01-20 13:50:42 EST
I thought we had resolved the hudson proxy problems connecting to hudson.eclipse.org for cvs tests but I still seem to be having problems.

Example on Linux slave

See
https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/eclipse-JUnit-Linux/lastCompletedBuild/testReport/org.eclipse.team.tests.ccvs.core/CVSTestSetup/unknown/

:pserver:hudsontest@hudson.eclipse.org:/cvs/org.eclipse.tests: Cannot connect to host: Connection refused

Example on Windows slave

Could not connect to :pserver:hudsontest@hudson.eclipse.org:/cvs/org.eclipse.tests: I/O exception occurred: ProxyHTTP: java.io.IOException: proxy error: Forbidden

https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/eclipse-JUnit-windows/lastCompletedBuild/testReport/org.eclipse.team.tests.ccvs.core/CVSTestSetup/unknown/

These proxy settings should be set globally on all the hudson slaves, correct?  I don't have to set a proxy in my tests as described in this bug?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=328831#c19
Comment 1 Eclipse Webmaster CLA 2011-01-20 16:06:45 EST
I don't think it's the proxy.  Looks like the cvs server failed to restart after the maintenance around christmas.  Fixed.

-M.
Comment 2 Kim Moir CLA 2011-01-20 16:20:50 EST
Thanks!

So another question:  We have p2 tests than connect to repositories on download.eclipse.org and also bogus web sites (www.example.com/foo) to ensure appropriate responses to  repository locations.  Do the slaves have any restrictions from accessing these sites via http?
Comment 3 Eclipse Webmaster CLA 2011-01-20 16:25:46 EST
They should have the same restrictions as the master. 

So as long as your tests use http for the requests I expect they should be fine.

-M.
Comment 4 Kim Moir CLA 2011-01-20 17:50:42 EST
Okay, thanks.  We'll investigate further.  As an aside, I noticed that you started a Linux test build.  They Linux test builds can't be run on their own, they depend on artifacts from the upstream build, that's why they fail if you just run then on their own.
Comment 5 Kim Moir CLA 2011-01-24 09:32:39 EST
Still having issues running cvs tests on Hudson.

org.eclipse.team.internal.ccvs.core.connection.CVSCommunicationException: Could not connect to :pserver:hudsontest@hudson.eclipse.org:/cvs/org.eclipse.tests: I/O exception occurred: ProxyHTTP: java.io.IOException: proxy error: Forbidden

See
https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/eclipse-JUnit-windows/158/testReport/org.eclipse.team.tests.ccvs.core/CVSUITestSetup/unknown/

Do you see anything errors in the logs on the cvs server?  These tests were run at 9:18pm last night.
Comment 6 Eclipse Webmaster CLA 2011-01-24 14:20:18 EST
I don't see anything in the logs on either the server or the Windows slave(where this seems to have run).

As far as I can tell from the command line all of the slaves can talk to the hudson test cvs server.

-M.
Comment 7 Kim Moir CLA 2011-01-25 08:57:29 EST
Szymon, I'm having problems running the CVS tests on Hudson at eclipse.org.  There is a proxy setting on these servers as follows

no_proxy=localhost,dev.eclipse.org,hudson.eclipse.org

Do the CVS tests use any proxy settings that could interfere with these settings?
Comment 8 Szymon Brandys CLA 2011-02-02 13:17:29 EST
(In reply to comment #7)
> Szymon, I'm having problems running the CVS tests on Hudson at eclipse.org. 
> There is a proxy setting on these servers as follows
> 
> no_proxy=localhost,dev.eclipse.org,hudson.eclipse.org
> 
> Do the CVS tests use any proxy settings that could interfere with these
> settings?

What's the machine OS? Windows or Linux? If it is Windows, does it have Proxy set in the Internet Settings?
Comment 9 Eclipse Webmaster CLA 2011-02-02 13:58:05 EST
(In reply to comment #8)

> What's the machine OS? Windows or Linux? If it is Windows, does it have Proxy
> set in the Internet Settings?

Well our windows slave does set have the proxy set in it's internet settings.  

-M.
Comment 10 Kim Moir CLA 2011-02-07 09:46:56 EST
This must be a configuration issue because the test runs fine on Linux. 

https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/eclipse-JUnit-Linux/lastCompletedBuild/testReport/

Matt, what local proxy settings does the windows machine have?
Comment 11 Denis Roy CLA 2011-02-07 21:41:57 EST
> Well our windows slave does set have the proxy set in it's internet settings.  

Matt, it looks like the internet settings are per-user.  I logged in as Kim and couldn't access the Internet.  I've fixed that, but I can't seem to be able to log in as the Hudson build account to ensure it can access the Internet.

Also, the Windows and Mac slaves did not have the typical values for ANT_ARGS and JAVA_OPTS and all that.

-Dhttp.proxyHost=proxy.eclipse.org -Dhttp.proxyPort=9898 -Dhttps.proxyHost=proxy.eclipse.org -Dhttps.proxyPort=9898 -Dhttp.nonProxyHosts="*.eclipse.org" -Dhttps.nonProxyHosts="*.eclipse.org" -Dftp.proxyHost=proxy.eclipse.org -Dftp.proxyPort=9898 -Dftp.nonProxyHosts="*.eclipse.org"
Comment 12 Denis Roy CLA 2011-02-08 09:17:29 EST
> Matt, what local proxy settings does the windows machine have?

The Hudson Build user's account has all the proxy information it needs -- but I'm not sure if each application needs to be aware of it.  You have the proxy details in the previous comment -- I've added the JAVA/JVM/ANT options for the proxy, so you should be good.  If you use tools that don't inherit either the Windows or the JVM proxy settings, you'll need to define them manually.
Comment 13 Kim Moir CLA 2011-02-24 16:18:08 EST
So the windows slave machine had the ip address range for the test cvs user excluded from using the proxy, but not the fqdn for that same machine.  I added the fqdn of the test cvs server to be excluded from using the proxy server on the windows machine and the tests run successfully now :-) Could you make the corresponding change on the mac slave :-) I can't access it now via vnc.
Comment 14 Eclipse Webmaster CLA 2011-02-25 11:10:39 EST
I've restarted the Mac and updated the proxy settings.  Can you login and make sure the settings are correct?

-M.
Comment 15 Kim Moir CLA 2011-02-25 17:14:04 EST
I can't login to vnc on the mac with the hudson user to verify.  I've sent Denis and email asking him to send me the info.
Comment 16 Kim Moir CLA 2011-03-02 09:27:59 EST
I ran a test build yesterday and verified that the proxy issues are fixed on the mac.  Thanks!