I'm trying to set up Rclone from my seedbox and it's kinda difficult.
I have succesfully setup a drive to google drive and it's uploading automatically using crontab. However Plex isn't reading those files correctly and I dont have access to all my folders in Google drive. It's basically just the name that I called it when I setup the drive in rclone, but no folders inside.
Is it correctly mounted?
And why can't plex see the content and any subfolders inside the google drive?
What's your mount command? What version of rclone are you using?
I'm using version 1.48.0
And I don't have a mount command. I dont have access to the root. Is this necessary?
I'm not following how you are setup. You don't need root for rclone as you just need fuse installed.
How is Plex accessing the files if you do not have a rclone mount?
I did the rclone config part (this page
https://rclone.org/drive/ only first code) so it's in the file explorer. The problem is that I can't see all the subfolders in it and plex can't see any of the content (those are in the subfolders).
I haven't used any mount command and when i try to use it I get the following error: "Mount: Only root can do that."
Can you share what command you are running specifically and the error?
[felix@gemini ~]$ id
uid=1000(felix) gid=1000(felix) groups=1000(felix),971(docker)
[felix@gemini ~]$ rclone mount gcrypt: /Test
Example mount of a non root user.
Yh sure! I have the following things set up.
All words that are
in italics have been changed.
This is everything I have set up. The crontab is working fine and is uploading everything to google drive. Here I'm manually replacing the files to the correct folders.
The problem is as follows:
There are no subfolders I can choose from (I place all the content to those folders) and I don't get any media when I select this. So I thought something went wrong with Rclone?
You need to mount a drive on rclone to see it as you have uploaded but without a mount on your local machine, you can't see it.
I tried this command line, but it didn't work.
Do you happen to know what I'm doing wrong or should do instead?
You need a spot to mount it to so at the end of the command, you need to specify a folder to mount.
You only included a piece of the systemd so it's hard to tell if you are running as a user or as root.
Rclone version shows me:
and /home14/skyline/rclone version shows me:
By the way thanks a lot for your help trying to figure this out!
Can you share the whole .serivce file as that looks to be wrong as you are pointing to:
Which looks to be the wrong path for your rclone executable.
hmm, you are right. I shouldn't add /home14/skyline in front of it.
rclone mount -v --read-only --allow-other --gid 33 --umask 0027 --dir-cache-time 300h --poll-interval 5m gdrive:/Plex
rclone mount remote:path /path/to/mountpoint [flags]
--allow-non-empty Allow mounting over a non-empty directory.
--allow-other Allow access to other users.
--allow-root Allow access to root user.
--attr-timeout duration Time for which file/directory attributes are cached. (default 1s)
--daemon Run mount as a daemon (background mode).
--daemon-timeout duration Time limit for rclone to respond to kernel (not supported by all OSes).
--debug-fuse Debug the FUSE internals - needs -v.
--default-permissions Makes kernel enforce access control based on the file mode.
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--dir-perms FileMode Directory permissions (default 0777)
--file-perms FileMode File permissions (default 0666)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 1111)
-h, --help help for mount
--max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
--no-seek Don't allow seeking in files.
-o, --option stringArray Option for libfuse/WinFsp. Repeat if required.
--poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)
--read-only Mount read-only.
--uid uint32 Override the uid field set by the filesystem. (default 1111)
--umask int Override the permission bits set by the filesystem.
--vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
--vfs-cache-max-size SizeSuffix Max total size of objects in the cache. (default off)
--vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
--vfs-cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
--vfs-read-chunk-size SizeSuffix Read the source objects in chunks. (default 128M)
--vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
--volname string Set the volume name (not supported by all OSes).
--write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command mount needs 2 arguments minimum: you provided 1 non flag arguments: ["gdrive:/Plex"]
This is what I got. I should add somewhere another path I think?
You need something to mount it to at the end of your command so you need to make a directory so it can mount to that.
Great! This command is working perfectly!
One more question:
I did use the command yesterday. Plex was seeing the subfolders in gdrive perfectly. However when I tried to watch a movie right now it's gone. I can't see any subfolders anymore and I'm back to the start.
Should I make a crontab code of this so it repeats the command line?
You need to keep the command running to always see the files.
Your best bet would be a service for that but that isn't possible without root.
The other alternative is to start a
screen session, run the command within it and then detach from it.
I have no idea how to make a screen session or tmux, but wouldn't a cronscript work?
I kinda made one and it's mounted. It checks every 2 minutes if it mounted.
I have no idea if it will be unmounted once in a while untill the 2 minutes are over. But if you guys tell me that a tmux or screen session would be better then the cronscript then I will look into that!
You can just append "--daemon" at the end of your command and that will run the command in the background so if you log out, it won't exit.
Thanks! Got the following code:
I'd remove allow-non-emtpy as that's just a bad parameter and allows for overmounting/hiding things.
Any reason you are setting a poll interval rather than just using the default? I'd remove that.