northsea4 / mdcx-docker

在Docker容器中运行 MDCX,并通过Web界面或远程桌面进行控制。Run MDCX in a Docker container, accessible and controllable via a web interface or remote desktop.
GNU General Public License v3.0
600 stars 77 forks source link

[BUG] <docker部署失败,报错ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory> #53

Open Baby-Anran opened 1 week ago

Baby-Anran commented 1 week ago

是否存在已有问题?

问题描述

容器一直在重启,并报错ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory

预期表现

No response

复现步骤

docker logs -f mdcx

环境

- 操作系统:Centos7
- Docker服务安装方式:

CPU架构

amd64

使用的镜像

mdcx-builtin-gui-base

Docker创建方式

docker run -d --name mdcx \
  -p 5800:5800 \
  -p 5900:5900 \
  -v /mnt/mdcx/data:/config \
  -v /mnt/mdcx/mdcx-config:/mdcx-config \
  -v /mnt/mdcx/mdcx-config/MDCx.config:/app/MDCx.config \
  -v /mnt/mdcx/logs:/app/Log \
  -v /mnt/emby/strm-link:/strm \
  -e TZ=Asia/Shanghai \
  -e DISPLAY_WIDTH=1200 \
  -e DISPLAY_HEIGHT=750 \
  -e VNC_PASSWORD=123456 \
  -e USER_ID=0 \
  -e GROUP_ID=0 \
  --network host \
  --restart unless-stopped \
  stainless403/mdcx-builtin-gui-base:latest

容器日志

[app         ] 🔘 执行cacert.pem缺失问题的临时修复脚本
[app         ] ⏳ 启动MDCx...
[app         ] nohup: appending output to 'nohup.out'
[supervisor  ] all services started.
[app         ] Traceback (most recent call last):
[app         ]   File "main.py", line 9, in <module>
[app         ] ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
[app         ] [630] Failed to execute script 'main' due to unhandled exception!
[supervisor  ] service 'app' exited (with status 1).
[supervisor  ] service 'app' exited, shutting down...
[supervisor  ] stopping service 'openbox'...
[supervisor  ] service 'openbox' exited (with status 0).
[supervisor  ] stopping service 'nginx'...
[supervisor  ] service 'nginx' exited (with status 0).
[supervisor  ] stopping service 'xvnc'...
northsea4 commented 1 week ago

参考 https://github.com/northsea4/mdcx-docker/issues/18#issuecomment-1562649690

northsea4 commented 1 week ago

FAQ - 运行失败,提示libQt5Core.so.5不存在