Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Buckminster cvs materializing, uses a proxy, how is this configured?
Buckminster cvs materializing, uses a proxy, how is this configured? [message #628738] Thu, 23 September 2010 21:02 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
When building texo/teneo job on hudson.eclipse.org buckminster tries to connect to the cvs server (dev.eclipse.org)
using a proxy server it seems.

When I check the .settings/org.eclipse.core.net.prefs in the build workspace (created by buckminster) I can see this in
the workspace settings:

proxyData/HTTP/hasAuth=false
proxyData/HTTP/host=proxy.eclipse.org
org.eclipse.core.net.hasMigrated=true
eclipse.preferences.version=1
proxyData/HTTP/port=9898

These settings are in this file:
https://hudson.eclipse.org/hudson/job/emft-texo-nightly/ws/b uild/build/workspace/.metadata/.plugins/org.eclipse.core.run time/.settings/org.eclipse.core.net.prefs/*view*/

Where do these proxy settings come from?

Here is the bugzilla where Matt (Eclipse Webmaster) comments on this also:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=325786

gr. Martin

[echo] Importing binaries into target platform
/opt/users/hudsonbuild/.hudson/jobs/emft-texo-nightly/worksp ace/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(JSchProv ider.java:141)
[java] at
org.eclipse.team.internal.ccvs.core.connection.PServerConnec tion.open(PServerConnection.java:116)
[java] at
org.eclipse.team.internal.ccvs.core.connection.Connection.op en(Connection.java:132)
[java] at
org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.createConnection(CVSRepositoryLocation.java:545)
[java] at
org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.openConnection(CVSRepositoryLocation.java:806)
[java] at
org.eclipse.team.internal.ccvs.core.client.Session.open(Sess ion.java:159)
[java] at
org.eclipse.buckminster.cvspkg.internal.CVSSession.getReader Session(CVSSession.java:98)
[java] at
org.eclipse.buckminster.cvspkg.internal.RepositoryMetaData.g etMetaData(RepositoryMetaData.java:76)
[java] at
org.eclipse.buckminster.cvspkg.internal.VersionFinder.getMet aData(VersionFinder.java:97)
[java] at
org.eclipse.buckminster.cvspkg.internal.VersionFinder.getTru nk(VersionFinder.java:86)
[java] at
org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestTrunkMatch(AbstractSCCSVersionFinder.java:320)
[java] at
org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestVersion(AbstractSCCSVersionFinder.java:151)
[java] at
org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:220)
[java] at
org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(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.in nerResolve(ResourceMapResolver.java:202)
[java] at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:190)
[java] at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:87)
[java] at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.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


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #628840 is a reply to message #628738] Fri, 24 September 2010 11:34 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Martin,

I have the same error in the Graphiti build. I think what is missing is the
list of hosts for which the proxy should be bypassed (on hudson.eclipse.org
this is configured as *.eclipse.org). It seems that this peace of
information is lacking when calling Buckminster from an ant script.

I added an experimental build step in gmp-graphiti-nightly that directly
calls Buckminster (via the Buckminster Hudson plugin). There the synching
from CVS works...

-Michael


"Martin Taal" <mtaal@elver.org> wrote in message
news:i7gf3i$tm2$1@news.eclipse.org...
> Hi,
> When building texo/teneo job on hudson.eclipse.org buckminster tries to
> connect to the cvs server (dev.eclipse.org) using a proxy server it seems.
>
> When I check the .settings/org.eclipse.core.net.prefs in the build
> workspace (created by buckminster) I can see this in the workspace
> settings:
>
> proxyData/HTTP/hasAuth=false
> proxyData/HTTP/host=proxy.eclipse.org
> org.eclipse.core.net.hasMigrated=true
> eclipse.preferences.version=1
> proxyData/HTTP/port=9898
>
> These settings are in this file:
> https://hudson.eclipse.org/hudson/job/emft-texo-nightly/ws/b uild/build/workspace/.metadata/.plugins/org.eclipse.core.run time/.settings/org.eclipse.core.net.prefs/*view*/
>
> Where do these proxy settings come from?
>
> Here is the bugzilla where Matt (Eclipse Webmaster) comments on this also:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=325786
>
> gr. Martin
>
> [echo] Importing binaries into target platform
> /opt/users/hudsonbuild/.hudson/jobs/emft-texo-nightly/worksp ace/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(JSchProv ider.java:141)
> [java] at
> org.eclipse.team.internal.ccvs.core.connection.PServerConnec tion.open(PServerConnection.java:116)
> [java] at
> org.eclipse.team.internal.ccvs.core.connection.Connection.op en(Connection.java:132)
> [java] at
> org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.createConnection(CVSRepositoryLocation.java:545)
> [java] at
> org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.openConnection(CVSRepositoryLocation.java:806)
> [java] at
> org.eclipse.team.internal.ccvs.core.client.Session.open(Sess ion.java:159)
> [java] at
> org.eclipse.buckminster.cvspkg.internal.CVSSession.getReader Session(CVSSession.java:98)
> [java] at
> org.eclipse.buckminster.cvspkg.internal.RepositoryMetaData.g etMetaData(RepositoryMetaData.java:76)
> [java] at
> org.eclipse.buckminster.cvspkg.internal.VersionFinder.getMet aData(VersionFinder.java:97)
> [java] at
> org.eclipse.buckminster.cvspkg.internal.VersionFinder.getTru nk(VersionFinder.java:86)
> [java] at
> org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestTrunkMatch(AbstractSCCSVersionFinder.java:320)
> [java] at
> org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestVersion(AbstractSCCSVersionFinder.java:151)
> [java] at
> org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:220)
> [java] at
> org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(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.in nerResolve(ResourceMapResolver.java:202)
> [java] at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:190)
> [java] at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:87)
> [java] at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.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
>
>
> --
>
> With Regards, Martin Taal
>
> Springsite/Elver.org
> Office: Hardwareweg 4, 3821 BV Amersfoort
> Postal: Nassaulaan 7, 3941 EC Doorn
> The Netherlands
> Cell: +31 (0)6 288 48 943
> Tel: +31 (0)84 420 2397
> Fax: +31 (0)84 225 9307
> Mail: mtaal@springsite.com - mtaal@elver.org
> Web: www.springsite.com - www.elver.org
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #629303 is a reply to message #628738] Mon, 27 September 2010 17:16 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 09/23/2010 11:02 PM, Martin Taal wrote:
> Hi,
> When building texo/teneo job on hudson.eclipse.org buckminster tries to
> connect to the cvs server (dev.eclipse.org) using a proxy server it seems.
>
> When I check the .settings/org.eclipse.core.net.prefs in the build
> workspace (created by buckminster) I can see this in the workspace
> settings:
>
> proxyData/HTTP/hasAuth=false
> proxyData/HTTP/host=proxy.eclipse.org
> org.eclipse.core.net.hasMigrated=true
> eclipse.preferences.version=1
> proxyData/HTTP/port=9898
>
> These settings are in this file:
> https://hudson.eclipse.org/hudson/job/emft-texo-nightly/ws/b uild/build/workspace/.metadata/.plugins/org.eclipse.core.run time/.settings/org.eclipse.core.net.prefs/*view*/
>
>
> Where do these proxy settings come from?
>

I'm puzzled. I haven't seen this before. AFAIK, Buckminster has no code
that fiddles with proxy settings and I cannot find any preference
settings for org.eclipse.core.net in any of my workspaces. Are you using
a workspace template?

- thomas
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #629308 is a reply to message #629303] Mon, 27 September 2010 18:16 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes, I am also surprised. Afaics I don't use a workspace template (how is this specified in buckminster?).

I launch buckminster like this:

<macrodef name="buckminster">
<attribute name="command" />
<attribute name="workspace" />
<element name="globargs" optional="true" />
<element name="cmdargs" optional="true" />
<sequential>
<eclipse.launch app="buckminster">
<args>
<jvmarg value="-Xmx1024m" />
<jvmarg value="-Dbugfix.288796=true" />
<arg value="-data" />
<arg value="@{workspace}" />
<arg value="--loglevel" />
<arg value="${buckminster.loglevel}" />
<arg value="--displaystacktrace" />
<arg value="@{command}" />
<globargs />
<arg value="-P" />
<arg value="${properties.tmp}" />
<cmdargs />
</args>
</eclipse.launch>
</sequential>
</macrodef>

After creating the workspace directory, one of the first things I do is this:
<echo message="Setting jre to ${env.JAVA_HOME}"/>
<buckminster command="installJRE" workspace="${workspacePath}">
<cmdargs>
<arg value="--location" />
<arg value="${env.JAVA_HOME}" />
</cmdargs>
</buckminster>

so I don't understand either where this proxy thing comes from...

gr. Martin

On 09/27/2010 07:16 PM, Thomas Hallgren wrote:
> On 09/23/2010 11:02 PM, Martin Taal wrote:
>> Hi,
>> When building texo/teneo job on hudson.eclipse.org buckminster tries to
>> connect to the cvs server (dev.eclipse.org) using a proxy server it
>> seems.
>>
>> When I check the .settings/org.eclipse.core.net.prefs in the build
>> workspace (created by buckminster) I can see this in the workspace
>> settings:
>>
>> proxyData/HTTP/hasAuth=false
>> proxyData/HTTP/host=proxy.eclipse.org
>> org.eclipse.core.net.hasMigrated=true
>> eclipse.preferences.version=1
>> proxyData/HTTP/port=9898
>>
>> These settings are in this file:
>> https://hudson.eclipse.org/hudson/job/emft-texo-nightly/ws/b uild/build/workspace/.metadata/.plugins/org.eclipse.core.run time/.settings/org.eclipse.core.net.prefs/*view*/
>>
>>
>>
>> Where do these proxy settings come from?
>>
>
> I'm puzzled. I haven't seen this before. AFAIK, Buckminster has no code
> that fiddles with proxy settings and I cannot find any preference
> settings for org.eclipse.core.net in any of my workspaces. Are you using
> a workspace template?
>
> - thomas


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #629330 is a reply to message #629303] Mon, 27 September 2010 19:49 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 9/27/10 7:16 PM, Thomas Hallgren wrote:
>
> I'm puzzled. I haven't seen this before. AFAIK, Buckminster has no code
> that fiddles with proxy settings and I cannot find any preference
> settings for org.eclipse.core.net in any of my workspaces. Are you using
> a workspace template?
>
Other ways for these preferences to end up in the workspace could be:
- If reusing a workspace that was used earlier with the IDE
- Something is installed in headless buckminster that sets or modifies
the proxy preferences.

