-
Notifications
You must be signed in to change notification settings - Fork 707
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
Failed to install 0.25.0 on windows container .Net framework runtime #1386
Comments
How to reproduce it locally: Dockerfile
Build & run:
|
Tested installing Zabbix Agent on the same docker image with MSI. It failed to create the Firewall rule with 1603 error, but Zabbix msi has the option to skip Firewall rule creation, so with that option set it installed successfully. Dockerfile:
|
I removed the
And it's still failing (install1.log attached). |
What I found in the EventLog regarding its service startup:
|
#946 seems to be the same issue |
Hi, the msi package is not designed for in-container environment. Please use the standalone binary or use pre-build docker images. |
Hi @jkroepke I can successfully install any MSI package in the container, but it doesn't matter if binary can't be started with Windows service inside of that container. |
The installation via MSI package is successful in general, however it seems that windows service manages has issues inside the container
As result, the MSI package marks this as installation error and does a rollback. You could try to increase the timeout: https://support.site24x7.com/portal/en/kb/articles/timeout-error-or-unable-to-start-a-service-on-a-windows-server Or run the standalone binary to avoid wired behaviors. |
Yeah, I know that. The timeout is fine, and increasing it won't help as the Golang code works wrong in a way of understanding that was started by the Windows service inside of the container. As I mentioned before, the issue seems to be the same as in #946 I'm running .Net app in a Windows container on AWS ECS fargate, and I can't run windows_exporter other way than as a Windows service inside of that container. |
#946 mention golang/go#56335 Once its resolved, it should work for you. |
Seems like the same issue was addressed in this opentelemetry-collector PR. |
They invoke svc.Run as part of the main routine which introduce another issues on Windows Hosts See also:
There are already some issue with Windows Service, if windows_exporter runs as native server under a host and some workaround are required to avoid the timeouts. Feel free to fork and patch windows_exporter OR take care of docker best-practices and not introduce an additional service managed inside containers. |
If only I was a Golang developer :) I'm aware of docker best practices, but still, there are also good practices like running only stateless services inside of the docker containers, which is commonly violated nowadays :) My use case is kind of like that. Anyway, thanks for your time. |
Using windows container image
mcr.microsoft.com/dotnet/framework/runtime:4.8
in docker on Windows Server 2019 Datacenter amd64 AWS EC2 instance.Installing the latest
0.25.0
release with the next commands:The EventLog shows this:
whoami
command reportsuser manager\containeradministrator
.Installation debug log is attached.
install.log
The text was updated successfully, but these errors were encountered: