You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by "Jamie Cavanaugh [DATACOM]" <Ja...@datacom.co.nz> on 2014/10/01 04:17:58 UTC

Correct configuration using network proxy

Hi,

We have archiva set up as a mirror for remote repositories, using a network proxy (because we are behind a corporate firewall). This seems to work when building projects and browsing the repositories, but I've noticed that Archiva's UI is really slow.

For example, when viewing the Repositories page, the 'Remote Check' column sits spinning and in the logs there are several errors:

2014-10-01 15:12:09,516 [http-8080-1] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
2014-10-01 15:12:10,032 [http-8080-3] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
2014-10-01 15:12:10,032 [http-8080-2] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
2014-10-01 15:12:10,667 [http-8080-5] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
2014-10-01 15:14:10,051 [http-8080-4] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.

It appears that this page doesn't use the proxy configuration from the proxy connector.

Is there a way to tell Archiva to use the network proxy when checking the status of these repositories?

Thanks,
Jamie

Jamie Cavanaugh

Technical Lead  |  Datacom Systems (Wellington) Ltd  |  68-86 Jervois Quay, Wellington 6011, New Zealand
jamie.cavanaugh@datacom.co.nz<ma...@datacom.co.nz>   |  Ph: +64 4 460 1527  |  Fax: +64 4 460 1511  |  Mob: +64 27 298 5043
www.datacom.co.nz<http://www.datacom.co.nz/>  |  PO Box 6376, Wellington 6140

Winner of Hi-Tech New Zealand Company of the Year Award 2010
Finalist for Hi-Tech New Zealand Company of the Decade Award 2011


Re: Correct configuration using network proxy

Posted by Olivier Lamy <ol...@apache.org>.
Hi,

On 1 October 2014 12:17, Jamie Cavanaugh [DATACOM]
<Ja...@datacom.co.nz> wrote:
> Hi,
>
> We have archiva set up as a mirror for remote repositories, using a network proxy (because we are behind a corporate firewall). This seems to work when building projects and browsing the repositories, but I've noticed that Archiva's UI is really slow.
>
> For example, when viewing the Repositories page, the 'Remote Check' column sits spinning and in the logs there are several errors:
>
> 2014-10-01 15:12:09,516 [http-8080-1] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
> 2014-10-01 15:12:10,032 [http-8080-3] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
> 2014-10-01 15:12:10,032 [http-8080-2] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
> 2014-10-01 15:12:10,667 [http-8080-5] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
> 2014-10-01 15:14:10,051 [http-8080-4] INFO  org.apache.archiva.rest.services.DefaultRemoteRepositoriesService [] - TransferFailedException :Could not read response body.
>
> It appears that this page doesn't use the proxy configuration from the proxy connector.
>
> Is there a way to tell Archiva to use the network proxy when checking the status of these repositories?

Maybe with fixing what looks to be a bug :-)
Can you create an issue in Jira? And the best attach a patch or a pull
request? :P


>
> Thanks,
> Jamie
>
> Jamie Cavanaugh
>
> Technical Lead  |  Datacom Systems (Wellington) Ltd  |  68-86 Jervois Quay, Wellington 6011, New Zealand
> jamie.cavanaugh@datacom.co.nz<ma...@datacom.co.nz>   |  Ph: +64 4 460 1527  |  Fax: +64 4 460 1511  |  Mob: +64 27 298 5043
> www.datacom.co.nz<http://www.datacom.co.nz/>  |  PO Box 6376, Wellington 6140
>
> Winner of Hi-Tech New Zealand Company of the Year Award 2010
> Finalist for Hi-Tech New Zealand Company of the Decade Award 2011
>



-- 
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy