Errno 28 - No space left on device

Hi all

Just trying to create a snapshot before updating from Hassio 0.93.2 to 0.94.3 but it fails and I get the following error:

19-06-15 18:31:46 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-06-15 18:32:32 INFO (MainThread) [hassio.snapshots] Full-Snapshot 0c582291 start
19-06-15 18:32:32 ERROR (MainThread) [hassio.snapshots] Snapshot 0c582291 error
Traceback (most recent call last):
  File "/usr/src/hassio/hassio/snapshots/__init__.py", line 131, in do_snapshot_full
    async with snapshot:
  File "/usr/src/hassio/hassio/snapshots/snapshot.py", line 241, in __aenter__
    self._tmp = TemporaryDirectory(dir=str(self.sys_config.path_tmp))
  File "/usr/local/lib/python3.7/tempfile.py", line 788, in __init__
    self.name = mkdtemp(suffix, prefix, dir)
  File "/usr/local/lib/python3.7/tempfile.py", line 366, in mkdtemp
    _os.mkdir(file, 0o700)
OSError: [Errno 28] No space left on device: '/data/tmp/tmpvg08p2x4'
19-06-15 18:34:42 INFO (MainThread) [hassio.snapshots] Removed snapshot file 62162783
19-06-15 18:34:56 INFO (MainThread) [hassio.snapshots] Removed snapshot file 1f10af02
19-06-15 18:34:59 INFO (MainThread) [hassio.snapshots] Full-Snapshot 8f93c58f start
19-06-15 18:34:59 INFO (MainThread) [hassio.snapshots] Snapshot 8f93c58f store Add-ons
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_check_config
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_motioneye
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_ssh
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_mosquitto
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on a0d7b954_chrony
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_samba
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Build snapshot for add-on core_configurator
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_check_config
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_chrony
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_mosquitto
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_samba
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_configurator
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon a0d7b954_motioneye
19-06-15 18:35:00 INFO (MainThread) [hassio.addons.addon] Finish snapshot for addon core_ssh
19-06-15 18:35:00 INFO (MainThread) [hassio.snapshots] Snapshot 8f93c58f store folders
19-06-15 18:35:00 INFO (SyncWorker_19) [hassio.snapshots.snapshot] Snapshot folder addons/local
19-06-15 18:35:00 INFO (SyncWorker_11) [hassio.snapshots.snapshot] Snapshot folder homeassistant
19-06-15 18:35:00 INFO (SyncWorker_1) [hassio.snapshots.snapshot] Snapshot folder ssl
19-06-15 18:35:00 INFO (SyncWorker_8) [hassio.snapshots.snapshot] Snapshot folder share
19-06-15 18:35:00 INFO (SyncWorker_19) [hassio.snapshots.snapshot] Snapshot folder addons/local done
19-06-15 18:35:00 INFO (SyncWorker_1) [hassio.snapshots.snapshot] Snapshot folder ssl done
19-06-15 18:35:31 WARNING (SyncWorker_8) [hassio.snapshots.snapshot] Can't snapshot folder share: [Errno 28] No space left on device
19-06-15 18:35:31 WARNING (SyncWorker_11) [hassio.snapshots.snapshot] Can't snapshot folder homeassistant: [Errno 28] No space left on device
19-06-15 18:35:31 ERROR (MainThread) [hassio.utils.json] Can't write /data/tmp/tmpcuab5i7l/snapshot.json: [Errno 28] No space left on device
19-06-15 18:35:31 ERROR (MainThread) [hassio.snapshots] Snapshot 8f93c58f error
Traceback (most recent call last):
  File "/usr/src/hassio/hassio/snapshots/__init__.py", line 138, in do_snapshot_full
    await snapshot.store_folders()
  File "/usr/src/hassio/hassio/snapshots/snapshot.py", line 278, in __aexit__
    write_json_file(Path(self._tmp.name, "snapshot.json"), self._data)
  File "/usr/src/hassio/hassio/utils/json.py", line 21, in write_json_file
    raise JsonFileError() from None
hassio.exceptions.JsonFileError
19-06-15 18:43:54 INFO (SyncWorker_7) [hassio.docker.interface] Restart homeassistant/raspberrypi3-homeassistant
19-06-15 18:44:57 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-06-15 18:45:17 INFO (MainThread) [hassio.snapshots] Full-Snapshot fcb4cc78 start
19-06-15 18:45:17 ERROR (MainThread) [hassio.snapshots] Snapshot fcb4cc78 error
Traceback (most recent call last):
  File "/usr/src/hassio/hassio/snapshots/__init__.py", line 131, in do_snapshot_full
    async with snapshot:
  File "/usr/src/hassio/hassio/snapshots/snapshot.py", line 241, in __aenter__
    self._tmp = TemporaryDirectory(dir=str(self.sys_config.path_tmp))
  File "/usr/local/lib/python3.7/tempfile.py", line 788, in __init__
    self.name = mkdtemp(suffix, prefix, dir)
  File "/usr/local/lib/python3.7/tempfile.py", line 366, in mkdtemp
    _os.mkdir(file, 0o700)
OSError: [Errno 28] No space left on device: '/data/tmp/tmpaayav6ok'

How can I get around this?

Thanks :slight_smile:

Log file may be too large. Delete it
Basically remove whatever is taking up storage or add storage

Whooops…my bad. I had motioneye set to save video files on the Hassio SD via samba instead of to my NVR.

Thankyou for your help :slight_smile:

1 Like

I’m having a similar issue.Just that DF shows 50% storage still available.

Could there be some setting anywhere in home assistant IO to restrict to 50% disk usage? This is running on an odroid N2 with 2GB and 16GB emmc.
There is not indication anywhere Iḿ out of storage space (expect in the supervisor log)