New Local backups security Health Check is throwing NullPointerException

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 7

      Issue Summary

      Newly introduced Local backups security health check is throwing a NullPointerException in the application logs.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Install latest Confluence 8.5
      2. Update ATST to either v1.56.0 or v1.57.1
      3. Monitor the logs

      Expected Results

      The healthcheck should run without errors.

      Actual Results

      The below exception is thrown in the atlassian-confluence.log file:

      21:46:06,254 WARN [HealthCheckWatchdog:thread-4] [healthcheck.concurrent.SupportHealthCheckTask] healthCheckError Unable to complete execution of health check Local backups security due to an exception
       -- url: /confluence/rest/troubleshooting/1.0/check/process/ | userName: admin | referer: http://localhost:8080/confluence/plugins/servlet/troubleshooting/view/ | traceId: a994073a096ca1ba
      java.util.concurrent.ExecutionException: java.lang.NullPointerException
      	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
      	at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.getFutureWithTimeout(SupportHealthCheckTask.java:97)
      	at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.lambda$runAsync$0(SupportHealthCheckTask.java:77)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: java.lang.NullPointerException
      	at java.base/java.io.File.<init>(File.java:278)
      	at com.atlassian.troubleshooting.healthcheck.checks.AbstractBackupHealthCheck.listZips(AbstractBackupHealthCheck.java:86)
      	at com.atlassian.troubleshooting.healthcheck.checks.AbstractBackupHealthCheck.checkDirectory(AbstractBackupHealthCheck.java:95)
      	at com.atlassian.troubleshooting.confluence.healthcheck.backup.ConfluenceBackupHealthCheck.checkImpl(ConfluenceBackupHealthCheck.java:41)
      	at com.atlassian.troubleshooting.healthcheck.checks.AbstractBackupHealthCheck.check(AbstractBackupHealthCheck.java:59)
      	at com.atlassian.troubleshooting.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:66)
      	... 4 more
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

      As this is a Health Check, it is safe to ignore this warning.

            Assignee:
            Marcin Walerianczyk
            Reporter:
            Eric Lam
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: