Confusing Free Disk Space Alert : Health check 'Free Disk Space (Local Home)' failed with severity 'warning'


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

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

Health check 'Free Disk Space (Local Home)' failed due to Confluence scheduled job - "Back Up Confluence"

Environment

7.x.x

Diagnosis

Confluence scheduled job - "Back Up Confluence" can sometimes cause the Health check - 'Free Disk Space (Local Home)' to fail due to low free disk space under Confluence home directory 

[troubleshooting.healthcheck.concurrent.SupportHealthCheckProcess] lambda$getCompletedStatuses$0 Health check 'Free Disk Space (Local Home)' failed with severity 'warning': 'Your free disk space is running low. You currently have 19.8 MB free in / (/dev/disk1), which is below the current threshold.'

Cause

The Backup Confluence job generates temporary files under the <confluence-home>/temp directory during the backup process which can lead to an Error - "No space left on device" if sufficient space is not available under the <confluence-home> directory. As a result, Health Check for Free Disk Space under the Local Home directory fails.


2023-02-21 03:45:40,261 ERROR [Caesium-1-3] [atlassian.core.util.FileUtils] copyFile Error writing stream to file: /opt/atlassian/confluence-data/temp/xmlexport-20230221-020000291/attachments/80776349/87425123/data6964960030934434982.tmp
2023-02-21 03:45:40,422 ERROR [Caesium-1-3] [confluence.importexport.impl.BackupJob] runJob Error while running the scheduled backup
java.lang.RuntimeException: java.io.IOException: No space left on device
        at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataUtil.failedToWriteTempFile(FileSystemAttachmentDataUtil.java:84)
        at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataUtil.writeToTempFile(FileSystemAttachmentDataUtil.java:56)
        at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataUtil.writeStreamToFile(FileSystemAttachmentDataUtil.java:38)
        at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.writeStreamToFile(FileSystemAttachmentDataDao.java:253)
        at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.saveDataForAttachment(FileSystemAttachmentDataDao.java:240) 

Solution

  • If the Backup Confluence job is enabled in the environment to run daily, please ensure enough free space is available under the <confluence-home> directory for backup.
  • Disable Backup Confluence scheduled job if the daily backup of Confluence is not required and Confluence Backup job can be run manually whenever required.


Last modified on May 11, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.