[whyour/qinglong]Docker 部署后打开 web 跳转至 /error

2024-01-10 531 views
8
Qinglong version

latest 51c284700116

Steps to reproduce

docker-compose.yml

version: '3'

services:
  qinglong:
    image: whyour/qinglong:latest
    container_name: qinglong
    hostname: qinglong
    volumes:
      - ./qinglong/data:/ql/data
    links:
      - nginx
    expose:
      - '5700'
    networks:
      net:
        priority: 10
        ipv4_address: xxx.xxx.xxx.xxx
    restart: unless-stopped
    tty: true
root@qinglong:/ql $ pm2 logs
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/root/.pm2/pm2.log last 15 lines:
PM2        | 2023-12-02T18:25:38: PM2 log: App [schedule:0] starting in -fork mode-
PM2        | 2023-12-02T18:25:38: PM2 log: App [public:1] starting in -fork mode-
PM2        | 2023-12-02T18:25:39: PM2 log: App [schedule:0] online
PM2        | 2023-12-02T18:25:39: PM2 log: App [panel:2] starting in -fork mode-
PM2        | 2023-12-02T18:25:39: PM2 log: App [public:1] online
PM2        | 2023-12-02T18:25:41: PM2 log: App [panel:2] online

/root/.pm2/logs/schedule-error.log last 15 lines:
/root/.pm2/logs/public-error.log last 15 lines:
/root/.pm2/logs/schedule-out.log last 15 lines:
0|schedule | 2023-12-02T18:25:39: ✌️ 定时服务启动成功!

/root/.pm2/logs/public-out.log last 15 lines:
1|public   | 2023-12-02T18:25:39: ✌️ Sentry loaded
1|public   | 2023-12-02T18:25:39: ✌️ DB loaded
1|public   | 2023-12-02T18:25:39: ✌️ 公共服务启动成功!

/root/.pm2/logs/panel-error.log last 15 lines:
2|panel    | 2023-12-02T18:25:41: ✌️ depInjectorLoader expressLoader initData linkDeps failed Error: 1 CANCELLED: Call cancelled

/root/.pm2/logs/panel-out.log last 15 lines:
2|panel    | 2023-12-02T18:25:40: ✌️ DB loaded
2|panel    | 2023-12-02T18:25:40: ✌️ Init file down
2|panel    | 2023-12-02T18:25:40: ✌️ Sentry loaded
2|panel    | 2023-12-02T18:25:41: ✌️ Dependency Injector loaded
2|panel    | 2023-12-02T18:25:41: ✌️ Express loaded
2|panel    | 2023-12-02T18:25:41: ✌️ 后端服务启动成功!
What is expected?

正常打开 web 面板

What is actually happening?

Docker 部署后打开 web 跳转至 /error

回答

9

配置文件里使用了 all_proxy ?

7

qinglong 配置是默认生成的,只有 /etc/systemd/system/docker.service.d/http-proxy.conf~/.docker/config.json 里配置了 HTTP_PROXY HTTPS_PROXY ALL_PROXY

6

到 error 界面等等,docker ps 看容器是不是 healthy 状态

2

是healthy状态

5

docker 的 ~/.docker/config.json 应用于容器内部环境变量,关掉这里面的代理配置就好了

但为什么开启代理会导致 webui 无法访问呢

6

@WindSpiritSR 镜像是最新版的吗

1

debian 和 latest 最新版镜像仍然有这个问题

9

面板提示是 Call cancelled

9

可以使用 develop 镜像试下,应该可以了

6

已测试 develop 镜像 在配置容器代理的情况下可以正常启动,thx