2014-11-25 52 views
1

我們在Windows Server 2008 R2上使用sonatype nexus。爲了能夠訪問外部存儲庫,我們使用公司的http代理服務器。因此,我們輸入Nexus GUI->Server值「代理主機」,「代理端口」,「用戶名」和「密碼」。從Nexus 2.2遷移到2.10.0-02後,nexus服務器無法訪問外部存儲庫。Sonatype nexus:從2.2更新到2.10.0-02後無法使用http代理

如果現在我轉到Nexus GUI->Repositories->Central->Browse Remote->Refresh遠程存儲庫不可見。該wrapper.log包含以下日誌項(原始數據被替換<proxyhost>:<proxyport> and <proxyuser>):

| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl - <proxyhost>:<proxyport> proxy authentication setup for remote storage with username '<proxyuser>' 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl - http proxy setup with host '<proxyhost>' 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.plugins.rrb.MavenRepositoryReader - remotePath= 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.plugins.rrb.MavenRepositoryReader - Requesting: GET http://repo1.maven.org/maven2/?delimiter=/ HTTP/1.1 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Connection request: [route: {}->http://<proxyhost>:<proxyport>->http://repo1.maven.org:80][total kept alive: 1; route allocated: 1 of 20; total allocated: 2 of 200] 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Connection leased: [id: 25][route: {}->http://<proxyhost>:<proxyport>->http://repo1.maven.org:80][total kept alive: 0; route allocated: 1 of 20; total allocated: 2 of 200] 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.plugins.rrb.MavenRepositoryReader - Status code: 407 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Connection [id: 25][route: {}->http://<proxyhost>:<proxyport>->http://repo1.maven.org:80] can be kept alive for 30.0 seconds 
| 2014-11-25 08:55:25 DEBUG [qtp949677682-69] - org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Connection released: [id: 25][route: {}->http://<proxyhost>:<proxyport>->http://repo1.maven.org:80][total kept alive: 1; route allocated: 1 of 20; total allocated: 2 of 200] 
| 2014-11-25 08:55:25 TRACE [qtp949677682-69] - org.sonatype.nexus.plugins.rrb.MavenRepositoryReader - <HEAD><TITLE>Proxy Authorization Required</TITLE></HEAD> 
| <BODY BGCOLOR="white" FGCOLOR="black"><H1>Proxy Authorization Required</H1><HR> 
| <FONT FACE="Helvetica,Arial"><B> 
| Description: Authorization is required for access to this proxy</B></FONT> 
| <HR> 
| <!-- default "Proxy Authorization Required" response (407) --> 
| </BODY> 

Wireshark的捕獲看起來是這樣的:

43 1.803445000 <nexus> <proxyhost> HTTP 278 GET http://repo1.maven.org/maven2/?delimiter=/ HTTP/1.1 
51 1.814045000 <nexus> <proxyhost> HTTP 278 GET http://repo1.maven.org/maven2/?delimiter=/ HTTP/1.1 
55 1.819731000 <proxyhost> <nexus> HTTP 1014 HTTP/1.1 407 Proxy Authorization Required (text/html) 

所有GET請求沒有任何認證頭。 爲什麼Nexus在HTTP 407之後不重複GET請求?

有沒有人有類似的問題?

回答

2

聽起來像代理服務器可能配置爲使用NTLM身份驗證?嘗試在代理驗證中也輸入「NT LAN Manager域」。

+0

謝謝你,我進入了「NT局域網管理器域」,它現在可以正常工作。 – franden 2015-01-23 08:48:40

相關問題