Code Monkey home page Code Monkey logo

Comments (5)

mloskot avatar mloskot commented on May 16, 2024 1

@iankingori Thanks for the confirmation. In my setup, I always monitor some C:\a\b\c\logs or D:\a\b\c\logs and not C:\ - the ...\logs are usually mounted from persistent volume in my case.

from windows-container-tools.

mrPsycox avatar mrPsycox commented on May 16, 2024

Anyone have the solution?

from windows-container-tools.

aneez004 avatar aneez004 commented on May 16, 2024

I am facing the same issue. Anybody has got solution?

from windows-container-tools.

mloskot avatar mloskot commented on May 16, 2024

TL;TR: The error seems benign, annoying though.

Regardless where I put my logs, I'm always getting this error at container startup, despite the fact the files exist"

[2022-09-21T20:15:14.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\MyServer-1-000000.log. Error: 87
[2022-09-21T20:15:14.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\MyServer-2-000000.log. Error: 87
[2022-09-21T20:15:15.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\MyServer-3-000000.log. Error: 87
[2022-09-21T20:15:15.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\MyServer-4-000000.log. Error: 87
[2022-09-21T20:15:15.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\MyServer-5-000000.log. Error: 87
[2022-09-21T20:15:15.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\version.log. Error: 87

but I have learned to ignore this error as then it is followed by the stream of logs as expected:

Log File: MyServer-1-000000.log
616	2022-09-21T20:15:41.929Z	Information	Request	Begin	10.0.0.26	Guest	1047				1		GET	MyServer-1.json				
617	2022-09-21T20:15:42.416Z	Information	Request	End				492	478.185		1			MyServer-1.json	200	"OK"		"application/json"

Log File: MyServer-2-000000.log
618	2022-09-21T20:20:14.654Z	Information	Request	Begin	10.0.0.26	Guest	1041				2		GET	MyServer-2.json				
619	2022-09-21T20:20:14.654Z	Information	Request	End				492	0.483		2			MyServer-2.json	200	"OK"		"application/json"

If I go to container's shell (PowerShell) and add a log file into the monitored folder, then I also get the same error, again, followed by log content:

PS > echo Test > D:\MyServer\Logs\test.log

and the log stream goes:

[2022-09-21T20:22:31.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file information. File: \\?\D:\MyServer\Logs\test.log. Error: 87
[2022-09-21T20:22:31.000Z][LOGMONITOR] ERROR: Error in log file monitor. Failed to query file ID. File: \\?\D:\MyServer\Logs\test.log. Error: 87

Log File: test.log
Test

Possibly, I have not checked the source code myself yet, the LogMonitor.exe expects exclusive (initial) access to .log files while service process also keeps its hands on them.

from windows-container-tools.

iankingori avatar iankingori commented on May 16, 2024

@mloskot it is benign in most cases. I see it a lot when log rotation is happening. It however does not monitor any file placed at the root directory of C:/ drive and no log content will follow the error.

from windows-container-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.