Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325786 - Build error: ProxyHTTP: java.io.IOException: proxy error: Forbidden
Summary: Build error: ProxyHTTP: java.io.IOException: proxy error: Forbidden
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 15:07 EDT by Martin Taal CLA
Modified: 2010-10-07 08:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Taal CLA 2010-09-20 15:07:51 EDT
Hi,
I am getting the following exception:
ProxyHTTP: java.io.IOException: proxy error: Forbidden

when doing a build on hudson. Part of the build gets components from external sites outside of eclipse. Is it possible that this is not allowed from hudson.eclipse.org?
Here is the console output of a recent build showing this error:
https://hudson.eclipse.org/hudson/job/emft-texo-nightly/213/console

Here is the stacktrace
 [echo] Importing binaries into target platform /opt/users/hudsonbuild/.hudson/jobs/emft-texo-nightly/workspace/build/build/tp
     [java] com.jcraft.jsch.JSchException: ProxyHTTP: java.io.IOException: proxy error: Forbidden
     [java] 	at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:158)
     [java] 	at org.eclipse.jsch.internal.core.JSchProvider.connect(JSchProvider.java:141)
     [java] 	at org.eclipse.team.internal.ccvs.core.connection.PServerConnection.open(PServerConnection.java:116)
     [java] 	at org.eclipse.team.internal.ccvs.core.connection.Connection.open(Connection.java:132)
     [java] 	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.createConnection(CVSRepositoryLocation.java:545)
     [java] 	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.openConnection(CVSRepositoryLocation.java:806)
     [java] 	at org.eclipse.team.internal.ccvs.core.client.Session.open(Session.java:159)
     [java] 	at org.eclipse.buckminster.cvspkg.internal.CVSSession.getReaderSession(CVSSession.java:98)
     [java] 	at org.eclipse.buckminster.cvspkg.internal.RepositoryMetaData.getMetaData(RepositoryMetaData.java:76)
     [java] 	at org.eclipse.buckminster.cvspkg.internal.VersionFinder.getMetaData(VersionFinder.java:97)
     [java] 	at org.eclipse.buckminster.cvspkg.internal.VersionFinder.getTrunk(VersionFinder.java:86)
     [java] 	at org.eclipse.buckminster.core.version.AbstractSCCSVersionFinder.getBestTrunkMatch(AbstractSCCSVersionFinder.java:320)
     [java] 	at org.eclipse.buckminster.core.version.AbstractSCCSVersionFinder.getBestVersion(AbstractSCCSVersionFinder.java:151)
     [java] 	at org.eclipse.buckminster.core.rmap.model.Provider.findMatch(Provider.java:220)
     [java] 	at org.eclipse.buckminster.core.rmap.model.SearchPath.getProvider(SearchPath.java:100)
     [java] 	at org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve(ResourceMap.java:293)
     [java] 	at org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve(ResourceMap.java:212)
     [java] 	at org.eclipse.buckminster.core.resolver.ResourceMapResolver.innerResolve(ResourceMapResolver.java:202)
     [java] 	at org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.resolve(ResolverNodeWithJob.java:190)
     [java] 	at org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.run(ResolverNodeWithJob.java:87)
     [java] 	at org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$NodeResolutionJob.run(ResolverNodeWithJob.java:44)
     [java] 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
     [java] Caused by: java.io.IOException: proxy error: Forbidden
     [java] 	at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:122)
     [java] 	... 21 more
Comment 1 Eclipse Webmaster CLA 2010-09-20 15:59:31 EDT
There is a proxy for outbound connections and it should be set correctly(see https://hudson.eclipse.org/hudson/view/WTP/job/cbi-wtp-wst.xsl/320/console ).

However when I look at the proxy logs it appears as if your build is trying to connect to dev.eclipse.org(in the exclude list) for anonymous CVS via the proxy.

Is this a recent issue?  Can you use the 'local' filessytem(/cvsroot) instead of trying to connect to the network for CVS?

-M.
Comment 2 Martin Taal CLA 2010-09-20 16:25:30 EDT
Hi,
This worked fine on the build.eclipse.org system. Is it possible to allow access to dev.eclipse.org? The reason that I prefer this approach is that the complete build now works from any location (also running locally). 

gr. Martin
Comment 3 Eclipse Webmaster CLA 2010-09-20 17:17:54 EDT
We recommend using the local access method for CVS access on hudson.eclipse.org.

-M.
Comment 4 Martin Taal CLA 2010-09-23 08:34:33 EDT
Hi,
We use buckminster which uses the eclipse cvs client. I tried it but it did not work. I then asked on the buckminster newsgroup and apparently this client does not support the :local cvs access method. 

So I seem to be stuck... Is it possible to enable access to dev.eclipse.org?

gr. Martin
Comment 5 Denis Roy CLA 2010-09-23 16:37:40 EDT
> So I seem to be stuck... Is it possible to enable access to dev.eclipse.org?

I'm not sure I understand what the issue is.  pserver cvs to dev.eclipse.org should succeed from all of the Hudson instances.  There is no need to use the proxy.
Comment 6 Martin Taal CLA 2010-09-23 16:49:26 EDT
Buckminster uses the eclipse cvs client, I am not sure why it uses a proxy. 
Do you have any idea?
(I will also ask on the buckminster newsgroup)

gr. Martin
Comment 7 Denis Roy CLA 2010-09-24 15:16:38 EDT
I'm not quite sure what to say... perhaps ask on the Buckminster forums, the cross-project list or dash-dev?
Comment 8 Eclipse Webmaster CLA 2010-09-28 15:19:35 EDT
Is this still an issue?  It looks like your last few build have been successful.

-M.
Comment 9 Martin Taal CLA 2010-09-29 04:22:30 EDT
The builds are still failing:
https://hudson.eclipse.org/hudson/job/emft-texo-nightly/

But it seems that it is related to that eclipse (which is used during the build) automatically configures a proxy in the eclipse workspace. This should not happen. So it is not related to the server or hudson. I will close the issue.

Thanks for your quick responses and attention!

gr. Martin
Comment 10 Nicolas Bros CLA 2010-10-07 03:37:48 EDT
I am now also getting "java.io.IOException: proxy error: Forbidden".
My build was working on Monday, and it stopped working yesterday because of this error.

Did something change on the server recently?
Comment 11 Martin Taal CLA 2010-10-07 04:02:41 EDT
Here is a link to the solution I used:
http://www.eclipse.org/forums/index.php?t=tree&goto=628738&S=9d0ac3e0033ad8aabae2339faf044646#page_top

gr. Martin
Comment 12 Nicolas Bros CLA 2010-10-07 06:18:56 EDT
Thank you!
adding  export no_proxy="dev.eclipse.org"  solved the problem.
Comment 13 Denis Roy CLA 2010-10-07 08:48:57 EDT
Good job, Martin!

I've added some documentation to the Hudson wiki:

http://wiki.eclipse.org/Hudson


I'll send a note to committers re: proxy settings, with a link to the above documentation.
Comment 14 Denis Roy CLA 2010-10-07 08:49:55 EDT
(In reply to comment #12)
> Thank you!
> adding  export no_proxy="dev.eclipse.org"  solved the problem.

On a side note, we already have this exported variable in the shell:

no_proxy="localhost, 127.0.0.1, 172.30.206.0, eclipse.org"

Perhaps it is not working?