Jump to content
DZMM

Guide: How To Use Rclone To Mount Cloud Drives And Play Files

435 posts in this topic Last Reply

Recommended Posts

nonono, best tactic is to have all movies in their respective folder. this will get more and more important the more movies u have.

Share this post


Link to post
5 minutes ago, nuhll said:

nonono, best tactic is to have all movies in their respective folder. this will get more and more important the more movies u have.

o okay i thought it was best to have them in one big folder.

 

I will try to change that

 

 

Share this post


Link to post

no its bad bc it has to read all files in that folder to see what changed if you add a movie.

 

 

Share this post


Link to post
4 minutes ago, nuhll said:

no its bad bc it has to read all files in that folder to see what changed if you add a movie.

 

 

Oo I see never thought this way but you are right.

 

thank you again

Share this post


Link to post

https://support.plex.tv/articles/200381023-naming-movie-files/

 

@francrouge here's a couple of other tips to speedup plex.  Here's a good one @slimshizn shared with me last week - makes a big difference for me

 

https://github.com/Cloudbox/Community/wiki/Speed-up-Plex

 

I also found this one last night, which has made a big difference to my library browsing 'speed' as images load much quicker as the cache isn't flushed of images not accessed in the last month.  It will mean my cache will get big overtime but for now that's not a problem

 

https://support.plex.tv/articles/201553286-scheduled-tasks/

Quote

 

Remove old cache files every week

When the image processor inside the Plex Media Server processes images (e.g. to resize them), a cached version of the transformed file is kept around for quick access later. This task cleans up files which were created over a month ago.

 

 

Share this post


Link to post
5 hours ago, DZMM said:

https://support.plex.tv/articles/200381023-naming-movie-files/

 

@francrouge here's a couple of other tips to speedup plex.  Here's a good one @slimshizn shared with me last week - makes a big difference for me

 

https://github.com/Cloudbox/Community/wiki/Speed-up-Plex

 

I also found this one last night, which has made a big difference to my library browsing 'speed' as images load much quicker as the cache isn't flushed of images not accessed in the last month.  It will mean my cache will get big overtime but for now that's not a problem

 

https://support.plex.tv/articles/201553286-scheduled-tasks/

 

thx for the infos i will try that @DZMM.

 

Another question did you put you're metadata in cache also with the plex docker ?

 

 

Thx

Share this post


Link to post
5 minutes ago, francrouge said:

thx for the infos i will try that @DZMM.

 

Another question did you put you're metadata in cache also with the plex docker ?

 

 

Thx

My setup is:

 

Unassigned NVME - for my main VMs and all Plex appdata

SSD Cache drive - docker and other appdata; and cache

Unassigned SSD - low priority VMs and nzbget/transmission downloads

Edited by DZMM
  • Like 1

Share this post


Link to post

Hey did anyone of u upgraded to RC1 or RC2?

 

I get "network lock" (Not reachable via http, https, ssh, any docker or plugin) after 5min to 4h.

 

Someone suggested it might be bc of nerd plugin (or programs in it)

 

Anyone successfully upgraded?

Share this post


Link to post
Hey did anyone of u upgraded to RC1 or RC2?
 
I get "network lock" (Not reachable via http, https, ssh, any docker or plugin) after 5min to 4h.
 
Someone suggested it might be bc of nerd plugin (or programs in it)
 
Anyone successfully upgraded?
I upgraded to rc1 and everything is working good since

Did you try to reverse to 6.6.6 ?

Thx

Envoyé de mon Pixel 2 XL en utilisant Tapatalk

Share this post


Link to post

Yes, i had to. 6.6.6 is working perfectly fine, but wheni upgrade, at some point, unraid just gets unresponsible. 

 

I just try to find out if it has something to do with this setup here.

Share this post


Link to post
Yes, i had to. 6.6.6 is working perfectly fine, but wheni upgrade, at some point, unraid just gets unresponsible. 
 
I just try to find out if it has something to do with this setup here.
Good question maybe others can respond better then me.

Envoyé de mon Pixel 2 XL en utilisant Tapatalk

Share this post


Link to post

@DZMM ever since I added that "fix" for plex, I never get a lockup when restarting the container. BIG help for me. 

Has anyone ever ran into this issue..

So I like to look at "Date Added" on all of my libraries to see how long ago things were added. I've noticed that if I add a big library some movies or tv shows ( mostly movies ) that they were added a few seconds ago. Only problem is that these specific movies were added days before this. How is this fixed? They always show up in the dashboard of recently added forcing me to turn off "include in dashboard" feature for those libraries.

Edited by slimshizn

Share this post


Link to post

Quite often they have scanned with a file modification date of 2099 and so remain at the top. I think you need to remove them from plex, copy the file, replace it and re add. Try changing modification dates first. Maybe a `touch` on the offending file.

 

With both Plex and Emby I'm seeing files pause/stop at certain intervals. Pause/Play will do nothing but exiting the play state back to menu and then resuming playback works (for however long that interval is). I have seen some stuff about setting transcode directories but this doesn't seem to have worked and I am not sure how to do the same for emby. Any ideas?

Share this post


Link to post

u can set ur transcoding to /tmp -> /tmp

 

then it gets transcoded in RAM

 

I never had problem with plex like some of u descripe, but i restart all my apps every day (with CA Backup Plugin).

 

Btw, soon ill get 1gbits/500mbits :)

 

I got some email from google about they shut something down, i guess it has nothing to dow ith us? (theres no mail in my language avaible atm)

Edited by nuhll

Share this post


Link to post

Thank you nuhull - I had a few settings backwards and ram transcoding has done the trick.

 

For emby `/tmp` didn't work but using

/dev/shm/

seems to have.

Share this post


Link to post

u ofc have to map /tmp to /tmp ^^

Share this post


Link to post

So i had some time to give something back...

 

this is a script which i run every 1 min via cron which automaticlly starts and stops dockers (if mount is not working = stops one time all dockers, if mount comes back, starts docker one time).

 

1.) add


rm -f /mnt/user/appdata/other/docker/*

to your start/stop array script.

 

It also logs it into sys log one time on start and stop.

 

2.) Change the paths/name of dockers accordingly to your settings.

 

3.) remove all docker start/stop from all your other scripts

4.) untick auto start the dockers (in unraid)

 

 

 


#!/bin/bash
# Check if Mount workz
if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then
# Mount workz

echo "$(date "+%d.%m.%Y %T") INFO: Mount okay, starte Docker"

if [[ -f "/mnt/user/appdata/other/docker/docker_on" ]]; then
#docker schon gestartet.

echo "$(date "+%d.%m.%Y %T") INFO: Docker bereits gestartet."

exit

else
#docker noch nicht gestartet

logger $(date "+%d.%m.%Y %T") Docker noch nicht gestartet. Starte Docker...

docker start PlexMediaServer
docker start radarr
docker start Sonarr
docker start ombi
docker start lidarr

touch /mnt/user/appdata/other/docker/docker_on
rm -f /mnt/user/appdata/other/docker/docker_off

fi

else
if [[ -f "/mnt/user/appdata/other/docker/docker_off" ]]; then

echo "$(date "+%d.%m.%Y %T") INFO: Docker bereits gestoppt."

exit

else

logger $(date "+%d.%m.%Y %T") Mount im Arsch. Docker stoppen...
docker stop PlexMediaServer -t 1
docker stop radarr -t 1
docker stop Sonarr -t 1
docker stop ombi -t 1
docker stop lidarr -t 1

rm -f /mnt/user/appdata/other/docker/docker_on
touch /mnt/user/appdata/other/docker/docker_off
fi
fi
 

Edited by nuhll

Share this post


Link to post

I'm having trouble with this setup. I've already got rclone with unionfs set up on my remote server by using Plexguide. But I'd like to migrate my setup to a local Unraid server.

 

My mounts won't stay mounted for more than 10 minutes or so. After that it will not remount until I run the Unmount script, then delete the mount folders, then run the mount script again.

 

At first I thought it might have been a flaw with the script, I noticed at the beginning of the mount script it creates a file at /mnt/user/appdata/other/rclone/rclone_mount_running and never deletes it, so when I would try to run the Mount script again it would always say that it was already running so I tried adding:

 

rm /mnt/user/appdata/other/rclone/rclone_mount_running

at the end of the script before the exit, but that didn't solve my issue.

 

So I'm not sure if I should leave that in there?

 

But the mount works flawlessly otherwise but only for about 10 minutes. After that the error I get from the log is

 

mkdir: cannot create directory '/mnt/user/mount_rclone/google_vfs': File exists
05.02.2019 16:20:01 INFO: mounting rclone vfs.
2019/02/05 16:20:02 Fatal error: Can not open: /mnt/user/mount_rclone/google_vfs: open /mnt/user/mount_rclone/google_vfs: transport endpoint is not connected
05.02.2019 16:20:06 CRITICAL: rclone gdrive vfs mount failed - please check for problems.
Script Finished Tue, 05 Feb 2019 16:20:06 -0800

 

Like I said above the only way to fix this I've found is to run the Unmount script, delete "mount_rclone mount_unionfs rclone_upload" and the re-run the mount script.

 

Any ideas?

Share this post


Link to post

how u start the mount script, you NEED to click run script in background. (not via RUN)

Edited by nuhll

Share this post


Link to post

Hi guys 

 

I'm on unraid Version: 6.7.0-rc2 and i'm experiencing some issue with my mount disconnecting.

 

Do you guys have any advice ?

 

here is my config

 

thx

 

image.thumb.png.67864aa195b647e771dd216182bb00ff.png

Share this post


Link to post

Edit: for some reason it seem to work.

 

what would you recommend to run this every day ?

 

 

@DZMM

 

Hi i'm getting error with you're cleanup script.

 

rm: cannot remove '/mnt/user/mount_unionfs/google_vfs/.unionfs/ABCDE_HIDDEN~': Is a directory

 

 

Do you have an idea ?

 

do i need more permission ?

 

 

thx

Edited by francrouge

Share this post


Link to post
2 hours ago, francrouge said:

 

 

@DZMM

 

Hi i'm getting error with you're cleanup script.

 

rm: cannot remove '/mnt/user/mount_unionfs/google_vfs/.unionfs/ABCDE_HIDDEN~': Is a directory

 

 

Do you have an idea ?

 

do i need more permission ?

 

 

thx

Are you sure your script is setup correctly?  Here's mine:

 

#!/bin/bash

#######  Check if script already running  ##########

if [[ -f "/mnt/user/appdata/other/rclone/rclone_mount_cleanup" ]]; then

echo "$(date "+%d.%m.%Y %T") INFO: Exiting as script already running."

exit

else

touch /mnt/user/appdata/other/rclone/rclone_mount_cleanup

fi

#######  End Check if script already running  ##########

################### Clean-up UnionFS Folder  #########################

echo "$(date "+%d.%m.%Y %T") INFO: starting unionfs cleanup."

find /mnt/user/mount_unionfs/google_vfs/.unionfs -name '*_HIDDEN~' | while read line; do
oldPath=${line#/mnt/user/mount_unionfs/google_vfs/.unionfs}
newPath=/mnt/user/mount_rclone/gdrive_vfs${oldPath%_HIDDEN~}
rm "$newPath"
rm "$line"
done

find "/mnt/user/mount_unionfs/google_vfs/.unionfs" -mindepth 1 -type d -empty -delete

rm /mnt/user/appdata/other/rclone/rclone_mount_cleanup

exit

 

Share this post


Link to post
On 2/8/2019 at 2:44 AM, francrouge said:

Did you experience anything like that ?

 

The mount is dropping off a few thime a day since the upgrade.

 

I did put 10 min but it always tell me that the script is running when its not really (the mount script)

On 2/8/2019 at 2:44 AM, francrouge said:

 

 

Hi guys 

 

I'm on unraid Version: 6.7.0-rc2 and i'm experiencing some issue with my mount disconnecting.

 

Do you guys have any advice ?

 

here is my config

 

thx

 

image.thumb.png.67864aa195b647e771dd216182bb00ff.png

 

Share this post


Link to post
2 hours ago, francrouge said:

Did you experience anything like that ?

 

The mount is dropping off a few thime a day since the upgrade.

 

I did put 10 min but it always tell me that the script is running when its not really (the mount script)

 

I'm still on 6.6.6 and it's rock solid for me - if it's ever dropped I haven't noticed

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now