Closed lozbrown closed 8 months ago
Hitting the max number of watchers can trigger that error. Can you check the docs here https://github.com/fsnotify/fsnotify/blob/c94b93b0602779989a9af8c023505e99055c8fe5/README.md?plain=1#L153 and adjust to see if the problem goes away?
This worked and made the issue go away
What's wrong?
Running grafana agent on an EC2, we're monitoring quite a few log files and keep getting the following error : level=error component=logs logs_config=default msg="error adding directory to watcher" error="no space left on device"
df -hi shows that all discs have plenty of space and inodes
(venv) [ec2-user@REDACTED 2024-03-04_10:33:27 UTC ~]$ df -hi Filesystem Inodes IUsed IFree IUse% Mounted on devtmpfs 7.8M 320 7.8M 1% /dev tmpfs 7.8M 2 7.8M 1% /dev/shm tmpfs 7.8M 708 7.8M 1% /run tmpfs 7.8M 16 7.8M 1% /sys/fs/cgroup /dev/nvme0n1p1 40M 311K 40M 1% / 127.0.0.1:/ 0 0 0 - /efs tmpfs 7.8M 10 7.8M 1% /run/user/1000 You have new mail in /var/spool/mail/ec2-user
(venv) [ec2-user@REDACTED 2024-03-04_10:38:48 UTC ~]$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 32G 0 32G 0% /dev tmpfs 32G 0 32G 0% /dev/shm tmpfs 32G 1.6M 32G 1% /run tmpfs 32G 0 32G 0% /sys/fs/cgroup /dev/nvme0n1p1 80G 28G 53G 35% / 127.0.0.1:/ 8.0E 19T 8.0E 1% /efs tmpfs 6.3G 0 6.3G 0% /run/user/1000 You have new mail in /var/spool/mail/ec2-user
Steps to reproduce
this happens frequently whe
System information
Amazon linux 2
Software version
agent, version v0.36.0
Configuration
Logs