You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2025-05-16 11:52:31,109 [salt.minion :1184][CRITICAL][7540] Unexpected error while connecting to sm-pkf.[REDACTED]
Traceback (most recent call last):
File "/opt/salt/lib/python3.10/site-packages/salt/minion.py", line 1154, in _connect_minion
yield minion.connect_master(failed=failed)
File "/opt/salt/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line 1056, in run
value = future.result()
File "/opt/salt/lib/python3.10/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/opt/salt/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line 1064, in run
yielded = self.gen.throw(*exc_info)
File "/opt/salt/lib/python3.10/site-packages/salt/minion.py", line 1395, in connect_master
master, self.pub_channel = yield self.eval_master(
File "/opt/salt/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line 1056, in run
value = future.result()
File "/opt/salt/lib/python3.10/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/opt/salt/lib/python3.10/site-packages/salt/ext/tornado/gen.py", line 309, in wrapper
yielded = next(result)
File "/opt/salt/lib/python3.10/site-packages/salt/minion.py", line 821, in eval_master
pub_channel = salt.channel.client.AsyncPubChannel.factory(
File "/opt/salt/lib/python3.10/site-packages/salt/channel/client.py", line 392, in factory
auth = salt.crypt.AsyncAuth(opts, io_loop=io_loop)
File "/opt/salt/lib/python3.10/site-packages/salt/crypt.py", line 601, in __new__
auth.__singleton_init__(opts, io_loop=io_loop)
File "/opt/salt/lib/python3.10/site-packages/salt/crypt.py", line 637, in __singleton_init__
self.get_keys()
File "/opt/salt/lib/python3.10/site-packages/salt/crypt.py", line 1003, in get_keys
gen_keys(
File "/opt/salt/lib/python3.10/site-packages/salt/crypt.py", line 147, in gen_keys
gen = rsa.generate_private_key(e, keysize)
NameError: name 'rsa' is not defined
stopping the service with
sudo launchctl stop com.saltstack.salt.minion
does not stop the flood of logs. I need to actively unload the service to avoid the disk being filled:
Cryptography is already installed in onedir, but now I wonder if the daemon is started with the wrong environment. I am no mac expert unfortunately and I have no idea how the environment is brought up in a launchctl unit.
# salt-pip install cryptography
WARNING: The directory '/Users/macdrift/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.Requirement already satisfied: cryptography in ./lib/python3.10/site-packages (42.0.5)Requirement already satisfied: cffi>=1.12 in ./lib/python3.10/site-packages (from cryptography) (1.14.6)Requirement already satisfied: pycparser in ./lib/python3.10/site-packages (from cffi>=1.12->cryptography) (2.21)WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
This happened already in two machines I installed.
The text was updated successfully, but these errors were encountered:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description
The salt minion keeps looping with "NameError: name 'rsa' is not defined" on MacOSX 15.x arm64
Setup
Newly installed MacOSX 15.5 on a MacbookPro M4
Freshly installed salt-minion and configured with proper minion name and salt master parameters
one dir packaging from
https://packages.broadcom.com/artifactory/saltproject-generic/macos/3006.10/salt-3006.10-py3-arm64.pkg
Steps to Reproduce the behavior
Expected behavior
Salt minion should contact master with no problems (worked with previous versions up to 3006.4 to my memory)
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
/var/log/salt/minion logs keep filling/looping with:
stopping the service with
does not stop the flood of logs. I need to actively unload the service to avoid the disk being filled:
Cryptography is already installed in onedir, but now I wonder if the daemon is started with the wrong environment. I am no mac expert unfortunately and I have no idea how the environment is brought up in a launchctl unit.
This happened already in two machines I installed.
The text was updated successfully, but these errors were encountered: