openeuler22.03系统salt-minion启动报“Invalid version: ‘cpython‘“错的问题处理

news2024/11/16 15:33:45

某日,检查发现一台openeuler22.03 SP1系统的服务器上之前正常运行的saltstack客户端minion未运行,查看服务状态,报"Invalid version: 'cpython'"错,无法正常运行,本文记录问题处理过程。

一、检查salt-minion服务状态:

 详细报错文本如下

[root@localhost ~]# systemctl status salt-minion
× salt-minion.service - The Salt Minion
     Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2023-06-25 15:26:07 CST; 1h 44min ago
       Docs: man:salt-minion(1)
             file:///usr/share/doc/salt/html/contents.html
             https://docs.saltproject.io/en/latest/contents.html
    Process: 9808 ExecStart=/usr/bin/salt-minion (code=exited, status=1/FAILURE)
   Main PID: 9808 (code=exited, status=1/FAILURE)

Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", lin>
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:     normalized_item = _coerce_version(item)
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", lin>
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:     version = Version(version)
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 1>
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:     raise InvalidVersion(f"Invalid version: '{version}'")
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
Jun 25 15:26:07 localhost.localdomain systemd[1]: salt-minion.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:26:07 localhost.localdomain systemd[1]: salt-minion.service: Failed with result 'exit-code'.
Jun 25 15:26:07 localhost.localdomain systemd[1]: Failed to start The Salt Minion.

查看状态,报"Invalid version: 'cpython'"错,服务无法正常运行。

[root@localhost ~]# journalctl -xeu salt-minion.service
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1475, in evaluate>
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     return marker.evaluate()
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     return _evaluate_markers(self._markers, current_environment)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     groups[-1].append(_eval_op(lhs_value, op, rhs_value))
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     return spec.contains(lhs, prereleases=True)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", li>
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     normalized_item = _coerce_version(item)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", li>
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     version = Version(version)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     raise InvalidVersion(f"Invalid version: '{version}'")
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
Jun 26 14:40:27 localhost.localdomain systemd[1]: salt-minion.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit salt-minion.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 26 14:40:27 localhost.localdomain systemd[1]: salt-minion.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit salt-minion.service has entered the 'failed' state with result 'exit-code'.
Jun 26 14:40:27 localhost.localdomain systemd[1]: Failed to start The Salt Minion.
░░ Subject: A start job for unit salt-minion.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit salt-minion.service has finished with a failure.
░░ 
░░ The job identifier is 6157 and the job result is failed.

二、排查过程

出错信息为cpython版本无效,判断因为cpython包版本发生变化所致。

1、对比异常主机和正常主机的python版本,均显示为Python3.9.9,没有问题:

# python3 --version
Python 3.9.9

2、用“pip list”指令对比两台主机上的python包,可以看到异常主机更新了setuptools和Jinja2等部分软件包。

异常系统正常系统对比
adagio0.2.4
antlr4-python3-runtime4.11.1
appdirs1.4.4
Babel2.9.1Babel2.9.1
bcrypt4.0.1
cffi1.15.1
chardet5.0.0chardet5.0.0
charset-normalizer2.0.12charset-normalizer2.0.12
configobj5.0.6configobj5.0.6
contourpy1.1.0
cryptography41.0.1
cycler0.11.0
datacompy0.10.1
dbus-python1.2.18dbus-python1.2.18
DBUtils1.3
decorator5.0.9decorator5.0.9
distro1.6.0distro1.6.0
fonttools4.40.0
fs2.4.16
fugue0.8.4
fugue-sql-antlr0.1.6
gpg1.16.0gpg1.16.0
greenlet2.0.2
idna3.2idna3.2
importlib-resources5.12.0
Jinja23.1.2Jinja23.0.3版本不一致
joblib1.2.0
kiwisolver1.4.4
libcomps0.1.18libcomps0.1.18
MarkupSafe2.1.3MarkupSafe2.0.1版本不一致
msgpack1.0.2msgpack1.0.2
nftables0.1nftables0.1
numpy1.24.0
ordered-set4.1.0
packaging23.1
pandas1.1.5
paramiko3.2.0
perf0.1perf0.1
Pillow9.5.0
pip21.3.1pip21.3.1
psutil5.9.0psutil5.9.0
psycopg2-binary2.9.6
pyarrow12.0.1
pycairo1.21.0pycairo1.21.0
pycparser2.21
pycryptodomex3.15.0pycryptodomex3.15.0
pycurl7.44.1pycurl7.44.1
PyGObject3.42.0PyGObject3.42.0
PyMySQL1.0.3
PyNaCl1.5.0
pyparsing3.1.0pyparsing3.0.6版本不一致
PySocks1.7.1PySocks1.7.1
python-dateutil2.8.2python-dateutil2.8.2
python-linux-procfs0.7.0python-linux-procfs0.7.0
pytz2023.3pytz2021.3版本不一致
pyudev0.24.0pyudev0.24.0
PyYAML6PyYAML6
pyzmq20.0.0pyzmq20.0.0
qpd0.4.3
requests2.26.0requests2.26.0
rpm4.17.0rpm4.17.0
salt3003.3salt3003.3
schedutils0.6schedutils0.6
scikit-learn1.2.2
scipy1.10.1
setuptools67.8.0setuptools59.4.0版本不一致
six1.16.0six1.16.0
SQLAlchemy1.4.39
sqlglot16.3.1
SSSDConfig2.6.1SSSDConfig2.6.1
threadpoolctl3.1.0
triad0.9.0
typing_extensions4.6.3
tzdata2023.3
urllib31.26.12urllib31.26.12
wheel0.40.0
xlwt1.3.0
zipp3.15.0

