Plex Cloud vs VPS - why we went with a VPS

I scrolled back and found what I think is your current service file and made some modification, please try this:

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

[Service]
Type=simple
User=username
Group=username
ExecStart=/usr/bin/plexdrive -v 2 -o allow_other --uid=1000 --gid=1000 --config=/home/username/.plexdrive /mnt/plexdrive
ExecStop=/bin/fusermount -uz /mnt/plexdrive
Restart=on-abort

[Install]
WantedBy=default.target

Then using, sudo journalctl -fu plexdrive.service make sure that cache building is done before accessing the mount point

@hthighway said:
I scrolled back and found what I think is your current service file and made some modification, please try this:

Hmm. For whatever reason, it didn’t seem to like that.

 ● plexdrive.service - Plexdrive
   Loaded: loaded (/etc/systemd/system/plexdrive.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2017-06-23 15:05:21 CDT; 3s ago
  Process: 18200 ExecStop=/bin/fusermount -uz /mnt/plexdrive (code=exited, status=217/USER)
  Process: 18198 ExecStart=/usr/bin/plexdrive -v 2 -o allow_other --uid=1000 --gid=1000 --config=/home/username/.plexdrive /mnt/plexdrive (code=exited, status=217/USER)
 Main PID: 18198 (code=exited, status=217/USER)

Jun 23 15:05:21 bellator systemd[1]: Started Plexdrive.
Jun 23 15:05:21 bellator systemd[18198]: plexdrive.service: Failed at step USER spawning /usr/bin/plexdrive: No such process
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Main process exited, code=exited, status=217/USER
Jun 23 15:05:21 bellator systemd[18200]: plexdrive.service: Failed at step USER spawning /bin/fusermount: No such process
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Control process exited, code=exited status=217
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Unit entered failed state.
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Failed with result 'exit-code'.

@KeekUras said:

@hthighway said:
I scrolled back and found what I think is your current service file and made some modification, please try this:

Hmm. For whatever reason, it didn’t seem to like that.

 ● plexdrive.service - Plexdrive
   Loaded: loaded (/etc/systemd/system/plexdrive.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2017-06-23 15:05:21 CDT; 3s ago
  Process: 18200 ExecStop=/bin/fusermount -uz /mnt/plexdrive (code=exited, status=217/USER)
  Process: 18198 ExecStart=/usr/bin/plexdrive -v 2 -o allow_other --uid=1000 --gid=1000 --config=/home/username/.plexdrive /mnt/plexdrive (code=exited, status=217/USER)
 Main PID: 18198 (code=exited, status=217/USER)

Jun 23 15:05:21 bellator systemd[1]: Started Plexdrive.
Jun 23 15:05:21 bellator systemd[18198]: plexdrive.service: Failed at step USER spawning /usr/bin/plexdrive: No such process
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Main process exited, code=exited, status=217/USER
Jun 23 15:05:21 bellator systemd[18200]: plexdrive.service: Failed at step USER spawning /bin/fusermount: No such process
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Control process exited, code=exited status=217
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Unit entered failed state.
Jun 23 15:05:21 bellator systemd[1]: plexdrive.service: Failed with result 'exit-code'.

You user (username) probably needs more than read only access to that folder (/mnt/plexdrive)
For me, I make my user owner of the folder, sudo chown -R username:username /mnt/plexdrive

Also, remove the lines

User=username
Group=username

with the --uid & --gid their not needed

and what is returned by whereis plexdrive ? Does is show plexdrive in /usr/bin/ ?

@hthighway said:

You user (username) probably needs more than read only access to that folder (/mnt/plexdrive)
For me, I make my user owner of the folder, sudo chown -R username:username /mnt/plexdrive

Ok, I did that:

sudo chown -R username:username /mnt/plexdrive
su
cd /mnt
ls -l
drw-r--r-- 2 username username 4096 Jun 21 18:10 plexdrive
exit

Unfortunately, I still have the errors.

● plexdrive.service - Plexdrive
   Loaded: loaded (/etc/systemd/system/plexdrive.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2017-06-23 15:20:17 CDT; 14min ago
  Process: 404 ExecStop=/bin/fusermount -uz /mnt/plexdrive (code=exited, status=217/USER)
  Process: 379 ExecStart=/usr/bin/plexdrive -v 2 -o allow_other --uid=1000 --gid=1000 --config=/home/username/.plexdrive /mnt/plexdrive (code=exited, st
 Main PID: 379 (code=exited, status=217/USER)

Jun 23 15:20:16 bellator systemd[1]: Started Plexdrive.
Jun 23 15:20:16 bellator systemd[1]: plexdrive.service: Main process exited, code=exited, status=217/USER
Jun 23 15:20:16 bellator systemd[404]: plexdrive.service: Failed at step USER spawning /bin/fusermount: No such process
Jun 23 15:20:17 bellator systemd[1]: plexdrive.service: Control process exited, code=exited status=217
Jun 23 15:20:17 bellator systemd[1]: plexdrive.service: Unit entered failed state.
Jun 23 15:20:17 bellator systemd[1]: plexdrive.service: Failed with result 'exit-code'.

I’d like to think it’s something simple but I don’t know what it is. I really appreciate your assistance though.

Did you see this as well?

@hthighway said:
Did you see this as well?
https://forums.plex.tv/discussion/comment/1465568/#Comment_1465568

Sorry totally missed those due to not refreshing the page before responding. Let me check those things out.

@hthighway said:
Also, remove the lines

User=username
Group=username

with the --uid & --gid their not needed

and what is returned by whereis plexdrive ? Does is show plexdrive in /usr/bin/ ?

I’ve removed those and once I saw your second question, I knew that it was in /usr/sbin in my previous script version. I corrected that and here is the error now after reloading the daemon and restarting the plexdrive.service:

username@bellator:/$ whereis plexdrive
plexdrive: /usr/sbin/plexdrive
username@bellator:/$ sudo service plexdrive status
● plexdrive.service - Plexdrive
   Loaded: loaded (/etc/systemd/system/plexdrive.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2017-06-23 16:13:18 CDT; 1min 30s ago
  Process: 1656 ExecStop=/bin/fusermount -uz /mnt/plexdrive (code=exited, status=217/USER)
  Process: 1654 ExecStart=/usr/sbin/plexdrive -v 2 -o allow_other --config=/home/username/.plexdrive /mnt/plexdrive (code=exited, status=217/USER)
 Main PID: 1654 (code=exited, status=217/USER)

Jun 23 16:13:18 bellator systemd[1]: Started Plexdrive.
Jun 23 16:13:18 bellator systemd[1654]: plexdrive.service: Failed at step USER spawning /usr/sbin/plexdrive: No such process
Jun 23 16:13:18 bellator systemd[1]: plexdrive.service: Main process exited, code=exited, status=217/USER
Jun 23 16:13:18 bellator systemd[1656]: plexdrive.service: Failed at step USER spawning /bin/fusermount: No such process
Jun 23 16:13:18 bellator systemd[1]: plexdrive.service: Control process exited, code=exited status=217
Jun 23 16:13:18 bellator systemd[1]: plexdrive.service: Unit entered failed state.
Jun 23 16:13:18 bellator systemd[1]: plexdrive.service: Failed with result 'exit-code'.

One thing to possible check… is plexdrive in:

usr/bin/local/plexdrive

Or

Usr/bin/plexdrive

Is fusermount in /bin ?

@danjames92 said:
One thing to possible check… is plexdrive in:

usr/bin/local/plexdrive

Or

Usr/bin/plexdrive

Thank you for your reply. It’s in /usr/sbin/. That’s where the original guide I followed said to copy rclone, so I just followed suit for continuity.

@hthighway said:
Is fusermount in /bin ?

username@bellator:/$ whereis fusermount
fusermount: /bin/fusermount /usr/share/man/man1/fusermount.1.gz

Ok…
In /etc/fuse.conf have you uncommented user_allow other ?

Remove the # in front of it.

OK after reading KeekUras’s posts I decided to check on how my MongoDB is running/setup. I’ve come to the conclusion that something is not right and I’m thinking that it has something to do with the MongoDB setup.

Plexdrive does appear to work but I have noticed very high CPU usage. Plexdrive is mounted to /mnt/plexdrive and when I ls that folder I can see the contents of my Google Drive. Pointing the PlexServer to the media folder within this does allow me to play content but as I said the CPU usage is high and the time to buffer up to play and seek times are not great.

If I run the $plexdrive command I get the regular output but at the end of this it states

panic: Mountpoint not specified

Unfortunately I have cobbled together my install from a number of sites and I think I have missed certain things. For example I don’t think that I initially ran the command below which is from the Installation section on https://github.com/dweidenfeld/plexdrive

./plexdrive -m localhost /path/to/my/mount

Should I run this now? and would I simply unmount /mnt/plexdrive and then run

$plexdrive -m localhost /mnt/plexdrive

Can someone give me some directions on how to reinstall MongoDB correctly

I followed the directions on this page https://chooseneye.com/2017/06/install-plexdrive-on-debian-8/

– First

$apt-get install fuse mongodb

– Setup MongoDB

– First login into mongo and create the PlexDrive Database.

$mongo
$use plexdrive
$exit

I don’t think that has installed Mongo correctly.

When I run

$sudo mongo

I get the following output

nodeuser@ssdnodes-server1:~$ sudo mongo
MongoDB shell version: 2.6.10
connecting to: test
Server has startup warnings:
2017-06-19T13:41:01.539-0400 [initandlisten]
2017-06-19T13:41:01.539-0400 [initandlisten] ** WARNING: You are running in OpenVZ which can cause issues on versions of RHEL older than RHEL6.
2017-06-19T13:41:01.539-0400 [initandlisten]

Any help would be appreciated.

@hthighway said:
Ok…
In /etc/fuse.conf have you uncommented user_allow other ?

Remove the # in front of it.

Gave that a go, same errors persist.

I hate to be that guy but what things have you done to secure your server? I love that you are learning but I am also kinda scared about what you might have running wild out there. Feel free to pm me and I can give you a few simple tips to make your server more secure.

And I also have plexdrive working. And I also think you are going about this the entirely wrong way. Actually, it looks like everyone is doing things the wrong way. I don’t even know where to start.

Step one… Get it working in a screen session. Do not try setting it as a service until it works in screen.

Question to the pros whether such a server would be sufficient

Intel® vCore
4 GB DDR3 RAM (ECC)
4 vCores
80 GB SAS

Is 80GB enough for Plex, plexdrive, possible transcoding?

@Coxeroni said:
Is 80GB enough for Plex, plexdrive, possible transcoding?

I only have 20GB storage on my VPS and ~20 000 episodes use ~7GB. The remaining 13GB are plenty even for “4k” transcoding.
So unless you have 200 000+ episodes in your library 80GB will be sufficient.

My concern wouldn’t be the transcoding, but rather growth space for the Plex database.