Salt-minion 3005.5

34 views
Skip to first unread message

Румен Раданов

unread,
Mar 18, 2025, 9:51:01 AMMar 18
to Salt-users
Hello, 

I have installed Salt-minion version 3005.5 on one Server 2019, but when I start the service automatically move to state Paused.

I tried to re-install the Minion, to change default installation folder, but without any results. I have a ping and telnet to Master.

Can someone to advise me what to check? After the starting of the service immediately change to Paused state and can't connect to Master to see any logs.
When try to resume the error is
Windows could not resume the salt-minion service on Local  Computer.
The service did not return an error. This could be an internal Windows error or an Internal service error.
If this problem persist, contact your system administrator.

In the Event Log on Application I see this

The description for Event ID 1034 from source nssm cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

salt-minion
1500
60000 

Румен Раданов

unread,
Mar 18, 2025, 10:04:38 AMMar 18
to Salt-users
Hello, 

I adding here information that I found in the logs

2025-03-18 14:59:15,387 [salt._logging.impl:1069][ERROR   ][1232] An un-handled exception was caught by Salt's global exception handler:
AttributeError: winmgmts:.Win32_ComputerSystem
Traceback (most recent call last):
  File "wmi.py", line 1209, in __getattr__
  File "wmi.py", line 1220, in _cached_classes
  File "<COMObject winmgmts:>", line 2, in Get
  File "win32com\client\dynamic.py", line 368, in _ApplyTypes_
    result = self._oleobj_.InvokeTypes(
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'SWbemServicesEx', 'Not found ', None, 0, -2147217406), None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "salt", line 118, in <module>
  File "salt", line 113, in redirect
  File "salt\scripts.py", line 186, in salt_minion
    minion.start()
  File "salt\cli\daemons.py", line 325, in start
    self._real_start()
  File "salt\cli\daemons.py", line 337, in _real_start
    self.minion.tune_in()
  File "salt\minion.py", line 1179, in tune_in
    self._spawn_minions()
  File "salt\minion.py", line 1109, in _spawn_minions
    minion = self._create_minion_object(
  File "salt\minion.py", line 1074, in _create_minion_object
    return Minion(
  File "salt\minion.py", line 1271, in __init__
    self.opts["grains"] = salt.loader.grains(opts)
  File "salt\loader\__init__.py", line 1116, in grains
    ret = funcs[key]()
  File "salt\loader\lazy.py", line 149, in __call__
    return self.loader.run(run_func, *args, **kwargs)
  File "salt\loader\lazy.py", line 1228, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "salt\loader\lazy.py", line 1243, in _run_as
    return _func_or_method(*args, **kwargs)
  File "C:\Program Files\Salt Project\Salt\bin\salt\grains\core.py", line 1840, in os_data
    grains.update(_windows_platform_data())
  File "C:\Program Files\Salt Project\Salt\bin\salt\grains\core.py", line 1421, in _windows_platform_data
    systeminfo = wmi_c.Win32_ComputerSystem()[0]
  File "wmi.py", line 1211, in __getattr__
  File "win32com\client\dynamic.py", line 639, in __getattr__
    raise AttributeError("%s.%s" % (self._username_, attr))
AttributeError: winmgmts:.Win32_ComputerSystem

Shane Lee

unread,
Apr 16, 2025, 1:04:35 PMApr 16
to Salt-users
I don't know what version of Windows you're on, but more recent versions of Windows are coming with WMIC disabled. Some of our grains use WMI to get grain information. I know this is the case with WIndows Server 2025. Maybe recent updates to 2022 and 2019 have also disabled WMI. The following command will re-enable WMIC

```
DISM /Online /Add-Capability /CapabilityName:WMIC~~~~
```
Reply all
Reply to author
Forward
0 new messages