Plex Cloud vs VPS - why we went with a VPS

I wanted to upgrade, then they told me they don’t support FUSE on their Virtuozzo systems (yet). They actually honored the upgrade price and I’m now on the LEB 2X-Large (16GB RAM, 80GB SSD and 8TB Transfer). They actually have a deal for that particular plan right now https://www.ssdnodes.com/startup-specials/

I don’t regret I upgraded, fingers crossed that Google keeps playing nice with their unlimited Gsuite and it’s basically the server I always dreamed of :smiley:

So, I am newish to Plex and certainly new to running it in a VPS with cloud storage (since I have only read about it).

Clearly, I missed the ACDu. I expect Gsuite to follow suite.

Are there any other options known for storage that won’t make me sell off a kid? Not that I am opposed to doing that. I just prefer to find another option first.

@per_PLEX_ed said:
I wanted to upgrade, then they told me they don’t support FUSE on their Virtuozzo systems (yet). They actually honored the upgrade price and I’m now on the LEB 2X-Large (16GB RAM, 80GB SSD and 8TB Transfer). They actually have a deal for that particular plan right now https://www.ssdnodes.com/startup-specials/

I don’t regret I upgraded, fingers crossed that Google keeps playing nice with their unlimited Gsuite and it’s basically the server I always dreamed of :smiley:

So how did you get plexdrive to work if their Virtuozzo machines don’t support FUSE?

Oh I guess I didn’t say it right, I just upgraded space/memory/bandwidth but am still on the same server otherwise :smile: I would imagine that is the Tau machine as well.

So after many hours of trying to get plexdrive to stick, I rebuilt my machine one more time and FINALLY got it working!! I’m able to see my GD in my path and list all files in that path, and was able to put together a script to keep GD mounted after a reboot. Damn that was a PITA! Many thanks for all of you who were helping me out (@per_PLEX_ed, @blim5001, @mdnitoil). Without your guidance and patience, I never would’ve been able to get it going.

@mdnitoil The script you posted was a great reference, especially with the --config= line. I used most of my previous script and modified a few things here and there and that seems do have done it.

@blim5001 The -v 2 options you had me add worked great

@per_PLEX_ed Without your original guide to getting a VPS up and running, I never would’ve gotten this far.

Again, many thanks to you all the help

Fantastic!!! That is great news :smiley: And this is how I learned as well, by just visiting here and asking - this forum is just amazing and so friendly!

@per_PLEX_ed said:
I wanted to upgrade, then they told me they don’t support FUSE on their Virtuozzo systems (yet). They actually honored the upgrade price and I’m now on the LEB 2X-Large (16GB RAM, 80GB SSD and 8TB Transfer). They actually have a deal for that particular plan right now https://www.ssdnodes.com/startup-specials/

Eh, if you build some stuff from source fuse works just fine. B)

Is there a guide like @per_PLEX_ed but that incorporates rclone(encryption)+ plexdrive? I am a linux newbie and trying to follow this guide here is quite daunting as it doesn’t list a step by step configuration and I cannot for the life of me figure out some of the steps.
Perhaps it’s easier to follow Perplexed’s guide and then try to incorporate Plexdrive and encryption later on?

Mount Plexdrive as you would normally with your encrypted files, set up a crypt in rclone that points to your encrypted files (Make sure to use the correct key and secret to decrypt it), then use rclone mount to mount that folder somewhere. It’s how i do it

@XavierBR said:
Is there a guide like @per_PLEX_ed but that incorporates rclone(encryption)+ plexdrive? I am a linux newbie and trying to follow this guide here is quite daunting as it doesn’t list a step by step configuration and I cannot for the life of me figure out some of the steps.
Perhaps it’s easier to follow Perplexed’s guide and then try to incorporate Plexdrive and encryption later on?

Have you looked at this page?

@hthighway said:

@XavierBR said:
Is there a guide like @per_PLEX_ed but that incorporates rclone(encryption)+ plexdrive? I am a linux newbie and trying to follow this guide here is quite daunting as it doesn’t list a step by step configuration and I cannot for the life of me figure out some of the steps.
Perhaps it’s easier to follow Perplexed’s guide and then try to incorporate Plexdrive and encryption later on?

Have you looked at this page?
https://github.com/dweidenfeld/plexdrive/blob/master/TUTORIAL.md

Here is what I did and where I am lost:
Followed @per_PLEX_ed guide up until page 4. Installed Fuse and mongoDB and appears I’ve done that correctly following these instructions.

