[GH-ISSUE #231] The file which is mounted (using NFS )on a server cannot be monitored. #187

Closed
opened 2026-02-26 05:31:33 +03:00 by kerem · 1 comment
Owner

Originally created by @harlanc on GitHub (Apr 9, 2020).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/231

I mounted a folder A from machine AA to folder B on machine BB using NFS , and I launched a log.io-file-input client on machine BB after the log file path is configured correctly.

~/.log.io/inputs/file.json

But the log content changes cannot be displayed on the browser.

BTW, the common log file on machine BB can be monitored successfully.

Originally created by @harlanc on GitHub (Apr 9, 2020). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/231 I mounted a folder A from machine AA to folder B on machine BB using NFS , and I launched a log.io-file-input client on machine BB after the log file path is configured correctly. ~/.log.io/inputs/file.json But the log content changes cannot be displayed on the browser. BTW, the common log file on machine BB can be monitored successfully.
kerem closed this issue 2026-02-26 05:31:33 +03:00
Author
Owner

@msmathers commented on GitHub (Apr 9, 2020):

log.io uses node's fs.watch() to watch for file changes, which is known to not support NFS: https://nodejs.org/docs/latest/api/fs.html#fs_availability

fs.watchFile() could work, however it uses stat polling which is less efficient than inotify and uses more system resources.

Unfortunately we don't plan to support anything other than fs.watch() in log.io-file-input, however you're welcome to write a custom input that hits our TCP API. Feel free to use the file input code as an example.

<!-- gh-comment-id:611767026 --> @msmathers commented on GitHub (Apr 9, 2020): log.io uses node's `fs.watch()` to watch for file changes, which is known to not support NFS: https://nodejs.org/docs/latest/api/fs.html#fs_availability `fs.watchFile()` could work, however it uses stat polling which is less efficient than `inotify` and uses more system resources. Unfortunately we don't plan to support anything other than `fs.watch()` in `log.io-file-input`, however you're welcome to write a custom input that hits our TCP API. Feel free to use the file input code as an example.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#187
No description provided.