Mounting issues using SFTP Path

What is the problem you are having with rclone?

Let me start by saing, I'm not technical with Linux or rclone, I'm tring by best to learn from google.

So my I've had similar issues in the past but got a new server, so I created a remote called 'Plex' (the path is just default so it loads all my files under the rClone browser. So now after mounting, I'm using this in my file manager /home/user/Plex/Plex. (the latter which has all my files). I've tried to amend the path but I can't get it to work.

When I log into my server it's showing up as '/Plex' and FTP it's showing as /home/desibuoy/Plex. I've tried to edit my remote to IP:/Plex and IP:/home/desibuoy/Plex. Nothing works.

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

rclone v1.66.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: none

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

SFTP - NetDynamics24

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

rclone mount Plex: /home/user/Plex -v --allow-other

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[Plex]
type = sftp
host = XXX
user = XXX
pass = XXX
md5sum_command = md5sum
sha1sum_command = sha1sum
shell_type = unix
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

I tried this but it just includes a list of rclone commands.

rclone --log-file=/home/user/Desktop/rclonelog.txt --log-level INFO

so, the remote Plex looks good, the mount command looks good.

but you did not post a debug log?
rclone mount Plex: /home/user/Plex -vv --allow-other

sorry, a bit confused, you posted three different paths, so which is correct?
when posting, need to use the correct full paths, exact commands, no substitutions, ok?
/home/user/Plex
/home/user/Plex/Plex
/home/desibuoy/Plex

there is no command, such as sync, copy, mount

what is the output of
rclone lsd Plex: -vv
and
rclone lsd /home/desibuoy/Plex -vv or whatever is the correct local path to the mountpoint.

This is my Log file after using this - The Log file after using this

rclone mount Plex: /home/user/Plex -v --allow-other --log-file=/home/user/Desktop/rclonelog.txt --log-level INFO

2024/03/12 17:45:10 Can't set -v and --log-level



I have no idea to check what the correct one is.
But let me explain.

/home/user/Plex
I created a folder on my server so I could mount

/home/user/Plex/Plex
This is the directory after mounting. I don't want the extra Plex.

/home/desibuoy/Plex

This is what's showing on my HDD server and FTP when I log in.




I ran rclone lsd Plex: -vv
and got this -

2024/03/12 17:56:25 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "lsd" "Plex:" "-vv"]
2024/03/12 17:56:25 DEBUG : Creating backend with remote "Plex:"
2024/03/12 17:56:25 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2024/03/12 17:56:25 DEBUG : sftp://desibuoy@XXX:22/: New connection XXX->XXX:22 to "SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6"
2024/03/12 17:56:26 DEBUG : sftp://desibuoy@XXX:22/: Shell type "unix" from config
2024/03/12 17:56:26 DEBUG : sftp://desibuoy@XXX:22/: Relative path resolved to "/home/desibuoy"
2024/03/12 17:56:26 DEBUG : sftp://desibuoy@XXX:22/: Using root directory "/home/desibuoy"
          -1 2023-07-01 21:35:42        -1 .cache
          -1 2024-03-08 14:04:06        -1 .filemin
          -1 2024-03-12 11:48:29        -1 .tmp
          -1 2023-06-02 03:30:58        -1 .usermin
          -1 2023-01-06 07:07:17        -1 Maildir
          -1 2023-03-08 16:48:48        -1 Plex
          -1 2023-03-25 02:12:33        -1 SHIELD
          -1 2023-01-06 07:07:26        -1 awstats
          -1 2023-06-02 03:31:01        -1 bin
          -1 2023-01-06 07:07:24        -1 cgi-bin
          -1 2023-01-06 07:07:21        -1 etc
          -1 2023-01-06 07:07:21        -1 fcgi-bin
          -1 2023-01-28 02:57:44        -1 homes
          -1 2023-01-06 07:07:20        -1 logs
          -1 2023-12-16 17:38:03        -1 public_html
          -1 2024-03-11 22:38:36        -1 tmp
          -1 2023-01-06 07:07:17        -1 virtualmin-backup
2024/03/12 17:56:27 DEBUG : 13 go routines active

This is why I added in the remote path /home/desibuoy/Plex but that didn't work.

only one can be correct, only you know which one?

  1. run the rclone mount and post the full debug output.
  2. then run rclone lsd /home/user/Plex -vv and post the full debug output.

then remove -v

2024/03/12 19:08:48 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "mount" "Plex:" "/home/user/Plex" "--allow-other" "--log-file=/home/user/Desktop/rclonelog.txt" "--log-level" "DEBUG"]
2024/03/12 19:08:48 DEBUG : Creating backend with remote "Plex:"
2024/03/12 19:08:48 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2024/03/12 19:08:49 DEBUG : sftp://desibuoy@XXX:22/: New connection XXX:33182->XXX:22 to "SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6"
2024/03/12 19:08:49 DEBUG : sftp://desibuoy@XXX:22/: Shell type "unix" from config
2024/03/12 19:08:49 DEBUG : sftp://desibuoy@XXX:22/: Relative path resolved to "/home/desibuoy"
2024/03/12 19:08:49 DEBUG : sftp://desibuoy@XXX:22/: Using root directory "/home/desibuoy"
2024/03/12 19:08:49 INFO  : sftp://desibuoy@XXX:22/: poll-interval is not supported by this remote
2024/03/12 19:08:49 DEBUG : sftp://desibuoy@XXX:22/: Mounting on "/home/user/Plex"
2024/03/12 19:08:49 DEBUG : : Root: 
2024/03/12 19:08:49 DEBUG : : >Root: node=/, err=<nil>



