Everything posted by DZMM
-
VM Backup Plugin
@JTok AHH found it - yeah it really needs to be at the top of the page. Creating a profile should be the first thing done, and an option to start it with the current settings or to use the default settings. I was surprised to see I had 3 profiles (default, w10 and pfsense) to choose from on the front page when I'd only created two. Hope that makes sense.
-
VM Backup Plugin
Thanks for a great update. I'm not sure if the multi-config is working though. Here's what I did to try and create a new config for my pfsense VM based on my W10 config: 1. created config for W10 - saved and created config name 2. created copy and called if pfsense 3. tried to go and change the VMs to backup for pfsense config, but it won't let me change Also, oddly it lets you select multiple configs to edit - shouldn't it be only one to edit? Thanks
-
[Support] Linuxserver.io - Qbittorrent
I've been having a mare with all torrent dockers getting unrar to work, but I found this post so I tried the above on this docker and it didn't work. I then realised it was a post for the binhex version where it worked. Out of interest, does this docker have unrar included and it should have worked?
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
do you mount unionfs in /mnt/user/ or /mnt/disks? I had problems with /mnt/disks when I first started
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
@Kaizac - why do you need the recycling bin? Maybe that's the problem docker run -d --name='sonarr' --net='br0.55' --ip='192.168.50.95' --cpuset-cpus='1,8,9,17,24,25' --log-opt max-size='50m' --log-opt max-file='3' -e TZ="Europe/London" -e HOST_OS="Unraid" -e 'TCP_PORT_8989'='8989' -e 'PUID'='99' -e 'PGID'='100' -v '/dev/rtc':'/dev/rtc':'ro' -v '/mnt/user/':'/user':'rw' -v '/mnt/disks/':'/disks':'rw,slave' -v '/boot/config/plugins/user.scripts/scripts/':'/scripts':'rw' -v '/boot/config/plugins/user.scripts/scripts/unrar_cleanup_sonarr/':'/unrar':'rw' -v '/mnt/cache/appdata/dockers/sonarr':'/config':'rw' 'linuxserver/sonarr:preview'
-
[DEPRECATED] Linuxserver.io - Rutorrent
@sparklyballs I found this post that fixed previous unrar problems. I've checked and I can see the correct lines in config.php - is there something else that needs doing to get unrar working? Thanks
-
unRAID 6 NerdPack - CLI tools (iftop, iotop, screen, kbd, etc.)
Thank you so much! Working now
-
unRAID 6 NerdPack - CLI tools (iftop, iotop, screen, kbd, etc.)
Just tried: uninstalling python packages, rebooting and then just installing python3 (no pip or setuptools via nerdpack). Still having problems installing plexapi, which used to work for the script I use. I can do this no problem on Windows and Ubuntu, but I need to run this particular script on unRAID. Here's the error if it makes sense to anyone (before the first command I ran (python3 -m ensurepip --default-pip) : root@Highlander:/mnt/cache/appdata/other/plex/python-plexlibrary-master# pip install plexapi Collecting plexapi Downloading https://files.pythonhosted.org/packages/16/85/54fa59b0b6dc42a3d0b7280adbfe4b452df57e4755a50b092be2c9885c3c/PlexAPI-3.3.0.tar.gz (73kB) |████████████████████████████████| 81kB 3.7MB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-230zkyc5/plexapi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-230zkyc5/plexapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /tmp/pip-install-230zkyc5/plexapi/ Complete output (11 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.8/site-packages/setuptools/__init__.py", line 20, in <module> from setuptools.dist import Distribution, Feature File "/usr/lib64/python3.8/site-packages/setuptools/dist.py", line 35, in <module> from setuptools import windows_support File "/usr/lib64/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module> import ctypes File "/usr/lib64/python3.8/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: libffi.so.7: cannot open shared object file: No such file or directory ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. WARNING: You are using pip version 19.2.3, however version 19.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. root@Highlander:/mnt/cache/appdata/other/plex/python-plexlibrary-master# pip install --upgrade pip Collecting pip Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB) |████████████████████████████████| 1.4MB 3.2MB/s Installing collected packages: pip Found existing installation: pip 19.2.3 Uninstalling pip-19.2.3: Successfully uninstalled pip-19.2.3 Successfully installed pip-19.3.1 root@Highlander:/mnt/cache/appdata/other/plex/python-plexlibrary-master# pip install plexapi Collecting plexapi Using cached https://files.pythonhosted.org/packages/16/85/54fa59b0b6dc42a3d0b7280adbfe4b452df57e4755a50b092be2c9885c3c/PlexAPI-3.3.0.tar.gz ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dqoxi6ls/plexapi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dqoxi6ls/plexapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-dqoxi6ls/plexapi/pip-egg-info cwd: /tmp/pip-install-dqoxi6ls/plexapi/ Complete output (11 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.8/site-packages/setuptools/__init__.py", line 20, in <module> from setuptools.dist import Distribution, Feature File "/usr/lib64/python3.8/site-packages/setuptools/dist.py", line 35, in <module> from setuptools import windows_support File "/usr/lib64/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module> import ctypes File "/usr/lib64/python3.8/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: libffi.so.7: cannot open shared object file: No such file or directory ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. root@Highlander:/mnt/cache/appdata/other/plex/python-plexlibrary-master# pip list Package Version ----------- ------- pip 19.3.1 ruamel.yaml 0.16.5 setuptools 41.2.0 I've tried and also failed with: pip3 install plexapi But I've successfully managed to install requests, ruamel.yaml and lxml. trakt also fails: pip install trakt Collecting trakt Downloading https://files.pythonhosted.org/packages/08/a0/4689f48a3b53d57c22659e45cb9fabe5b323f2c75727b22fd70d1071a247/trakt-2.12.0.tar.gz ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e8m1crhi/trakt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e8m1crhi/trakt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-e8m1crhi/trakt/pip-egg-info cwd: /tmp/pip-install-e8m1crhi/trakt/ Complete output (11 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.8/site-packages/setuptools/__init__.py", line 20, in <module> from setuptools.dist import Distribution, Feature File "/usr/lib64/python3.8/site-packages/setuptools/dist.py", line 35, in <module> from setuptools import windows_support File "/usr/lib64/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module> import ctypes File "/usr/lib64/python3.8/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: libffi.so.7: cannot open shared object file: No such file or directory ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. All help appreciated!
-
unRAID 6 NerdPack - CLI tools (iftop, iotop, screen, kbd, etc.)
I'm having some problems running some python scripts I was able to run previously i.e. I've screwed something up. It looks like when I remove python from nerd tools to try a fresh attempt, existing packages and changes I've made are still there e.g. if I do pip list I can see things like requests that I'd already installed. How do I completely uninstall python and any packages I've installed so that I can start from a clean installation? Thanks in advance
-
[DEPRECATED] Linuxserver.io - Rutorrent
@J89eu I'm having the same problem - did you find a fix?
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Torrents with Unionfs: torrent gets download torrent gets copied to unionfs folder - disk write (time+wear) plus 2x torrent space taken up copied torrent gets uploaded whilst orig is seeding delete seed whenever Torrents with mergerfs: torrent gets download hardlink created to unionfs folder - no disk write, noise, no time to copy, no 2x torrent space taken up hardlinked torrent gets uploaded whilst orig is seeding delete seed whenever
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Glad you got it working, but looking again at my post I'm not sure if doing: /media/downloads <-> /mnt/user/mount_unionfs/google_vfs/downloads/ /media <-> /mnt/user/mount_unionfs/google_vfs/ will work. I'm no expert and what I do to also ensure I don't mess up when moving stuff around in dockers is just use these mappings for all my dockers: /user <-> /mnt/user/ /disks <-> /mnt/disks/ (RW Slave) That way all dockers are consistent and I don't have to remember mappings.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
I'm glad it's working perfectly for you. I've been doing this for about 20 months now and I've only had one issue when google had problems with rclone user_IDs for about 2 days. I moved home recently and lost my 1Gbps connection, but even on my 360/180 with lots of users I've not had any buffering, with a lot of other traffic occuring at the same time.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Using both /data and /media is your problem - your dockers think these are two separate disks so you don't get hardlinking and moving instead of copying benefits. Within your containers, point nzbget etc to /media/downloads
-
[Plugin] CA User Scripts
I currently run two scripts that I'd like to combine into one. They check to see if my cache disk has got to a certain amount of % used - if it's less than a certain amount it moves files that I don't need on the cache to the array so that files I want on the cache can stay on for longer - if it's over a certain amount then it starts the mover (I've disabled the scheduled mover) Here's the first script: #!/usr/bin/php <?PHP $min = 70; $max = 90; $moveAt = 90; $diskTotal = disk_total_space("/mnt/cache"); $diskFree = disk_free_space("/mnt/cache"); $percentUsed = ($diskTotal - $diskFree) / $diskTotal * 100; if ( $percentUsed > $moveAt ) { $my_string = 'Starting mover'; echo $my_string; echo "<br>"; exec("/usr/local/sbin/mover"); } else { $my_string = 'Not running mover'; echo $my_string; echo "<br>"; } if (($min <= $percentUsed) and ($percentUsed <= $max)) { $my_string2 = 'starting diskmv_all'; echo $my_string2; echo "<br>"; echo "<br>"; exec("bash /boot/config/plugins/user.scripts/scripts/diskmv_all/script"); } else { $my_string = 'Not running diskmv_all'; echo $my_string; echo "<br>"; } ?> and the second that runs the diskmv script: #!/bin/bash ####### Check if script already running ########## echo "$(date "+%d.%m.%Y %T") INFO: Creating Tracker file." if [[ -f "/mnt/user/appdata/other/rclone/diskmv_running" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Exiting as script already running." exit else touch /mnt/user/appdata/other/rclone/diskmv_running fi if [ -f /var/run/mover.pid ]; then if ps h `cat /var/run/mover.pid` | grep mover ; then echo "$(date "+%d.%m.%Y %T") INFO: mover already running. Removing Tracker file." rm /mnt/user/appdata/other/rclone/diskmv_running exit 0 fi fi # /usr/local/sbin/mdcmd set md_write_method 1 # echo "Turbo write mode now enabled" echo "$(date "+%d.%m.%Y %T") INFO: moving backup." bash /boot/config/plugins/user.scripts/scripts/diskmv/script -f -v "/mnt/user/backup" cache disk2 # echo "$(date "+%d.%m.%Y %T") INFO: moving local." bash /boot/config/plugins/user.scripts/scripts/diskmv/script -f -v "/mnt/user/local/tdrive_vfs/downloads/complete" cache disk1 echo "$(date "+%d.%m.%Y %T") INFO: moving media." bash /boot/config/plugins/user.scripts/scripts/diskmv/script -f -v "/mnt/user/media/music" cache disk2 bash /boot/config/plugins/user.scripts/scripts/diskmv/script -f -v "/mnt/user/media/other_media/books" cache disk2 bash /boot/config/plugins/user.scripts/scripts/diskmv/script -f -v "/mnt/user/media/other_media/photos" cache disk2 bash /boot/config/plugins/user.scripts/scripts/diskmv/script -f -v "/mnt/user/media/other_media/videos" cache disk2 # /usr/local/sbin/mdcmd set md_write_method 0 # echo "Turbo write mode now disabled" echo "$(date "+%d.%m.%Y %T") INFO: Removing Tracker file." rm /mnt/user/appdata/other/rclone/diskmv_running exit Is it possible to combine? Thanks in advance
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
@testdasi and @yendi I understand. But, it's worth it. This isn't a small improvement - it's a major one with worthwhile performance improvements. (I) simplest migration: Just change your unionfs mount command for the new mergerfs one is worth doing - you can test it works first by just adding the mergerfs command to a new blank script and mounting in a new location (II) best migration: do (I) + move all your mappings to within /user/mount_mergerfs i.e. /user/mount_mergerfs/downloads and point your download dockers to this location to get hardlinking, file transfer benefits etc
-
Additional Scripts For User.Scripts Plugin
In this script it checks if parity is running and I'd like to do a similar check in a different script for if the mover is running. Can anyone help please ie. what's the mover equivalent for: $vars = parse_ini_file("/var/local/emhttp/var.ini"); if ( $vars['mdResync'] ) { Thanks in advance. Update: Found the answer: https://gist.github.com/fabioyamate/4087999 if [ -f /var/run/mover.pid ]; then if ps h `cat /var/run/mover.pid` | grep mover ; then echo "mover already running" exit 0 fi fi
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
You can ignore that and just ensure all your dockers, including nzbget etc, use mappings within the mergerfs folder and not the local folders to fully benefit from mergerfs's better file transfer capabilities. I decided to ditch rclone_upload to make it easier for users to not mess up and to clean flows up. E.g. before my flow before was: /mnt/user/downloads/movie -->/mnt/user/import/movie -->/mnt/user/mount_unionfs/movies/movie (via /mnt/user/rclone_upload/movies/movie) I.e. 3 different shares. Now I have /mnt/user/mount_mergerfs/downloads/movie --> /mnt/user/mount_mergerfs/complete/movie --> /mnt/user/mount_mergerfs/movies/movie where any local files are in /mnt/user/local and I exclude mnt/user/local/downloads mnt/user/local/complete and mnt/user/local/seeds in the upload script. Makes my life a hell of a lot easier and by including my 'pre-plex' files in the mount I get the full transfer benefits of mergerfs, and I think it will be easier for anyone new to the scripts.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
--dir-cache-time can be large as you want - uploads flush the cache. No real reason, just decided to put a larger number in for the (rare) days when no new content added --fast-list - yep, that shouldn't be there. I forgot to delete when I removed the rc command.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Everything is self-contained in the script - no need to touch CA, nerd tools etc except to install the rclone plugin. Re the mergerfs docker - I'm not an expert, but it's building it direct from the mergerfs author's repo, so the script will only need changing if he updates his build options which I think will be unlikely: https://github.com/trapexit/mergerfs#build-options
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
unRAID is based on slackware and mergerfs doesn't support slackware. Luckily the author just built a docker version we can use.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Also try https://github.com/l3uddz/plex_autoscan
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Easy. Either, use rclone config to change the name of your remote to gdrive_media_vfs: , or: change line 45 of the mount script: rclone mount --allow-other --buffer-size 256M --dir-cache-time 720h --drive-chunk-size 512M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off --vfs-cache-mode writes gdrive_media_vfs: /mnt/user/mount_rclone/google_vfs & to: rclone mount --allow-other --buffer-size 256M --dir-cache-time 720h --drive-chunk-size 512M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off --vfs-cache-mode writes NAME_OF_UNENCRYPTED_REMOTE: /mnt/user/mount_rclone/google_vfs & and 43 of upload script: rclone move /mnt/user/local/google_vfs/ gdrive_media_vfs: -vv --drive-chunk-size 512M --checkers 3 --fast-list --transfers 2 --exclude downloads/** --exclude *fuse_hidden* --exclude *_HIDDEN --exclude .recycle** --exclude *.backup~* --exclude *.partial~* --delete-empty-src-dirs --fast-list --bwlimit 9500k --tpslimit 3 --min-age 30m to: rclone move /mnt/user/local/google_vfs/ YOUR_REMOTE: -vv --drive-chunk-size 512M --checkers 3 --fast-list --transfers 2 --exclude downloads/** --exclude *fuse_hidden* --exclude *_HIDDEN --exclude .recycle** --exclude *.backup~* --exclude *.partial~* --delete-empty-src-dirs --fast-list --bwlimit 9500k --tpslimit 3 --min-age 30m
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Thanks - updated. As I stated earlier, my scripts are a bit different so it's hard for me to test the github version. You're probably right about the docker changes. I setup my mergerfs in putty and I haven't rebooted yet and I cobbled the command together from the one I use to edit dockers, so the interactive bit definitely isn't needed in a script and is probably a bad idea.
-
[Support] Linuxserver.io - Sonarr
Thanks. The previews (sonarr and radarr) have been stable for the last couple of months for me. Radarr V3 in particular has been a godsend, as my library/indexers/something was too big for it and it wouldn't open sometimes for days and if did, was almost impossible to use.