Do you see the preferences with a "vanilla" buckminster and a freshly
created workspace?

- henrik
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #629505 is a reply to message #629330] Tue, 28 September 2010 13:27 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Henrik,
This is a build run on hudson.eclipse.org, afaics I am not reusing an earlier workspace.
The strange thing is when I do the build locally it does not contain this setting. The local build is the same as the
hudson build afaics....

Is there something in buckminster which makes it run differently when run on hudson.eclipse.org?

gr. Martin

On 09/27/2010 09:49 PM, Henrik Lindberg wrote:
> On 9/27/10 7:16 PM, Thomas Hallgren wrote:
>>
>> I'm puzzled. I haven't seen this before. AFAIK, Buckminster has no code
>> that fiddles with proxy settings and I cannot find any preference
>> settings for org.eclipse.core.net in any of my workspaces. Are you using
>> a workspace template?
>>
> Other ways for these preferences to end up in the workspace could be:
> - If reusing a workspace that was used earlier with the IDE
> - Something is installed in headless buckminster that sets or modifies
> the proxy preferences.
>
> Do you see the preferences with a "vanilla" buckminster and a freshly
> created workspace?
>
> - henrik


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #629541 is a reply to message #629505] Tue, 28 September 2010 15:48 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 09/28/2010 03:27 PM, Martin Taal wrote:
> Is there something in buckminster which makes it run differently when
> run on hudson.eclipse.org?
>
If you mean that we have special code inserted to trap the fact that
it's running on specific servers or in a specific environment, the
answer is no.

What I could suspect is that the Eclipse proxy support performs some
kind of discovery on the network and auto-configures the proxy settings
depending on it's environment. Then again, that's just a wild guess.

- thomas
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #629542 is a reply to message #629541] Tue, 28 September 2010 15:59 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Thomas,
Yes this auto proxy setting maybe the cause, see an old post from a year back, you answered it :-)
http://dev.eclipse.org/mhonarc/lists/p2-dev/msg01955.html

I will research it further.

gr. Martin

On 09/28/2010 05:48 PM, Thomas Hallgren wrote:
>
> What I could suspect is that the Eclipse proxy support


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Buckminster cvs materializing, uses a proxy, how is this configured? [message #630405 is a reply to message #629542] Fri, 01 October 2010 22:30 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This was solved!

To finish this thread. Michael Wenz pointed me to a change made in the cdo build (to solve this issue), a snippet from
his email to me:

But I saw that the CDO build is green again and they still do an Ant call from Hudson that again triggers Buckminster.
Previously that build failed with the same exception as ours did or do.

Not sure what these guys changed, but I saw that they added something in their build.xml that seems to fix this. I found
2 snippets that appear to be in connection with this:
...
<condition property="no.proxy" value="${env.no_proxy}, dev.eclipse.org" else="dev.eclipse.org">
<isset property="env.no_proxy" />
</condition>
...

...
<!-- Launch the eclipse application -->
<java fork="true" jar="${@{app}.launcher}" dir="${@{app}.deploy.dir}" failonerror="true">
<env key="no_proxy" value="${no.proxy}" />
<properties />
<!-- Uncomment to debug <jvmarg value=" -agentlib:jdwp=transport=dt_socket,address=8000,server=y,sus pend=y "/> -->
<args />
</java>
...

gr. Martin

On 09/28/2010 05:59 PM, Martin Taal wrote:
> Hi Thomas,
> Yes this auto proxy setting maybe the cause, see an old post from a year
> back, you answered it :-)
> http://dev.eclipse.org/mhonarc/lists/p2-dev/msg01955.html
>
> I will research it further.
>
> gr. Martin
>
> On 09/28/2010 05:48 PM, Thomas Hallgren wrote:
>>
>> What I could suspect is that the Eclipse proxy support
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Resource .buckminster/tp is not local
Next Topic:How to debug: "No component XXX is known to Buckminster"?
Goto Forum:
  


Current Time: Fri Apr 19 09:29:06 GMT 2024

Powered by FUDForum. Page generated in 0.02643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top