2024/03/12 19:09:49 DEBUG : sftp://desibuoy@XXX:22/: Closing 1 unused connections
2024/03/12 19:12:46 DEBUG : : forgetting directory cache
2024/03/12 19:12:55 Can't set -v and --log-level
2024/03/12 19:13:13 DEBUG : : Statfs: 
2024/03/12 19:13:13 DEBUG : sftp://desibuoy@XXX:22/: New connection XXX:39042->XXX:22 to "SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6"
2024/03/12 19:13:14 DEBUG : sftp://desibuoy@XXX:22/: Server has VFS statistics extension
2024/03/12 19:13:14 DEBUG : sftp://desibuoy@XXX:22/: About path "/home/desibuoy"
2024/03/12 19:13:14 DEBUG : : >Statfs: stat={Blocks:31331779750 Bfree:6993941022 Bavail:6993941022 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2024/03/12 19:13:14 DEBUG : /: Attr: 
2024/03/12 19:13:14 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>

Coming back to this question -

I honestly have no idea, however these log do indicate - /home/desibuoy/Plex
I changed the host to but nothing happened.

MYIP:/home/desibuoy/Plex```

that is not correct,
as i asked up above, post the full output of rclone lsd /home/desibuoy/Plex -vv

I thought I did previously -

user@box:~$ rclone lsd /home/user/Plex -vv
2024/03/12 19:55:26 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "lsd" "/home/user/Plex" "-vv"]
2024/03/12 19:55:26 DEBUG : Creating backend with remote "/home/user/Plex"
2024/03/12 19:55:26 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
           0 2023-07-01 21:35:42        -1 .cache
           0 2024-03-08 14:04:06        -1 .filemin
           0 2024-03-12 11:48:29        -1 .tmp
           0 2023-06-02 03:30:58        -1 .usermin
           0 2023-01-06 07:07:17        -1 Maildir
           0 2023-03-08 16:48:48        -1 Plex
           0 2023-03-25 02:12:33        -1 SHIELD
           0 2023-01-06 07:07:26        -1 awstats
           0 2023-06-02 03:31:01        -1 bin
           0 2023-01-06 07:07:24        -1 cgi-bin
           0 2023-01-06 07:07:21        -1 etc
           0 2023-01-06 07:07:21        -1 fcgi-bin
           0 2023-01-28 02:57:44        -1 homes
           0 2023-01-06 07:07:20        -1 logs
           0 2023-12-16 17:38:03        -1 public_html
           0 2024-03-11 22:38:36        -1 tmp
           0 2023-01-06 07:07:17        -1 virtualmin-backup
2024/03/12 19:55:28 DEBUG : 4 go routines active

all looks good.
so what is the problem?

  1. After mounting, the directory shows up as /home/user/Plex/Plex. I want it to show up as /home/user/Plex.

and

  1. I want my rclone remote to default at the path of Plex, so hence why I'm tried to use MYIP:/home/desibuoy/Plex`` in the remote config.

ok, /home/desibuoy/Plex exists, on both, the sftp server and on your local machine?

use an alias

[plexa]
type = alias
remote = Plex:home/desibuoy/Plex

and use it like so:
rclone mount plexa: /home/desibuoy/Plex

No it doesn't. SFTP has home/desibuoy/Plex while my local machine has /home/user/Plex (I created the Plex directory before mounting. Even If I delete it and mount then I get something about an empty directory.

Created this but got this error -
2024/03/12 20:34:13 ERROR : sftp://desibuoy@XXX:22/home/desibuoy/Plex: Statfs failed: file does not exist

based on that.

these two should be the same ?
/home/desibuoy/ on the sftp server, as seen from filezilla or such sftp client
rclone lsd Plex:

and might test
rclone ncdu Plex: and rclone tree Plex:

          -1 2023-07-01 21:35:42        -1 .cache
          -1 2024-03-08 14:04:06        -1 .filemin
          -1 2024-03-12 11:48:29        -1 .tmp
          -1 2023-06-02 03:30:58        -1 .usermin
          -1 2023-01-06 07:07:17        -1 Maildir
          -1 2023-03-08 16:48:48        -1 Plex
          -1 2023-03-25 02:12:33        -1 SHIELD
          -1 2023-01-06 07:07:26        -1 awstats
          -1 2023-06-02 03:31:01        -1 bin
          -1 2023-01-06 07:07:24        -1 cgi-bin
          -1 2023-01-06 07:07:21        -1 etc
          -1 2023-01-06 07:07:21        -1 fcgi-bin
          -1 2023-01-28 02:57:44        -1 homes
          -1 2023-01-06 07:07:20        -1 logs
          -1 2023-12-16 17:38:03        -1 public_html
          -1 2024-03-11 22:38:36        -1 tmp
          -1 2023-01-06 07:07:17        -1 virtualmin-backup
user@box:~$ 



Well, when I log into Filezilla, sure, I see that, but would it be the same on my local machine?
Also I've just logged a ticket with my SFTP. I don't understand this, I set up the mount exactly the same as last time - Rclone fatal error mount not ready & Plex not finding Files [SFTP] - #3 by Desibuoy (I didn't even include the remote when mounting and it worked and here it doesn't). Weird.

I can't copy the results of both of these works as they contain much information. Was there something specific I was meant to do?

sorry, i guess i am not understanding. maybe i am missing something?
you posted good output, so let's see what other forum members think?

  1. using the remote Plex:, find the location of your files.
  2. use that path as the source for rclone mount

if you did that and it did not work, then i am not sure what to tell you.

who is the provider?
fwiw, i mount sftp servers often. i always have a mount pointing to hetzner storagebox.

I managed to get the Alias 'Cinema' working using this config -
Plex:Plex
Plex was the Remote, and Plex is the Folder Path, it worked. However I still can't get the original remote working (didn't want to create an Alias)

I got it working using -
rclone mount Plex:Plex /home/user/Plex -v --allow-other
This now takes me directly to my Folder. I deleted the Alias.

Thanks @ [asdffdsa]

sure, glad you figured it out.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.