qBittorrent restarts randomly Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: qBittorrent restarts randomly

Post by Joulinar »

is there a way to force the crash and watch CPU + Mem?

As well can you check for kernel error messages dmesg -l err,crit,alert,emerg
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Juancafr
Posts: 8
Joined: Sun Apr 04, 2021 1:56 pm

Re: qBittorrent restarts randomly

Post by Juancafr »

Joulinar wrote: Wed Apr 07, 2021 5:31 pm is there a way to force the crash and watch CPU + Mem?

As well can you check for kernel error messages dmesg -l err,crit,alert,emerg

Code: Select all

[ 8333.858021] Out of memory: Killed process 14918 (qbittorrent-nox) total-vm:73                                                                              2500kB, anon-rss:544056kB, file-rss:18000kB, shmem-rss:0kB, UID:998 pgtables:125                                                                              2kB oom_score_adj:0
[ 8788.593672] Out of memory: Killed process 14939 (qbittorrent-nox) total-vm:74                                                                              9648kB, anon-rss:564748kB, file-rss:16684kB, shmem-rss:0kB, UID:998 pgtables:128                                                                              4kB oom_score_adj:0
[ 8917.807647] Out of memory: Killed process 15119 (qbittorrent-nox) total-vm:69                                                                              3440kB, anon-rss:507036kB, file-rss:16520kB, shmem-rss:0kB, UID:998 pgtables:117                                                                              2kB oom_score_adj:0
[ 9975.170849] Out of memory: Killed process 15170 (qbittorrent-nox) total-vm:12                                                                              62324kB, anon-rss:1077484kB, file-rss:15420kB, shmem-rss:0kB, UID:998 pgtables:2                                                                              308kB oom_score_adj:0
[12134.162647] Out of memory: Killed process 15272 (qbittorrent-nox) total-vm:11                                                                              47392kB, anon-rss:961796kB, file-rss:14912kB, shmem-rss:0kB, UID:998 pgtables:20                                                                              72kB oom_score_adj:0
[12408.821341] INFO: task rclone:419 blocked for more than 122 seconds.
[12408.821356]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.821362] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.821743] INFO: task rclone:1008 blocked for more than 122 seconds.
[12408.821749]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.821756] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.822084] INFO: task rclone:14234 blocked for more than 122 seconds.
[12408.822090]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.822096] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.822384] INFO: task rclone:14235 blocked for more than 122 seconds.
[12408.822391]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.822397] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.822718] INFO: task rclone:14241 blocked for more than 122 seconds.
[12408.822725]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.822731] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.823055] INFO: task jbd2/sda1-8:668 blocked for more than 122 seconds.
[12408.823062]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.823068] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.823248] INFO: task cron:723 blocked for more than 122 seconds.
[12408.823255]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.823261] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.823552] INFO: task nfsd:1111 blocked for more than 122 seconds.
[12408.823559]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.823565] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[12408.823983] INFO: task kworker/u8:2:15391 blocked for more than 122 seconds.
[12408.823990]       Tainted: G         C        5.10.17-v7l+ #1403
[12408.823996] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this                                                                               message.
[13297.488480] Out of memory: Killed process 15408 (qbittorrent-nox) total-vm:89                                                                              8572kB, anon-rss:717188kB, file-rss:12812kB, shmem-rss:0kB, UID:998 pgtables:158                                                                              8kB oom_score_adj:0
[15522.006204] Out of memory: Killed process 15585 (qbittorrent-nox) total-vm:86                                                                              3304kB, anon-rss:679748kB, file-rss:14552kB, shmem-rss:0kB, UID:998 pgtables:155                                                                              6kB oom_score_adj:0
[15962.201008] Out of memory: Killed process 15722 (qbittorrent-nox) total-vm:10                                                                              02764kB, anon-rss:817556kB, file-rss:13688kB, shmem-rss:0kB, UID:998 pgtables:17                                                                              92kB oom_score_adj:0
[30613.107906] Out of memory: Killed process 15749 (qbittorrent-nox) total-vm:87                                                                              9668kB, anon-rss:696876kB, file-rss:5392kB, shmem-rss:0kB, UID:998 pgtables:1552                                                                              kB oom_score_adj:0
[69696.376113] Out of memory: Killed process 18576 (qbittorrent-nox) total-vm:13                                                                              67000kB, anon-rss:1182960kB, file-rss:7512kB, shmem-rss:0kB, UID:998 pgtables:25                                                                              52kB oom_score_adj:0
[86358.209562] Out of memory: Killed process 21873 (qbittorrent-nox) total-vm:13                                                                              67448kB, anon-rss:1183080kB, file-rss:7720kB, shmem-rss:0kB, UID:998 pgtables:25                                                                              36kB oom_score_adj:0
[104405.138891] Out of memory: Killed process 23303 (qbittorrent-nox) total-vm:1                                                                              389056kB, anon-rss:1204720kB, file-rss:5152kB, shmem-rss:0kB, UID:998 pgtables:2                                                                              632kB oom_score_adj:0
[144300.960079] Out of memory: Killed process 24835 (qbittorrent-nox) total-vm:8                                                                              24576kB, anon-rss:642340kB, file-rss:5696kB, shmem-rss:0kB, UID:998 pgtables:145                                                                              2kB oom_score_adj:0
[145148.742661] Out of memory: Killed process 28788 (qbittorrent-nox) total-vm:9                                                                              55912kB, anon-rss:771476kB, file-rss:16740kB, shmem-rss:0kB, UID:998 pgtables:17                                                                              40kB oom_score_adj:0
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: qBittorrent restarts randomly