3、本主机现在的salt-minion为rpm包安装,尝试卸载并重装salt-minion

[root@localhost ~]# yum remove salt-minion
Dependencies resolved.
============================================================================================================================================================
 Package                                          Architecture                 Version                                    Repository                   Size
============================================================================================================================================================
Removing:
 salt-minion                                      noarch                       3003.3-1                                   @salt                        73 k
Removing unused dependencies:
 libsodium                                        x86_64                       1.0.18-1.oe2203sp1                         @OS                         360 k
 libtomcrypt                                      x86_64                       1.18.2-
...
Removed:
  libsodium-1.0.18-1.oe2203sp1.x86_64              libtomcrypt-1.18.2-5.oe2203sp1.x86_64                      libtommath-1.2.0-2.oe2203sp1.x86_64           
  libunwind-2:1.6.2-2.oe2203sp1.x86_64             openpgm-5.2.122-16.oe2203sp1.x86_64                        python3-babel-2.9.1-2.oe2203sp1.noarch        
  python3-chardet-5.0.0-1.oe2203sp1.noarch         python3-charset-normalizer-2.0.12-1.oe2203sp1.noarch       python3-idna-3.2-2.oe2203sp1.noarch           
  python3-jinja2-3.0.3-2.oe2203sp1.noarch          python3-markupsafe-2.0.1-3.oe2203sp1.x86_64                python3-msgpack-1.0.2-2.oe2203.x86_64         
  python3-psutil-5.9.0-1.oe2203sp1.x86_64          python3-pycryptodomex-3.15.0-1.oe2203sp1.x86_64            python3-pycurl-7.44.1-3.oe2203sp1.x86_64      
  python3-pysocks-1.7.1-2.oe2203sp1.noarch         python3-pytz-2021.3-2.oe2203sp1.noarch                     python3-pyyaml-6.0-2.oe2203sp1.x86_64         
  python3-requests-2.26.0-7.oe2203sp1.noarch       python3-urllib3-1.26.12-1.oe2203sp1.noarch                 python3-zmq-20.0.0-1.x86_64                   
  salt-3003.3-1.noarch                             salt-minion-3003.3-1.noarch                                zeromq-4.3.4-3.oe2203sp1.x86_64               

Complete!
(py399) [root@localhost py399]# yum install salt-minion
Last metadata expiration check: 4:40:25 ago on Mon 26 Jun 2023 11:45:58 AM CST.
Dependencies resolved.
============================================================================================================================================================
 Package                                          Architecture                 Version                                     Repository                  Size
============================================================================================================================================================
Installing:
 salt-minion                                      noarch                       3003.3-1                                    salt                        33 k
Installing dependencies:
 libsodium                                        x86_64                       1.0.18-1.oe2203sp1                          OS                         155 k
...
Installed:
  libsodium-1.0.18-1.oe2203sp1.x86_64              libtomcrypt-1.18.2-5.oe2203sp1.x86_64                      libtommath-1.2.0-2.oe2203sp1.x86_64           
  libunwind-2:1.6.2-2.oe2203sp1.x86_64             openpgm-5.2.122-16.oe2203sp1.x86_64                        python3-babel-2.9.1-2.oe2203sp1.noarch        
  python3-chardet-5.0.0-1.oe2203sp1.noarch         python3-charset-normalizer-2.0.12-1.oe2203sp1.noarch       python3-idna-3.2-2.oe2203sp1.noarch           
  python3-jinja2-3.0.3-2.oe2203sp1.noarch          python3-markupsafe-2.0.1-3.oe2203sp1.x86_64                python3-msgpack-1.0.2-2.oe2203.x86_64         
  python3-psutil-5.9.0-1.oe2203sp1.x86_64          python3-pycryptodomex-3.15.0-1.oe2203sp1.x86_64            python3-pycurl-7.44.1-3.oe2203sp1.x86_64      
  python3-pysocks-1.7.1-2.oe2203sp1.noarch         python3-pytz-2021.3-2.oe2203sp1.noarch                     python3-pyyaml-6.0-2.oe2203sp1.x86_64         
  python3-requests-2.26.0-7.oe2203sp1.noarch       python3-urllib3-1.26.12-1.oe2203sp1.noarch                 python3-zmq-20.0.0-1.x86_64                   
  salt-3003.3-1.noarch                             salt-minion-3003.3-1.noarch                                zeromq-4.3.4-3.oe2203sp1.x86_64               

Complete!

可以看到,相关rpm包已被重置,重启服务,问题依旧。仔细核对,卸载和重装清单中的rpm包版本一致,为salt-minion运行正常时的初始版本。可以确定是应用方使用pip安装了高版本的python程序包导致程序运行环境有问题,salt-minion不能正常运行了。

三、解决办法

既然rpm包重装不能解决pip安装引起的python环境问题,考虑转为通过pip方法安装salt-minion。

1、卸载salt-minion的rpm运行环境

[root@localhost ~]# yum remove salt-minion
Dependencies resolved.
============================================================================================================================================================
 Package                                          Architecture                 Version                                    Repository                   Size
============================================================================================================================================================
Removing:
 salt-minion                                      noarch                       3003.3-1                                   @salt                        73 k
Removing unused dependencies:
 libsodium                                        x86_64                       1.0.18-1.oe2203sp1                         @OS                         360 k
 libtomcrypt                                      x86_64                       1.18.2-
...
Removed:
  libsodium-1.0.18-1.oe2203sp1.x86_64              libtomcrypt-1.18.2-5.oe2203sp1.x86_64                      libtommath-1.2.0-2.oe2203sp1.x86_64           
  libunwind-2:1.6.2-2.oe2203sp1.x86_64             openpgm-5.2.122-16.oe2203sp1.x86_64                        python3-babel-2.9.1-2.oe2203sp1.noarch        
  python3-chardet-5.0.0-1.oe2203sp1.noarch         python3-charset-normalizer-2.0.12-1.oe2203sp1.noarch       python3-idna-3.2-2.oe2203sp1.noarch           
  python3-jinja2-3.0.3-2.oe2203sp1.noarch          python3-markupsafe-2.0.1-3.oe2203sp1.x86_64                python3-msgpack-1.0.2-2.oe2203.x86_64         
  python3-psutil-5.9.0-1.oe2203sp1.x86_64          python3-pycryptodomex-3.15.0-1.oe2203sp1.x86_64            python3-pycurl-7.44.1-3.oe2203sp1.x86_64      
  python3-pysocks-1.7.1-2.oe2203sp1.noarch         python3-pytz-2021.3-2.oe2203sp1.noarch                     python3-pyyaml-6.0-2.oe2203sp1.x86_64         
  python3-requests-2.26.0-7.oe2203sp1.noarch       python3-urllib3-1.26.12-1.oe2203sp1.noarch                 python3-zmq-20.0.0-1.x86_64                   
  salt-3003.3-1.noarch                             salt-minion-3003.3-1.noarch                                zeromq-4.3.4-3.oe2203sp1.x86_64               

Complete!

2、通过pip安装salt-minion

