Giter Site home page Giter Site logo

0x676e67 / thunder Goto Github PK

View Code? Open in Web Editor NEW
706.0 4.0 61.0 7.25 MB

Synology NAS thunder run on Linux

Home Page: https://nas.xunlei.com

License: MIT License

Rust 89.78% Shell 2.96% HTML 4.11% Dockerfile 3.15%
xunlei linux rust spk openwrt lede nas synology syno docker

thunder's Introduction

thunder

CI Docker Image

thunder从迅雷群晖套件中提取,用于发行版Linux(支持OpenWrt/Alpine/Docker)的迅雷远程下载服务。仅供测试,测试完请自觉删除。

  • 支持X86_64/aarch64
  • 支持glibc/musl
  • 支持更改下载目录
  • 支持面板认证
  • 支持以特定用户安装(UID/GID)
  • Docker镜像最小压缩(40MB左右)
  • 支持插件:NAS小星(pcdn),测速插件
  • 内侧邀请码(3H9F7Y6D/迅雷牛通),内侧码申请快速通道:https://t.cn/A6fhraWZ

默认Web访问端口5055

❯ ./thunder                   
Synology NAS thunder run on Linux

Usage: thunder
       thunder <COMMAND>

Commands:
  install    Install thunder
  uninstall  Uninstall thunder
  run        Run thunder
  start      Start thunder daemon
  stop       Stop thunder daemon
  log        Show the Http server daemon log
  ps         Show the Http server daemon process
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Arch Linux

Arch Linux 及其衍生版可以通过 AUR自建源安装 thunder-nas

yay -Syu thunder-nas

Ubuntu(Other Linux)

GitHub Releases 中有预编译的 deb包,二进制文件,以Ubuntu为例:

wget https://github.com/gngpp/thunder/releases/download/v1.0.3/thunder_1.0.3_amd64.deb

dpkg -i thunder_1.0.3_amd64.deb

# 安装迅雷,默认在线下载安装,如果需要设置更多参数请带上`-h`,查看说明
thunder install

# 安装迅雷以指定spk包安装,如果需要设置更多参数请带上`-h`,查看说明
thunder install /root/nasxunlei-DSM7-x86_64.spk

# 卸载迅雷
thunder uninstall

# 前台运行迅雷,如果需要设置更多参数请带上`-h`,查看说明
thunder run 

# 后台运行迅雷,如果需要设置更多参数请带上`-h`,查看说明
thunder start

# 停止运行迅雷
thunder stop

# 查看运行状态
thunder ps

# 查看运行日志
thunder log

自行编译

git clone https://github.com/gngpp/thunder && cd thunder

cargo build --release && mv target/release/thunder .

FQA

  • 当前大重构,OpenWrt / Docker 后续再完善支持
  • musl运行库的操作系统,若已存在glibc运行库,那么会优先兼容选择使用操作系统运行库环境(避免对系统其他软件依赖冲突,可能会缺依赖,自行补全)
  • 指定运行LD加载库或压缩目前无法做到(二进制带签名),需要逆向打patch
  • 插件依赖bash,系统需要安装bash

thunder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

thunder's Issues

安卓上无法正常跑起来

用的是 xunlei-launcher aarch64

INFO 2023-06-24 11:12:14: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
INFO 2023-06-24 11:12:14: [XunleiBackendServer] Mount /opt/xunlei/downloads to /xunlei succeeded
INFO 2023-06-24 11:12:14: [XunleiBackendServer] Start Xunlei Backend Server
ERROR 2023-06-24 11:12:14: [XunleiBackendServer] error: No such file or directory (os error 2)
INFO 2023-06-24 11:12:14: [XunleiLauncher] All services have been complete

Openwrt HTTP ERROR 502 以及Docker安装无法显示登入二维码

openwrt安装:

root@OpenWrt:~# opkg install xunlei_3.11.2-32_aarch64_generic.ipk 
Installing xunlei (3.11.2-32) to root...
Configuring xunlei.
root@OpenWrt:~# opkg install luci-app-xunlei_1.0.1-8-1_all.ipk 
Installing luci-app-xunlei (1.0.1-8-1) to root...
Configuring luci-app-xunlei.
root@OpenWrt:~# opkg install luci-i18n-xunlei-zh-cn_1.0.1-8-1_all.ipk 
Installing luci-i18n-xunlei-zh-cn (1.0.1-8-1) to root...
Configuring luci-i18n-xunlei-zh-cn.