Post by Joulinar »

looks you are running out of memory and QBit is going to be killed Out of memory: Killed process 15408 (qbittorrent-nox)

Code: Select all

[13297.488480] Out of memory: Killed process 15408 (qbittorrent-nox) total-vm:89                                                                              8572kB, anon-rss:717188kB, file-rss:12812kB, shmem-rss:0kB, UID:998 pgtables:158                                                                              8kB oom_score_adj:0
[15522.006204] Out of memory: Killed process 15585 (qbittorrent-nox) total-vm:86                                                                              3304kB, anon-rss:679748kB, file-rss:14552kB, shmem-rss:0kB, UID:998 pgtables:155                                                                              6kB oom_score_adj:0
[15962.201008] Out of memory: Killed process 15722 (qbittorrent-nox) total-vm:10                                                                              02764kB, anon-rss:817556kB, file-rss:13688kB, shmem-rss:0kB, UID:998 pgtables:17                                                                              92kB oom_score_adj:0
[30613.107906] Out of memory: Killed process 15749 (qbittorrent-nox) total-vm:87                                                                              9668kB, anon-rss:696876kB, file-rss:5392kB, shmem-rss:0kB, UID:998 pgtables:1552                                                                              kB oom_score_adj:0
[69696.376113] Out of memory: Killed process 18576 (qbittorrent-nox) total-vm:13                                                                              67000kB, anon-rss:1182960kB, file-rss:7512kB, shmem-rss:0kB, UID:998 pgtables:25                                                                              52kB oom_score_adj:0
[86358.209562] Out of memory: Killed process 21873 (qbittorrent-nox) total-vm:13                                                                              67448kB, anon-rss:1183080kB, file-rss:7720kB, shmem-rss:0kB, UID:998 pgtables:25                                                                              36kB oom_score_adj:0
[104405.138891] Out of memory: Killed process 23303 (qbittorrent-nox) total-vm:1                                                                              389056kB, anon-rss:1204720kB, file-rss:5152kB, shmem-rss:0kB, UID:998 pgtables:2                                                                              632kB oom_score_adj:0
[144300.960079] Out of memory: Killed process 24835 (qbittorrent-nox) total-vm:8                                                                              24576kB, anon-rss:642340kB, file-rss:5696kB, shmem-rss:0kB, UID:998 pgtables:145                                                                              2kB oom_score_adj:0
[145148.742661] Out of memory: Killed process 28788 (qbittorrent-nox) total-vm:9 
let's try to add some swap space