Now comes the part I’m not sure about, if someone could please check?

mkdir ~/.plexdrive
cd ~/.plexdrive - vi config.json

I put this in config.json with the API info I got from google drive.

{
"clientId": "ID HERE",
"clientSecret": "SECRET HERE"
}

wget (latest 4.0 plex release link for github)
mv plexdrive-linux-amd64 plexdrive
sudo mv plexdrive /usr/sbin/
sudo chown root:root /usr/sbin/plexdrive
sudo chmod 755 /usr/sbin/plexdrive

Then the startup script

nano /etc/systemd/system/plexdrive.service
Here is what I put in as a script, is this right?

[Unit]
Description=Plexdrive
AssertPathIsDirectory=/mnt/plexdrive
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/plexdrive -v 2 /mnt/plexdrive
ExecStop=/bin/fusermount -u /mnt/plexdrive
Restart=on-abort

[Install]
WantedBy=default.target

Then I read another part where I need to make a directory I want to mount it in, okay…
mkdir /gdrivemount

then

sudo systemctl daemon-reload
sudo systemctl start plexdrive.service
sudo systemctl enable plexdrive.service

How do I mount my Google Drive now to this thing and then start it? What comes after this that I am missing?
I check my web plex server and my google drive does not come up?

After I can get this sorted out then I can move to setting up rclone.

Apologies for being ignorant to this kind of stuff, I have 5 different tabs all with different instructions and I am trying to take bits and pieces of different tutorials and put them together since none of them have a complete set of instructions.
If anyone can take a look at the code above and point out any errors I would appreciate it.

FIrst off, your not mounting it in “/gdrivemount”. According to your startup script it’s being mounted in “/mnt/plexdrive”.

Second try this command and see what it returns. Should tell you if its running or not.
sudo service plexdrive status

if not, try running the command manually and see what comes up. It should tell you the error. IE run (This is depend on you not changing any of mongoDB default settings).

plexdrive -v 2 /mnt/plexdrive

@amirza2 said:
FIrst off, your not mounting it in “/gdrivemount”. According to your startup script it’s being mounted in “/mnt/plexdrive”.

Second try this command and see what it returns. Should tell you if its running or not.
sudo service plexdrive status

if not, try running the command manually and see what comes up. It should tell you the error. IE run (This is depend on you not changing any of mongoDB default settings).

plexdrive -v 2 /mnt/plexdrive

I updated the script to the following:

[Unit]
Description=Plexdrive
AssertPathIsDirectory=/gmount
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/plexdrive -v 2 /gmount
ExecStop=/bin/fusermount -u /gmount
Restart=on-abort

[Install]
WantedBy=default.target

Here is what I get when I run sudo service plexdrive status and then plexdrive -v 2 /gmount

