Side-by-side comparison of EEXIST and ENOSPC — understand the differences, causes, and fixes.
EEXISTA file creation operation failed because a file with the specified name already exists.
An operation requiring that a file not exist was attempted on an existing file. This occurs with O_CREAT | O_EXCL flags in open(), when calling mkdir() on an existing directory, or creating a symlink where one already exists.
Check if the file exists before creating it. Use O_CREAT without O_EXCL if overwriting is acceptable. Remove the existing file first if appropriate.
The filesystem has no more free space or inodes available for writing.
The disk partition is full. This can be caused by large log files, temporary files, or running out of inodes even when disk space appears available.
Check disk usage with df -h and inode usage with df -i. Find large files with du -sh /*. Clean up log files, temporary files, and old packages. Extend the partition or add storage.