r/PleX • u/enz1ey 300TB | Unraid | Apple TV | iOS • Oct 22 '16
Tips Guide to using Amazon Cloud Drive and EncFS for an unlimited AND encrypted Plex server
FINAL EDIT
Okay so I've got a few "installments" in my unintended "series" of guides. To avoid posting too often in the subreddit, I'll just list those guides here:
Setting up the Trakt.tv Plugin for Plex Media Server
Using Amazon Cloud Drive with Plex Media Server on Ubuntu… And Encrypting It! (this guide)
Setting up CouchPotato and Sonarr with Plex Media Server (my latest guide)
ORIGINAL POST
I've been contemplating the idea of writing a guide on this for a while now, as the information available for getting this to work is available piece by piece for the most part, but a good consolidated guide (that hasn't caused issues for people) doesn't seem to exist.
I've seen lots of people posting for help after using one or two of the guides available with some light searching, and those guides seem to really complicate the whole process. So I decided to go ahead and write up a nice simple, yet comprehensive guide on getting this all set up.
Here is the link to the guide.
As noted there, I'll probably be more than willing to write a few other posts on using CouchPotato and Sonarr if there's interest, and even another guide on how to automate the conversion of media to MP4.
I hope this helps at least one person on here, it took me about four hours to polish up!
9
u/captaingrekov Oct 23 '16
Encryption was the key to utilizing ACD to it's fullest potential in regards to Plex. This is a great walk through. Thank you so much.
10
u/apu823 Oct 22 '16
Article is great. I'm going to try this tonight
I would definitely love to get a simple tutorial on sonaar and couch potato
5
u/Stokkes Oct 22 '16
Curious if you've thought about using rclone instead with the encrypted function? Here's an article on the rclone forums: https://forum.rclone.org/t/mounting-acd-with-decryption-for-reading/64
I'm trying to setup a Plex media server on a Linode 8GB VPS while attaching it to an encrypted ACD folder, similar to your article. The Linode 8GB VPS should be enough for 5-6 transcodes at the same time, which is sufficent for my needs.
I got invited to the Plex Cloud beta but it's a) unencrypted and b) very unreliable
Another question, what if you already have multiple TB of data, I noticed your article doesn't talk about mounting the encFS with the --reverse option which would make it easier to upload an existing library to ACD from whatever box it's currently sitting on.
3
u/DOLLAR_POST Oct 22 '16 edited Oct 22 '16
Thank you so much for writing this guide! Love to see the follow-up guide for CouchPotato and Sonarr. :)
I'm also very curious what you do to maintain the mount points after boot, or whenever the acdcli mount point breaks. The last thing seems to happen to me a lot (thanks for the advice the other day to check and remount it after every upload).
I use cronjobs regurarely to check the acdcli mount state and fix it if needed, upload new content, make mounts on boot, etc. However, I don't always know what I'm doing. This is what I use for my VPS (read-only since it just hosts PMS), and this is for my NAS (which does the downloading, encrypting and uploading). It could use some cleaning up, and perhaps a better approach all together. It would be great to see your input.
3
u/chris247 Oct 23 '16
So much better then all the other guides I tried to follow before. I have everything set up and even have sonarr and CP downloading stuff except I don't know how to automate the rclone move command. So i guess I will wait for that guide. Thanks
2
u/crybannanna Oct 22 '16
Any way to do this using Windows instead of Linux?
2
u/Only1alive Oct 23 '16
Any thoughts on building scripts that will set all up this up and prompt for acd/Plex info as needed?
I am not as familiar with Linux as I would like to be, and the cli may be more than light Plex users can handle.
2
u/Only1alive Oct 25 '16
I'm trying to upvote you, but it will only let me do it once!
Your guide worked great for the initial setup of plex and ACS encryption.
I was nervous of installing plex on a headless box, as my Linux (and cli in general) is somewhat lacking, but your guide was a breeze to follow.
Looking forward to following your script and automation guide to finish setting up my VPS server while I migrate my 4T of data to the cloud.
Thanks so much for this!
4
u/creamyclear Oct 23 '16
Hi. Nice post. You mention multiple servers using the same ACD mount. Can you elaborate on this? For me that is probably the most useful thing in all of this. I have horrible connection speeds but a nice raid so to help family on the other side of the country I'd like to set up an encrypted drive on ACD that they can use with their plex. Thanks
1
u/Ezraiel92 Oct 22 '16
Awesome, thanks for the guide. Would it be possible to use google drive with this?
1
u/MikeCharlieUniform Oct 23 '16
What kind of network performance do you need for this to work? I have dreadful internet service (living out in the sticks - thanks Time Warner for screwing me on price because you know I have nowhere else to go!), so data locality is something I can be sensitive to.
1
u/forfar4 Oct 23 '16
Many thanks! Looking forward to the scripting for Sonarr and couchpotato.
1
u/jeppybro Oct 23 '16
Cool. Looks very similar to this that I currently use.
Have an 8 GB / 8 core dedicated box with a 1 TB link and can handle upwards of 15+ streams w/ transcoding from the encrypted Amazon drive just fine. Waiting on access to the Plex Cloud to cut out the middle man if encryption is working.
1
u/TragicM3LON Oct 23 '16
Does it take a while when using rclone to upload your media to ACD? I have like 10+TB of media... would this be worth it in the long run?
1
u/NotYourTypicalGod Oct 23 '16
Is this possible with Windows?
1
u/fumler Oct 23 '16
Do you need to have the "Plex Cloud Beta" for this?
1
u/kingkork Oct 23 '16
I've been struggling with these tutorials on a mac but yours got me over the hump! Thanks!
That said, I'm a bit confused on actual use . After setting up the encfs and unionfs links I have three volumes on OS X, (local, acd, and media).
Plex has the media volume as a library. However, adding a file to the local volume automatically has it show in the media volume. When I upload it shows in acd web correctly encrypted, however when I delete the local file it also deletes out of media. Running acd_cli sync doesn't "bring it back" from Acd in to the media volume.
So what's the workflow once this is set up?
I hope the question makes sense. Thanks again!
1
u/thumbsp0t Oct 23 '16
Thanks for the guide, i'll try it pretty soon. Does this solution include a cache for most used files or anything like that? I'm not super familiar with linux, i'm trying to wrap my head around this.
1
u/[deleted] Oct 24 '16 edited Oct 24 '16
Great guide!
The only suggestion I would make to it would be to use the "reverse" option with encfs:
Here's the benefit:
Without "reverse" - Files are stored locally are ENCRYPTED. Files are encrypted immediately after being copied to "~/local" and the encrypted copies are stored in "~/.local". Accessing files on "~/local" requires on the file to be unencrypted.
With "reverse" - Files stored locally are UNENCRYPTED. Files are not encrypted after being moved to "~/local". Files are only encrypted on-the-fly (ie when uploaded) when "~/.local" is accessed. This will make local file access a lot faster.
1
u/Romeoz Oct 24 '16
I have 6.7TB on amazon cloud. I want to encrpyt my data but can you recommend a good way to do this? I was thinking about downloading all my data to a VPS and then re upload encrypted. But I'm unfamiliar with this setup. Once I start encrypting will it overwrite that file or create a new file so if I have 6.7TB I will need 13.4 TB because Im creating duplicates of all my data, the old stuff and the new encrypted stuff. I assume we cant encrypt and upload to the cloud at the same time.
1
u/RussellBrandFagPimp Oct 24 '16
Hey thanks for the guide. I have several questions that I was hoping you can answer for me.
Thanks for the guide!
1
u/Only1alive Oct 25 '16
The command from your "setting-up-couchpotato-and-sonarr-with-plex-media-server": sudo systemctl enable couchpotato.service did not work with error: "Failed to execute operation: No such file or directory"
I made sure that the "sudo cp /opt/couchpotato/init/couchpotato.service /lib/systemd/couchpotato.service" ran successfully.
I am not sure if it is a permissions problem, but when I try to run the couchpotato.service, I get a permission error:
/lib/systemd/couchpotato.service -bash: /lib/systemd/couchpotato.service: Permission denied
I am logged in as the plex user your guide suggests using.
This is a clean server I set up today, and the only things I have done to the server have been from your guide (purchased an OVH server last night after reading your guide).
Any suggestions on how to fix?
1
u/Only1alive Oct 26 '16
Any help would be appreciated:
I followed your guide "using-amazon-cloud-drive-with-plex-media-server-and-encrypting-it" after setting up Plex per your "getting-started-with-plex" guide on a fresh OVH server (I have reinstalled twice now to make sure I got everything correct).
When it comes to setting up ACD, I am able to successfully mount the acd drives. When I get to the part where I "rclone copy /home/plex/.local acd:Plex", I receive a message showing that I am transferring the encrypted files to acd (encrypted folders appear in acd).
At this point, I can see the TV Shows and Movies in the media folder, and refreshing my library lists my test episode and movie (keep in mind that I have not removed the local files yet that also show up in the media folder).
I scrub the local folders at this point and run "acdcli sync", and now the media is no longer available (no files are in the /media/TV Shows/ container).
It looks to me like the mirroring of my acd and .acd folders may not be working. When I attempt to list the contents of my .acd or acd folders, they are empty.
Can anyone point me in the right direction?
Edit: a word
1
u/forfar4 Nov 02 '16
Hiya - followed the whole acd_cli, rclone and encfs thing, but I'm not sure how it works and it's making me run round in circles - hope you could shine a light on a couple of things for me?
Sorry for being so thick - your guide is excellent and I'm about a billion light years further ahead than if I'd tried a Heath-Robinson Windows solution, but I'm just having trouble getting my head around the concept and basic mechanics of the solution.
1
u/Youhbi Nov 10 '16
I don't know why I only can find solutions for the combination Of ACD and Plex and never with Kodi. But this shouldn't be any problem right? It almost seems like Kodi is dying :/ I don't see any realy benefits as long as I'm only stream on my Pi at home, or am I missing something out?
1
u/JoeLuna Mar 11 '17
I know this is about 4 months old, but did Plex fix the issue with Amazon Cloud? I notice its not an option, only dropbox, google drive and other are showing
1
u/Jbombs16 Mar 12 '17 edited Mar 12 '17
/u/enz1ey - Thank you for the great guide. I migrated my freenas server to a ubuntu server so I could more easily run your setup.
In my setup, I have the ubuntu running on a USB drive with a few zfs pools on the hard drives of the server.
I am having a problem getting rclone to copy my files to acd. In my setup, I have used symbolic links in the /home/plex/TV folders to my TV files located on the zfs drives.
Rclone seems to not see the files that are linked using the symbolic links so nothing is copied to acd. Is there a way to fix this? Should I use a hard link instead?
1
u/HarbaughHeros Oct 23 '16
Read your guide, I think I am going to give this a go! One quick question, it sounds like EncFS is able to encrypt your data if it's already in the cloud, correct? Have about 20tb in ACD already completely unencrypted, and I don't really want to have to bring that all down piece by piece.
2
u/chris247 Oct 22 '16
What vps provider do you use and how many streams do you get from it? Also would love the sonnar and CP guide. Thanks for the guide
2
u/locvez Oct 24 '16
awesome guide, thanks
2
u/kingkork Oct 27 '16
Does anyone's ACD mount keep breaking? Mine fails once per day (on OS X). Running ACDCLI Sync seems to work but the /acd folder never updates. Ultimately, if I try to cd in to /.acd or /acd I get an error. I have to unmount all mounts I create for this and remount. This has happened every day since implementing this. Anyone experience the same?
2
u/blipkreeg Oct 28 '16
After uploading new media and running "acdcli sync", I often get "Bad address" errors on the mount and need to re-mount. Has anyone found a way around this?
1
u/xDiglett Oct 22 '16 edited Apr 15 '20
removed
1
u/joebot3000 Oct 23 '16
I'm trying to encrypt and upload my content from a windows machine and its SO SLOW. I've tried NetDrive and ACD Dokan with ENCFSMP and its gonna take me months to upload everything. Anyone have any advice on the best way to sort this from a Windows machine?
1
u/[deleted] Oct 23 '16
All my plex media is on a machine running Server 2012. How can I make all this work from a windows enviorment?
1
u/Rkozak Oct 24 '16
My VPS has limited storage. So I would like to rclone from unencrypted ACD folder to local and sync in chunks.
Anyone have a script that can do the rclone one folder at a time?
1
u/[deleted] Oct 24 '16
Delete.
1
u/Merckle Oct 25 '16 edited Oct 25 '16
I am getting an error on
"ENCFS6_CONFIG='/home/plex/encfs.xml' encfs /home/plex/.acd/Plex /home/plex/acd"
saying that its only read-Only file system. I have followed it to a T and this seems to be the only step I am getting an error.
Any suggestions?
*I feel as it is trying to make a folder /Plex inside of already encrypted .acd which is giving me the error. I have also tried this in root with the same error
1
u/[deleted] Oct 25 '16
I'm don't believe you can. But you try using the same password you used previously and see if it works. No harm in trying.
1
u/crital Oct 26 '16 edited Oct 26 '16
Do i have to be as the plex user ? Can't i be just my regular user ? Because when i log into my plex user and type cd ~ and then pwd to check which dir im in, i'm in /var/lib/plexmediaserver
I'm not sure if i will be messing something up by moving it's home directory
Also, how much disk spage would i need on my PMS to do this ? I'm running a bit short... only have 13 gb left
1
u/refelgallo Oct 27 '16
still trying to wrap my head around (extending this to my workflow)
locally my boot drive is 120GB SSD with about 55Gb avail with four internal 4TB WD reds /media/movies,tv,music,(comics,ebooks,audiobooks,DMG,iso)
plus a seedbox fed via autodl, local NAS pulls via ftp to drive the with most free space, then filebot moves to their respective drives for Plex to "see".
have used rclone to upload about 4TB of local movies (unencrypted), but haven't tried mounting as it would just be duplicates of what I have locally.
so this new workflow, IDEA.
just trying to wrap my head around making this workflow, work. suggestions would be appreciated
1
u/[deleted] Nov 06 '16 edited Nov 06 '16
Maybe I missed something but whenever I try to upload an encrypted file to ACD (either through rclone or acd_cli) I get the following errrors:
Interestingly non-encrypted files work fine. Anyone else having a similar problem?
EDIT: nevermind, turns out I get broken pipe with large unencrypted files too.
1
u/refunded_flatulence Nov 06 '16
New at this and trying to follow the guide. I'm at the step of mounting the ACD and I'm getting the following error
1
u/spalmisano Nov 08 '16
When using the uploadtv.sh script, it has the rm -Rf "/home/plex/local/TV Shows/"* command, which has the effect of removing everything from that tree, and I end up with nothing in local, and thus media.
If that recursively forces the delete of content in that folder, isn't the rest of the TV/Movie structure supposed to be kept in media? Im not clear on, if the only thing left in the structure is the .acd/* data, how does Plex know how to read the unencrypted information? What am I missing?
So close.
1
u/[deleted] Nov 09 '16
hey enz1ey thanks for the guide. Really helped me out alot. There is just one thing I'm still struggeling with is the following: Let's say I have a TV Show which is not complete, and I already encrypted and uploaded 5 episodes of it to my ACD. Every week I want to add the latest episode (encrypted) using the same encfs config file to my collection. But somehow when I take a look in the mounted acd folder the episode doesn't appear unencrypted. Rather it doesn't appear at all. When I move the file out of the folder into the root directory of my acd, it shows up. Has that happened to you aswell? Thanks for your help.
1
u/Ezraiel92 Nov 20 '16
These guides are really well done. Thanks a lot for making them.
1
u/ziffzuh Nov 27 '16
What about deleting a file? Does that work in this system? The way it's set up, it doesn't seem like it would.
1
u/joebeem Dec 12 '16
Hello,
I have a pretty "standard" setup for acdcli, encfs, unionfs, etc that is run on a dedicated server that was setup similar to the guide in this post with a few very minor tweaks.
For the most part, everything has been working pretty good, but I've been encountering an issue and wanted to see if others might have encountered it as well.
As the guide suggests, I use rclone to upload files to acd using a similar script provided in the blog post of this post, which works great. Once rclone is finished uploading, it remounts the acd drive with a script.
I'm not exactly sure why this next part occurs, but every time I do an rclone transfer unmount / remount, Plex requires a complete Library rebuild. I read in another thread to uncheck "empty trash automatically" and had hoped that would fix the issue. The library now shows all the movies/shows with a trash icon, but it still needs to "refresh all" in order for the files to be read correctly.
Normally this wouldn't be a big deal, and for that matter, if this is the worst thing I encounter with the setup, I can live with it. I just think its odd that it takes about 9-10 hours to rebuild the "TV Shows" library (contains 80 shows). The Movies library refreshes in about 2 to 4 minutes (around 450 files). I assume it takes TV shows longer due to it needing to get data about the show, every season, and every episode, but taking about 9 hours to refresh seems a bit long...I could be wrong.
Has anyone encountered something like this or know why this might occur? I'm guessing Plex sees the mount disappear while rclone is transferring, but if it's not being trashed, shouldn't it see the files as they were before acd was unmounted?
I was thinking of trying to stop the plex service before rclone transfers and starting it again when it remounts... unless there are better options or known workarounds.
I appreciate you taking the time to read this and would appreciate any suggestions.
Thanks!
1
u/iqvan Jan 05 '17
Thanks for the guide. It was super helpful. Will there still be an automated conversion guide?
0
u/freakytoad1 Oct 24 '16
I'm not sure I understand the encryption completely. My current machine is Windows 10 with a few TB of media on its HDD. I just got a VPS, and have ACD. The VPS only has 50 GB of space and my ACD has nothing on it currently. How do I upload the media from my local windows machine to ACD then to be read by the VPS? Basically how do I encrypt with the windows machine, upload encrypted, then download decrypted on the vps. How will the VPS know the decryption key?
0
u/[deleted] Oct 22 '16
[deleted] — view deleted comment
0
u/[deleted] Oct 22 '16
[deleted] — view deleted comment
0
u/[deleted] Oct 23 '16
[deleted] — view deleted comment
0
u/[deleted] Nov 03 '16
[deleted] — view deleted comment
0
u/[deleted] Oct 23 '16
[deleted] — view deleted comment