Jira server functionality fails with No space left on device error

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

Note that this KB was created for the Data Center version of the product. Data Center KBs 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

Problem

All sorts of functionality in JIRA may fail once the disk runs on out space. The type of functionality that fails depends upon how the disks have been configured - for example:

  • JIRA may fail to startup

  • Items in the UI may be missing

  • Attachments cannot be uploaded

  • Reindexing may fail or perform very slowly

Depending on which partition is out of space (the Setting your JIRA Home Directory or JIRA Installation Directory), JIRA will not be able to start up or items in the UI will be missing.

The following appears in the atlassian-jira.log:

1 2 3 4 Caused by: java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:282) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:1

Diagnosis

If this exception is thrown, it indicates there's a problem with disk space. Locate the Setting your JIRA Home Directory and JIRA Installation Directory directories and verify the amount of space left on these partitions. Additionally ensure the database server has sufficient disk space available.

Cause

One of the two partitions, or the database server, is out of space, or does not have enough left for JIRA to operate normally.

Solution

Resolution

JIRA will not necessarily gracefully recover from a disk space outage, it is highly likely corruption will occur. Databases are hardened against this, however JIRA is not designed to be able to be run with insufficient space on the disk.

  1. Immediately stop JIRA.

  2. Hosting JIRA indexes ($JIRA_HOME/caches/indexes) over network shares is not officially supported as per our Supported platforms. If using a remote network share please move this to a locally mounted drive.

  3. Allocate more space where the directories and/or database is located and restart JIRA.

  4. Restore the last known working backup from prior to the outage.

  5. Install monitoring for the disk space to prevent this problem from happening again.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.