问题:启动后几秒就自动关闭,手动执行/etc/init.d/xunlei start才能进入网站后台,并且登入账密以后弹出502错误(192.168.31.150 当前无法处理此请求。HTTP ERROR 502)
日志信息

INFO 2023-10-12 15:26:36: [XunleiBackendServer] The backend service has been terminated
INFO 2023-10-12 15:26:36: [XunleiBackendServer] Unmount /xunlei succeeded
INFO 2023-10-12 15:26:36: [XunleiLauncher] All services have been complete
INFO 2023-10-12 15:26:36: [Asset] Real path of the symlink /lib/ld-linux-aarch64.so.1: /lib/aarch64-linux-gnu/ld-linux-aarch64.so.1
INFO 2023-10-12 15:26:36: [Asset] LD_LIBRARY_PATH=/lib/aarch64-linux-gnu
INFO 2023-10-12 15:26:36: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
INFO 2023-10-12 15:26:36: [Asset] Real path of the symlink /lib/ld-linux-aarch64.so.1: /lib/aarch64-linux-gnu/ld-linux-aarch64.so.1
INFO 2023-10-12 15:26:36: [Asset] LD_LIBRARY_PATH=/lib/aarch64-linux-gnu
INFO 2023-10-12 15:26:36: [XunleiBackendServer] Mount /opt/xunlei/downloads to /xunlei succeeded
INFO 2023-10-12 15:26:36: [XunleiBackendServer] Start Xunlei Backend Server
INFO 2023-10-12 15:26:36: [XunleiBackendServer] Xunlei Backend Server PID: 17700
2023-10-12 07:26:39.834284 UTC - GET / - 96.0us - 303
2023-10-12 07:26:39.840966 UTC - GET /login - 117.7us - 200
2023-10-12 07:26:39.876864 UTC - GET /js/sha3.min.js - 199.4us - 200
2023-10-12 07:26:40.065684 UTC - GET /favicon.ico - 178.8us - 303
2023-10-12 07:26:40.069909 UTC - GET /login - 99.8us - 200
2023-10-12 07:26:41.761888 UTC - POST /login - 242.2us - 303
2023-10-12 07:26:41.768187 UTC - GET / - 106.4us - 307
2023-10-12 07:26:41.774688 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 214.6ms - 502
2023-10-12 07:26:42.942926 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 204.6ms - 502
2023-10-12 07:29:55.236429 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 207.1ms - 502

docker安装:

docker run -it --rm --privileged -p 5055:5055 --name=xunlei \
  -v /opt/xunlei/data:/opt/data \
  -v /opt/xunlei/downloads:/downloads \
  -e XUNLEI_AUTH_USER=admin \
  -e XUNLEI_AUTH_PASSWORD=admin \
  gngpp/xunlei:latest

问题:登入后能正常显示网站后台,但二维码和账密登入无法加载出来

N1,openwrt运行不起来

报错日志如下
DEBUG 2023-06-01 15:15:59: [Asset] ldd --version stdout: musl libc (aarch64)
Version 1.2.3
Dynamic Program Loader
Usage: ldd [options] [--] pathname

DEBUG 2023-06-01 15:15:59: [Asset] Run on musl environment
Error: [Asset] Failed to create directory: /var/packages/pan-xunlei-com/target/host/lib

Caused by:
No such file or directory (os error 2)
DEBUG 2023-06-01 15:16:03: [Asset] ldd --version stdout: musl libc (aarch64)
Version 1.2.3
Dynamic Program Loader
Usage: ldd [options] [--] pathname

DEBUG 2023-06-01 15:16:03: [Asset] Run on musl environment
Error: [Asset] Failed to create directory: /var/packages/pan-xunlei-com/target/host/lib

Caused by:
No such file or directory (os error 2)

请问如何添加新的下载目录

看了以往的issues也没看出个所以然来,只知道和挂载这个操作有关,但试了几种猜测都没用,只好来问大佬了

x86,首次安装无法运行

