为了能快速了解并处理您的问题,请提供以下基础信息:
系统版本:Debian GNU/Linux 11 (bullseye) x86_64(Py3.7.9)
问题描述:docker-容器-编辑容器-保存容器配置 发生报错
相关截图(日志、错误): PAN_VERSION: 8.0.48 OS_VERSION: Debian GNU/Linux 11 (bullseye) x86_64(Py3.7.9) REMOTE_ADDR: 39.180.74.225 REQUEST_URI: POST /btdocker/container/upgrade_container?REQUEST_FORM: {'data': '{"id":"6557ebdadd28dd31549fb0ef15e60c34f1fc49c7dacf086cc831cd4b08d4092c","new_name":"tduck-platform","new_image":"tduckcloud/tduck-platform","new_publish_all_ports":"0","new_port":{"8999/tcp":"8999"},"new_network":"9e1e1f5ea5b9275f22c63a4faaf0a39f_default","new_ip_address":"172.21.0.3","new_command":"","new_entrypoint":"","new_auto_remove":"0","new_privileged":"0","new_restart_policy":{"Name":"always"},"new_mem_reservation":"0","new_cpu_quota":0,"new_mem_limit":"0","new_labels":"com.docker.compose.config-hash=bc8fa07da72b0c41e509681b74765d1d368a19a991ab3372738ead4c56aaf9ff,\\ncom.docker.compose.container-number=1,\\ncom.docker.compose.depends_on=mysql:service_started:false,\\ncom.docker.compose.image=sha256:79ebe189fc878817e4f55dd637a67a6991522a06712d69a55c738b1514853bf0,\\ncom.docker.compose.oneoff=False,\\ncom.docker.compose.project=9e1e1f5ea5b9275f22c63a4faaf0a39f,\\ncom.docker.compose.project.config_files=/www/wwwroot/tduck-platform/docker/docker-compose.yaml,\\ncom.docker.compose.project.working_dir=/www/wwwroot/tduck-platform/docker,\\ncom.docker.compose.service=tduck-platform,\\ncom.docker.compose.version=2.20.2,\\n","new_environment":"spring.datasource.password=tduck@mysql,\\nJAVA_OPTS=-Duser.language=zh -XX:+UseG1GC,\\nTZ=Asia/Shanghai,\\nspring.datasource.url=jdbc:mysql://127.0.0.1:3306/tduck?useSSL=false&useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&tinyInt1isBit=false,\\nspring.datasource.username=root,\\nPATH=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,\\nLANG=C.UTF-8,\\nJAVA_HOME=/usr/local/openjdk-8,\\nJAVA_VERSION=8u272,\\n","new_volumes":{"/var/lib/docker/volumes/9e1e1f5ea5b9275f22c63a4faaf0a39f_upload-volume/_data":{"bind":"/application/BOOT-INF/lib/upload","mode":"rw"}}}'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36Traceback (most recent call last): File "/www/server/panel/class/btdockerModel/containerModel.py", line 300, in upgrade_container new_container_config = self.structure_new_container_conf(get) File "/www/server/panel/class/btdockerModel/containerModel.py", line 456, in structure_new_container_conf "environment": dp.set_kv(new_environment) if type(new_environment) != list else new_environment, File "/www/server/panel/class/btdockerModel/dk_public.py", line 92, in set_kv k, v = i.split('=')ValueError: too many values to unpack (expected 2)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2293, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2240, 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/containerModel.py", line 375, in upgrade_container raise Exception(a)Exception: too many values to unpack (expected 2)
|
|