plexdrive.service - Plexdrive
Loaded: loaded (/etc/systemd/system/plexdrive.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2017-06-21 08:37:47 EDT; 9s ago
Main PID: 10865 (code=exited, status=4)

Jun 21 08:37:47 uplex systemd[1]: Started Plexdrive.
Jun 21 08:37:47 uplex plexdrive[10865]: Go to the following link in your browser https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=****censored****
Jun 21 08:37:47 uplex plexdrive[10865]: Paste the authorization code: [USR/SBIN/PLEXDRIVE] [2017-06-21 08:37] ERROR  : Unable to read authorization code EOF
Jun 21 08:37:47 uplex plexdrive[10865]:
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Main process exited, code=exited, status=4/NOPERMISSION
Jun 21 08:37:47 uplex fusermount[10873]: /bin/fusermount: failed to unmount /gmount: Invalid argument
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Control process exited, code=exited status=1
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Unit entered failed state.
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Failed with result 'exit-code'


root@uplex :~# plexdrive -v 2 /gmount
Go to the following link in your browser https://accounts.google.com/o/oauth2/auth?access_type=offline&***censored***state=state-token
Paste the authorization code:

@XavierBR said:

@amirza2 said:
FIrst off, your not mounting it in “/gdrivemount”. According to your startup script it’s being mounted in “/mnt/plexdrive”.

Second try this command and see what it returns. Should tell you if its running or not.
sudo service plexdrive status

if not, try running the command manually and see what comes up. It should tell you the error. IE run (This is depend on you not changing any of mongoDB default settings).

plexdrive -v 2 /mnt/plexdrive

I updated the script to the following:

[Unit]
Description=Plexdrive
AssertPathIsDirectory=/gmount
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/plexdrive -v 2 /gmount
ExecStop=/bin/fusermount -u /gmount
Restart=on-abort

[Install]
WantedBy=default.target

Here is what I get when I run sudo service plexdrive status and then plexdrive -v 2 /gmount

plexdrive.service - Plexdrive
Loaded: loaded (/etc/systemd/system/plexdrive.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2017-06-21 08:37:47 EDT; 9s ago
Main PID: 10865 (code=exited, status=4)

Jun 21 08:37:47 uplex systemd[1]: Started Plexdrive.
Jun 21 08:37:47 uplex plexdrive[10865]: Go to the following link in your browser https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=****censored****
Jun 21 08:37:47 uplex plexdrive[10865]: Paste the authorization code: [USR/SBIN/PLEXDRIVE] [2017-06-21 08:37] ERROR  : Unable to read authorization code EOF
Jun 21 08:37:47 uplex plexdrive[10865]:
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Main process exited, code=exited, status=4/NOPERMISSION
Jun 21 08:37:47 uplex fusermount[10873]: /bin/fusermount: failed to unmount /gmount: Invalid argument
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Control process exited, code=exited status=1
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Unit entered failed state.
Jun 21 08:37:47 uplex systemd[1]: plexdrive.service: Failed with result 'exit-code'


root@uplex :~# plexdrive -v 2 /gmount
Go to the following link in your browser https://accounts.google.com/o/oauth2/auth?access_type=offline&***censored***state=state-token
Paste the authorization code:

Have you tried running the command outside of the startup script…
/usr/sbin/plexdrive -v 2 /gmount
And then doing exactly what it tells you? Then give the startup a ago and see if that works

The problem is that when you invoke the plexdrive command, you need to add a --config=path switch to point to where the json file lives. That file feeds the proper google authorization stuff. So, it would look something like plexdrive -v 2 --config=/home/plex/.plexdrive /gmount

Obviously, replace /home/plex/.plexdrive with the correct path.

@XavierBR when you run plexdrive -v 2 /gmount manually and get the prompt to go to https://accounts.google.com/o/oauth2/auth?access_type=offline&***censored***state=state-token in a browser, you need to do that.

Then paste the code that is returned back into the prompt. That will allow plexdrive to connect to your Google Drive account and begin caching your account.

Go to the following link in your browser https://accounts.google.com/o/oauth2/auth?access_type=offline&***censored***state=state-token
Paste the authorization code:

@mdnitoil & @hthighway
I did the authentication once I pointed to the json file. I got this output.

[PLEXDRIVE] [2017-06-21 10:38] INFO   : Mounting path /gmount
[PLEXDRIVE] [2017-06-21 10:38] INFO   : Using clear-by-interval method for chunk cleaning
[PLEXDRIVE] [2017-06-21 10:38] INFO   : No last change id found, starting from beginning...
[PLEXDRIVE] [2017-06-21 10:38] INFO   : First cache build process started...
[PLEXDRIVE] [2017-06-21 10:38] INFO   : Processed 4 items / deleted 1 items / updated 3 items
[PLEXDRIVE] [2017-06-21 10:38] INFO   : First cache build process finished!

The gmount folder now shows in the Plex web app, but it does not show the “Plex” folder I made on Google drive. I’m sure I missed a step somewhere. Does anyone know how to make the Plex folder show up?

Also when I ran root@uplex:~# sudo service plexdrive status
I got this
Failed to retrieve unit: Connection timed out
Failed to get properties: Connection timed out
So I tried restarting:
root@uplex:~# sudo systemctl start plexdrive.service
Assertion failed on job for plexdrive.service.

I’ve probably tried so many lines of code that I screwed something up so I will start from scratch now that I know how to get this far and see if I can get it running, I feel like I am getting close!

Thanks for all the help so far.

I’m trying to decide whether to use encryption or not for my media files. Is this something that people are doing or is it being overly paranoid? There are definitely some befits to not encrypting like being able to read file names and manage files within Google Drive, play files from Google Drive and even use Plex Cloud and a Plex VPS.

I’m at the point where I pretty much have everything working encrypted and regular on my VPS/Google Drive and I want to start populating it. I understand its a real pain to switch once your library gets bigger.

As an aside. Is there an upload script that would allow you to move files to One location that is encrypted and a second location (a mirror) that is not encrypted?

@XavierBR said:
@mdnitoil & @hthighway
I did the authentication once I pointed to the json file. I got this output.

[PLEXDRIVE] [2017-06-21 10:38] INFO   : Mounting path /gmount
[PLEXDRIVE] [2017-06-21 10:38] INFO   : Using clear-by-interval method for chunk cleaning
[PLEXDRIVE] [2017-06-21 10:38] INFO   : No last change id found, starting from beginning...
[PLEXDRIVE] [2017-06-21 10:38] INFO   : First cache build process started...
[PLEXDRIVE] [2017-06-21 10:38] INFO   : Processed 4 items / deleted 1 items / updated 3 items
[PLEXDRIVE] [2017-06-21 10:38] INFO   : First cache build process finished!

The gmount folder now shows in the Plex web app, but it does not show the “Plex” folder I made on Google drive. I’m sure I missed a step somewhere. Does anyone know how to make the Plex folder show up?

Also when I ran root@uplex:~# sudo service plexdrive status
I got this
Failed to retrieve unit: Connection timed out
Failed to get properties: Connection timed out
So I tried restarting:
root@uplex:~# sudo systemctl start plexdrive.service
Assertion failed on job for plexdrive.service.

I’ve probably tried so many lines of code that I screwed something up so I will start from scratch now that I know how to get this far and see if I can get it running, I feel like I am getting close!

Thanks for all the help so far.

Make sure your mount point has the same permissions as your user who is running plex. If not add them to the same group, or 777 the plex folder so everyone has full access. As for the service error, try a reboot i think you crashed systemctl, which i’ve never seen before. Did you mess with it’s default settings somehow

@jasanson said:
I’m trying to decide whether to use encryption or not for my media files. Is this something that people are doing or is it being overly paranoid? There are definitely some befits to not encrypting like being able to read file names and manage files within Google Drive, play files from Google Drive and even use Plex Cloud and a Plex VPS.

I’m at the point where I pretty much have everything working encrypted and regular on my VPS/Google Drive and I want to start populating it. I understand its a real pain to switch once your library gets bigger.

As an aside. Is there an upload script that would allow you to move files to One location that is encrypted and a second location (a mirror) that is not encrypted?

@jasanson said:
I’m trying to decide whether to use encryption or not for my media files. Is this something that people are doing or is it being overly paranoid? There are definitely some befits to not encrypting like being able to read file names and manage files within Google Drive, play files from Google Drive and even use Plex Cloud and a Plex VPS.

I’m at the point where I pretty much have everything working encrypted and regular on my VPS/Google Drive and I want to start populating it. I understand its a real pain to switch once your library gets bigger.

As an aside. Is there an upload script that would allow you to move files to One location that is encrypted and a second location (a mirror) that is not encrypted?

@jasanson said:
I’m trying to decide whether to use encryption or not for my media files. Is this something that people are doing or is it being overly paranoid? There are definitely some befits to not encrypting like being able to read file names and manage files within Google Drive, play files from Google Drive and even use Plex Cloud and a Plex VPS.

I’m at the point where I pretty much have everything working encrypted and regular on my VPS/Google Drive and I want to start populating it. I understand its a real pain to switch once your library gets bigger.

As an aside. Is there an upload script that would allow you to move files to One location that is encrypted and a second location (a mirror) that is not encrypted?

@jasanson said:
I’m trying to decide whether to use encryption or not for my media files. Is this something that people are doing or is it being overly paranoid? There are definitely some befits to not encrypting like being able to read file names and manage files within Google Drive, play files from Google Drive and even use Plex Cloud and a Plex VPS.

I’m at the point where I pretty much have everything working encrypted and regular on my VPS/Google Drive and I want to start populating it. I understand its a real pain to switch once your library gets bigger.

As an aside. Is there an upload script that would allow you to move files to One location that is encrypted and a second location (a mirror) that is not encrypted?

Set up a google cloud instances, mount your encrypted files on the box, set up a crypt remote that points to those encrypted files you mounted the first time, then mount that crypt remote somewhere else. They upload those files from crypt remote. It’s how i transferred all my encrypted files from ACD to a unencrypted Drive account

Since we’re on the subject, anyone know how to start over with plexdrive if you screwed up the authentication? I stopped short of tying plexdrive to a backup project. I’ve corrected the project so I just need to be able to start the plexdrive -v 2 /mnt/plexdrive piece over. If I close my VPS session, reconnect and try again, it keeps coming back to “Paste the authorization code”. I couldn’t find any info on this specifically. Thanks in advance.