Everything posted by DZMM
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
sorry, @francrouge you were having the problem I just fixed. If the mount was successful it wasn't deleting the /mnt/user/appdata/other/rclone/rclone_mount_running file allowing a manual mount to be run, until the unmount script runs at array stop or start. I've removed this check altogether as it's not needed as the script automatically remounts only if the mountcheck file isn't there, which is the real check that needs doing. Here's your scripts: #!/bin/bash ####### Start rclone mounts ########## # create directories for rclone mount and unionfs mount mkdir -p /mnt/user/appdata/other/rclone mkdir -p /mnt/user/mount_rclone/google_vfs mkdir -p /mnt/user/mount_unionfs/google_vfs mkdir -p /mnt/user/rclone_upload/google_vfs ####### Start rclone gdrive mount ########## # check if gdrive mount already created if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check rclone vfs already mounted." else echo "$(date "+%d.%m.%Y %T") INFO: mounting rclone vfs." rclone mount --allow-other --buffer-size 512M --dir-cache-time 72h --drive-chunk-size 512M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off gdrive_media_vfs: /mnt/user/mount_rclone/google_vfs & # check if mount successful # slight pause to give mount time to finalise sleep 5 if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check rclone gdrive vfs mount success." else echo "$(date "+%d.%m.%Y %T") CRITICAL: rclone gdrive vfs mount failed - please check for problems." exit fi fi ####### End rclone gdrive mount ########## ####### Start unionfs mount ########## if [[ -f "/mnt/user/mount_unionfs/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check successful, unionfs already mounted." else unionfs -o cow,allow_other,direct_io,auto_cache,sync_read /mnt/user/rclone_upload/google_vfs=RW:/mnt/user/mount_rclone/google_vfs=RO /mnt/user/mount_unionfs/google_vfs if [[ -f "/mnt/user/mount_unionfs/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check successful, unionfs mounted." else echo "$(date "+%d.%m.%Y %T") CRITICAL: unionfs Remount failed." exit fi fi ####### End Mount unionfs ########## ############### starting dockers that need unionfs mount ###################### # only start dockers once if [[ -f "/mnt/user/appdata/other/rclone/dockers_started" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: dockers already started" else touch /mnt/user/appdata/other/rclone/dockers_started echo "$(date "+%d.%m.%Y %T") INFO: Starting dockers." docker start PlexMediaServer docker start tautulli docker start binhex-sonarr docker start binhex-sickchill docker start binhex-jackett docker start binhex-delugevpn docker start binhex-krusader fi ############### end dockers that need unionfs mount ###################### exit #!/bin/bash # unmount to be safe fusermount -uz /mnt/user/mount_unionfs/google_vfs fusermount -uz /mnt/user/mount_rclone/google_vfs # Remove other dummy files if [[ -f "/mnt/user/appdata/other/rclone/rclone_upload" ]]; then echo "upload file present - removing dummy file" rm /mnt/user/appdata/other/rclone/rclone_upload else echo "rclone upload already exited properly" fi if [[ -f "/mnt/user/appdata/other/rclone/rclone_cleanup" ]]; then echo "cleanup file present - removing dummy file" rm /mnt/user/appdata/other/rclone/rclone_cleanup else echo "cleanup already exited properly" fi if [[ -f "/mnt/user/appdata/other/rclone/dockers_started" ]]; then echo "removing dummy docker check file" rm /mnt/user/appdata/other/rclone/dockers_started else echo "docker run once already removed" fi exit
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
I've fixed some errors in the mount and unmount scripts which might explain why some users were having problems re-mounting
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
I'm going to try and do a review of the github content this weekend as I haven't updated it for over 4 months now.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Post your full script
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Yes
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
My script should automatically remount if you set it up to run on a cron job say every 5 mins - that's what I use. The problem with Plex is if it scans while the mount is down, if your settings are 'wrong' it will assume the files no longer exist and will remove them from the library. To avoid this make sure your Plex library settings are set to not automatically remove missing content - Plex will then add a trash sign next to content it can no longer see, and will fix itself if that content becomes available again. Doing this does mean you need to manually empty trash every now and then when you know it's safe to do so i.e. when the mount is active.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
I'm not sure what's going on there or if this will solve your problems: https://rclone.org/drive/#making-your-own-client-id You might need to post on the rclone forums
-
Help Installing MergerFS
Afraid so. If you're a rclone user it looks rclone union will get beefed up in 1.48 so I'll be able to ditch unionfs
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
With only 4GB you might need to go even smaller if you've got concurrent usage as I think the buffer is per stream. I see you also removed --vfs-read-chunk-size-limit off from your mount script. This defaults to off so removing won't help - if you're still having memory problems I'd set this again to something like 256MB of 512MB, but you're going to struggle to play remux files IMHO if you don't have enough ram to buffer the stream. I don't know what size chunks my setup requests, but I have no issues. If you're happy with only being able to play files once they've been uploaded then this is fine. However, if you have a lot of files that are pending upload and you want to Plex/Sonarr/Radarr etc to be able to see them, then this is where the unionfs and rclone_upload folders come into play - e.g. unless you make your setup a lot more complicated you can only upload 750GB/day. There are ways around this e.g. my setup allows me to upload at my full 1G line speed 247, but it took me a few hours to setup, but it means I don't have files waiting to be uploaded for more than a few mins. I still need the unionfs setup though so that Plex doesn't have to rescan thinking the file has changed when it moves, when it hasn't etc etc Check out the new scripts on github as it accounts for this e.g. if it tries to mount and there's no internet connection then it tries again a few mins later. This check is useful if your mount ever drops as it will automatically remount.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
just stop radarr, sonarr, plex etc - anything that's accessing the mount before you unmount. Shouldn't have any problems
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
hmm have you tried unmounting and removing from rclone_upload or directly from the mount?
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
remove manually?
-
GUIDE: How To Traffic Shape With pfSense
pfsense traffic shaping does shape downstream - it does this by dropping packets, so that's why setting your bandwidth settings is important.
-
GUIDE: How To Traffic Shape With pfSense
But from the official documentation I can see Why have you enabled the Quick flag? Ignore my first version as it didn't work properly. It should do. I use floating rules as it was easier for me to have all in one place, and also you can adjust the order then.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
I'm 99% certain that at least for Plex no disks are used to play files - everything is streamed using RAM. I think even the rclone dir_cache is stored in RAM. I'm not sure how Kodi works i.e. is the file downloaded before playing - I don't think so. The thread has kind of got long, which is good - at first I was worried no-one was interested but the collaboration has helped improve setups, including mine. I've never had an API ban and my library is reasonably big - there are users in this thread with libraries x5 the size of mine and over a Petabyte. I haven't had any problems or even stuttering for a couple of months, and all my content is in a team drive now: root@Highlander:~# rclone size tdrive_vfs: Total objects: 53947 Total size: 248.142 TBytes (272835090178653 Bytes)
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Use Screen from nerd pack
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
You should avoid trying to write direct to the mount i.e. to /mount_rclone - always try to write to /mount_unionfs where the file(s) will get stored for a future upload in the background via /rclone_upload. You can also add files direct to /rclone_upload if you want, but it's best to use /mount_unionfs unless you know what you are doing so that you don't mess up sonarr, radarr etc Now to confuse matters - for files that are on gdrive that you want to move within the mount, I find the best way to move them is to move them in /mount_rclone rather than /mount_unionfs as this won't require you to download them just to re-upload, which moving within /mount_unionfs can result in.
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
no - you just need to run rclone config again on the remote
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
My guess is you haven't created your own client_id: https://rclone.org/drive/#making-your-own-client-id
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
If you use the settings in my guide no files get written to disk
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
If you're just mounting and not uploading files it all happens in memory. If you're uploading, then set your rclone_upload directory to cache only
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
I think your Plex library needed a rescan
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
That's a Plex error. From a quick glance of the Plex forums it looks like you need to rescan/check your library folder setup
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
@SoloLab All ok now?
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Hmm the upload is independent of the mount so should work. If you run rclone config at the command prompt does it work? What's on line 25 of your script? The error message is one I added to the script, so isn't a 'real' one