Agile Version Report - An internal error occurred when requesting resource
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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.
*Except Fisheye and Crucible
Problem
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.
Diagnosis
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
Execute the class as per the below, changing the URL and port appropriately.
A mail server may be
mail.example.com 465
.
A failed connection would produce the below:
/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
A successful connection would look like this:
<JAVA_HOME>/bin/java SSLPoke jira.example.com 443 Successfully connected
Cause
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.
Resolution
Your SSL certificate will need to be imported into Java's truststore as per the instructions in Connecting to SSL Services.