Dong1989 发表于 2025-10-12 21:16:38

【待反馈】Docer启动失败

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.3.16
系统版本:CentOS 7.6.1810 x86_64(Py3.7.4)
问题描述:Docer启动失败,一直在循环让启动。点击修复、卸载就报错。
相关截图(日志、错误):
点击修复:

REQUEST_DATE: 2025-10-12 21:11:18
VERSION: CentOS7.6.1810 x86_64(Py3.7.4) - 8.3.16
REMOTE_ADDR: 125.121.98.192
REQUEST_URI: POST /btdocker/setup/repair_docker?
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2478, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2425, in run
    result = getattr(toObject, get.action)(get)
File "class/panelController.py", line 81, in model
    result = PluginLoader.module_run(module_name,def_name,pdata)
File "/www/server/panel/class/btdockerModel/setupModel.py", line 611, in repair_docker
    }, 3)
File "class/public.py", line 187, in httpPost
    res = HttpPost(url, data, timeout)
File "class/public.py", line 168, in HttpPost
    import http_requests
File "/www/server/panel/class/http_requests.py", line 19, in
    import requests
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/__init__.py", line 95, in
    from urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'


Dong1989 发表于 2025-10-12 21:18:14


17502159616 发表于 2025-10-13 09:20:31

我的也是这样,飞牛nas里面的宝塔安装好了,但是docker用不了。

阿珂 发表于 2025-10-13 10:47:00

做好服务器快照,将面板更新到最新版的先

Dong1989 发表于 2025-10-13 19:07:07

阿珂 发表于 2025-10-13 10:47
做好服务器快照,将面板更新到最新版的先

点击更新,也报错,是本地服务器的问题么?

点击更新也报错。


阿珂 发表于 2025-10-14 11:33:51

做个服务器快照,用下面命令升级看看
wget -O update.sh https://download.bt.cn/install/update6.sh && bash update.sh 11.1.0

17502159616 发表于 2025-10-17 14:56:01

阿珂 发表于 2025-10-14 11:33
做个服务器快照,用下面命令升级看看

升级到11.1.0了,DOCKER还是安装失败

17502159616 发表于 2025-10-17 14:57:18

阿珂 发表于 2025-10-13 10:47
做好服务器快照,将面板更新到最新版的先

已经是最新的11.1.0版本了

Dong1989 发表于 2025-10-26 10:25:35

阿珂 发表于 2025-10-14 11:33
做个服务器快照,用下面命令升级看看


Last login: Sun Oct 26 10:03:17 2025 from 127.0.0.1

Welcome to Alibaba Cloud Elastic Compute Service !

File "/www/server/panel/class/ssh_security.py", line 1221
    def paser_root_login(self, conf_data: str = None):
                                        ^
SyntaxError: invalid syntax
# wget -O update.sh https://download.bt.cn/install/update6.sh && bash update.sh 11.1.0
--2025-10-26 10:03:47--https://download.bt.cn/install/update6.sh
Resolving download.bt.cn (download.bt.cn)... 115.231.130.125, 240e:f7:ef00:3:0:7:8000:125
Connecting to download.bt.cn (download.bt.cn)|115.231.130.125|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10513 (10K)
Saving to: ‘update.sh’

100%[==============================================================================================================================================>] 10,513      --.-K/s   in 0s      

2025-10-26 10:03:47 (108 MB/s) - ‘update.sh’ saved

--2025-10-26 10:03:47--http://download.bt.cn/tools/fix_install.sh
Resolving download.bt.cn (download.bt.cn)... 115.231.130.125, 240e:f7:ef00:3:0:7:8000:125
Connecting to download.bt.cn (download.bt.cn)|115.231.130.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 598
Saving to: ‘fix_install.sh’

100%[==============================================================================================================================================>] 598         --.-K/s   in 0s      

2025-10-26 10:03:47 (83.7 MB/s) - ‘fix_install.sh’ saved

--2025-10-26 10:03:48--http://download.bt.cn/install/update/LinuxPanel-11.1.0.zip
Resolving download.bt.cn (download.bt.cn)... 115.231.130.125, 240e:f7:ef00:3:0:7:8000:125
Connecting to download.bt.cn (download.bt.cn)|115.231.130.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32407710 (31M)
Saving to: ‘/tmp/panel.zip’

