Can rclone help me to connect my pCloud folders to Plex Media server (Synology)

HI,

I'm looking for a solution that would allow me to connect Plex Media Server (which is on my NAS) to my storage space which is on pCloud.

In the Plex community forum, I was advised to look for a probable solution using rclone

So this first post is not a problem but a question about the capacity of rclone.

I use a DS918+ NAS using DSM 7.1-42661 Update 4

What is the problem you are having with rclone?

I'm new here. Don't have installed yet rclone

Run the command 'rclone version' and share the full output of the command.

rclone not installed yet

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

pCloud

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

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

hello and welcome to the forum,

sure, rclone can do that and in fact, i have done something similar with my synbox.

the first steps are

  1. install rclone on the synbox. not 100% sure if the install scripts works on synology.
    if not, there is a simple workaround.
    https://rclone.org/downloads/#script-download-and-install
  2. test that rclone is installed by running rclone version
  3. create a remote for pcloud, https://rclone.org/pcloud/#configuration

Thanks asdffdsa !
It worked using the basic install command curl https://rclone.org/install.sh | sudo bash
rclone is now installed on my Synology NAS :slight_smile:

I imagine I now have to run rclone config but before doing that I will try to find a tuto (as I'm really a very big beginner)

I started the config by following instruction from rclone page : pCloud
It was fine until I'm blocked here :

2022/08/27 16:42:02 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=xxxxxxxxxxxxxxxxxxxx
2022/08/27 16:42:02 NOTICE: Log in and authorize rclone for access
2022/08/27 16:42:02 NOTICE: Waiting for code...

I have tried http://my-local-NAS-IP:53682/auth?state=xxxxxxxxxxxxxxxxxxxx
And 127.0.0.1 doesn't make sens from my computer.
(note that Synology NAS doesn't have any broswer)
(NAS Firewall has been stopped to test)

need to use headless machine option
so at this step, choose n, for headless machine and then follow the instructions.

Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> n

read about it at
https://rclone.org/remote_setup

1 Like

Ok, I'm going to try.
For now, can I just ctrl-c to quit current rclone config ? (any information have been saved if I did not complete le config process ? A yes/no answer will be enought.

i believe that answer is yes, but should not matter, just run rclone config again and create a remote.

A bit paintful :slight_smile:
I have installed rclone on my computer and I have been able to get the token (so I could say I made progress)

But it looks like something wrong now with the token.


Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine

y) Yes (default)
n) No
y/n> n

Option config_token.
For this to work, you will need rclone available on a machine that has
a web browser available.
For more help and alternate methods see: https://rclone.org/remote_setup/
Execute the following on the machine with the web browser (same rclone
version recommended):
	rclone authorize "pcloud"
Then paste the result.
Enter a value.
config_token> {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}

2022/08/27 17:12:30 ERROR : Failed to save config after 10 tries: failed to create config directory: mkdir /var/services/homes: file exists
2022/08/27 17:12:35 ERROR : Failed to save config after 10 tries: failed to create config directory: mkdir /var/services/homes: file exists
Configuration complete.
Options:
- type: pcloud
- token: {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
Keep this "pcloud" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>

What am I now supposed to answer and do :-/
Thanks for helping me

in that link i shared, follow https://rclone.org/remote_setup/#configuring-by-copying-the-config-file

in effect, run rclone config on that mac, then copy the rclone.conf config file to synbox.
so no need to run rclone config on the synbox.

on the mac, run rclone config and this time choose yes for auto config.
that will open a web browser on the mac.

The procedure seems simple, but I'm completely stuck!

I feel like rclone can't write to my NAS.
After the rclone config file command, the folder that should contain the configuration file does not exist.

Same music if I try to create the file manually.

/var/services/homes/username/.rclone.conf does not exist and cannot be created.

I'm logged as with level admin user.

do not run rclone config on synbox.

--- on the mac, create a remote for pcloud.
--- test that remote using rclone lsd pcloud:
--- copy rclone.conf config file from mac to synbox

I share the information. By default Synology DSM is configured with "User Home service" disabled.
I have enabled the function I'm now able to access the rclone config folder via the synology terminal.

From my mac , rclone lsd pcloud: works fine as expected.
I have copied config file from mac to synology !

It looks like it works as the clone lsd pcloud: returns correctly my pCloud folders !!!!

I'm happy :slight_smile:

What's the next step in order to get access from Plex Media Server ?
I'm not seeing where pCloud is supposed to be mounted ?

please try not to use hard to read screenshot snipets.
just copy and past into post and enclose the text with three backticks so it is formatted like

rclone lsd gdrivesac1:
          -1 2022-03-03 09:33:10        -1 zork

now, next step is to mount pcloud as local storage.
so try something like this, change that local path as needed
rclone mount pcloud: /path/to/local/mountpoint -vv

if that does not work, then post the output enclosed with three backticks

Understood for screenshots. Sorry for that.

Here what I get :

raffi@DiskStation:/$ 
raffi@DiskStation:/$ rclone mount pcloud: /volume1/pCloud/
2022/08/27 19:00:07 NOTICE: pcloud root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2022/08/27 19:00:07 mount helper error: fusermount: mountpoint is not empty
2022/08/27 19:00:07 mount helper error: fusermount: if you are sure this is safe, use the 'nonempty' mount option
2022/08/27 19:00:07 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
raffi@DiskStation:/$ 
raffi@DiskStation:/$ 
raffi@DiskStation:/$ rclone mount pcloud: /volume1/pCloud/ -vv
2022/08/27 19:00:51 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "mount" "pcloud:" "/volume1/pCloud/" "-vv"]
2022/08/27 19:00:51 DEBUG : Creating backend with remote "pcloud:"
2022/08/27 19:00:51 DEBUG : Using config file from "/var/services/homes/raffi/.config/rclone/rclone.conf"
2022/08/27 19:00:51 INFO  : pcloud root '': poll-interval is not supported by this remote
2022/08/27 19:00:51 NOTICE: pcloud root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2022/08/27 19:00:51 DEBUG : pcloud root '': Mounting on "/volume1/pCloud/"
2022/08/27 19:00:51 mount helper error: fusermount: mountpoint is not empty
2022/08/27 19:00:51 mount helper error: fusermount: if you are sure this is safe, use the 'nonempty' mount option
2022/08/27 19:00:51 Fatal error: failed to mount FUSE fs: fusermount: exit status 1

the mountpoint has to be empty, as per rclone docs

I have created a new empty shared folder. So I guess there's something I don't understand properly in how to get an "empty mountpoint"

/volume1/pCloud has to be empty, no files in it, no subdirs in it.

total 0 means empty ? no

raffi@DiskStation:/volume1/pCloud$ ls -l
total 0
drwxrwxrwx+ 1 root root 8 Aug 27 18:58 @eaDir

But there's something called @eaDir, not sure if I can delete it :slight_smile:

for use with rclone mount + plex, @eaDir can be deleted.

i think that since /volume1/pCloud is shared, synbox creates @eaDir

Removing the @eaDir affect the user permission to access the folder. So I have changed my mind about the mounting point.

Here is what I get when I point to a new fresh empty folder :

raffi@DiskStation:/volume1/pCloud$ rclone mount pcloud: /volume1/MassMovies/PCLOUD/ -vv
2022/08/27 19:27:25 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "mount" "pcloud:" "/volume1/RAFFI/PCLOUD/" "-vv"]
2022/08/27 19:27:25 DEBUG : Creating backend with remote "pcloud:"
2022/08/27 19:27:25 DEBUG : Using config file from "/var/services/homes/raffi/.config/rclone/rclone.conf"
2022/08/27 19:27:25 INFO  : pcloud root '': poll-interval is not supported by this remote
2022/08/27 19:27:25 NOTICE: pcloud root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2022/08/27 19:27:25 DEBUG : pcloud root '': Mounting on "/volume1/RAFFI/PCLOUD/"
2022/08/27 19:27:25 DEBUG : : Root: 
2022/08/27 19:27:25 DEBUG : : >Root: node=/, err=<nil>

I do not come back to the prompt
If I ctrl-c it ends

2022/08/27 19:35:26 INFO  : Signal received: interrupt
2022/08/27 19:35:26 ERROR : /volume1/MassMovies/PCLOUD/: Unmounted rclone mount
2022/08/27 19:35:26 INFO  : Exiting...

correct, rclone has to continue to run.

so re-run the mount command,
open a new terminal command prompt and run this command, should see the files in pcloud:
ls /volume1/MassMovies/PCLOUD`