Confluence throws 'Preemptive authentication requested but no default proxy credentials available' when accessing pages using outbound proxy
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
問題
When accessing pages that contains content obtained from an external service, the following warnings appear in atlassian-confluence.log
:
2017-03-13 16:55:33,585 WARN [http-nio-443-exec-11] [apache.commons.httpclient.HttpMethodDirector] authenticateProxy Required proxy credentials not available for BASIC <any realm>@proxy.xxx.com:3128
-- referer: http://localhost:8090/display/TEST | url: /rest/calendar-services/1.0/calendar/events.json | traceId: bd997c289a6e64a2 | userName: admin
2017-03-13 16:55:33,585 WARN [http-nio-443-exec-10] [apache.commons.httpclient.HttpMethodDirector] authenticateProxy Preemptive authentication requested but no default proxy credentials available
-- referer: http://localhost:8090/display/TEST | url: /rest/calendar-services/1.0/calendar/events.json | traceId: 194954d8084x97e7 | userName: admin
The page can be loaded fine and the content appears correctly and as expected. However, the warnings above still appear in the logs as noise.
診断
Confluence is configured with an outbound HTTP/HTTPS proxy as per the documentation below, but no credentials (http.proxyUser
and http.proxyPassword
) is required for the outbound proxy.
回避策
To ensure the warnings no longer appear in your logs, include the following properties into your Java options (setenv.sh
/ setenv.bat
) or catalina.properties
and restart Confluence. There should be no values passed as no credentials are required.
http.proxyUser=
http.proxyPassword=
https.proxyUser=
https.proxyPassword=