You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tailing a file that gets regularly written to, like Apache log files, can crash with message The process cannot access the file because another process has locked a portion of the file.. This happened on a Windows 10 (version 1903) installation.
Please also see influxdata/telegraf#6539 where I provide more details and steps that I used for reproducing including a minimal Go program that uses just the tail module. Although for reproducing I used github.com/influxdata/tail in that program, this probably also applies to github.com/hpcloud/tail, given that influxdata/tail and hpcloud/tail have minimal differences and there appear to be no differences in the relevant tailFileSync function.
The text was updated successfully, but these errors were encountered:
roelandvh
changed the title
tail on file that is regularly written can fail due to file being locked (on Windows)
tail on file that is regularly written to can fail due to file being locked (on Windows)
Oct 18, 2019
Tailing a file that gets regularly written to, like Apache log files, can crash with message
The process cannot access the file because another process has locked a portion of the file.
. This happened on a Windows 10 (version 1903) installation.Please also see influxdata/telegraf#6539 where I provide more details and steps that I used for reproducing including a minimal Go program that uses just the tail module. Although for reproducing I used
github.com/influxdata/tail
in that program, this probably also applies togithub.com/hpcloud/tail
, given thatinfluxdata/tail
andhpcloud/tail
have minimal differences and there appear to be no differences in the relevanttailFileSync
function.The text was updated successfully, but these errors were encountered: