Agile Version Report - An internal error occurred when requesting resource
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
Agile Version Report gives the above error when added to dashboard, however, it works when opening the Agile Version Report from the Reports Tab in JIRA Agile.
診断
Diagnostic Steps
- Check if the Agile Version Report works from the Reports Tab in JIRA Agile.
Use SSLPoke to verify connectivity: Try the Java class
SSLPoke
to see if your truststore contains the right certificates. This will let you connect to a SSL service, send a byte of input, and watch the output.- Download SSLPoke.class
以下のとおりにクラスを実行します。URL とポートは適切に変更します。
A mail server may be
mail.example.com 465
.
接続に失敗すると、以下のように出力されます。
/usr/bin/java SSLPoke jira.example.com 443 sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292) at sun.security.validator.Validator.validate(Validator.java:260) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1351) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:156) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:925) at sun.security.ssl.Handshaker.process_record(Handshaker.java:860) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1043) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1343) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:728) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:138) at SSLPoke.main(SSLPoke.java:31) Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) ... 15 more
接続に成功すると、以下のように表示されます。
<JAVA_HOME>/bin/java SSLPoke jira.example.com 443 Successfully connected
原因
This is because gadgets from the Dashboard get data from JIRA via REST API. If the above diagnostics fails,then this means that the Gadget in the dashboard isn't able to communicate with JIRA itself to get the data from it and this is because the truststore doesn't contain the appropriate certificates for it to be able to communicate and get the required information.
ソリューション
Your SSL certificate will need to be imported into Java's truststore as per the instructions in Connecting to SSL Services.