请参见本人所写文章国产操作系统openEuler22.03LTS离线安装saltstack3003.1实践

[root@localhost]# sh salt-install.sh
--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/certifi-2022.12.7-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 155255 (152K) [application/octet-stream]
Saving to: ‘certifi-2022.12.7-py3-none-any.whl’

certifi-2022.12.7-py3-none-any.whl     100%[============================================================================>] 151.62K  --.-KB/s    in 0.004s  

2023-06-26 16:38:21 (34.5 MB/s) - ‘certifi-2022.12.7-py3-none-any.whl’ saved [155255/155255]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/charset_normalizer-2.1.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39748 (39K) [application/octet-stream]
Saving to: ‘charset_normalizer-2.1.1-py3-none-any.whl’

charset_normalizer-2.1.1-py3-none-any. 100%[============================================================================>]  38.82K  --.-KB/s    in 0.001s  

2023-06-26 16:38:21 (25.6 MB/s) - ‘charset_normalizer-2.1.1-py3-none-any.whl’ saved [39748/39748]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/idna-3.4-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 61538 (60K) [application/octet-stream]
Saving to: ‘idna-3.4-py3-none-any.whl’

idna-3.4-py3-none-any.whl              100%[============================================================================>]  60.10K  --.-KB/s    in 0.004s  

2023-06-26 16:38:21 (14.2 MB/s) - ‘idna-3.4-py3-none-any.whl’ saved [61538/61538]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 120382 (118K) [application/octet-stream]
Saving to: ‘immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

immutables-0.19-cp39-cp39-manylinux_2_ 100%[============================================================================>] 117.56K  --.-KB/s    in 0.008s  

2023-06-26 16:38:21 (14.1 MB/s) - ‘immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [120382/120382]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/Jinja2-3.0.0-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133357 (130K) [application/octet-stream]
Saving to: ‘Jinja2-3.0.0-py3-none-any.whl’

Jinja2-3.0.0-py3-none-any.whl          100%[============================================================================>] 130.23K  --.-KB/s    in 0.008s  

2023-06-26 16:38:21 (16.3 MB/s) - ‘Jinja2-3.0.0-py3-none-any.whl’ saved [133357/133357]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/jmespath-1.0.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20256 (20K) [application/octet-stream]
Saving to: ‘jmespath-1.0.1-py3-none-any.whl’

jmespath-1.0.1-py3-none-any.whl        100%[============================================================================>]  19.78K  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (6.62 MB/s) - ‘jmespath-1.0.1-py3-none-any.whl’ saved [20256/20256]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25466 (25K) [application/octet-stream]
Saving to: ‘MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

MarkupSafe-2.1.1-cp39-cp39-manylinux_2 100%[============================================================================>]  24.87K  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (7.77 MB/s) - ‘MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [25466/25466]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 322372 (315K) [application/octet-stream]
Saving to: ‘msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

msgpack-1.0.4-cp39-cp39-manylinux_2_17 100%[============================================================================>] 314.82K  1.32MB/s    in 0.2s    

2023-06-26 16:38:21 (1.32 MB/s) - ‘msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [322372/322372]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 280218 (274K) [application/octet-stream]
Saving to: ‘psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

psutil-5.9.4-cp36-abi3-manylinux_2_12_ 100%[============================================================================>] 273.65K  --.-KB/s    in 0.002s  

2023-06-26 16:38:21 (146 MB/s) - ‘psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [280218/280218]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2308483 (2.2M) [application/octet-stream]
Saving to: ‘pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’

pycryptodomex-3.16.0-cp35-abi3-manylin 100%[============================================================================>]   2.20M  --.-KB/s    in 0.01s   

2023-06-26 16:38:21 (163 MB/s) - ‘pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’ saved [2308483/2308483]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 661819 (646K) [application/octet-stream]
Saving to: ‘PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’

PyYAML-6.0-cp39-cp39-manylinux_2_5_x86 100%[============================================================================>] 646.31K  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (245 MB/s) - ‘PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’ saved [661819/661819]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1082600 (1.0M) [application/octet-stream]
Saving to: ‘pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl’

pyzmq-20.0.0-cp39-cp39-manylinux1_x86_ 100%[============================================================================>]   1.03M  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (387 MB/s) - ‘pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl’ saved [1082600/1082600]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/requests-2.28.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62843 (61K) [application/octet-stream]
Saving to: ‘requests-2.28.1-py3-none-any.whl’

