Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-95910

New Local backups security Health Check is throwing NullPointerException

      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.

            [CONFSERVER-95910] New Local backups security Health Check is throwing NullPointerException

            Quan Pham added a comment -

            A fix for this issue is available in Confluence Server and Data Center 9.2.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available in Confluence Server and Data Center 9.2.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment -

            A fix for this issue is available in Confluence Server and Data Center 9.1.1. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available in Confluence Server and Data Center 9.1.1. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Piotr Masarczyk added a comment - - edited

            Hey,
            This issue got fixed in ATST 2.3.0 version. It can be upgraded through UPM on all available Confluence 9.x versions.
            Additionally, it will be bundled in the Confluence 9.1.1, 9.2.0 and further releases.

            Piotr Masarczyk added a comment - - edited Hey, This issue got fixed in ATST 2.3.0 version. It can be upgraded through UPM on all available Confluence 9.x versions. Additionally, it will be bundled in the Confluence 9.1.1, 9.2.0 and further releases.

            I'm seeing this after upgrading from 8.9.4 to 9.0.3, and also Java 11 to Java 17

            Dov Frankel added a comment - I'm seeing this after upgrading from 8.9.4 to 9.0.3, and also Java 11 to Java 17

            I've observed this after upgrade from 8.5.4 to  9.0.2.

            Matthias Müller-Reineke added a comment - I've observed this after upgrade from 8.5.4 to  9.0.2.

              mwalerianczyk Marcin Walerianczyk
              hlam@atlassian.com Eric Lam
              Affected customers:
              2 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: