Skip to main content
This page is for a box whose /DATA is a merged storage of several drives (see the Merged Storage tab of the Storage Manager). Your data is not lost. When that merge is not mounted, apps start on the empty folder of the system disk underneath and look wiped. Once /DATA is mounted again, restart the apps (or the box): an app started on the empty folder keeps it until it restarts.

Check

On a box with a merged /DATA, no output means the merge is not mounted. (On a box without a merge, this prints nothing either: that is normal.)

After an update (before v0.5.217)

Each update stopped the storage service, which unmounted /DATA for a few seconds; files written meanwhile landed on the system disk, and the storage service then refused to mount over a folder that was not empty. Fixed in v0.5.217: an update no longer takes /DATA away. A folder found in the way is moved aside into a dated folder under /var/lib/casaos/set-aside, with a file that says why. Note that the update that brings the fix stops the service the old way one last time.

After a restart of the machine (before v0.5.248)

The storage service that runs before Docker could give up when the gateway was slow to start, leaving every disk unmounted and the apps failing. Fixed in v0.5.248: the disks are mounted even when the gateway is late, and Docker does not start when a storage of the box could not be mounted. If it happened, restart the storage service, then Docker:
journalctl -b -u casaos-local-storage-first shows why it did not mount.

Apps get Permission denied on /DATA (before v0.5.175)

Apps that do not run as root (for example with PUID=1000) could not read /DATA after an update from CasaOS. Fixed in v0.5.175: /DATA is mounted with allow_other again. To check:
The line must contain allow_other. Issues: #207, #226, #175.