Cannot mount remote of type local in network-mode

What is the problem you are having with rclone?

Mount of remote with type "local" works fine in normal mode, but not in network mode.
As soon as the option --network-mode is added the error mountpoint "p:" didn't became available on mount - continuing anyway is triggered

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

rclone v1.58.1
- os/version: Microsoft Windows 10 Pro 1909 (64 bit)
- os/kernel: 10.0.18363.1556 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.9
- go/linking: dynamic
- go/tags: cmount

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

"local"

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

rclone mount vv: p: --vfs-cache-mode full --network-mode --cache-dir F:\tmp\rclone -vv

The rclone config contents with secrets removed.

[ll]
type = local

[vv]
type = alias
remote = ll:m:\m

A log from the command with the -vv flag

C:\>rclone mount vv: p: --vfs-cache-mode full --network-mode --cache-dir F:\tmp\rclone -vv
2022/06/09 17:18:52 DEBUG : rclone: Version "v1.58.1" starting with parameters ["F:\\opt\\scoop\\apps\\rclone\\current\\rclone.exe" "mount" "vv:" "p:" "--vfs-cache-mode" "full" "--network-mode" "--cache-dir" "F:\\tmp\\rclone" "-vv"]
2022/06/09 17:18:52 DEBUG : Creating backend with remote "vv:"
2022/06/09 17:18:52 DEBUG : Using config file from "F:\\opt\\scoop\\apps\\rclone\\current\\rclone.conf"
2022/06/09 17:18:52 DEBUG : Creating backend with remote "ll:m:/m"
2022/06/09 17:18:52 DEBUG : fs cache: renaming cache item "ll:m:/m" to be canonical "ll://?/m:/m"
2022/06/09 17:18:52 DEBUG : fs cache: renaming cache item "vv:" to be canonical "ll://?/m:/m"
2022/06/09 17:18:52 INFO  : Local file system at //?/m:/m: poll-interval is not supported by this remote
2022/06/09 17:18:52 DEBUG : vfs cache: root is "F:\\tmp\\rclone"
2022/06/09 17:18:52 DEBUG : vfs cache: data root is "\\\\?\\F:\\tmp\\rclone\\vfs\\ll\\?\\m:\\m"
2022/06/09 17:18:52 DEBUG : vfs cache: metadata root is "\\\\?\\F:\\tmp\\rclone\\vfsMeta\\ll\\?\\m:\\m"
2022/06/09 17:18:52 DEBUG : Creating backend with remote "F:/tmp/rclone/vfs/ll/?/m:/m"
2022/06/09 17:18:52 DEBUG : fs cache: renaming cache item "F:/tmp/rclone/vfs/ll/?/m:/m" to be canonical "//?/F:/tmp/rclone/vfs/ll/?/m:/m"
2022/06/09 17:18:52 DEBUG : Creating backend with remote "F:/tmp/rclone/vfsMeta/ll/?/m:/m"
2022/06/09 17:18:52 DEBUG : fs cache: renaming cache item "F:/tmp/rclone/vfsMeta/ll/?/m:/m" to be canonical "//?/F:/tmp/rclone/vfsMeta/ll/?/m:/m"
2022/06/09 17:18:52 INFO  : 1: Removing directory
2022/06/09 17:18:52 INFO  : 1: Removing directory
2022/06/09 17:18:52 DEBUG : Network mode mounting is enabled
2022/06/09 17:18:52 DEBUG : Mounting on "p:" ("\\server\\ll   ? m  m")
2022/06/09 17:18:52 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item a.txt not removed, freed 0 bytes
2022/06/09 17:18:52 INFO  : vfs cache: cleaned: objects 1 (was 1) in use 0, to upload 0, uploading 0, total size 5 (was 5)
2022/06/09 17:18:52 DEBUG : Local file system at //?/m:/m: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "--VolumePrefix=\\server\\ll   ? m  m"]
2022/06/09 17:18:52 DEBUG : Local file system at //?/m:/m: Init:
2022/06/09 17:18:52 DEBUG : Local file system at //?/m:/m: >Init:
2022/06/09 17:18:52 DEBUG : /: Statfs:
2022/06/09 17:18:52 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:969122304 Bfree:245824946 Bavail:245824946 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2022/06/09 17:18:52 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2022/06/09 17:18:52 DEBUG : /: >Getattr: errc=0
2022/06/09 17:18:52 DEBUG : /: Readlink:
2022/06/09 17:18:52 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2022/06/09 17:19:09 ERROR : mountpoint "p:" didn't became available on mount - continuing anyway
The service rclone has been stopped.
2022/06/09 17:19:32 DEBUG : Local file system at //?/m:/m: Destroy:
2022/06/09 17:19:32 DEBUG : Local file system at //?/m:/m: >Destroy:
2022/06/09 17:19:32 DEBUG : Not calling host.Unmount as mount already Destroyed
2022/06/09 17:19:32 DEBUG : vfs cache: cleaner exiting
2022/06/09 17:19:32 DEBUG : Unmounted successfully
2022/06/09 17:19:32 ERROR : p:: Unmounted rclone mount
2022/06/09 17:19:32 DEBUG : rclone: Version "v1.58.1" finishing with parameters ["F:\\opt\\scoop\\apps\\rclone\\current\\rclone.exe" "mount" "vv:" "p:" "--vfs-cache-mode" "full" "--network-mode" "--cache-dir" "F:\\tmp\\rclone" "-vv"]

@albertony might be able to help with this!

My only suggestion would be to try setting --volname to something, eg --volname rclone

1 Like

Interesting...

I reproduce the error on latest master build and without config:

.\rclone.exe mount C:\Temp X: --network-mode
The service rclone has been started.
2022/06/10 13:13:09 ERROR : mountpoint "X:" didn't became available on mount - continuing anyway
The service rclone has been stopped.
2022/06/10 13:13:20 ERROR : X:: Unmounted rclone mount

And this:

was a very good suggestion - that fixes it:

.\rclone.exe mount C:\Temp X: --network-mode --volname rclonetesting
The service rclone has been started.

Edit: I can debug it, and hopefully it will be easy to spot (and fix) what it is with the volname that makes it work (or not).

This worked like a charm - thank you so much!

Seems the list of reserved characters for file/directory names in Microsoft's Naming Convention does in fact apply to volume names when using network mode:

< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)

Haven't found a definitive source documenting this is the case, specifically for volume names/labels, but I think we can safely assume that and remove them if present (we do already remove : and /).

Yes that sounds like a good idea. What character is in the volname that it doesn't like at the moment? \ would be my guess?

I think all in the list... I've tried *, |, <, :, ? so far..

I meant in this specific example what is the problem character?

Ah, sorry. It is ?.
E.g. with rclone.exe mount C:\Temp X: --network-mode then "C:\Temp" is converted to "//?/C:/Temp" in rclone, and default volname is generated from that into "\server\? C Temp".

Ah, that makes sense.

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