qBittorrent is *sort of* crashing and I can't work out why.

Linux specific questions, problems.
Post Reply
Lugged1626

qBittorrent is *sort of* crashing and I can't work out why.

Post by Lugged1626 »

I have qBittorrent 4.2.5-0.1 installed on a Raspberry Pi 4 2GB, headless with the webUI.
Every 6-12 hours the webUI becomes inaccessible so I ssh in and see if QB is running or not with:

Code: Select all

systemctl status qbittorrent 
It's always reported as running, despite not being accessible via webUI.

Code: Select all

pi@raspberrypi491:~ $ systemctl status qbittorrent
● qbittorrent.service - qBittorrent
     Loaded: loaded (/etc/systemd/system/qbittorrent.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-07-18 11:46:58 NZST; 10h ago
    Process: 551444 ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080 (code=exited, status=0/SUCCESS)
   Main PID: 551445 (qbittorrent-nox)
      Tasks: 13 (limit: 1598)
        CPU: 1h 43min 41.242s
     CGroup: /system.slice/qbittorrent.service
             └─551445 /usr/bin/qbittorrent-nox -d --webui-port=8080

Jul 18 11:46:58 raspberrypi491 systemd[1]: Starting qBittorrent...
Jul 18 11:46:58 raspberrypi491 systemd[1]: Started qBittorrent.

htop does not show QB as running.

Here are the machine details:

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) aarch64 
Host: Raspberry Pi 4 Model B Rev 1.4 
Kernel: 6.1.21-v8+ 
Uptime: 6 days, 3 hours, 16 mins 
Packages: 1223 (dpkg), 3 (snap) 
Shell: bash 5.1.4 
Resolution: 640x480 
Terminal: /dev/pts/0 
CPU: BCM2835 (4) @ 1.800GHz 
Memory: 337MiB / 1848MiB 
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent is *sort of* crashing and I can't work out why.

Post by Peter »

- Anything in the qbittorrent log?
- Anything in "dmesg"?

You could run qBittorrent headless but from a terminal (in screen/tmux) and check if it gives you any output when this happens..
Lugged1626

Re: qBittorrent is *sort of* crashing and I can't work out why.

Post by Lugged1626 »

I had been struggling to find anything in qbittorrent.log but just found this after looking again this morning. Looks like a networking issue?

Code: Select all

(C) 2023-07-21T05:32:37 - UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: no router found
(C) 2023-07-21T05:32:37 - UPnP/NAT-PMP: Port mapping failure, message: could not map port using UPnP: no router found
(N) 2023-07-21T06:30:02 - qBittorrent v4.2.5 started
(N) 2023-07-21T06:30:02 - Using config directory: /home/pi/.config/qBittorrent/
(N) 2023-07-21T06:30:02 - qBittorrent v4.2.5 started
(N) 2023-07-21T06:30:02 - Using config directory: /home/pi/.config/qBittorrent/
/var/log/dmesg doesn't seem to be generating on this device, That should be fixed now so will post the output on the next crash.
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent is *sort of* crashing and I can't work out why.

Post by Peter »

Nope, that just says it cannot port forward via UPnP protocol, because there is no router, or it won't talk back.
UPnP is like a language, to router's, which lets you open ports.
Sometimes UPnP implementation IS buggy on routers though.

Try simply port forwarding by hand on your router, set it to the machine's IP and see if that works.
Lugged1626

Re: qBittorrent is *sort of* crashing and I can't work out why.

Post by Lugged1626 »

Looks like I had the port forwarded incorrectly in my router, it's been 10hrs and so far so good.
Post Reply