Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Agent log filling up with warnings due to unreadable directory #4632

drdt ·

We recently noticed the QuickBuild agent logs filling up with the attached warnings. I suspect that these started happening after we upgraded to QB v14 last year, but I only have logs back to September. The most recent update was in November, from v14.0.9 to v14.0.23, and it was happening before then.

The referenced folder is owned by the root user for use by the docker service, and is intentionally protected against any other access. The QuickBuild agent service necessarily runs as a non-privileged user. I suspect these come from the alert and grid measurement plugins.

How can I suppress these warnings? They are basically 99.9% of my logs at this point, making them largely useless.

2024-09-14 14:54:30,052 [MeasurementPollingTask] WARN oshi.software.os.linux.LinuxFileSystem - Failed to get information to use statvfs. path: /home/DOCKER/exec-root/netns/d067a8fd592a, Error code: 13
2024-09-14 14:59:30,052 [MeasurementPollingTask] WARN oshi.software.os.linux.LinuxFileSystem - Failed to get information to use statvfs. path: /home/DOCKER/exec-root/netns/e543460926a9, Error code: 13
2024-09-14 15:04:30,053 [MeasurementPollingTask] WARN oshi.software.os.linux.LinuxFileSystem - Failed to get information to use statvfs. path: /home/DOCKER/exec-root/netns/d067a8fd592a, Error code: 13
2024-09-14 15:09:30,051 [MeasurementPollingTask] WARN oshi.software.os.linux.LinuxFileSystem - Failed to get information to use statvfs. path: /home/DOCKER/exec-root/netns/e543460926a9, Error code: 13

They appear every five minutes, in groups of 10-15 in quick succession (repetition omitted for brevity).

  • replies 3
  • views 70
  • stars 0
steveluo ADMIN ·

@drdt you may add below line to file log4j2.xml in your agent conf directory:

<Logger name="oshi.software.os.linux.LinuxFileSystem" level="ERROR" />
drdt ·

Thanks. I wonder if I set it to "WARN" some time ago to debug an issue. Or, is that the default?

steveluo ADMIN ·

@drdt

By default, the log level of oshi.software.os.linux.LinuxFileSystem should be the same as root level, that is WARN.