df -i: free space exists but files cannot be created

Exhausted inodes look like strange disk-full errors.

df -ih
sudo find /var -xdev -type d -printf '%h\n' | sort | uniq -c | sort -n | tail

Verify the result

If inodes are consumed by tiny files, find the generator.