Plex Cloud vs VPS - why we went with a VPS

Also, make sure your path where you placed the PlexDrive file is correct, in your case /usr/local/bin/plexdrive

@mdnitoil @per_PLEX_ed the only time I can get GD mounted is when I run the code I posted above. However in doing so, I’m unable to exit the screen by hitting CTRL+A then D. If I quit the service, GD unmounts. Idk what I’m doing wrong.

I just try doing it from scratch again using the provided instructions. I ran /usr/local/bin/plexdrive -m localhost /mnt/GoogleDrive and it prompted me to input my client ID and secret (even though I created the config.json file in ~/.plexdrive with the same credentials), then told me to use a link to grab the token. I pasted it into the prompt and now it’s just sitting there. I assume it’s indexing or something?

Note: I have not created the script yet. I’m just trying to get GD to mount first.

This is what I use to mount mine (but I am not using a service file)

/usr/local/bin/plexdrive -o allow_other -t /path/to/chunkfolder -v 2 -m localhost /path/to/mount/plexdrive >>/path/to/logs/plexdrive.log 2>&1 &

This will put it into the background, but logs its output to a log file. (and I have specified where I want the chunks saved)

@blim5001 here’s a pic of where the promptly is at. Been like this for the last 10-15 minutes

Hmm, not sure then, but if you ctrl c that and try adding -v 2 to your mount command and see if it provides any more information. fwiw I don’t run plexdrive as root, just my regular user

(Is mongo installed and working ?)

@blim5001 yea mongo is running

(even though I created the config.json file in ~/.plexdrive with the same credentials)

~/.plexdrive is probably your home directory whereas you are running the plexdrive mount command as root, so i would think it would be trying to use the root home directory.

So maybe try running your plexdrive mount command as your regular user not root.

@blim5001 so I ran the code as a regular user and add the two extra commands you suggested and got the following error:

[USR/LOCAL/BIN/PLEXDRIVE] [2017-06-18 13:44] ERROR : Could not open mongo db connection

I followed a tutorial for setting up mongo which had you test the connection and it was good.

Ok, looks like there is a problem with mongo. So as your regular user what do you get if you just type:
mongo

@blim5001 said:
Ok, looks like there is a problem with mongo. So as your regular user what do you get if you just type:
mongo

Prompt shows MongoDB version and connecting to: test

@blim5001 here’s the tutorial I followed

However when at step 4 (install MongoDB) I opened up the script for the service and it was already populated with similar code, so I didn’t do anything there.

Ok, so did you enable authentication ?

@blim5001 said:
Ok, so did you enable authentication ?

Yes

That’ll be it then :wink:

You need to pass the auth details in the mount command

probably something like this:

--mongo-host="localhost" --mongo-password="passwordhere" --mongo-user="mongouser" --mongo-database="databasetouse"

Yeah, that was what was giving me crap. I created a plexdrive database and then a user plexdrive with password plexdrive and gave him read/write to the database. Then I had to pass the user and password in my command to get it working right.

On the json thing, you can also pass the --config= flag to show where the json lives if it’s other than the user default. For example, my json file actually lives in a user called plex’s home directory. So I pass --config=/home/plex/.plexdrive

That way, regardless of what user invokes the service, it will always pull the json from the proper location.

So my plexdrive.service looks like:

/etc/systemd/system/plexdrive.service

[Unit]
Description=Plexdrive
AssertPathIsDirectory=/home/plex/google
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/plexdrive
–verbosity=3
–fuse-options=allow_other
–config=/home/plex/.plexdrive
–temp=/home/plex/plexdrivetemp
–mongo-user=plexdrive
–mongo-password=plexdrive
/home/plex/google
ExecStop=/bin/fusermount -u /home/plex/google
Restart=on-abort

[Install]
WantedBy=default.target

The only “extra” switch that I’m using is the --temp, in order to redirect where the chunks are stored.

@blim5001 said:
That’ll be it then :wink:

You need to pass the auth details in the mount command

probably something like this:

--mongo-host="localhost" --mongo-password="passwordhere" --mongo-user="mongouser" --mongo-database="databasetouse"

Should I disable authorization then? Or does it need to be enabled?

It’s up to you, its easier not to enable it, but of course it’s more secure if you do.

But if you are only using mongo for plexdrive, then its not exactly important data.

I think these days mongo does not enable remote access by default, so if its your own vps it is probably ok to not to have authentication enabled.

@blim5001 said:
It’s up to you, its easier not to enable it, but of course it’s more secure if you do.

But if you are only using mongo for plexdrive, then its not exactly important data.

I think these days mongo does not enable remote access by default, so if its your own vps it is probably ok to not to have authentication enabled.

Ok cool. I’ll try this when I get home and report back. Thanks for your help.

@buba013 said:
guys do your own research and learn .

Isn’t that what people are doing here? Ask questions, get opinions and personal recommendations, make decisions?

Actually I’m curious, anyone who is using SSD Nodes as a VPS, what machine are you using? Are you using a container preview that has docker support?

I’m using the Tau machine.