tycho icon indicating copy to clipboard operation
tycho copied to clipboard

Tycho 4.0.1 Unable to read repository at https://download.eclipse.org/releases/latest behind proxy

Open mneffgen opened this issue 2 years ago • 5 comments

I am behind a corporate proxy and tried to build the itp01 demo with Tycho 4. While the build succeeded with Tycho 3.0.5 and 2.7.5 with my proxy configuration in the maven settings, it seems that the proxy is ignored by tcho 4.0.1.

mneffgen avatar Aug 11 '23 10:08 mneffgen

I'm having the same issue, however it does work some of the time

Kummallinen avatar Sep 14 '23 16:09 Kummallinen

There is a (passing!) test for proxy support:

https://github.com/eclipse-tycho/tycho/blob/master/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO279HttpProxy/ProxySupportTest.java

so if anyone is able to reproduce the problem with that test it would help alot.

laeubi avatar Sep 18 '23 07:09 laeubi

There is a (passing!) test for proxy support:

https://github.com/eclipse-tycho/tycho/blob/master/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO279HttpProxy/ProxySupportTest.java

so if anyone is able to reproduce the problem with that test it would help alot.

PR created that updates the testcase to emulate a corporate network with a proxy. Hopefully, you can use this to identify why tycho fails to use the configured proxy.

Torbjorn-Svensson avatar Oct 06 '23 20:10 Torbjorn-Svensson

It turned out, that my proxy configuration is the problem.

It does not work with protocol specific configurations.

Working:

<proxies>
	<proxy>
		<id>Proxy</id>
		<active>true</active>
		<host>192.168.8.50</host>
		<port>3128</port>
	</proxy>
</proxies>

Not working:

<proxies>
	<proxy>
		<id>Proxy HTTP</id>
		<active>true</active>
		<protocol>http</protocol>
		<host>192.168.8.50</host>
		<port>3128</port>
	</proxy>
	<proxy>
		<id>Proxy HTTPS</id>
		<active>true</active>
		<protocol>https</protocol>
		<host>192.168.8.50</host>
		<port>3128</port>
	</proxy>
</proxies>

mneffgen avatar Oct 16 '23 08:10 mneffgen