2016-12-15 6 views
0

seit Update auf 6.1 (nicht absolut sicher seit dann), kann ich keine Verbindung zum Update Center über unseren Proxy herstellen, da die Authentifizierung nicht von SonarQube durchgeführt wird! Wenn ich das Backend öffnen und gehen Sie zu Verwaltung-> System-> Update Center kann ich die folgende Ausnahme in der Protokolldatei (sehr kurze Version):Sonarqube 6.1 http.proxy Update Center funktioniert nicht

2016.12.15 11:54:11 ERROR web[][o.s.s.p.UpdateCenterClient] Fail to connect to update center 
org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties (HTTP proxy: MY-PROXY-IP:8080) 
(...)  
Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 authenticationrequired" 

Es funktioniert vor ein paar Tagen! Ich habe die Proxy-Konfiguration getestet. Auf demselben Rechner verwendet Jenkins die gleichen Proxy-Einstellungen ohne Probleme!

in der Datei /opt/sonar/conf/sonar.properties konfiguriert ich folgendes:

#-------------------------------------------------------------------------------------------------- 
# UPDATE CENTER 

# Update Center requires an internet connection to request http://update.sonarsource.org 
# It is enabled by default. 
#sonar.updatecenter.activate=true 

# HTTP proxy (default none) 
http.proxyHost=MY-PROXY-IP 
http.proxyPort=8080 
# HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort) 
#https.proxyHost= 
#https.proxyPort= 

# NT domain name if NTLM proxy is used 
#http.auth.ntlm.domain= 

# SOCKS proxy (default none) 
#socksProxyHost= 
#socksProxyPort= 

# Proxy authentication (used for HTTP, HTTPS and SOCKS proxies) 
http.proxyUser=MY-PROXY-USER 
http.proxyPassword=MY-PROXY-PASSWORD 

Für mich sieht es aus wie die Authentifizierung nicht durchgeführt werden wird. Ich kann nicht in die Protokolldatei des Proxy-Servers schauen.

+0

Beachten Sie, dass, wenn Ihr Proxy-Benutzername „\“ (Backslash) enthält, dann sollte es entwertet werden - zum Beispiel Benutzername „Domäne \ Benutzer“ in der Datei aussehen sollte: http.proxyUser = domain \\ Benutzer – gile

+0

Dank für die Antwort. Benutzername und Passwort haben keine Sonderzeichen. Just A-Za-z0-9 –

+0

Hat sich der Proxy in den letzten Tagen geändert? Als Workaround könnten Sie cntlm – gile

Antwort

2

Ich hatte ähnliches Problem. In meinem Fall verursachte es durch JDK geplante Änderungen. Disable Basic authentication for HTTPS tunneling von 8u111 Update-Version.

Ich kann umgehen, um eine Eigenschaft in /opt/sonar/conf/sonar.properties wie folgt anfügen.

sonar.web.javaAdditionalOpts=-Djdk.http.auth.tunneling.disabledSchemes="" 
+0

Vielen Dank Yuji! Das war genau das Problem! Jetzt funktioniert es! Vielen Dank! –

+0

Gleiches Problem hier gelöst, vielen Dank !!!! –

Verwandte Themen