当前位置:论坛首页 > Linux面板 > 求助

【待反馈】docker-容器-编辑容器-保存容器配置 发生报错

发表在 Linux面板2024-1-3 18:10 [复制链接] 2 948

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:[size=1.2]Linux测试版8.0.48

系统版本: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)

使用道具 举报 只看该作者 回复
发表于 2024-1-3 18:12:47 | 显示全部楼层
检查环境
使用道具 举报 回复
发表于 2024-1-3 18:22:13 | 显示全部楼层
您好,请私信发下您的面板登录地址+账号+密码来排查下问题(不要发临时连接)
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表