Raspberry Pi 5上qBittorrent-nox服务频繁重启问题求助
Raspberry Pi 5上qBittorrent-nox服务频繁重启问题求助
我手里的Raspberry Pi 5(8GB版)装了Raspberry Pi OS,现在遇到个头疼的问题:用apt安装的qbittorrent-nox每次启动大概1分30秒就会崩溃。
虽然我设置了自动重启的服务,它会在3秒内重新启动,但这种频繁重启不仅烦,对做种和下载也很影响,我实在搞不懂为啥会这样。
我自己试着排查了下,从日志里看似乎是systemd服务超时了?而且我切换到专门用来运行qbittorrent-nox的qbit用户手动启动的话,它就能正常运行,完全不会重启。
下面是我用的服务配置文件(基本是照搬的模板,没怎么改,很多地方我也不太懂)和对应的服务日志,麻烦大家帮忙看看:
我的qBittorrent服务配置
[Unit] Description=qBittorrent Command Line Client After=network.target [Service] #Do not change to "simple" Type=forking User=qbit Group=qbit ExecStart=/usr/bin/qbittorrent-nox ExecStop=/usr/bin/killall -w qbittorrent-nox Restart=on-failure [Install] WantedBy=multi-user.target
服务日志(journalctl输出)
MAGPi@raspberrypi:~ $ journalctl -xeu qbit.service ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit qbit.service has finished with a failure. ░░ ░░ The job identifier is 152795 and the job result is failed. Dec 18 00:05:26 raspberrypi systemd[1]: qbit.service: Consumed 1.685s CPU time. ░░ Subject: Resources consumed by unit runtime ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit qbit.service has finished with a failure. ░░ ░░ Defined-By: systemd ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit qbit.service has finished with a failure. ░░ ░░ The job identifier is 152795 and the job result is failed. Dec 18 00:05:26 raspberrypi systemd[1]: qbit.service: Consumed 1.685s CPU time. ░░ Subject: Resources consumed by unit runtime ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit qbit.service completed and consumed the indicated resources. Dec 18 00:05:26 raspberrypi systemd[1]: qbit.service: Scheduled restart job, restart counter is at 1784. ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ Automatic restarting of the unit qbit.service has been scheduled, as the result for ░░ the configured Restart= setting for the unit. Dec 18 00:05:26 raspberrypi systemd[1]: Stopped qbit.service - qBittorrent Command Line Client. ░░ Subject: A stop job for unit qbit.service has finished ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A stop job for unit qbit.service has finished. ░░ ░░ The job identifier is 152877 and the job result is done. Dec 18 00:05:26 raspberrypi systemd[1]: qbit.service: Consumed 1.685s CPU time. ░░ Subject: Resources consumed by unit runtime ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit qbit.service completed and consumed the indicated resources. Dec 18 00:05:26 raspberrypi systemd[1]: Starting qbit.service - qBittorrent Command Line Client... ░░ Subject: A start job for unit qbit.service has begun execution ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit qbit.service has begun execution. ░░ ░░ The job identifier is 152877.
备注:内容来源于stack exchange,提问作者AyaanMAG