requests-2.28.1-py3-none-any.whl       100%[============================================================================>]  61.37K  --.-KB/s    in 0s      

2023-06-26 16:38:21 (143 MB/s) - ‘requests-2.28.1-py3-none-any.whl’ saved [62843/62843]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/requirements-salt.txt
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 261 [text/plain]
Saving to: ‘requirements-salt.txt’

requirements-salt.txt                  100%[============================================================================>]     261  --.-KB/s    in 0s      

2023-06-26 16:38:21 (50.3 MB/s) - ‘requirements-salt.txt’ saved [261/261]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/urllib3-1.26.13-py2.py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 140572 (137K) [application/octet-stream]
Saving to: ‘urllib3-1.26.13-py2.py3-none-any.whl’

urllib3-1.26.13-py2.py3-none-any.whl   100%[============================================================================>] 137.28K  --.-KB/s    in 0.001s  

2023-06-26 16:38:21 (177 MB/s) - ‘urllib3-1.26.13-py2.py3-none-any.whl’ saved [140572/140572]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/salt-3003.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9654100 (9.2M) [application/octet-stream]
Saving to: ‘salt-3003.1-py3-none-any.whl’

salt-3003.1-py3-none-any.whl           100%[============================================================================>]   9.21M  --.-KB/s    in 0.02s   

2023-06-26 16:38:21 (378 MB/s) - ‘salt-3003.1-py3-none-any.whl’ saved [9654100/9654100]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/contextvars-2.4.tar.gz
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9570 (9.3K) [application/octet-stream]
Saving to: ‘contextvars-2.4.tar.gz’

contextvars-2.4.tar.gz                 100%[============================================================================>]   9.35K  --.-KB/s    in 0s      

2023-06-26 16:38:21 (338 MB/s) - ‘contextvars-2.4.tar.gz’ saved [9570/9570]

WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Looking in links: .
Processing ./certifi-2022.12.7-py3-none-any.whl
Processing ./charset_normalizer-2.1.1-py3-none-any.whl
Processing ./contextvars-2.4.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./idna-3.4-py3-none-any.whl
Processing ./immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./Jinja2-3.0.0-py3-none-any.whl
Processing ./jmespath-1.0.1-py3-none-any.whl
Processing ./MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Processing ./PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Processing ./pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl
Processing ./requests-2.28.1-py3-none-any.whl
Processing ./urllib3-1.26.13-py2.py3-none-any.whl
Processing ./salt-3003.1-py3-none-any.whl
Requirement already satisfied: distro>=1.0.1 in /usr/lib/python3.9/site-packages (from salt==3003.1->-r requirements-salt.txt (line 16)) (1.6.0)
Building wheels for collected packages: contextvars
  Building wheel for contextvars (setup.py) ... done
  Created wheel for contextvars: filename=contextvars-2.4-py3-none-any.whl size=7666 sha256=dbb18cc07b1392bc24a124fc121ed4e28dfc0171def30e1e2ba0632b2e2ba734
  Stored in directory: /root/.cache/pip/wheels/bb/5f/16/d6721278108c7e5658c0e01b054a1f4459ea09d55478a81eec
Successfully built contextvars
Installing collected packages: urllib3, MarkupSafe, immutables, idna, charset-normalizer, certifi, requests, pyzmq, PyYAML, pycryptodomex, msgpack, Jinja2, contextvars, salt, psutil, jmespath
  Attempting uninstall: MarkupSafe
    Found existing installation: MarkupSafe 2.1.3
    Uninstalling MarkupSafe-2.1.3:
      Successfully uninstalled MarkupSafe-2.1.3
  Attempting uninstall: Jinja2
    Found existing installation: Jinja2 3.1.2
    Uninstalling Jinja2-3.1.2:
      Successfully uninstalled Jinja2-3.1.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fugue 0.8.4 requires pandas>=1.2.0, but you have pandas 1.1.5 which is incompatible.
