Dovecot: "Failed to write to main log (No space left on device)"
Posted: Wed Feb 10, 2016 11:19 am
Every single morning, my dovecot service goes down and i need to start it again, and it is repeating day by day, so i was looking for some clue to find out why it was coming down, and i found that errors on the /var/log/maillog file:
"failed to write to main log: length=165 result=-1 errno=28 (No space left on device)"
"write failed on panic log: length=122 result=-1 errno=28 (No space left on device)"
And i see that the time when this error was displayed was the same time that the service goes down, so i see it as the reason of the problem.
By the way, i really dont know what is happening because when i type: df -h i can see:
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 30G 27G 1.9G 94% /
tmpfs 499M 0 499M 0% /dev/shm
So the disk isnt full, and why this "no space left on device" warning ? I dont know what to try.
Note: this error started to happen since 2 weeks ago, but my server is running since more than 6 months.
"failed to write to main log: length=165 result=-1 errno=28 (No space left on device)"
"write failed on panic log: length=122 result=-1 errno=28 (No space left on device)"
And i see that the time when this error was displayed was the same time that the service goes down, so i see it as the reason of the problem.
By the way, i really dont know what is happening because when i type: df -h i can see:
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 30G 27G 1.9G 94% /
tmpfs 499M 0 499M 0% /dev/shm
So the disk isnt full, and why this "no space left on device" warning ? I dont know what to try.
Note: this error started to happen since 2 weeks ago, but my server is running since more than 6 months.