microsoft / windows-container-tools

Collection of tools to improve the Windows Containers experience
MIT License
236 stars 66 forks source link

Getting ERROR: Error in log file monitor. Failed to query file information [BUG] #125

Open sailenderkumar16 opened 1 year ago

sailenderkumar16 commented 1 year ago

[LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \?\c:\xxx\test.txt. Error: 87

Getting above error while log monitor trying to read the file from c drive location in windows pod.

iankingori commented 1 year ago

Hey @sailenderkumar16,

Please share additional info like what version of log monitor is this, your log monitor config and does this happen and no logs stream through or do you get some logs.

I've seen the error before when there's a read/write lock on the file such as when logs are rotating but it resolves and Log monitor is able to read the file.

sailenderkumar16 commented 1 year ago

Hi @iankingori, Please find below requested details. Log monitor version: 1.2.1 Logmonitor.config file: PFA LogMonitorConfig_git.zip

Log monitor is able to get the logs and read it.But still it's getting the below error.

"[2023-03-03T04:24:02.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \?\c:\test\appserverlogs\TestLog.txt. Error: 87"

sailenderkumar16 commented 1 year ago

Hi @iankingori , please let me know if you have any update on this.

iankingori commented 1 year ago

@sailenderkumar16 we are investigating this and shall revert when we have a fix.

I cannot get this specific error to repro consistently. Any additional info you can provide to assist?

sailenderkumar16 commented 1 year ago

hi @iankingori . Could you please elaborate what additional info you are looking for?