-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPC Publisher 2.9.8 can't startup when in docker container when cgroup v2 is used #2261
Comments
Looks like workaround is to fallback to 8.4.0. That should be easy until it is fixed in an upcoming release. |
I reverted the package back, there is a preview build of 2.9.9 with 8.4.0 that has tag 2.9.9-preview2 (mcr.microsoft.com/iotedge/opc-publisher:2.9.9-preview2). @morti12, it would be fantastic if you could try this (ASAP) and let me know if this fixes your issue? I would like to release 2.9.9 mid this week and this would help decide which build to go with. Otherwise (or there are CVE's introduced by the older version) we will go with 8.6.0 for the 2.9.9 release. |
Moving to 2.9.10 but waiting for validation on 2.9.9-preview2 that the issue is worked around. |
We tried it with the
We checked the version Would it be an option to just disable the ResourceMonitoring over an command line option until they fix this issue in the ResourceMonitor? |
That is a bummer. If you are ok with a switch, I will add this to 2.9.9. |
This would be really nice 👍 Thanks! I think the fix in the |
@morti12, could you try out the "2.9.9-preview3" tag of opc-publisher container image, running it with the I will track this again under 2.9.10 and monitor the linked issue. |
@marcschier, we checked it and it works. The OPC Publisher |
2.9.9 image has been released. |
I have just tried to upgrade as well to
Do I need to do something else to get this release running? |
In the preview |
Still waiting for official build of the nuget, no updates therefore moving to 2.9.12. |
This appears went into 8.8.0 nuget (release/8.8 branch, but there is no tag yet in this repo nor release note). 2.9.11 uses 8.8.0 nuget so will close this in 2.9.11 now. |
Describe the bug
On Linux machines where the cgroup v2 is used an exception gets thrown when the
/sys/fs/cgroup/memory.max
contains the default valuemax
This blocks the startup of the OPC Publisher.
We also tried to specify the max memory over the argument
--memory=2g
for the docker container. This temporally fixes the issue for the memory parsing, but then thecpu.max
throws an error.To Reproduce
mcr.microsoft.com/iotedge/opc-publisher:2.9.8
.Expected behavior
ResourceMonitoring
the OPC Publisher still can startup?Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Docker
Docker version 26.1.4-1
Additional context
Between OPC publisher versino 2.9.6 and 2.9.8 new metrics (
services.AddResourceMonitoring();
) were added which is actually nice 😊. This was done over a library calledMicrosoft.Extensions.Diagnostics.ResourceMonitoring
. It seems that there is a bug in version8.6.0
which can't handle the default value calledmax
.I created an issue for the bug in the library: dotnet/extensions#5241
The text was updated successfully, but these errors were encountered: