-
Bug
-
Resolution: Tracked Elsewhere
-
Low
-
None
-
7.1.8, 7.2.3, 7.3.6
-
7.01
-
34
-
Severity 3 - Minor
-
7
-
Summary
The 2.1.12 instance health plugin adds a check for the presence of jira-healthcheck-eol.json in your jira home directory to check EOL date. If that file is not present on the system and the system cannot reach the marketplace to check EOL the health check plugin will not run and will throw an error of 'there was an error performing the instance health check' in the GUI.
Steps to Reproduce
- Install the latest JIRA instance health plugin
- Check that jira-healthcheck-eol.json does not exist in JIRA_HOME
- remove the ability of the system to connect to the marketplace
- Check the instance health tab in JIRA
Expected Results
The check does not fail if the file does not exist, as the data is persisted somewhere else (e.g.: in the database) or the file is recreated automatically.
Actual Results
The error "Unable to verify the End of Life date for version '7.2.x'. The check has not been performed." is returned, instead of performing the health check. An exception such as the below will appear in the logs:
SupportHealthCheckThread-6 WARN [c.a.j.p.healthcheck.util.SupportEolCheckUtil] Not able to retrieve the JIRA version information from MPAC
Connection to MPAC fails and below stack trace can be seen:
2016-12-20 10:29:40,691 SupportHealthCheckThread-2 ERROR ServiceRunner [c.a.j.p.healthcheck.support.EolSupportHealthCheck] An error occurred when performing the EOL check, see the exceptions for more info java.net.UnknownHostException: marketplace.atlassian.com: nodename nor servname provided, or not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getAllByName0(InetAddress.java:1276) at java.net.InetAddress.getAllByName(InetAddress.java:1192) at java.net.InetAddress.getAllByName(InetAddress.java:1126) at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at com.atlassian.jira.plugins.healthcheck.util.SupportEolCheckUtil.fetchAndProcessVersions(SupportEolCheckUtil.java:65) at com.atlassian.jira.plugins.healthcheck.support.EolSupportHealthCheck.doCheck(EolSupportHealthCheck.java:83) at com.atlassian.jira.plugins.healthcheck.support.AbstractSupportHealthCheck.check(AbstractSupportHealthCheck.java:27) at com.atlassian.support.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:41) at com.atlassian.support.healthcheck.concurrent.SupportHealthCheckTask.run(SupportHealthCheckTask.java:33) at com.atlassian.support.healthcheck.concurrent.SupportHealthCheckProcess.run(SupportHealthCheckProcess.java:43) at com.atlassian.support.healthcheck.thread.HealthCheckProcessCallable.call(HealthCheckProcessCallable.java:44) at com.atlassian.support.healthcheck.thread.HealthCheckProcessCallable.call(HealthCheckProcessCallable.java:20) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
Workaround
Download the attached jira-healthcheck-eol.json and put it in your $JIRA_HOME directory.
Notes
Previously the EOL check did not take into account proxies when trying to establish a connection to the Atlassian Marketplace. However as of JRA-61781 this is fixed in JIRA Instance Health 2.1.20. There is an upgrade task that will create the file if it doesn't exist, however if the file is deleted or removed somehow (say deleted in a migration) the file is not created again (see related JRASERVER-65404).
- is related to
-
CONFSERVER-45560 EOL check causes health check to be unable to lookup the version when marketplace is not available and the json file is deleted
- Closed
-
JRASERVER-61781 End-of-Life health check fails when using a proxy with Jira
- Closed
-
JRASERVER-65404 JIRA health check plugin upgrade task cause JIRA failed to startup
- Closed
- relates to
-
JRASERVER-65502 EOL Health Check does not respect Marketplace connectivity settings
- Closed
-
JRASERVER-71784 Health check cannot verify the End of Life date for JIRA
- Closed
-
ATST-786 Loading...
-
XPLN-380 Loading...
- mentioned in
-
Page Loading...