本帖最后由 不品人间酒 于 2024-2-25 15:41 编辑
为了能快速了解并处理您的问题,请提供以下基础信息: 系统版本:CentOS 8.5.2111 x86_64 问题描述: 在终端运行docker正常,面板docker提示错误。在终端下都可以正常运行跑,在面板下报错。
相关截图(日志、错误): - 出错了,面板运行时发生错误!
- docker.errors.DockerException: Error while fetching server API version: request() got an unexpected keyword argument 'chunked'
复制代码- REQUEST_DATE: 2024-02-25 15:34:26
- VERSION: CentOS 8.5.2111 x86_64(Py3.7.9) - 8.0.5
- REMOTE_ADDR: 192.168.16.1
- REQUEST_URI: POST /btdocker/setup/get_config?
- REQUEST_FORM: {}
- USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
复制代码- Traceback (most recent call last):
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
- return self.version(api_version=False)["ApiVersion"]
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/daemon.py", line 181, in version
- return self._result(self._get(url), json=True)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/utils/decorators.py", line 46, in inner
- return f(self, *args, **kwargs)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 237, in _get
- return self.get(url, **self._set_request_timeout(kwargs))
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 602, in get
- return self.request("GET", url, **kwargs)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 589, in request
- resp = self.send(prep, **send_kwargs)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 703, in send
- r = adapter.send(request, **kwargs)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 497, in send
- chunked=chunked,
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 803, in urlopen
- **response_kw,
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 505, in _make_request
- enforce_content_length=enforce_content_length,
- TypeError: request() got an unexpected keyword argument 'chunked'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/www/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject
- res = run_obj.run(toObject, defs, get)
- File "/home/www/www/server/panel/BTPanel/__init__.py", line 2262, 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 32, in get_config
- "service_status": self.get_service_status(),
- File "/www/server/panel/class/btdockerModel/setupModel.py", line 88, in get_service_status
- client = dp.docker_client()
- File "class/btdockerModel/dk_public.py", line 44, in docker_client
- client = docker.DockerClient(base_url=url)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/client.py", line 45, in __init__
- self.api = APIClient(*args, **kwargs)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 197, in __init__
- self._version = self._retrieve_server_version()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 222, in _retrieve_server_version
- 'Error while fetching server API version: {0}'.format(e)
- docker.errors.DockerException: Error while fetching server API version: request() got an unexpected keyword argument 'chunked'
复制代码
|
|