Errors Installing SaltStack on NetBSD 7.1.1
-
The pkg_add command works just fine, but when starting the service, this error occurs:
# /etc/rc.d/salt_minion start Starting salt_minion. ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/pkg/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/pkg/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/usr/pkg/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/pkg/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/usr/pkg/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/pkg/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/usr/pkg/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/pkg/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/usr/pkg/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/pkg/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/usr/pkg/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/pkg/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/usr/pkg/bin/salt-minion", line 7, in <module> from salt.utils import is_windows File "/usr/pkg/lib/python2.7/site-packages/salt/utils/__init__.py", line 64, in <module> import Crypto.Random File "/usr/pkg/lib/python2.7/site-packages/Crypto/Random/__init__.py", line 29, in <module> from Crypto.Random import _UserFriendlyRNG File "/usr/pkg/lib/python2.7/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 38, in <module> from Crypto.Random.Fortuna import FortunaAccumulator File "/usr/pkg/lib/python2.7/site-packages/Crypto/Random/Fortuna/FortunaAccumulator.py", line 37, in <module> import SHAd256 File "/usr/pkg/lib/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.py", line 41, in <module> from Crypto.Hash import SHA256 File "/usr/pkg/lib/python2.7/site-packages/Crypto/Hash/SHA256.py", line 46, in <module> hashFactory = hashlib.sha256 AttributeError: 'module' object has no attribute 'sha256'
-
I wish I was a technological freak of nature with overall experience and facts so I could rapidly help you out and tell you exactly what this issue requires to be resolved.
Sadly, I have no valid input. But I'll continue to follow this thread so I can learn more about this issue.
-
I have a theory but can’t test until tomorrow.
-
What is the OpenSSL version on this?
-
Got it, it was a packaging versioning issue. I had accidentally set the verison to 8.0 when it was 7.1.1. I got a clean install and set the package version correctly and now it works fine.
If you want to know how to set the version accurately automatically, try this that I just made...
export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/`uname -m`/`uname -r`/All/"
-
@scottalanmiller said in Errors Installing SaltStack on NetBSD 7.1.1:
Got it, it was a packaging versioning issue. I had accidentally set the verison to 8.0 when it was 7.1.1. I got a clean install and set the package version correctly and now it works fine.
If you want to know how to set the version accurately automatically, try this that I just made...
export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/`uname -m`/`uname -r`/All/"
That's exactly what I was thinking but didn't say anything. I wanted to see what you'd do.