x86虚拟机下lede的openwrt,首次安装无法运行,开启后等一两秒自动关闭。且无日志输出。
安装方式
`wget https://github.com/gngpp/xunlei/releases/download/v3.8.0-23/xunlei_3.8.0-23_x86_64.ipk
wget https://github.com/gngpp/xunlei/releases/download/v3.8.0-23/luci-app-xunlei_1.0.1-8-1_all.ipk
wget https://github.com/gngpp/xunlei/releases/download/v3.8.0-23/luci-i18n-xunlei-zh-cn_1.0.1-8-1_all.ipk

opkg install xunlei_3.8.0-23_x86_64.ipk
opkg install luci-app-xunlei_1.0.1-8-1_all.ipk
opkg install luci-i18n-xunlei-zh-cn_1.0.1-8-1_all.ipk`

翻阅 closed issue 中案例,卸载重新安装,
执行
service xunlei disable && service xunlei enable
重启,即可运行。

希望可以更新到readme文件

无法正常运行

配置后显示运行,但无法正常访问管理页面,页面是白屏的,什么内容都没有,设备是x96Max+,固件是immortalwrt源码编译
屏幕截图 2023-05-19 122923
日志
屏幕截图 2023-05-19 122742
INFO 2023-05-19 12:27:14: [Asset] LD_LIBRARY_PATH=/var/packages/pan-xunlei-com/target/host/lib
INFO 2023-05-19 12:27:14: [XunleiBackendServer] Mount /opt/xunlei/downloads to /xunlei succeeded
INFO 2023-05-19 12:27:14: [XunleiLauncher] Start Xunlei Pannel UI, listening on 192.168.10.2:5055
INFO 2023-05-19 12:27:14: [XunleiBackendServer] Start Xunlei Backend Server
INFO 2023-05-19 12:27:14: [XunleiBackendServer] Xunlei Backend Server PID: 30300
/var/packages/pan-xunlei-com/target/xunlei-pan-cli-launcher.arm64: symbol lookup error: /var/packages/pan-xunlei-com/target/host/lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE
2023-05-19 04:27:21.841932 UTC - GET / - 98.8us - 307
/var/packages/pan-xunlei-com/target/xunlei-pan-cli-web: symbol lookup error: /var/packages/pan-xunlei-com/target/host/lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE
2023-05-19 04:27:21.856902 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 3.9ms - 200
/var/packages/pan-xunlei-com/target/xunlei-pan-cli-web: symbol lookup error: /var/packages/pan-xunlei-com/target/host/lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE
2023-05-19 04:27:21.969276 UTC - GET /favicon.ico - 3.2ms - 200
2023-05-19 04:28:31.088958 UTC - GET / - 103.4us - 307
/var/packages/pan-xunlei-com/target/xunlei-pan-cli-web: symbol lookup error: /var/packages/pan-xunlei-com/target/host/lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE
2023-05-19 04:28:31.101185 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 3.8ms - 200
/var/packages/pan-xunlei-com/target/xunlei-pan-cli-web: symbol lookup error: /var/packages/pan-xunlei-com/target/host/lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE
2023-05-19 04:28:31.199904 UTC - GET /favicon.ico - 3.2ms - 200

openwrt a53架构安装正常,运行报FATAL: kernel too old

安装正常,能运行,但打开页面是空白的,打开调试输出如下:

Version 1.1.24
Dynamic Program Loader
Usage: ldd [options] [--] pathname

DEBUG 2023-06-11 14:31:50: [Asset] Run on musl environment
DEBUG 2023-06-11 14:31:50: [Asset] ldd stdout: 	/lib/ld-linux-aarch64.so.1 (0x555aec6000)
	libpthread.so.0 => /lib/ld-linux-aarch64.so.1 (0x555aec6000)
	libc.so.6 => /lib/ld-linux-aarch64.so.1 (0x555aec6000)

