Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2681

General Questions • [Software] Problem with qbittorrent after autostart

$
0
0
Hi everyone,
I have a nas debian vm with qbt/plex/samba(nothing complicated). When I set up the vm first time, I installed qbt native installation(latest stable version 4.5.2) and set it to autostart.
Then I noticed that when I reboot the machine or a current outage takes place, qbt starts and torrents seem to be active but something weird happens. Completed torrents do not actually seed and report to trackers and incomplete torrents do not resume download and stay at downloading(zero seeds/peers & trackers report "not contacted yet"). The same happens if I add a new torrent, it stays at downloading.
When that happened I closed qbt and clicked the icon to start it again but it didn't start. I had open task manager, search qbt(yes, it was still there) and kill the application. Then qbt client started normally.
I have found very little information about this on internet, so I asked on github. A person told me to try to reproduce the issue on newer versions of qbt but the latest stable version for the app is 4.5.2 on debian.
Then I installed it via flatpak(v4.6.2) but I had some other minor issues such as webui freespace reported as unknown and paths format in app was more complicated and the initial issue persisted.
Then tried appimage(4.6.2, 4.6.3) from official website. The minor issues to which I referred were solved but my major problem still existed.
I have also tried to delay qbt autostart but it didn't help either.
The default save location is on an external HDD(set to auto mount when vm starts), if it matters.
After, I installed qbittorrent-nox(4.5.2) with the same result and then moved to qbittorrent-nox-static(4.6.3). Of course the problem is still there.
Now that qbittorrent is a service I have noticed that after system reboot when I add a torrent it starts as downloading for 1-2 seconds but 0kb/s speed is showing and only progress bar is active. At the same time if a torrent is seeding, speed sticks forever at the number it showed when new torrent is added. Same if I force resume. I have to

Code:

pkill -9 qbittorrent
and then

Code:

systemctl start qbittorrent
to work correctly.
I tried to create a script to kill and restart qbt immediatelly after system reboot but it doesn't work.

Code:

#!/bin/bash# Step 1: Wait for 20 secondssleep 20# Step 2: Kill the qBittorrent-nox processpkill -9 qbittorrent-nox# Step 3: Wait until qBittorrent-nox is closedsleep 10# Step 4: Start qBittorrent-noxsystemctl start qbittorrent
and

Code:

@reboot /home/username/restart_qbt-nox.sh
Also I tried:

Code:

#!/bin/bash# Step 1: Kill the qBittorrent-nox processpkill -9 qbittorrent-nox# Step 2: Wait until qBittorrent-nox is closedsleep 10# Step 3: Start qBittorrent-noxsystemctl start qbittorrent
and

Code:

@reboot sleep 20 && /home/seedbox/restart_qbt-nox.sh
.

Also tried the above as a user service.
I can't understand what is wrong and this is happening...
Please provide any help...

Statistics: Posted by alxnt — 2024-02-04 11:31



Viewing all articles
Browse latest Browse all 2681

Trending Articles