Closed 9191521 closed 6 months ago
请使用 which qbittorrent-nox
查看一下是否正确安装 qbittorrent-nox 二进制。默认安装的 v4.3.9 对应的路径是 /usr/local/bin/qbittorrent-nox
> which qbittorrent-nox
qbittorrent-nox 是 /usr/local/bin/qbittorrent-nox
qbittorrent-nox 是 /usr/bin/qbittorrent-nox
qbittorrent-nox 是 /bin/qbittorrent-nox
qbittorrent-nox 是 /usr/local/bin/qbittorrent-nox
qbittorrent-nox 是 /bin/qbittorrent-nox
qbittorrent-nox 是 /usr/bin/qbittorrent-nox
qbittorrent-nox 是 /usr/bin/qbittorrent-nox
qbittorrent-nox 是 /usr/bin/qbittorrent-nox
麻烦运行一下 cat /etc/systemd/system/qbittorrent@.service
看一下输出
> cat /etc/systemd/system/qbittorrent@.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
Environment="SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
Environment="SSL_CERT_DIR=/etc/ssl/certs"
Type=forking
User=%I
LimitNOFILE=infinity
ExecStart=/usr/local/bin/qbittorrent-nox -d
ExecStop=/usr/bin/killall -w -s 9 /usr/local/bin/qbittorrent-nox
TimeoutSec=300
Restart=on-failure
[Install]
WantedBy=multi-user.target
看起来路径是正确的,能否尝试运行 systemctl restart qbittorrent@你的用户名
如果qbittorrent无法启动再运行 journalctl -u qbittorrent@你的用户名
。
> journalctl -u qbittorrent@xxx
-- Journal begins at Thu 2023-03-09 05:30:20 UTC, ends at Fri 2023-03-10 11:01:31 UTC. --
3月 09 10:41:42 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 09 10:41:42 vpsxxx systemd[1]: Started qBittorrent Daemon Service.
3月 09 10:41:43 vpsxxx systemd[1]: qbittorrent@xxx.service: Succeeded.
-- Boot 27a29fd7543e4808ade5f48c3bebe049 --
3月 10 04:07:17 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 04:07:17 vpsxxx systemd[1]: Started qBittorrent Daemon Service.
3月 10 04:07:19 vpsxxx systemd[1]: qbittorrent@xxx.service: Succeeded.
3月 10 04:10:07 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 04:10:07 vpsxxx systemd[1]: Started qBittorrent Daemon Service.
3月 10 04:10:09 vpsxxx systemd[1]: qbittorrent@xxx.service: Succeeded.
3月 10 04:16:34 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 04:16:34 vpsxxx qbittorrent-nox[50955]: Bad command line:
3月 10 04:16:34 vpsxxx qbittorrent-nox[50955]: 您不能使用 -d (or --daemon):qBittorrent 已在当前用户运行。
3月 10 04:16:34 vpsxxx qbittorrent-nox[50955]: Run application with -h option to read about command line parameters.
3月 10 04:16:34 vpsxxx systemd[1]: qbittorrent@xxx.service: Control process exited, code=exited, status=1/FAILURE
3月 10 04:16:34 vpsxxx systemd[1]: qbittorrent@xxx.service: Failed with result 'exit-code'.
3月 10 04:16:34 vpsxxx systemd[1]: Failed to start qBittorrent Daemon Service.
3月 10 04:19:16 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 04:19:16 vpsxxx qbittorrent-nox[51651]: Bad command line:
3月 10 04:19:16 vpsxxx qbittorrent-nox[51651]: 您不能使用 -d (or --daemon):qBittorrent 已在当前用户运行。
3月 10 04:19:16 vpsxxx qbittorrent-nox[51651]: Run application with -h option to read about command line parameters.
3月 10 04:19:16 vpsxxx systemd[1]: qbittorrent@xxx.service: Control process exited, code=exited, status=1/FAILURE
3月 10 04:19:16 vpsxxx systemd[1]: qbittorrent@xxx.service: Failed with result 'exit-code'.
3月 10 04:19:16 vpsxxx systemd[1]: Failed to start qBittorrent Daemon Service.
3月 10 04:50:53 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 04:51:00 vpsxxx systemd[77934]: qbittorrent@xxx.service: Failed to locate executable /usr/local/bin/qbittorrent-nox: No such file or directory
3月 10 04:51:00 vpsxxx systemd[77934]: qbittorrent@xxx.service: Failed at step EXEC spawning /usr/local/bin/qbittorrent-nox: No such file or directory
3月 10 04:51:00 vpsxxx systemd[1]: qbittorrent@xxx.service: Control process exited, code=exited, status=203/EXEC
3月 10 04:51:00 vpsxxx systemd[1]: qbittorrent@xxx.service: Failed with result 'exit-code'.
3月 10 04:51:00 vpsxxx systemd[1]: Failed to start qBittorrent Daemon Service.
3月 10 04:51:00 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 04:51:01 vpsxxx systemd[78096]: qbittorrent@xxx.service: Failed to locate executable /usr/local/bin/qbittorrent-nox: No such file or directory
3月 10 04:51:01 vpsxxx systemd[78096]: qbittorrent@xxx.service: Failed at step EXEC spawning /usr/local/bin/qbittorrent-nox: No such file or directory
3月 10 04:51:01 vpsxxx systemd[1]: qbittorrent@xxx.service: Control process exited, code=exited, status=203/EXEC
3月 10 04:51:01 vpsxxx systemd[1]: qbittorrent@xxx.service: Failed with result 'exit-code'.
3月 10 04:51:01 vpsxxx systemd[1]: Failed to start qBittorrent Daemon Service.
3月 10 05:02:18 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 05:02:18 vpsxxx systemd[1]: Started qBittorrent Daemon Service.
3月 10 05:02:21 vpsxxx systemd[1]: qbittorrent@xxx.service: Succeeded.
3月 10 11:00:16 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
lines 1-41
根据你这边的日志以及之前的说明,我认为是你在系统中还安装有其他的 qbittorrent 并且已经启动。因此 quickbox lite 后安装的 qbittorrent 无法运行,请至少停止你当前用户已经运行的 qbittorrent 再尝试。已运行的 qbittorrent 可以通过如下命令查询 ps -aux | grep qbittorrent | grep -v grep
抱歉,以为不相关,没介绍全背景,我是先装的quickbox, qbittorrent无法使用,尝试重装也没用,所以安装了另外一个单独qbittorrent(可以使用)。 现在我重装了系统,只装了控制面板,然后box install qbittorrent 还是这个问题,如下 curl: (7) Failed to connect to localhost port 15155: 拒绝连接 不知道这个是不是系统原因
qBittorrent will now be installed.
This process may take a few minutes
Please wait until the process is completed
>> Info: Checking and performing updates to system...
>> Success: System updated.
>> Info: Building qBittorrent...
>> Info: Fetching package list...
>> Warning: Use Libtorrent 1.2.14 for 4.3.x
>> Info: Fetching package list...
>> Success: qBittorrent Built.
>> Info: Configuring qBittorrent...
>> Info: Building libqbpasswd ...
正克隆到 'libqbpasswd'...
g++ -Wall -std=c++11 -Ofast -c base64.cpp
g++ -Wall -std=c++11 -Ofast -c password.cpp
g++ -Wall -std=c++11 -Ofast -c random.cpp
g++ -Wall -std=c++11 -Ofast -c main.cpp
g++ -Wall -std=c++11 -Ofast -o qb_password_gen base64.o random.o password.o main.o -lssl -lcrypto -s
rm *.o
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/ssl/certs/ssl-cert-snakeoil.pem"
>> Success: qBittorrent configured.
>> Info: Configuring qBittorrent lock...
>> Success: qBittorrent lock configured.
>> Info: Starting qBittorrent...
Created symlink /etc/systemd/system/multi-user.target.wants/qbittorrent@yata.service → /etc/systemd/system/qbittorrent@.service.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 15155: 拒绝连接
>> Success: qBittorrent started.
qBittorrent Install Complete!
Close this dialog box to refresh your browser
请你再运行一次 systemctl restart qbittorrent@你的用户名
以及 journalctl -u qbittorrent@你的用户名
> systemctl restart qbittorrent@xxx
[12:28 root@vpsxxx db] > journalctl -u qbittorrent@xxx
-- Journal begins at Fri 2023-03-10 06:49:48 UTC, ends at Fri 2023-03-10 12:28:59 UTC. --
3月 10 12:09:44 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 12:09:44 vpsxxx systemd[1]: Started qBittorrent Daemon Service.
3月 10 12:09:47 vpsxxx systemd[1]: qbittorrent@xxx.service: Succeeded.
3月 10 12:28:20 vpsxxx systemd[1]: Starting qBittorrent Daemon Service...
3月 10 12:28:20 vpsxxx systemd[1]: Started qBittorrent Daemon Service.
3月 10 12:28:22 vpsxxx systemd[1]: qbittorrent@xxx.service: Succeeded.
ps -aux | grep qbittorrent | grep -v grep
有 qbittorrent-nox 在后台运行么。这个情况确实有点像 https://github.com/amefs/quickbox-lite/issues/165
没有
> cat /etc/systemd/system/qbittorrent@.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
Environment="SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
Environment="SSL_CERT_DIR=/etc/ssl/certs"
Type=forking
User=%I
LimitNOFILE=infinity
ExecStart=/usr/local/bin/qbittorrent-nox -d
ExecStop=/usr/bin/killall -w -s 9 /usr/local/bin/qbittorrent-nox
TimeoutSec=300
Restart=on-failure
调整了一下 systemd
配置,麻烦再测试一下。
我暂时用了swizzin
描述 Bug 一键安装完毕(包含qbittorrent),qbittorrent webui 打开后显示502 bad gateway,卸载重装后log如下
桌面系统 (请填写下列信息):
165