cnk3x / xunlei

提取自群晖平台的迅雷下载套件,用在其他Linux机器上的迅雷远程下载服务
MIT License
1.45k stars 169 forks source link

Docker HTTP ERROR 500 #142

Closed NirvanaCh closed 6 months ago

NirvanaCh commented 6 months ago

docker compose

services:
  xunlei:
    image: cnk3x/xunlei:latest
    container_name: xunlei
      #network_mode: host
    network_mode: bridge
    ports:
      - 2345:2345
    hostname: mynas
    privileged: true
      #environment:
      #- XL_DASHBOARD_HOST=***.***.***.***
      #- XL_DASHBOARD_PORT=2345
    volumes:
      - ./data:/xunlei/data
      - ./downloads:/xunlei/downloads
    restart: unless-stopped

bridge和host都试了。不加环境变量报500,加了报502,查看请求显示跨域。 docker logs尾部

xunlei  | time="05/16 18:53:01" level=info msg="  - HOME=/var/packages/pan-xunlei-com/shares/迅雷/.drive"
xunlei  | time="05/16 18:53:01" level=info msg="  - TLSInsecureSkipVerify=true"
xunlei  | time="05/16 18:53:01" level=info msg="xlp starting, listen at :2345"

端口未占用

NirvanaCh commented 6 months ago

XL_LOG=console

goroutine 1 [running]:
gitlab.xunlei.cn/xlppc/pan-cli/pkg/platformdetect.Platform()
        /xunlei-pan-cli/pkg/platformdetect/detect.go:47 +0x3e9
gitlab.xunlei.cn/xlppc/pan-cli/pkg/oauth2client.init.0()
        /xunlei-pan-cli/pkg/oauth2client/algorithms.go:8517 +0xf11
report log {"fields":{"error":"exit status 2","panic":"panic: platform not suport:\n\ngoroutine 1 [running]:\ngitlab.xunlei.cn/xlppc/pan-cli/pkg/platformdetect.Platform()\n\t/xunlei-pan-cli/pkg/platformdetect/detect.go:47 +0x3e9\ngitlab.xunlei.cn/xlppc/pan-cli/pkg/oauth2client.init.0()\n\t/xunlei-pan-cli/pkg/oauth2client/algorithms.go:8517 +0xf11\n","report_type":"launcher"}}

05/17 09:51:19.95 ERROR [panCliPid=121]Launcher.startVersion cmd.Run exit error err:exit status 2 panCliPath:/var/packages/pan-xunlei-com/shares/迅 雷/.drive/bin/xunlei-pan-cli.3.11.2.amd64 StdErr:panic: platform not suport:

goroutine 1 [running]:
gitlab.xunlei.cn/xlppc/pan-cli/pkg/platformdetect.Platform()
        /xunlei-pan-cli/pkg/platformdetect/detect.go:47 +0x3e9
gitlab.xunlei.cn/xlppc/pan-cli/pkg/oauth2client.init.0()
        /xunlei-pan-cli/pkg/oauth2client/algorithms.go:8517 +0xf11
 repErr:exit status 2
05/17 09:51:19.95 ERROR start new version 3.11.2=>3.11.2 err:exit status 2
05/17 09:51:19.95 WARNING launcher version error exit status 2 retry 4
05/17 09:51:19.95 INFO write launcher pid to file /var/packages/pan-xunlei-com/target/var/pan-xunlei-com.pid 15
05/17 09:51:20.81 ERROR [report=true&panCliPid=121]CheckProcess Signal err:os: process already finished
cnk3x commented 6 months ago

已经更新了,可以重新拉取试试。

NirvanaCh commented 6 months ago

已经更新了,可以重新拉取试试。

万分感谢,可以使用了

但是 ’该版本仅为内测版,拥有内测邀请码才可以使用 ‘ 我百度找了一个,不知道这个是不是feature