Successfully installed Jinja2-3.0.0 MarkupSafe-2.1.1 PyYAML-6.0 certifi-2022.12.7 charset-normalizer-2.1.1 contextvars-2.4 idna-3.4 immutables-0.19 jmespath-1.0.1 msgpack-1.0.4 psutil-5.9.4 pycryptodomex-3.16.0 pyzmq-20.0.0 requests-2.28.1 salt-3003.1 urllib3-1.26.13
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/usr/local/bin/salt-minion
salt 3003.1
● salt-minion.service - The Salt Minion
     Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
     Active: active (running) since Mon 2023-06-26 16:38:33 CST; 10ms ago
       Docs: man:salt-minion(1)
             file:///usr/share/doc/salt/html/contents.html
             https://docs.saltstack.com/en/latest/contents.html
   Main PID: 89894 (salt-minion)
      Tasks: 1 (limit: 1644176)
     Memory: 21.0M
     CGroup: /system.slice/salt-minion.service
             └─ 89894 /usr/bin/python3 /usr/local/bin/salt-minion

Jun 26 16:38:33 localhost.localdomain systemd[1]: Starting The Salt Minion...
Jun 26 16:38:33 localhost.localdomain systemd[1]: Started The Salt Minion.

安装成功完成,salt-minion运行正常。在安装过程中还可以看,MarkupSafe包从2.1.3降至2.1.1,Jinja2包从3.1.2降至3.0.0,问题得以解决(期间有个报错信息,提示pandas包要求>=1.2.0, 现有系统pandas 1.1.5不兼容,但实际无影响,就未做进一步处理)。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/689903.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【Nginx】第三章 Nginx常用的命令和配置文件

第3章 Nginx常用的命令和配置文件 3.1 nginx常用的命令 (1)启动命令 在/usr/local/nginx/sbin目录下执行 ./nginx (2)关闭命令 在/usr/local/nginx/sbin目录下执行 ./nginx -s stop (3)重新加载命令…

docker报错 driver failed programming external connectivity on e

Error response from daemon: driver failed programming external connectivity on e ndpoint mj 原因:在我们启动了Docker后,我们再对防火墙firewalld进行操作,就会发生上述报错, 详细原因:docker服务启动时定义的…

分别用最小二乘法和梯度下降法实现线性回归

下面代码中包含了两种方法 import numpy as npnp.random.seed(1234)x np.random.rand(500, 3) # x为数据,500个样本,每个样本三个自变量 y x.dot(np.array([4.2, 5.7, 10.8])) # y为标签,每个样本对应一个y值# 最小二乘法 class LR_LS():d…

LENOVO联想笔记本拯救者Legion R7000P APH8 2023款(82Y9)原厂Windows11系统原装出厂状态预装系统

lenovo联想笔记本电脑,拯救者Legion R7000P APH8(2023款)(82Y9)原装出厂Windows11系统安装,预装系统重装镜像,恢复出厂状态 系统自带所有驱动、出厂主题壁纸LOGO、Office办公软件、联想电脑管家等预装程序 所需要工具:16G或以上…

element ui - el-select 手动设置高度

el-select 手动设置高度 场景代码 场景 当我们的页面想要手动设置 element ui 中 el-select 的高度时,如果只是通过设置 el-select 的 height 属性时,会发现调整无效。 继续对 el-select 中的 input 元素 .el-input__inner 设置。会发现高度生效了&…

机器视觉硬件选型-机器视觉三大技术之一打光(图像采集技术)

机器视觉halcon-胶水轮廓检测 针对被测物的不同特征,要用不同打光方式,才可以突出被测物,便于图像处技术进一步处理。 机器视觉作为当前的热门行业,是计算机视觉的延伸,集结了光学、机械、电子、计算机软硬件等各方面技术,旨在于将所需求的图像特征提取出来,以方便视觉系…

读发布!设计与部署稳定的分布式系统(第2版)笔记13_断路器与舱壁

1. 电路保险丝 1.1. 保险丝通过自身率先失效,控制整体的系统失效方式 1.2. 当遇到电阻时,电流产生的热量与电流强度的平方和电阻的乘积(I^2R)成正比 1.3. 在房子着火前先行熔断,切断电路并避免火灾 1.4. 民用保险丝…

HOT22-相交链表

leetcode原题链接:相交链表 题目描述 给你两个单链表的头节点 headA 和 headB ,请你找出并返回两个单链表相交的起始节点。如果两个链表不存在相交节点,返回 null 。 图示两个链表在节点 c1 开始相交: 题目数据 保证 整个链式结…