Code: Select all

/boot/dietpi/func/dietpi-set_swapfile 1024 zram
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Juancafr
Posts: 8
Joined: Sun Apr 04, 2021 1:56 pm

Re: qBittorrent restarts randomly

Post by Juancafr »

Joulinar wrote: Wed Apr 07, 2021 6:09 pm looks you are running out of memory and QBit is going to be killed Out of memory: Killed process 15408 (qbittorrent-nox)

Code: Select all

[13297.488480] Out of memory: Killed process 15408 (qbittorrent-nox) total-vm:89                                                                              8572kB, anon-rss:717188kB, file-rss:12812kB, shmem-rss:0kB, UID:998 pgtables:158                                                                              8kB oom_score_adj:0
[15522.006204] Out of memory: Killed process 15585 (qbittorrent-nox) total-vm:86                                                                              3304kB, anon-rss:679748kB, file-rss:14552kB, shmem-rss:0kB, UID:998 pgtables:155                                                                              6kB oom_score_adj:0
[15962.201008] Out of memory: Killed process 15722 (qbittorrent-nox) total-vm:10                                                                              02764kB, anon-rss:817556kB, file-rss:13688kB, shmem-rss:0kB, UID:998 pgtables:17                                                                              92kB oom_score_adj:0
[30613.107906] Out of memory: Killed process 15749 (qbittorrent-nox) total-vm:87                                                                              9668kB, anon-rss:696876kB, file-rss:5392kB, shmem-rss:0kB, UID:998 pgtables:1552                                                                              kB oom_score_adj:0
[69696.376113] Out of memory: Killed process 18576 (qbittorrent-nox) total-vm:13                                                                              67000kB, anon-rss:1182960kB, file-rss:7512kB, shmem-rss:0kB, UID:998 pgtables:25                                                                              52kB oom_score_adj:0
[86358.209562] Out of memory: Killed process 21873 (qbittorrent-nox) total-vm:13                                                                              67448kB, anon-rss:1183080kB, file-rss:7720kB, shmem-rss:0kB, UID:998 pgtables:25                                                                              36kB oom_score_adj:0
[104405.138891] Out of memory: Killed process 23303 (qbittorrent-nox) total-vm:1                                                                              389056kB, anon-rss:1204720kB, file-rss:5152kB, shmem-rss:0kB, UID:998 pgtables:2                                                                              632kB oom_score_adj:0
[144300.960079] Out of memory: Killed process 24835 (qbittorrent-nox) total-vm:8                                                                              24576kB, anon-rss:642340kB, file-rss:5696kB, shmem-rss:0kB, UID:998 pgtables:145                                                                              2kB oom_score_adj:0
[145148.742661] Out of memory: Killed process 28788 (qbittorrent-nox) total-vm:9 
let's try to add some swap space

Code: Select all

/boot/dietpi/func/dietpi-set_swapfile 1024 zram
Done, do I try a few days like this?
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: qBittorrent restarts randomly

Post by Joulinar »

ok, let's see how it is going. You can watch memory usage using free -m

It will looks like this

Code: Select all

root@DietPi3:~# free -m
              total        used        free      shared  buff/cache   available
Mem:            973          40         657          15         275         860
Swap:          1073           0        1073
root@DietPi3:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Juancafr
Posts: 8
Joined: Sun Apr 04, 2021 1:56 pm

Re: qBittorrent restarts randomly

Post by Juancafr »

Joulinar wrote: Wed Apr 07, 2021 11:36 pm ok, let's see how it is going. You can watch memory usage using free -m

It will looks like this

Code: Select all

root@DietPi3:~# free -m
              total        used        free      shared  buff/cache   available
Mem:            973          40         657          15         275         860
Swap:          1073           0        1073
root@DietPi3:~#
Yesterday after the command I gave him a lot of cane and for now it works out of 10 !! Thanks a lot.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: qBittorrent restarts randomly

Post by Joulinar »

ok good, you can continue monitoring the memory usage free -m
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply