-
Notifications
You must be signed in to change notification settings - Fork 710
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
MSI Installer fails to install & start service #1838
Comments
Hi,
|
Hi,
|
Does it ever worked on older versions? |
No idea, I've never used windows_exporter before. But I'll check with some older versions and let you know. |
I've tried multiple versions up till 0.23.1 but no luck. |
It seems that the msi installer has issues to create the services.
And if you look for this error, there are various google results for the error code. It seems something windows specific. The error That what I found:
But windows_exporter is using the default system user here. |
Are you are using a normal system or domain managed? |
Yeah, I'm a local admin on this machine and it doesn't have any policies that deny service creation. It's a domain managed machine, though no policies prevent service creation. |
It seems that Windows 11 has a new features called "Smart App Control" which does not like unsigned binaries (like windows_exporter). Could you check, if Smart App Control is enabled on your Windows 11? Since I'm still on Windows 10, I don't have much info about Smart App Control. I see, that windows_exporter is running on your cmd terminal, but without admin permission. Thats a difference between the cmd.exe and start as a service. |
I have Smart App Control turned off already. |
Sorry, but everything looks fine from my point of view. I have no more idea yet. |
I'm having the same issue on a Windows Server 2025 machine. On Windows Server 2022 everything works fine but on 2025 I see in the logs that the service cannot be started. I tried multiple versions of windows_exporter but I get the same behavior. Also tried running the exporter directly from an administrative CMD and it is working. Seems like something in the installer may not be compatible with Windows Server 2025 and Windows 11 24H2. |
Current Behavior
Attepmting to run the latest MSI installer (0.30.0-amd64) the installer fails to start the service:
The installer requested admin permissions which I approved.
The service shows in services.msc but also won't start:
Theres no useful logs in Event Viewer and I don't see a logs file or folder anywhere.
Running the installed windows_exporter.exe with the same command-line as the Windows service works perfectly fine:
Metrics can be accessed at http://localhost:9182/metrics without issue.
Expected Behavior
Installer should succeed in installing and starting the Windows Service.
Steps To Reproduce
Environment
windows_exporter logs
Anything else?
N/A
The text was updated successfully, but these errors were encountered: