Backup is not created - OSError: [Errno 122] Quota exceeded

I usually have a schedule for creating backups, but apparently this has failed for quite some time. When looking at the logs (below) I can see some errors regarding Quote exceeded. How can I fix this?

e[32m2024-07-12 10:41:49.210 INFO (MainThread) [supervisor.api.middleware.security] /mounts access from cebe7a76_hassio_google_drive_backupe[0m
e[32m2024-07-12 10:41:49.217 INFO (MainThread) [supervisor.api.middleware.security] /addons access from cebe7a76_hassio_google_drive_backupe[0m
e[32m2024-07-12 10:41:49.230 INFO (MainThread) [supervisor.api.middleware.security] /backups/new/full access from cebe7a76_hassio_google_drive_backupe[0m
e[32m2024-07-12 10:41:49.237 INFO (MainThread) [supervisor.backups.manager] Backup 54c8e328 starting stage addon_repositoriese[0m
e[32m2024-07-12 10:41:49.238 INFO (MainThread) [supervisor.backups.manager] Backup 54c8e328 starting stage docker_confige[0m
e[32m2024-07-12 10:41:49.238 INFO (MainThread) [supervisor.backups.manager] Creating new full backup with slug 54c8e328e[0m
e[32m2024-07-12 10:41:49.243 INFO (MainThread) [supervisor.backups.manager] Backup 54c8e328 starting stage addonse[0m
e[32m2024-07-12 10:41:49.276 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_adguarde[0m
e[32m2024-07-12 10:41:49.434 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_adguarde[0m
e[32m2024-07-12 10:41:49.461 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_wireguarde[0m
e[32m2024-07-12 10:41:49.474 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_wireguarde[0m
e[32m2024-07-12 10:41:49.504 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_sambae[0m
e[32m2024-07-12 10:41:49.517 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_sambae[0m
e[32m2024-07-12 10:41:49.546 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_grafanae[0m
e[32m2024-07-12 10:41:49.584 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_grafanae[0m
e[32m2024-07-12 10:41:49.616 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_influxdbe[0m
e[31m2024-07-12 10:41:55.618 ERROR (MainThread) [supervisor.addons.addon] Can't write tarfile : [Errno 122] Quota exceedede[0m
e[31m2024-07-12 10:41:55.621 ERROR (MainThread) [supervisor.backups.backup] Can't create backup for a0d7b954_influxdbe[0m
e[33m2024-07-12 10:41:55.621 WARNING (MainThread) [supervisor.backups.backup] Can't save Add-on a0d7b954_influxdb: Can't create backup for a0d7b954_influxdbe[0m
e[32m2024-07-12 10:41:55.653 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_configuratore[0m
e[32m2024-07-12 10:41:55.666 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_configuratore[0m
e[32m2024-07-12 10:41:55.695 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_sshe[0m
e[32m2024-07-12 10:41:55.724 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_sshe[0m
e[32m2024-07-12 10:41:55.757 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 15ef4d2f_esphomee[0m
e[32m2024-07-12 10:41:55.767 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 15ef4d2f_esphomee[0m
e[32m2024-07-12 10:41:55.796 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_noderede[0m
e[31m2024-07-12 10:41:59.607 ERROR (MainThread) [supervisor.addons.addon] Can't write tarfile : [Errno 122] Quota exceedede[0m
e[31m2024-07-12 10:41:59.610 ERROR (MainThread) [supervisor.backups.backup] Can't create backup for a0d7b954_noderede[0m
e[33m2024-07-12 10:41:59.611 WARNING (MainThread) [supervisor.backups.backup] Can't save Add-on a0d7b954_nodered: Can't create backup for a0d7b954_noderede[0m
e[32m2024-07-12 10:41:59.641 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on cebe7a76_hassio_google_drive_backupe[0m
e[32m2024-07-12 10:41:59.663 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon cebe7a76_hassio_google_drive_backupe[0m
e[32m2024-07-12 10:41:59.690 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 45df7312_zigbee2mqtte[0m
e[32m2024-07-12 10:41:59.702 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 45df7312_zigbee2mqtte[0m
e[32m2024-07-12 10:41:59.732 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 75a80a57_rtsp_simple_servere[0m
e[32m2024-07-12 10:41:59.745 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 75a80a57_rtsp_simple_servere[0m
e[32m2024-07-12 10:41:59.775 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_letsencrypte[0m
e[32m2024-07-12 10:41:59.912 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_letsencrypte[0m
e[32m2024-07-12 10:42:07.587 INFO (SyncWorker_1) [supervisor.docker.manager] Export image to /data/tmp/tmptc641a8w/image.tare[0m
e[32m2024-07-12 10:42:08.293 INFO (SyncWorker_1) [supervisor.docker.manager] Export image donee[0m
e[32m2024-07-12 10:42:08.319 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on local_hello_worlde[0m
e[32m2024-07-12 10:42:10.849 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon local_hello_worlde[0m
e[32m2024-07-12 10:42:10.886 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 402f1039_eufy_security_wse[0m
e[32m2024-07-12 10:42:10.901 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 402f1039_eufy_security_wse[0m
e[32m2024-07-12 10:42:10.902 INFO (MainThread) [supervisor.backups.manager] Backup 54c8e328 starting stage home_assistante[0m
e[32m2024-07-12 10:42:11.047 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config foldere[0m
e[31m2024-07-12 10:42:31.969 ERROR (MainThread) [supervisor.homeassistant.module] Can't backup Home Assistant Core config folder: [Errno 122] Quota exceedede[0m
e[31m2024-07-12 10:42:32.035 ERROR (MainThread) [supervisor.backups.manager] Backup 54c8e328 error
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 406, in backup
await self.sys_run_in_executor(_write_tarfile)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 397, in _write_tarfile
atomic_contents_add(
File "/usr/local/lib/python3.12/site-packages/securetar/__init__.py", line 333, in atomic_contents_add
tar_file.add(directory_item.as_posix(), arcname=arcpath, recursive=False)
File "/usr/local/lib/python3.12/tarfile.py", line 2180, in add
self.addfile(tarinfo, f)
File "/usr/local/lib/python3.12/tarfile.py", line 2208, in addfile
copyfileobj(fileobj, self.fileobj, tarinfo.size, bufsize=bufsize)
File "/usr/local/lib/python3.12/tarfile.py", line 254, in copyfileobj
dst.write(buf)
File "/usr/local/lib/python3.12/site-packages/isal/igzip.py", line 215, in write
self.fileobj.write(self.compress.compress(data))
OSError: [Errno 122] Quota exceeded

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/backups/manager.py", line 270, in _do_backup
await backup.store_homeassistant(
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 311, in wrapper
raise err
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 303, in wrapper
return await self._method(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/backups/backup.py", line 718, in store_homeassistant
await self.sys_homeassistant.backup(homeassistant_file, exclude_database)
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 311, in wrapper
raise err
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 303, in wrapper
return await self._method(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 409, in backup
raise HomeAssistantBackupError(
supervisor.exceptions.HomeAssistantBackupError: Can't backup Home Assistant Core config folder: [Errno 122] Quota exceeded

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/backups/manager.py", line 261, in _do_backup
async with backup:
File "/usr/src/supervisor/supervisor/backups/backup.py", line 363, in __aexit__
self._outer_secure_tarfile.__exit__(
File "/usr/local/lib/python3.12/site-packages/securetar/__init__.py", line 140, in __exit__
self._tar.close()
File "/usr/local/lib/python3.12/tarfile.py", line 1975, in close
self.fileobj.close()
OSError: [Errno 122] Quota exceedede[0m
e[32m2024-07-12 10:42:32.131 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backupe[0m

How much space left on Google Drive ?

I still have

  • Google Drive: ~40 Gb
  • Local SSD: ~150 Gb

I forgot that I backed up to my NAS which had a quota on the shared folder.

Now backup is roling again and the issue seems to be resolved.