ddmznh 发表于 2023-6-19 00:16:56

docker报错无法修复

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

ddmznh 发表于 2023-6-19 00:25:46

REQUEST_DATE: 2023-06-18 23:25:14
PAN_VERSION: 7.9.10
OS_VERSION: CentOS7.6.1810 x86_64(Py3.7.9)
REMOTE_ADDR: XXXX
REQUEST_URI: POST /project/docker/model?action=setup-get_config
REQUEST_FORM: {'data': '{"url":"unix:///var/run/docker.sock","dk_model_name":"setup","dk_def_name":"get_config"}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4148.158 Safari/537.36

ddmznh 发表于 2023-6-19 00:27:51

Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2008, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1955, in run
    result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/panelController.py", line 86, in model
    raise public.PanelError(result['msg'])
public.PanelError: 面板运行时发生错误: 失败!失败原因:Traceback (most recent call last):
File "/www/server/panel/class/projectModel/bt_docker/dk_setup.py", line 104, in get_registry_mirrors
    conf = json.loads(public.readFile('/etc/docker/daemon.json'))
File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
File "/www/server/panel/pyenv/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/www/server/panel/pyenv/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
页: [1]
查看完整版本: docker报错无法修复