100%[==============================================================================================================================================>] 32,407,71018.1MB/s   in 1.7s   

2025-10-26 10:03:50 (18.1 MB/s) - ‘/tmp/panel.zip’ saved

==============================================================
正在修复面板依赖问题
update.sh: line 194: [: : integer expression expected
--2025-10-26 10:03:54--http://download.bt.cn/install/pyenv/pip-packs.txt
Resolving download.bt.cn (download.bt.cn)... 115.231.130.125, 240e:f7:ef00:3:0:7:8000:125
Connecting to download.bt.cn (download.bt.cn)|115.231.130.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1106 (1.1K)
Saving to: ‘pip-packs.txt’

100%[==============================================================================================================================================>] 1,106       --.-K/s   in 0s      

2025-10-26 10:03:54 (148 MB/s) - ‘pip-packs.txt’ saved

/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography import x509
Traceback (most recent call last):
File "/bin/btpip", line 10, in <module>
    sys.exit(main())
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
File "/www/server/panel/pyenv/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name, package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/requests/__init__.py", line 97, in <module>
    from pip._vendor.urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in <module>
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography import x509
Traceback (most recent call last):
File "/bin/btpip", line 10, in <module>
    sys.exit(main())
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
File "/www/server/panel/pyenv/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name, package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/requests/__init__.py", line 97, in <module>
    from pip._vendor.urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in <module>
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography import x509
Traceback (most recent call last):
File "/bin/btpip", line 10, in <module>
    sys.exit(main())
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
File "/www/server/panel/pyenv/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name, package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/requests/__init__.py", line 97, in <module>
    from pip._vendor.urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in <module>
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography import x509


中间有删除,有限制

File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/requests/__init__.py", line 97, in <module>
    from pip._vendor.urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in <module>
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
修复面板依赖完成!
===========================================
===========================================
正在更新面板文件...............
更新完成!
如在终端中执行此命令,请手动刷新面板页面
===========================================
=====================================
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography import x509
Traceback (most recent call last):
File "/www/server/panel/script/init_db.py", line 13, in <module>
    import public
File "/www/server/panel/class/public.py", line 9032, in <module>
    reset_allowed_gai_family = _record_allowed_gai_family()
File "/www/server/panel/class/public.py", line 9023, in _record_allowed_gai_family
    import requests.packages.urllib3.util.connection as urllib3_conn
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in <module>
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography import x509
Traceback (most recent call last):
File "/www/server/panel/tools.py", line 21, in <module>
    import public, time, json
File "/www/server/panel/class/public.py", line 9032, in <module>
    reset_allowed_gai_family = _record_allowed_gai_family()
File "/www/server/panel/class/public.py", line 9023, in _record_allowed_gai_family
    import requests.packages.urllib3.util.connection as urllib3_conn
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1517, in <module>
    class X509StoreFlags(object):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1535, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
Starting Bt-Panel... Bt-Panel (pid 14687) already running
Starting Bt-Tasks... Bt-Tasks (pid 14714) already running
已成功升级到






Dong1989 发表于 2025-10-26 10:27:08

阿珂 发表于 2025-10-14 11:33
做个服务器快照,用下面命令升级看看

升级后,看板后台地址访问不了了。有什么方法修复呢?



Dong1989 发表于 2025-10-26 10:54:22

阿珂 发表于 2025-10-14 11:33
做个服务器快照,用下面命令升级看看



安装后报错+查看状态有不对。

Dong1989 发表于 2025-10-30 09:35:23

阿珂 发表于 2025-10-14 11:33
做个服务器快照,用下面命令升级看看

你好,按照这个升级后报错,请问怎么解决呢?

重启报错+运行查看.png (75.74 KB, 下载次数: 0)

下载附件

4 天前 上传


安装后报错+查看状态有不对。

阿珂 发表于 2025-11-5 12:13:47

pyopenssl库不匹配
执行下面命令修复面板
mv /www/server/panel/pyenv/ /www/backup/pyenv_backup
curl http://download.bt.cn/install/update_panel.sh|bash

Dong1989 发表于 2026-1-3 20:46:06

阿珂 发表于 2025-11-5 12:13
pyopenssl库不匹配
执行下面命令修复面板



按照这个命令提交到终端,报错,连接不上。还有别的方法么
页: [1]
查看完整版本: 【待反馈】Docer启动失败