salt: [BUG] Windows 2019 - salt-minion 3007 cannot start - service in Paused state
Description Installed salt-minion 3007 on Widows 2019. salt-minion service is in Paused state. 3006.6 works fine on the same server.
Expected behavior Service is running normally.
Error
salt-minion -l debug
Traceback (most recent call last):
File "C:\Program Files\Salt Project\Salt\Lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Salt Project\Salt\Lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Program Files\Salt Project\Salt\salt-minion.exe\__main__.py", line 7, in <module>
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\scripts.py", line 174, in salt_minion
import salt.cli.daemons
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\cli\daemons.py", line 12, in <module>
from salt.utils import migrations
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\migrations.py", line 8, in <module>
import salt.syspaths as syspaths
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\syspaths.py", line 129, in <module>
ROOT_DIR = _get_windows_root_dir()
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\syspaths.py", line 100, in _get_windows_root_dir
root_dir = salt.utils.win_reg.read_value(
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\win_reg.py", line 536, in read_value
registry = Registry()
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\win_reg.py", line 102, in __init__
"HKEY_CURRENT_CONFIG": win32con.HKEY_CURRENT_CONFIG,
NameError: name 'win32con' is not defined
[ERROR ] An un-handled exception was caught by Salt's global exception handler:
NameError: name 'win32con' is not defined
Traceback (most recent call last):
File "C:\Program Files\Salt Project\Salt\Lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Salt Project\Salt\Lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Program Files\Salt Project\Salt\salt-minion.exe\__main__.py", line 7, in <module>
sys.exit(salt_minion())
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\scripts.py", line 174, in salt_minion
import salt.cli.daemons
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\cli\daemons.py", line 12, in <module>
from salt.utils import migrations
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\migrations.py", line 8, in <module>
import salt.syspaths as syspaths
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\syspaths.py", line 129, in <module>
ROOT_DIR = _get_windows_root_dir()
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\syspaths.py", line 100, in _get_windows_root_dir
root_dir = salt.utils.win_reg.read_value(
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\win_reg.py", line 536, in read_value
registry = Registry()
File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\win_reg.py", line 102, in __init__
"HKEY_CURRENT_CONFIG": win32con.HKEY_CURRENT_CONFIG,
NameError: name 'win32con' is not defined
**Versions Report**
Unable to provide as I get the above error.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (13 by maintainers)
Not only on 2019, it is the same on 2016 and 2022.
Oof. Anyone else pushing out VC Redist to fix this, be careful. The /norestart option is apparently ignored. Just rebooted a few thousand Windows boxen…
@twangboy Thanks for pointing me in the right direction. The new bug report is available as #66603.
Looks like one of the dependencies now requires a newer version of VCredist. Installing the latest vcredist seems to fix the issue: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist You need the VCRedist 2017-2022 I’ll get that added to the installer.