Thoradia Add-ons

  • edjalmo

    I have restricted Jackett memory usage to MemoryHigh=125M and MemoryMax=150M in system.d.

    To activate this restriction on Rasberry Pi, add cgroup_enable=memory at the end of /flash/cmdline.txt

    Please let me know if you can activate memory management and if MemoryHigh and MemoryMax are appropriate for Jackett

    vpeter Thank you for your help with this

  • edjalmo

    I have restricted Jackett memory usage to MemoryHigh=125M and MemoryMax=150M in system.d.

    To activate this restriction on Rasberry Pi, add cgroup_enable=memory at the end of /flash/cmdline.txt

    Please let me know if you can activate memory management and if MemoryHigh and MemoryMax are appropriate for Jackett

    vpeter Thank you for your help with this

    That's great! :)

    I was testing this too, but without MemoryHigh. What it does?

    Tomorrow I tell if some rss sync of sonarr/radarr goes wrong and if the system runs nice

  • Hi

    Just wondering where i could find so more info or a how to for thoridia vpn network interface addon. the only thing in the config is username, password and openvpn file. i've added all 3 and see no indication it is connected or how to bind specific addons to this network. i'm looking to only run sonarr, radarr, jackett and qbittorrent through the vpn. maybe i'm reading the description wrong but from my understanding this is what it does... allows specific addons to bind to this network interface and be routed through a vpn and the rest of the system uses the regular internet connection. can someone please correct me if i'm wrong and this isn't possible and if it is point me in the right direction to getting it set up this way if it is possible

    Thanks

  • edjalmo

    I have restricted Jackett memory usage to MemoryHigh=125M and MemoryMax=150M in system.d.

    To activate this restriction on Rasberry Pi, add cgroup_enable=memory at the end of /flash/cmdline.txt

    Please let me know if you can activate memory management and if MemoryHigh and MemoryMax are appropriate for Jackett

    vpeter Thank you for your help with this

    So, when I wake up today and check my pi it was freezed. I reboot it and this message show up (image 1).

    I left it to see if it repaired by itself and returned to normal, but some time has passed and the system still showing this (image 2).

    I think I'll have to rewrite LibreELEC, install everything and make all the settings from scratch. I should have made a backup :(

    But for the record: the system ran from 10 a.m. to 3:30 p.m. (when the system freezes).

    At midnight I checked the memory usage and rss sync. The memory usage was 86%. The rss sync of sonarr/radarr and everything was okay. I think this limit is adequade (at least for who those use 3 indexers like me).

    I was runing sonarr, radarr, bazarr, jackett and transmission. My Transmission is configure to only download during at dawn.

    I think if I was not using the bazarr this would not have happened. Or maybe a reboot at 12 a.m solve this.

    Is much complicate using all this on pi, unfortunately.

    When I finished configuring the whole system, I'll test again and tell the new results.

    Thanks for helping!

  • I have no idea what caused filesystem corruption

    But writing a lot to SSD is not a good idea, especially on a Raspberry Pi where network and storage share the same bus

    Try using an external disk for storage

    As for memory, Bazarr, Jackett, Sonarr, Radarr each use about 100MB, and more than 400MB together

    Add Kodi and Transmission, and you easily reach the memory capacity of a Raspberry Pi

    Try MemoryMax=100 and MemoryHigh=125 for Bazarr, Jackett, Sonarr, Radarr and Transmission

    Also try phasing activity of Bazarr, Jackett, Sonarr, Radarr and Transmission

  • But writing a lot to SSD is not a good idea, especially on a Raspberry Pi where network and storage share the same bus

    Try using an external disk for storage

    I use a external disk for storage. But transmission download the content in sd card and after move it to my external disk (but although it is still seeding until ratio 1:1 in sd card). When you said use external drive you say the transmission download folder too?

    As for memory, Bazarr, Jackett, Sonarr, Radarr each use about 100MB, and more than 400MB together

    Add Kodi and Transmission, and you easily reach the memory capacity of a Raspberry Pi

    You right! I'm expecting much from it! It have just 1gb of RAM.

    Also try phasing activity of Bazarr, Jackett, Sonarr, Radarr and Transmission

    Using cron?

    But this way I will lost some rss sync and maybe lost content, or am wrong?

  • Hi

    Just wondering where i could find so more info or a how to for thoridia vpn network interface addon. the only thing in the config is username, password and openvpn file. i've added all 3 and see no indication it is connected or how to bind specific addons to this network. i'm looking to only run sonarr, radarr, jackett and qbittorrent through the vpn. maybe i'm reading the description wrong but from my understanding this is what it does... allows specific addons to bind to this network interface and be routed through a vpn and the rest of the system uses the regular internet connection. can someone please correct me if i'm wrong and this isn't possible and if it is point me in the right direction to getting it set up this way if it is possible

    Thanks

    Configure it with a OpenVPN configuration file, userid and password

    This will create the the thoradia-vpn interface

    You can check it is up with ifconfig or ip addr

    To get the default public IP: curl -s https://ipinfo.io/ip

    To get the public IP of thoradia-vpn: curl -s https://ipinfo.io/ip --interface thoradia-vpn

    They should be different

    To configure qBittorrent to use thoradia-vpn add Connection\Interface=thoradia-vpn in /storage.kodi/userdata/addon_data/service.qbittorrent/.config/qBittorrent/qBittorrent.conf

    qBittorernt will work only if thoradia-vpn is up.

  • I use a external disk for storage. But transmission download the content in sd card and after move it to my external disk (but although it is still seeding until ratio 1:1 in sd card). When you said use external drive you say the transmission download folder too?

    You right! I'm expecting much from it! It have just 1gb of RAM.

    Using cron?

    But this way I will lost some rss sync and maybe lost content, or am wrong?

    Disable Transmission (with the UI) while the other processes are very active

  • Disable Transmission (with the UI) while the other processes are very active

    What I did was let the download and upload rate be 0 during the day and in the maximum during at dawn.

    But at dawn everythings it run, rss sync of sonarr/radarr, bazarr downloading subtitles.

    What is better: download the content direct to external drive or download to sd card and after to external drive?

  • Thanks. worked awesome.

  • What I did was let the download and upload rate be 0 during the day and in the maximum during at dawn.

    But at dawn everythings it run, rss sync of sonarr/radarr, bazarr downloading subtitles.

    What is better: download the content direct to external drive or download to sd card and after to external drive?

    Do not overload the bus and SSD with IO

    Restrict IO to 2-3 Mb/s in Transmission

    Prefer external to SSD

  • No log, no clue

    Try installing Mono first, then Webgrab+plus

    Mono requires 300MB, got space?

    With Mono first... The same.. stalled at 25%

    I will try to enable logs

    Space is not a problem 128GB ssd


    log...

    23:51:06.707 T:139743749376192 DEBUG: ------ Window Deinit (DialogSelect.xml) ------

    23:51:06.714 T:139743749376192 DEBUG: CAddonInstaller: installing 'tools.mono' version '9.0.112' from repository 'service.thoradia'

    23:51:22.276 T:139741090281216 DEBUG: Unpacking zip://special%3a%2f%2fhome%2faddons%2fpackages%http://2ftools.mono-9.0.112.zip/tools.mono/ to /storage/.kodi/addons/temp/22010069-ee61-4cdf-b224-2056dd1c84cc

    23:51:24.745 T:139743606077184 DEBUG: LIRC: - NEW ae 0 KEY_EXIT devinput (KEY_EXIT)

    23:51:24.766 T:139743749376192 DEBUG: HandleKey: menu (0xd8) pressed, action is Back

    23:51:24.768 T:139743749376192 DEBUG: CGUIMediaWindow::GetDirectory (addons://service.thoradia/)

    23:51:24.768 T:139743749376192 DEBUG: ParentPath = [addons://repos/]

    23:51:24.771 T:139741098673920 DEBUG: Thread waiting start, auto delete: false

    23:51:24.777 T:139741098673920 DEBUG: CAddonDatabase: SELECT repo.id FROM repo .. took 1 ms

    23:51:24.779 T:139741098673920 DEBUG: CAddonDatabase: query SELECT * FROM addons JOIN addonlinkrepo ON addons.id=addonlinkrepo.idAddon WHERE addonlinkrepo.idRepo IN (15) ORDER BY addons.addonID returned 24 rows in 3 ms

    23:51:24.789 T:139741098673920 DEBUG: CAddonDatabase::GetAddons took 13 ms

    23:51:24.801 T:139741098673920 DEBUG: Thread waiting 139741098673920 terminating

    23:51:24.802 T:139741098673920 DEBUG: Thread BackgroundLoader start, auto delete: false

    23:51:24.814 T:139741098673920 DEBUG: Thread BackgroundLoader 139741098673920 terminating

    23:51:26.222 T:139743606077184 DEBUG: LIRC: - NEW ae 0 KEY_EXIT devinput (KEY_EXIT)

    23:51:26.235 T:139743749376192 DEBUG: HandleKey: menu (0xd8) pressed, action is Back

    23:51:26.236 T:139743749376192 DEBUG: CGUIMediaWindow::GetDirectory (addons://repos/)

    23:51:26.236 T:139743749376192 DEBUG: ParentPath = [addons://]

    few minutes later...

    ls -lart /storage/.kodi/addons/temp/22010069-ee61-4cdf-b224-2056dd1c84cc/

    total 8

    drwxr-xr-x 8 root root 4096 Feb 18 22:51 ..

    drwxr-xr-x 2 root root 4096 Feb 18 22:51 .


    ls -lart .kodi/addons/packages/

    total 282936

    ....

    -rw-r--r-- 1 root root 21688 Feb 17 21:48 service.thoradia-9.0.20.zip

    -rw-r--r-- 1 root root 957852 Feb 17 21:48 service.transmission-9.0.16.zip

    -rw-r--r-- 1 root root 280596 Feb 17 21:48 service.webgrabplus-9.0.106.zip

    -rw-r--r-- 1 root root 43128055 Feb 17 21:48 tools.mono-9.0.112.zip

    -rw-r--r-- 1 root root 2738182 Feb 17 21:49 virtual.thoradia-mono-9.0.10.zip

    -rw-r--r-- 1 root root 27540139 Feb 17 22:55 tools.dotnet-runtime-9.0.104.zip

    Edited 2 times, last by reydecopas (February 18, 2019 at 11:10 PM).

  • According to your log, installation starts at :06, unpacking starts at :22, installation is interrupted at :24

    Mono is a 50 MB zip file, which is downloaded and unzipped

    Mono binaries are then unzipped from about 50 MB to several hundreds MB

    Give this a minute or two

    To verify that Mono is correctly installed, use systemctl status tools.mono

    Edited once, last by thoradia (February 19, 2019 at 7:43 AM).

  • With Mono first... The same.. stalled at 25%

    I will try to enable logs

    According to your log, installation starts at :06, unpacking starts at :22, installation is interrupted at :24

    Mono is a 50 MB zip file, which is downloaded and unzipped

    Mono binaries are then unzipped from about 50 MB to several hundreds MB

    Give this a minute or two

    To verify that Mono is correctly installed, use systemctl status tools.mono

    Is not interrupted... Just change screen n let things happening in background.

    I will check for systemctl


    This is what I get

    Unit tools.mono.service could not be found.


    New checks

    22:13:33.421 T:140121361872640 ERROR: CAddonInstallJob[tools.mono]: invalid package special://home/addons/packages/tools.mono-9.0.112.zip

    22:13:33.421 T:140121361872640 ERROR: Delete - Error deleting file /storage/.kodi/addons/packages/tools.mono-9.0.112.zip

    md5sum /storage/.kodi/addons/packages/tools.mono-9.0.112.zip

    436afc6aa28fccd949553836b2396b5c /storage/.kodi/addons/packages/tools.mono-9.0.112.zip

    ps ax shows 24hours after click install

    24843 root 0:00 xz -d -qq

    lsof | grep 24843

    24843 /usr/bin/busybox pipe:[103966]

    24843 /usr/bin/busybox pipe:[103967]

    24843 /usr/bin/busybox socket:[18484]

    24843 /usr/bin/busybox /proc/stat

    24843 /usr/bin/busybox /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq

    24843 /usr/bin/busybox socket:[15741]

    24843 /usr/bin/busybox /storage/.kodi/temp/kodi.log

    24843 /usr/bin/busybox socket:[17683]

    24843 /usr/bin/busybox socket:[22192]

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoSans-Bold.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/fonts/NotoMono-Regular.ttf

    24843 /usr/bin/busybox /usr/share/kodi/addons/skin.estuary/media/Textures.xbt

    24843 /usr/bin/busybox /storage/.kodi/addons/packages/tools.mono-9.0.112.zip

    24843 /usr/bin/busybox socket:[16228]

    24843 /usr/bin/busybox pipe:[15768]

    24843 /usr/bin/busybox /dev/input/js0

    24843 /usr/bin/busybox pipe:[15768]

    24843 /usr/bin/busybox socket:[15775]

    24843 /usr/bin/busybox socket:[15778]

    24843 /usr/bin/busybox socket:[16232]

    24843 /usr/bin/busybox socket:[15779]

    24843 /usr/bin/busybox socket:[15780]

    24843 /usr/bin/busybox socket:[15776]

    24843 /usr/bin/busybox socket:[15777]

    24843 /usr/bin/busybox /dev/urandom

    24843 /usr/bin/busybox socket:[15785]

    24843 /usr/bin/busybox socket:[15782]

    24843 /usr/bin/busybox socket:[15783]

    24843 /usr/bin/busybox socket:[15784]

    24843 /usr/bin/busybox socket:[15786]

    24843 /usr/bin/busybox socket:[15787]

    24843 /usr/bin/busybox socket:[15788]

    24843 /usr/bin/busybox socket:[17710]

    24843 /usr/bin/busybox socket:[15789]

    24843 /usr/bin/busybox pipe:[18907]

    24843 /usr/bin/busybox pipe:[18907]

    24843 /usr/bin/busybox socket:[18908]

    24843 /usr/bin/busybox socket:[23927]

    24843 /usr/bin/busybox socket:[22212]

    Edited 4 times, last by reydecopas (February 20, 2019 at 6:58 PM).

  • edjalmo

    I have restricted Jackett memory usage to MemoryHigh=125M and MemoryMax=150M in system.d.

    To activate this restriction on Rasberry Pi, add cgroup_enable=memory at the end of /flash/cmdline.txt

    Please let me know if you can activate memory management and if MemoryHigh and MemoryMax are appropriate for Jackett

    vpeter Thank you for your help with this

    So, 2 days running without freezings and reboots (image). I'm running Sonarr and Radarr with MemoryHigh=125M and MemoryMax=150M too. But not running Bazarr, just Radarr, Sonarr, Jackett and Transmission. And now doing the downloads direct to external disk 😁

    If the memory usage stay at ~80% I will do nothing, but if it increase I will try add a WatchdogSec= in Sonarr/Radarr/Jackett for something like reboot every day, or maybe learn how I do this using .timer

    Maybe I try add Bazarr to run just during at dawn and in the same time I stop Kodi (to prevent the freeze), but not for now.

    It's a bad ideia put MemoryHigh=125M and MemoryMax=150M by default in Sonarr, Radarr and Bazarr too? For at least for Raspberry devices (I don't kow how many LibreELEC devices have little memory) and putting a disclaimer in readme section, explaining it have to add cgroup_enable=memory in /flash/cmdline.txt to make this work (just an idea).

    Thanks again for helping :)