INFO 2023-06-11 14:31:50: [Asset] Real path of the symlink /lib/ld-linux-aarch64.so.1: /usr/share/xunlei/target/host/lib/ld-linux-aarch64.so.1
INFO 2023-06-11 14:31:50: [Asset] LD_LIBRARY_PATH=/usr/share/xunlei/target/host/lib
INFO 2023-06-11 14:31:50: [XunleiBackendServer] Mount /mnt/mmcblk0p25/videos to /xunlei succeeded
INFO 2023-06-11 14:31:50: [XunleiBackendServer] Start Xunlei Backend Server
INFO 2023-06-11 14:31:50: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
DEBUG 2023-06-11 14:31:50: Server listening on 0.0.0.0:5055
DEBUG 2023-06-11 14:31:50: Running accept thread
INFO 2023-06-11 14:31:50: [XunleiBackendServer] Xunlei Backend Server PID: 9967
FATAL: kernel too old
2023-06-11 14:31:52.978743 UTC - GET / - 91.4us - 303
2023-06-11 14:31:52.986136 UTC - GET /login - 82.2us - 200
2023-06-11 14:31:53.011853 UTC - GET /js/sha3.min.js - 99.2us - 200
2023-06-11 14:31:53.204900 UTC - GET /favicon.ico - 83.6us - 303
2023-06-11 14:31:53.213120 UTC - GET /login - 88.2us - 200
2023-06-11 14:31:57.783508 UTC - POST /login - 138.4us - 303
2023-06-11 14:31:57.788853 UTC - GET / - 74.0us - 307
FATAL: kernel too old
2023-06-11 14:31:57.792609 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 3.1ms - 200
2023-06-11 14:31:57.892847 UTC - GET /favicon.ico - 95.8us - 307
FATAL: kernel too old
2023-06-11 14:31:57.987908 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 3.5ms - 200

编译安装有问题,无法正常编译,并且deb安装也无法使用

系统是debian VPS机,deb安装后访问5055端口,网页显示Something went wrong: Failed to split_once header
删了后
之后尝试编译安装,有以下报错,搞不定了
error: failed to parse manifest at /root/thunder/Cargo.toml

Caused by:
failed to parse the edition key

Caused by:
supported edition values are 2015 or 2018, but 2021 is unknown

软路由重启之后,迅雷服务不启动

软路由重启之后,迅雷不起服务,非要手动在SSH下运行:service xunlei start 才能启动,这个bug能修复吗?

主机名 iStoreOS
型号 Centerm N610
架构 Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
目标平台 x86/64
固件版本 iStoreOS 22.03.6 2024012613 / LuCI istoreos-22.03 branch git-24.016.46072-3e9fab7
内核版本 5.10.201

网页打开502啊

  thunder:
    image: gngpp/xunlei:latest
    privileged: true
    container_name: thunder
    environment:
      XUNLEI_AUTH_USER: "xxx"
      XUNLEI_AUTH_PASSWORD: "xxx"
      UID: 1000
      GID: 1000
    ports:
      - 5055:5055
    volumes:
      - /mydata/Downloads/gngpp:/opt/data
      - /mydata/Downloads:/downloads
    restart: unless-stopped

```
```
INFO 2023-09-16 08:47:03: [Asset] LD_LIBRARY_PATH=/var/packages/pan-xunlei-com/target/host/lib
INFO 2023-09-16 08:47:03: [Asset] Real path of the symlink /lib64/ld-linux-x86-64.so.2: /var/packages/pan-xunlei-com/target/host/lib/ld-linux-x86-64.so.2
INFO 2023-09-16 08:47:03: [Asset] LD_LIBRARY_PATH=/var/packages/pan-xunlei-com/target/host/lib
INFO 2023-09-16 08:47:03: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
INFO 2023-09-16 08:47:03: [XunleiBackendServer] Mount /downloads to /xunlei succeeded
INFO 2023-09-16 08:47:03: [XunleiBackendServer] Start Xunlei Backend Server
INFO 2023-09-16 08:47:03: [XunleiBackendServer] Xunlei Backend Server PID: 58
2023-09-16 08:49:02.237764 UTC - GET / - 29.2us - 303
2023-09-16 08:49:02.265826 UTC - GET /login - 26.6us - 200
2023-09-16 08:49:02.360143 UTC - GET /js/sha3.min.js - 42.2us - 200
2023-09-16 08:49:03.054189 UTC - GET /favicon.ico - 26.6us - 303
2023-09-16 08:49:03.071404 UTC - GET /login - 33.7us - 200
2023-09-16 08:49:06.861270 UTC - POST /login - 52.4us - 303
2023-09-16 08:49:06.885475 UTC - GET / - 27.0us - 307
2023-09-16 08:49:06.908383 UTC - GET /webman/3rdparty/pan-xunlei-com/index.cgi/ - 96.0ms - 502

```


用这个挂网心云,跑量但是收益砍成0

测试条件:
1、黑群晖+xunlei插件
2、debian12+仓库迅雷deb安装包

一样的账号密码配置,在隔离的网络里,同时新开同时挂,两者都有跑量,但是黑裙的连续几天有金额结算0.52,仓库的插件包永远是0.00

[Bug] 打开控制台产生大量僵尸进程

打开位于5055的控制台后,关闭网页,使用ps -ef查询系统进程,会出现僵尸进程。浏览控制台越多,僵尸进程越多。
系统debian12
root 440 383 0 06:44 ? 00:00:00 [xunlei-pan-cli-] <defunct>

运行不起来 怎么解决?

root@OpenWrt:/tmp/upload# xunlei launcher
ERROR 2023-08-19 15:02:27: [XunleiBackendServer] error: [XunleiBackendServer] Mount /opt/xunlei/downloads to /xunlei failed
INFO 2023-08-19 15:02:27: [XunleiLauncher] All services have been complete
root@OpenWrt:/tmp/upload# sudo
-bash: sudo: command not found
root@OpenWrt:/tmp/upload# su
-bash: su: command not found
root@OpenWrt:/tmp/upload# xunlei launcher
INFO 2023-08-19 15:09:53: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
ERROR 2023-08-19 15:09:53: [XunleiBackendServer] error: [XunleiBackendServer] Mount /opt/xunlei/downloads to /xunlei failed
INFO 2023-08-19 15:09:53: [XunleiLauncher] All services have been complete

docker 启动成功但 web 面板拒绝连接

docekr-compose.yaml

services:
  xunlei:
    image: gngpp/xunlei:3.11.2-31
    privileged: true
    network_mode: host
    container_name: xunlei
    environment:
      - UID=1000
      - GID=1000
    volumes:
      - /approot/etc/xunlei:/opt/data
      - /mnt/download/cache:/downloads
    restart: unless-stopped

日志:

madray@nas-debian-11:/approot/docker/xunlei$ docker-compose logs xunlei
xunlei  | INFO 2023-09-05 09:57:23: [Asset] LD_LIBRARY_PATH=/var/packages/pan-xunlei-com/target/host/lib
xunlei  | INFO 2023-09-05 09:57:23: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
xunlei  | INFO 2023-09-05 09:57:23: [Asset] Real path of the symlink /lib64/ld-linux-x86-64.so.2: /var/packages/pan-xunlei-com/target/host/lib/ld-linux-x86-64.so.2
xunlei  | INFO 2023-09-05 09:57:23: [Asset] LD_LIBRARY_PATH=/var/packages/pan-xunlei-com/target/host/lib
xunlei  | INFO 2023-09-05 09:57:23: [XunleiBackendServer] Mount /downloads to /xunlei succeeded
xunlei  | INFO 2023-09-05 09:57:23: [XunleiBackendServer] Start Xunlei Backend Server
xunlei  | INFO 2023-09-05 09:57:23: [XunleiBackendServer] Xunlei Backend Server PID: 58

docker 下无法运行,报 /xunlei 挂载错误

环境:

Ubuntu 22.04.2 LTS
Linux server-home 5.15.0-78-generic #85-Ubuntu SMP Fri Jul 7 15:25:09 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Docker version 24.0.5, build ced0996

镜像版本: ghcr.io/gngpp/xunlei:latest IMAGE ID: 0687839b3cfd

报错日志:

INFO 2023-08-11 02:07:16: [Asset] Real path of the symlink /lib64/ld-linux-x86-64.so.2: /var/packages/pan-xunlei-com/target/host/lib/ld-linux-x86-64.so.2
INFO 2023-08-11 02:07:16: [Asset] LD_LIBRARY_PATH=/var/packages/pan-xunlei-com/target/host/lib
ERROR 2023-08-11 02:07:16: [XunleiBackendServer] error: [XunleiBackendServer] Mount /downloads to /xunlei failed
INFO 2023-08-11 02:07:16: [XunleiLauncher] All services have been complete

docker-compose:

services:
  xunlei:
    environment:
      - XUNLEI_GID=1000
      - XUNLEI_UID=1000
    image: ghcr.io/gngpp/xunlei:latest
    ports:
      - target: 5055
        published: "5055"
        protocol: tcp
    privileged: true
    restart: always
    volumes:
      - type: bind
        source: /DATA/AppData/Xunlei
        target: /opt/data
      - type: bind
        source: /DATA/Downloads
        target: /downloads

安装1.0.2后启动不了,fedora 39

chevy@fedora:~/下载$ tar zxvf thunder-1.0.2-x86_64-unknown-linux-musl.tar.gz 
thunder
chevy@fedora:~/下载130$ ll
总计 6400
-rwxr-xr-x. 1 chevy chevy 3274200  3月 2日 19:24 thunder
-rw-r--r--. 1 chevy chevy 3273615  3月 8日 11:21 thunder-1.0.2-x86_64-unknown-linux-musl.tar.gz
chevy@fedora:~/下载$ sudo ./thunder install -U 1000 -G 1000 -d /home/chevy/nasShare/Download/
[sudo] chevy 的密码:
Installing in progress
Config directory: /opt/thunder
Download directory: /home/chevy/nasShare/Download/
  [00:00:02] [############################] 24.67 MiB/24.67 MiB (9.33 MiB/s, 0s)
Install to: /var/packages/pan-xunlei-com/target/xunlei-pan-cli-web
Install to: /var/packages/pan-xunlei-com/target/xunlei-pan-cli.3.19.2.amd64
Install to: /var/packages/pan-xunlei-com/target/xunlei-pan-cli-launcher.amd64
Install to: /var/packages/pan-xunlei-com/target/version
Install to: /var/packages/pan-xunlei-com/target, UID:1000, GID:1000
Installation completed
chevy@fedora:~/下载255$ sudo ./thunder start
chevy@fedora:~/下载$ sudo ./thunder status
Thunder is running with pid: 5528
chevy@fedora:~/下载$ sudo ./thunder log
STDOUT>
2024-03-08T03:25:26.737540Z  INFO thunder::serve::frontend: Starting frontend server: 0.0.0.0:5055    
2024-03-08T03:25:26.738097Z ERROR thunder::serve: error: Failed to set permissions: /var/packages/pan-xunlei-com/target/var -- 511    
2024-03-08T03:25:26.738314Z  INFO thunder::serve: All services have been complete    
chevy@fedora:~/下载$ 

求助,如果是前台启动,浏览器输入http://192.168.217.128:5055/会自动重定项到http://192.168.217.128:5055/webman/3rdparty/pan-xunlei-com/index.cgi/,但控制台还是报错

chevy@fedora:~/下载$ sudo ./thunder status
Thunder is not running
chevy@fedora:~/下载$ sudo ./thunder run
2024-03-08T03:46:40.817369Z  INFO thunder::serve::frontend: Starting frontend server: 0.0.0.0:5055    
2024-03-08T03:46:40.823190Z  INFO thunder::serve::backend: Start Thunder Backend Server    
2024-03-08T03:46:40.827239Z  INFO thunder::serve::backend: Thunder Backend Server PID: 6276    
2024-03-08T03:46:58.275430Z  INFO request{method=GET uri=/ version=HTTP/1.1}: tower_http::trace::on_request: started processing request
2024-03-08T03:46:58.275514Z  INFO request{method=GET uri=/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=0 ms status=307
2024-03-08T03:46:58.283270Z  INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_request: started processing request
2024-03-08T03:46:58.371284Z  INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=88 ms status=502
2024-03-08T03:46:58.371326Z  WARN request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_failure: response failed classification=Status code: 502 Bad Gateway latency=88 ms

1.0.3 非 root 运行时访问 web ui 报 502 错误

日志:


2024-03-21T13:45:31.177969Z  INFO thunder::serve::frontend: Starting frontend server: 0.0.0.0:5055    
2024-03-21T13:45:31.193318Z  INFO thunder::serve::backend: Start Thunder Backend Server    
2024-03-21T13:45:31.194262Z  INFO thunder::serve::backend: Thunder Backend Server PID: 774    
2024-03-21T13:45:42.834729Z  INFO request{method=GET uri=/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=0 ms status=307
2024-03-21T13:45:42.953418Z  INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=113 ms status=502
2024-03-21T13:45:42.953465Z  WARN request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_failure: response failed classification=Status code: 502 Bad Gateway latency=113 ms
2024-03-21T13:48:21.189228Z  INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=112 ms status=502
2024-03-21T13:48:21.189264Z  WARN request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_failure: response failed classification=Status code: 502 Bad Gateway latency=112 ms

系统是 debian 12 更新到最新, 通过 deb 安装的.
使用 root 运行没有问题, 非 root 就出现这样的错误, 所以是非 root 权限不足导致的问题吧, 关于网络权限我不是太懂, 努力了一番没有成功, 不知道问题出在哪里.

N1 openwrt,一直不能成功运行,好像是挂载的问题。

日志如下;

DEBUG 2023-07-29 19:53:06: [Asset] ldd --version stdout: musl libc (aarch64)
Version 1.2.3
Dynamic Program Loader
Usage: ldd [options] [--] pathname

DEBUG 2023-07-29 19:53:06: [Asset] ldd --version stdout: musl libc (aarch64)
Version 1.2.3
Dynamic Program Loader
Usage: ldd [options] [--] pathname

DEBUG 2023-07-29 19:53:06: [Asset] Run on musl environment
DEBUG 2023-07-29 19:53:06: [Asset] Run on musl environment
DEBUG 2023-07-29 19:53:06: [Asset] ldd stdout: 	/lib/ld-linux-aarch64.so.1 (0x7f806d3000)
	libpthread.so.0 => /lib/ld-linux-aarch64.so.1 (0x7f806d3000)
	libc.so.6 => /lib/ld-linux-aarch64.so.1 (0x7f806d3000)

DEBUG 2023-07-29 19:53:06: [Asset] ldd stdout: 	/lib/ld-linux-aarch64.so.1 (0x7fb272d000)
	libpthread.so.0 => /lib/ld-linux-aarch64.so.1 (0x7fb272d000)
	libc.so.6 => /lib/ld-linux-aarch64.so.1 (0x7fb272d000)

INFO 2023-07-29 19:53:06: [Asset] Real path of the symlink /lib/ld-linux-aarch64.so.1: /lib/aarch64-linux-gnu/ld-linux-aarch64.so.1
INFO 2023-07-29 19:53:06: [Asset] Real path of the symlink /lib/ld-linux-aarch64.so.1: /lib/aarch64-linux-gnu/ld-linux-aarch64.so.1
INFO 2023-07-29 19:53:06: [Asset] LD_LIBRARY_PATH=/lib/aarch64-linux-gnu
INFO 2023-07-29 19:53:06: [Asset] LD_LIBRARY_PATH=/lib/aarch64-linux-gnu
INFO 2023-07-29 19:53:06: [XunleiLauncher] Start Xunlei Pannel UI, listening on 0.0.0.0:5055
DEBUG 2023-07-29 19:53:06: Server listening on 0.0.0.0:5055
ERROR 2023-07-29 19:53:06: [XunleiBackendServer] error: [XunleiBackendServer] Mount /mnt/sda1/download to /xunlei failed
DEBUG 2023-07-29 19:53:06: Running accept thread
INFO 2023-07-29 19:53:06: [XunleiLauncher] All services have been complete

始终是 未运行,不懂为什么。求大神看一下

为啥手机迅雷突然找不到远程设备?

突然找不到设备了,以前一直好好的,今天开始一直离线,两边退出账号再登录,问题依旧,不管怎么尝试都无法连接,是不是官方出大砍刀了?

openwrt编译报错了

2024-02-25T05:02:28.8116677Z make[3]: Entering directory '/mnt/openwrt/package/thunder'
2024-02-25T05:02:29.0354312Z mkdir -p /mnt/openwrt/dl
2024-02-25T05:02:29.0386051Z SHELL= flock /mnt/openwrt/tmp/.thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256.flock -c ' /mnt/openwrt/scripts/download.pl "/mnt/openwrt/dl" "thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256" "skip" "" "https://github.com/gngpp/thunder/releases/download/v3.11.2-32/" '
2024-02-25T05:02:29.0657065Z + curl -f --connect-timeout 20 --retry 5 --location https://github.com/gngpp/thunder/releases/download/v3.11.2-32/thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256
2024-02-25T05:02:29.0716058Z % Total % Received % Xferd Average Speed Time Time Time Current
2024-02-25T05:02:29.0717129Z Dload Upload Total Spent Left Speed
2024-02-25T05:02:29.0717740Z
2024-02-25T05:02:29.1642654Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:29.1643906Z 0 9 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:29.1644716Z curl: (22) The requested URL returned error: 404
2024-02-25T05:02:29.1660838Z Download failed.
2024-02-25T05:02:29.1662704Z + curl -f --connect-timeout 20 --retry 5 --location https://sources.cdn.openwrt.org/thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256
2024-02-25T05:02:29.1720227Z % Total % Received % Xferd Average Speed Time Time Time Current
2024-02-25T05:02:29.1721327Z Dload Upload Total Spent Left Speed
2024-02-25T05:02:29.1721957Z
2024-02-25T05:02:29.7675883Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:29.7677147Z 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:29.7678126Z curl: (22) The requested URL returned error: 404
2024-02-25T05:02:29.7693883Z Download failed.
2024-02-25T05:02:29.7695846Z + curl -f --connect-timeout 20 --retry 5 --location https://sources.openwrt.org/thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256
2024-02-25T05:02:29.7753115Z % Total % Received % Xferd Average Speed Time Time Time Current
2024-02-25T05:02:29.7754382Z Dload Upload Total Spent Left Speed
2024-02-25T05:02:29.7754919Z
2024-02-25T05:02:30.1590651Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:30.3386052Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:30.3387136Z 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:30.3393614Z curl: (22) The requested URL returned error: 404
2024-02-25T05:02:30.3405716Z Download failed.
2024-02-25T05:02:30.3407471Z + curl -f --connect-timeout 20 --retry 5 --location https://mirror2.openwrt.org/sources/thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256
2024-02-25T05:02:30.3469178Z % Total % Received % Xferd Average Speed Time Time Time Current
2024-02-25T05:02:30.3470896Z Dload Upload Total Spent Left Speed
2024-02-25T05:02:30.3471454Z
2024-02-25T05:02:30.8334299Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:30.8335140Z 0 153 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2024-02-25T05:02:30.8342324Z curl: (22) The requested URL returned error: 404
2024-02-25T05:02:30.8352251Z Download failed.
2024-02-25T05:02:30.8352965Z No more mirrors to try - giving up.
2024-02-25T05:02:30.8364370Z make[3]: *** [Makefile:37: /mnt/openwrt/dl/thunder-3.11.2-32-aarch64-unknown-linux-musl.tar.gz.sha256] Error 2
2024-02-25T05:02:30.8365172Z make[3]: Leaving directory '/mnt/openwrt/package/thunder'
2024-02-25T05:02:30.8368806Z time: package/thunder/compile#0.34#0.09#2.03
2024-02-25T05:02:30.8375856Z ERROR: package/thunder failed to build.
2024-02-25T05:02:30.8379783Z make[2]: *** [package/Makefile:116: package/thunder/compile] Error 1
2024-02-25T05:02:30.8384070Z make[2]: Leaving directory '/mnt/openwrt'
2024-02-25T05:02:30.8390835Z make[1]: *** [package/Makefile:110: /mnt/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
2024-02-25T05:02:30.8393194Z make[1]: Leaving directory '/mnt/openwrt'
2024-02-25T05:02:30.8413772Z make: *** [/mnt/openwrt/include/toplevel.mk:231: world] Error 2
2024-02-25T05:02:30.8499737Z ##[error]Process completed with exit code 2.

文件名不对导致无法下载

使用deb包安装无法使用

使用omv系统用deb安装后访问5055端口,网页显示Something went wrong: Failed to split_once header,log显示
2024-02-18T03:10:33.894855Z INFO thunder::serve::frontend: Starting frontend server: 0.0.0.0:5055
2024-02-18T03:10:33.909232Z INFO thunder::serve::backend: Start Thunder Backend Server
2024-02-18T03:10:33.912521Z INFO thunder::serve::backend: Thunder Backend Server PID: 7555
2024-02-18T03:10:37.963803Z INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_request: started processing request
2024-02-18T03:10:38.210804Z INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=247 ms status=500
2024-02-18T03:10:38.210867Z WARN request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=247 ms
2024-02-18T03:10:46.397549Z INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_request: started processing request
2024-02-18T03:10:46.610879Z INFO request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_response: finished processing request latency=213 ms status=500
2024-02-18T03:10:46.610978Z WARN request{method=GET uri=/webman/3rdparty/pan-xunlei-com/index.cgi/ version=HTTP/1.1}: tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=213 ms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.