Comments (16)
Many thanks for this fix @bobsira. Could you let me know when an official release will be available containing this fix? I have verified the fix using the .exe that you attached to #159 but as we download the .exe automatically as part of our docker build this is not really convenient for us.
from windows-container-tools.
Thanks for validating the fix @heathdavies-eaton, I'm pushing tags for v2.0.2 with this fix and should release later today
from windows-container-tools.
mcr.microsoft.com/dotnet/framework/runtime:4.8
I can confirm the errors originally reported do NOT occur with this image.
from windows-container-tools.
@heathdavies-eaton , @joshmahar-ts @wasPrime thanks for bringing this up. I'm able to repro this issue. We will investigate this and come back with a way forward!
from windows-container-tools.
@bobsira Due to company's deployment policy, our inner environment is limited on ltcs2019. So we are unable to switch to ltcs2022. Looking forward to fixing this issue on ltcs2019. Thanks!
from windows-container-tools.
@bobsira I have the same issue as @wasPrime. Our docker hosts are ltcs2019.
from windows-container-tools.
Hello, I am unable to repro this bug
Dockerfile
FROM mcr.microsoft.com/dotnet/framework/runtime:4.8
WORKDIR /LogMonitor
COPY LogMonitorConfig.json .
COPY LogMonitor.exe .
ENTRYPOINT C:\LogMonitor\LogMonitor.exe
LogMonitorConfig.json
{
"LogConfig": {
"sources": [
{
"type": "EventLog",
"startAtOldestRecord": true,
"eventFormatMultiLine": false,
"channels": [
{
"name": "system",
"level": "Information"
},
{
"name": "application",
"level": "Error"
}
]
},
{
"type": "File",
"directory": "c:\\inetpub\\logs",
"filter": "*.log",
"includeSubdirectories": true
},
{
"type": "ETW",
"eventFormatMultiLine": false,
"providers": [
{
"providerName": "IIS: WWW Server",
"providerGuid": "3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83",
"level": "Information"
},
{
"providerName": "Microsoft-Windows-IIS-Logging",
"providerGuid": "7E8AD27F-B271-4EA2-A783-A47BDE29143B",
"level": "Information"
}
]
}
]
}
}
Sample logs
PS C:\Users\bosira> docker logs c4acd1c2c64e
[2023-08-07T14:33:09.000Z][LOGMONITOR] ERROR: Failed to open log directory handle. Directory: \\?\c:\inetpub\logs Error=0
{"Source":"Process","LogEntry":{"Logline":"Pinging c4acd1c2c64e [::1] with 32 bytes of data:"},"SchemaVersion":"1.0.0"}
{"Source":"Process","LogEntry":{"Logline":"Reply from ::1: time<1ms "},"SchemaVersion":"1.0.0"}
{"Source": "EventLog","LogEntry": {"Time": "2023-07-05T16:28:21.000Z","Channel": "Application","Level": "Error","EventId": 8198,"Message": "License Activation (slui.exe) failed with the following error code:\r\nhr=0x80040154\r\nCommand-line arguments:\r\nRuleId=31e71c49-8da7-4a2f-ad92-45d98a1c79ba;Action=AutoActivate;AppId=55c92734-d682-4d71-983e-d6ec3f16059f;SkuId=d839f159-1128-480b-94b6-77fa9943a16a;NotificationInterval=1440;Trigger=UserLogon;SessionId=1"}}
{"Source": "EventLog","LogEntry": {"Time": "2023-07-05T23:26:40.000Z","Channel": "System","Level": "Information","EventId": 12,"Message": "The operating system started at system time 2023-07-05T23:26:40.497675700Z."}}
{"Source": "EventLog","LogEntry": {"Time": "2023-07-05T16:27:08.000Z","Channel": "System","Level": "Information","EventId": 6009,"Message": "Microsoft (R) Windows (R) 10.00. 14393 Multiprocessor Free."}}
{"Source": "EventLog","LogEntry": {"Time": "2023-07-05T16:27:08.000Z","Channel": "System","Level": "Information","EventId": 6005,"Message": "The Event log service was started."}}
I've been watching the logs and I can not see the error you are facing. Is there anything I am missing on my end?
from windows-container-tools.
Hello @bobsira, I also am unable to reproduce the bug with the dockerfile and config file you used, however I have the exact same error as @joshmahar-ts when I use the following base image:
mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
Note: I am using v2.0 of LogMonitor.exe
downloaded from https://github.com/microsoft/windows-container-tools/releases/download/v2.0/LogMonitor.exe.
from windows-container-tools.
Thank you both for updates/investigation on this issue. I misspoke in my original report in that my base image was actually:
mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019
I will try with mcr.microsoft.com/dotnet/framework/runtime:4.8
instead but this does suggest to a potential issue with servercore or ltsc2019 images.
from windows-container-tools.
Hello @bobsira, I also am unable to reproduce the bug with the dockerfile and config file you used, however I have the exact same error as @joshmahar-ts when I use the following base image:
mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
Note: I am using v2.0 of
LogMonitor.exe
downloaded from https://github.com/microsoft/windows-container-tools/releases/download/v2.0/LogMonitor.exe.
I also have same issue with the same environment:
- base image:
mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
- v2.0 of
LogMonitor.exe
from windows-container-tools.
@heathdavies-eaton @joshmahar-ts and @wasPrime let me investigate this and get back to you folks! Thanks!
from windows-container-tools.
Just to update this thread, I've noticed that this problem does not appear in mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2022
or mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016
image. We are trying to narrow down why this issue occurs in ltsc2019. Feel free to update to 2022 if this does not result into breaks on your end.
Opening this with the windows containers team to help with investigation and closing it here.
from windows-container-tools.
@heathdavies-eaton , @joshmahar-ts @wasPrime is the ltcs2022 working for you?
from windows-container-tools.
PR to unblock this issue:
from windows-container-tools.
This issue has been fixed with PR #159. Download the latest version of Log Monitor with the fix to unblock.
from windows-container-tools.
Hiya, please find the latest release with this change here: https://github.com/microsoft/windows-container-tools/releases/tag/v2.0.2
Thanks everyone!
from windows-container-tools.
Related Issues (20)
- Failed to format ETW event property. Unexpected length of 0 for intype 300 and outtype 0 HOT 6
- [BUG] If level is omitted, the tool does not display all events in the named channel, spanning various levels HOT 8
- [BUG] process monitor does not support multi-byte characters
- Getting ERROR: Error in log file monitor. Failed to query file information [BUG] HOT 5
- [BUG] LogMonitor requires Path to folder to exist before it is started for file logging.
- [BUG] 30 second delay HOT 2
- [BUG] Debug Assertion Failed! for debug build
- How to use Logmon when running as ContainerUser HOT 3
- [BUG] LogMonitor.exe version reads 2.0.0.LM_BUILDMINORVERSION instead of 2.0.0 HOT 1
- [BUG] [LOGMONITOR] WARNING: Failed to render event log event. The event will not be processed. Error: 15033. HOT 3
- What is timeline for release 2.0.1 or 2.1 ? HOT 3
- Format Warning/Error Messages
- [BUG] ][LOGMONITOR] ERROR: Failed to query next event. Error: 21. HOT 13
- Tool List - coming soon HOT 1
- Filter file logs HOT 1
- STDOUT propagation is broken after termination signal
- [BUG] Missing first lines with File Monitor and non-existing log directory HOT 1
- [BUG] Process monitor adds XML when format is custom
- [Discussion] Certificate Tool HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-container-tools.