可视化低代码编程平台项目

后端Spring BootMySQL 前端Vue 同学通过这个项目练手,简历上写出来也蛮有亮点的。 技术栈比较全面, 项目可以提高公司的开发效率,特别是方便产品经理或者业务线人员直接可视化生成UI

java之路——带你了解springboot框架与其基本使用

文章目录 一、springboot的发展背景二、什么是springboot三、springboot的地位四、开发步骤 一、springboot的发展背景 要了解springboot,我们先要了解Spring Boot的发展背景。 Spring Boot的发展背景可以追溯到Spring Framework的诞生和演进过程。 首先&#xff…

Linux常用命令——free命令

在线Linux命令查询工具 free 显示内存的使用情况 补充说明 free命令可以显示当前系统未使用的和已使用的内存数目,还可以显示被内核使用的内存缓冲区。 语法 free(选项)选项 -b # 以Byte为单位显示内存使用情况; -k # 以KB为单位显示内存使用情况…

【Docker】Exited 139解决Window下docker启动oracle11g失败Exited 139

前几天,在docker安装了oracle11,安装非常简单,但是启动的时候启动不起来,且没有任何log日志输出! docker 拉取安装oracle11 docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g安装完成后启动oracle …

Nature Biomedical Engineering --利用白细胞“吃掉”实体瘤

癌症仍然是美国死亡率最高的疾病之一,每年导致的死亡人数超过60万人。形成实体肿瘤的癌症,如乳房、大脑或皮肤肿瘤,尤其难以治疗。外科手术通常是对抗实体肿瘤的第一道防线。但是,手术可能无法完全清除癌细胞,残留的细…

Linux运维监控学习笔记6

触发器(重点) 触发器(trigger):定义监控项到达一个临界值(阈值)或者满足一个条件,就会发现状态变化(OK变为Problem,Problem变为OK)。 监控agent1…

FFmpeg工具使用(一)

转码 指令 ffmpeg -i input.mp4 output.avi 这个指令是使用FFmpeg工具对视频进行格式转换的命令。 其中,"-i input.mp4"表示指定输入文件为"input.mp4",而"output.avi"则是指定输出文件名,并将视频转码成A…

【无标题】TI AM64x工业核心板规格书(双核ARM Cortex-A53 + 单/四核Cortex-R5F + 单核Cortex-M4F,主频1GHz)

1 核心板简介 创龙科技SOM-TL64x是一款基于TI Sitara系列AM64x双核ARM Cortex-A53 单/四核Cortex-R5F 单核Cortex-M4F设计的多核工业级核心板,通过工业级B2B连接器引出5x TSN Ethernet、9x UART、2x CAN-FD、GPMC、PCIe/USB 3.1等接口。核心板经过专业的PCB Layo…

ModaHub AI模型开源社区——向量数据库Milvus存储操作教程

目录 存储操作 数据插入 数据落盘 定时触发 客户端触发 缓冲区达到上限触发 数据合并 建立索引 删除 删除集合 删除分区 删除实体 数据段整理 数据读取 常见问题 存储操作 阅读本文前,请先阅读 存储相关概念。 数据插入 客户端通过调用 insert 接…

读写锁原理解读

目录 回顾什么是读写锁 t1 w.lock,t2 r.lock t3 r.lock,t4 w.lock t1 w.unlock t2 r.unlock,t3 r.unlock 写锁上锁流程 写锁释放流程 读锁上锁流程 读锁释放流程 回顾什么是读写锁 读写锁是一对互斥锁,分为读锁和写锁。…

UG\NX二次开发 显示临时标记 UF_DISP_display_temporary_point

文章作者:里海 来源网站:https://blog.csdn.net/WangPaiFeiXingYuan 简介: 显示临时标记 UF_DISP_display_temporary_point,最后一个参数控制显示的类型,可通过下表1表2查询 表1: 表2: 0UF_DISP_NO_MARKER

jenkins构建异常Type org.springframework.boot.maven.RepackageMojo not present

目录 问题描述解决过程 问题描述 我公司dev环境使用的是spug构建,当时构建并没有出现这种问题,而线上使用的是jenkins部署到华为云上,构建线上的时候却出现了这个问题。 java.lang.TypeNotPresentException: Type org.springframework.boot…