Rclone mount for macos cant uploads

ne-1.50.2 jane$

janes-MacBook-Pro:rclone-1.50.2 jane$ ./rclone mount 1: /Users/jane/Desktop/1

2020/09/21 06:27:28 ERROR : staddddtics.zip: Failed to copy: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:27:28 ERROR : staddddtics.zip: WriteFileHandle.New Rcat failed: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:27:28 ERROR : staddddtics.zip: WriteFileHandle.Release error: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:27:28 ERROR : staddddtics.zip: Failed to copy: invalidRequest: A valid path must be provided.

2020/09/21 06:27:28 ERROR : staddddtics.zip: WriteFileHandle.New Rcat failed: invalidRequest: A valid path must be provided.

2020/09/21 06:27:28 ERROR : staddddtics.zip: WriteFileHandle.Flush error: invalidRequest: A valid path must be provided.

^Cjanes-MacBook-Pro:rclone-1.50.2 jane$ ./rclone mount 1: /Users/jane/Desktop/1

2020/09/21 06:32:33 ERROR : staddddtics.zip: Failed to copy: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:32:33 ERROR : staddddtics.zip: WriteFileHandle.New Rcat failed: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:32:33 ERROR : staddddtics.zip: WriteFileHandle.Release error: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:32:34 ERROR : staddddtics.zip: Failed to copy: invalidRequest: A valid path must be provided.

2020/09/21 06:32:34 ERROR : staddddtics.zip: WriteFileHandle.New Rcat failed: invalidRequest: A valid path must be provided.

2020/09/21 06:32:34 ERROR : staddddtics.zip: WriteFileHandle.Flush error: invalidRequest: A valid path must be provided.

^Cjanes-MacBook-Pro:rclone-1.50.2 jane$ rclone rc

-bash: rclone: command not found

janes-MacBook-Pro:rclone-1.50.2 jane$ ./rclone mount 1: /Users/jane/Desktop/1

2020/09/21 06:35:41 Failed to create file system for "1:": failed to get root: InvalidAuthenticationToken: Access token validation failure.

janes-MacBook-Pro:rclone-1.50.2 jane$

我修改了api 以支持世纪互联的sharepoint 但是macos 挂载后无法上传文件请问是怎么回事,

hello and welcome to the forum,

you are runnning a very old version of rclone, so update and try again

What is the problem you are having with rclone?

What is your rclone version (output from rclone version)

Which OS you are using and how many bits (eg Windows 7, 64 bit)

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

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

onedrive rcloe last

token validation failure.

janes-MacBook-Pro:rclone-1.50.2 jane$ cd /Users/jane/Downloads/rclone-1.53.1

janes-MacBook-Pro:rclone-1.53.1 jane$ go build -a -o rclone

janes-MacBook-Pro:rclone-1.53.1 jane$ ./rclone mount 1: /Users/jane/Desktop/1

2020/09/21 06:53:08 NOTICE: One drive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream

2020/09/21 06:53:08 NOTICE: macOS users: please try "rclone cmount" as it will be the default in v1.54

2020/09/21 06:53:36 ERROR : staddddtics.zip: Failed to copy: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:53:36 ERROR : staddddtics.zip: WriteFileHandle.New Rcat failed: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:53:36 ERROR : staddddtics.zip: WriteFileHandle.Release error: notSupported: Cannot upload content to an item representing a folder.

2020/09/21 06:53:37 ERROR : staddddtics.zip: Failed to copy: invalidRequest: A valid path must be provided.

2020/09/21 06:53:37 ERROR : staddddtics.zip: WriteFileHandle.New Rcat failed: invalidRequest: A valid path must be provided.

2020/09/21 06:53:37 ERROR : staddddtics.zip: WriteFileHandle.Flush error: invalidRequest: A valid path must be provided.

try ./rclone ls 1:

please try "rclone cmount" as it will be the default in v1.54

es-MacBook-Pro:rclone-1.53.1 jane$ ./rclone cmount

Error: unknown command "cmount" for "rclone"

Did you mean this?

mount

Run 'rclone --help' for usage.

2020/09/21 06:58:17 Fatal error: unknown command "cmount" for "rclone"

Did you mean this?

mount

janes-MacBook-Pro:rclone-1.53.1 jane$
可能我编译少了这个请问编译参数怎么写

try ./rclone ls 1:

./rclone ls 1: isok
but i cant ./rclone mount 1: /Users/jane/Desktop/1

because is readonly ,uploads file tell me
NOTICE: macOS users: please try "rclone cmount" as
i use rclone cmount say me Error: unknown command "cmount" for "rclone"
go build -a -o rclone 是错误的编译指令

try downloading rclone from https://rclone.org/downloads/

and

Rclone mount and macOS - testers needed!

sorry i can use it because i use onedriver for china 21vnet api is microsoftgraph...../v1.0
i must change it and go build it
rclone cmount cant use ,
How to compile the cmount module to rclone? I used the go build - A - O rclone command

perhaps @ncw or @Animosity022 can help.

你不知道如何将cmount模块编译为rclone么? 我只是个php程序员 不是完全懂go

./rclone cmount 1: /Users/jane/Desktop/1 --vfs-cache-mode writes

2020/09/21 09:06:58 Fatal error: Directory is not empty: /Users/jane/Desktop/1 If you want to mount it anyway use: --allow-non-empty option

janes-MacBook-Pro:~ jane$ ./rclone cmount 1: /Users/jane/Desktop/1 --vfs-cache-mode writes

2020/09/21 09:07:33 ERROR : staddddtics.zip: Failed to copy: invalidRequest: A valid path must be provided.

2020/09/21 09:07:33 ERROR : staddddtics.zip: vfs cache: failed to upload try #1, will retry in 10s: vfs cache: failed to transfer file from cache to remote: invalidRequest: A valid path must be provided.

2020/09/21 09:07:43 ERROR : staddddtics.zip: Failed to copy: invalidRequest: A valid path must be provided.

找到原因了 世纪互联sharepoint api只能是 https://microsof----------.cn/v1.0/sites/-siteid-/drive
不能以
api/drivrs/-driveid-形式读写,我在编译里写死了sites/siteid/成功完成了读写.

If you want to compile the cmount module too then you need to compile with -tags cmount

This will need a C compiler and the OSXFUSE headers.

我已经解决错误了
rootURL := graphAPIEndpoint + "/v1.0" + "/drives/" + opt.DriveID
oauthConfig.Endpoint = *oauthEndpoint
if opt.Is21Vianet {

	//如果siteid空则访问onedrive
	if opt.SITEID==""{
		rootURL = graphAPIEndpoint21V + "/v1.0" + "/me/drive"
	}
	//如果站点id存在则访问sharepoint
	if opt.SITEID !=""{
	rootURL =  graphAPIEndpoint21V + "/v1.0/sites/"+ opt.SITEID +"/drive"
	}
	
	oauthConfig.Endpoint = *oauthEndpointV21
}

root = parsePath(root)

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