I can mount an encrypted remote, but Plex can't see it decrypted

What is the problem you are having with rclone?

I can mount a remote crypt with rclone but Plex cannot see it. I suspect it's a permissions issue but I've already mounted it with --allow-other. I'm pretty sure it's simple and I'm just making a dumb mistake!

What is your rclone version (output from rclone version)

rclone v1.53.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu server 20.04.1 LTS

Which cloud storage system are you using? (eg Google Drive)

B2

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount b2:plexcrypt /net/b2/plexcrypt --daemon -vv --allow-other

The rclone config contents with secrets removed.

[b2]
type = b2
account = snip
key = snip
hard_delete = true

[plexcrypt]
type = crypt
remote = b2:plexcrypt
password = snip

A log from the command with the -vv flag


rclone mount b2:plexcrypt /net/b2/plexcrypt --daemon -vv --allow-other
2020/09/19 18:55:09 DEBUG : rclone: Version "v1.53.0" starting with parameters ["rclone" "mount" "b2:plexcrypt" "/net/b2/plexcrypt" "--daemon" "-vv" "--allow-other"]
2020/09/19 18:55:09 DEBUG : Creating backend with remote "b2:plexcrypt"
2020/09/19 18:55:09 DEBUG : Using config file from "/home/chris/.config/rclone/rclone.conf"
2020/09/19 18:55:09 Fatal error: Directory is not empty: /net/b2/plexcrypt If you want to mount it anyway use: --allow-non-empty option

I get the not-empty fatal error because it's already mounted.

If I run:

ps -ef | grep -i plex

I get:

plex         605       1  0 Sep18 ?        00:03:18 /usr/lib/plexmediaserver/Plex Media Server
plex         776     605  0 Sep18 ?        00:03:04 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-a78fef9a9/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.20.1.3252-a78fef9a9 /usr/lib/plexmediaserver/Resources/Plug-ins-a78fef9a9/System.bundle
plex        1028     605  0 Sep18 ?        00:00:50 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.20.1.3252-a78fef9a9 32600 /waitmutex
chris       3659       1  0 Sep18 ?        00:00:04 rclone mount b2:plexcrypt /net/b2/plexcrypt --daemon -vv --allow-other
chris       9181    1249  0 18:47 pts/1    00:00:00 grep --color=auto -i plex

And rclone can decrypt and show the sample file I uploaded:

 rclone ls plexcrypt:
 14789067 music/def.mp3

The only issue I am having is that Plex cannot see it decrypted.

It does see the mount with the encrypted/hashed filenames.

do you have any other rclone mounts running?

what are the settings in plex?

I do - I have another b2 bucket has unencrypted files that Plex is successfully reading.

I'm not sure what the settings are in Plex - I can stream from the b2 bucket to my players successfully though.

post the command of the other mount.

with plex, you need to create a library, to add a folder to stream from.
you added the unencrypted bucket mount to plex, correct?
so how how did you add the enrypted bucket mount to plex?

Yes, I've added the unencrypted mount as a library in Plex. This works and streams perfectly.

A different bucket in b2 is encrypted and mounted in the same Linux system. Rclone can decrypt and see that encrypted mount, Plex can't.

Right now I have a mount directory /net/b2/plexcrypt which Plex does see the directories under, but within the Plex UI they look like:

/net/b2/plexcrypt/bqsgs1akdrrpbn7orbsdn2gxxx/

On the command line with rclone this would be /net/b2/plexcrypt/music/

rclone mount b2:plex-vultr /net/b2/plex --daemon -vv --allow-other

2020/09/19 20:54:05 DEBUG : rclone: Version "v1.53.0" starting with parameters ["rclone" "mount" "b2:plex-vultr" "/net/b2/plex" "--daemon" "-vv" "--allow-other"]
2020/09/19 20:54:05 DEBUG : Creating backend with remote "b2:plex-vultr"
2020/09/19 20:54:05 DEBUG : Using config file from "/home/chris/.config/rclone/rclone.conf"
2020/09/19 20:54:05 Fatal error: Directory is not empty: /net/b2/plex If you want to mount it anyway use: --allow-non-empty option

this is the second time you posted debug output with the same error?

Oh I think that's just because it was already mounted.

I unmounted every mount, then mounted the crypt storage again:

rclone mount b2:plexcrypt /net/b2/plexcrypt --daemon -vv --allow-other

2020/09/19 21:00:36 DEBUG : rclone: Version "v1.53.0" starting with parameters ["rclone" "mount" "b2:plexcrypt" "/net/b2/plexcrypt" "--daemon" "-vv" "--allow-other"]
2020/09/19 21:00:36 DEBUG : Creating backend with remote "b2:plexcrypt"
2020/09/19 21:00:36 DEBUG : Using config file from "/home/chris/.config/rclone/rclone.conf"
2020/09/19 21:00:37 DEBUG : rclone: Version "v1.53.0" finishing with parameters ["rclone" "mount" "b2:plexcrypt" "/net/b2/plexcrypt" "--daemon" "-vv" "--allow-other"]

Same result in Plex though - rclone can see it decrypted, Plex can't, when I load the folder it is mounted to Plex returns "No Items in Library"

i think you are mounting the wrong remote
b2:plexcrypt is the unencrypted folder
plexcrypt: is the decrypted folder

try
rclone mount plexcrypt: /net/b2/plexcrypt --daemon -vv --allow-other

1 Like

Oh wow. That was it. Now it's working.

That's..... a bit embarrassing. Thanks!

lol, this time you cannot take this solution away from me and give to @Animosity022 :upside_down_face:

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.