What is the problem you are having with rclone?
rclone lsjson -R
of a cifs mounted directory doesn't end with ]
What is your rclone version (output from rclone version
)
rclone v1.53.4
- os/arch: linux/amd64
- go version: go1.15.6
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 20.04 Linux 64 bit
Which cloud storage system are you using? (eg Google Drive)
"Local" (actually mounted cifs)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
export GODEBUG=asyncpreemptoff=1
rclone lsjson -R /mnt/spi > file.json
[4 directories that say: 2021/02/02 11:25:49 ERROR : DIRECTORY NAME: error listing: failed to read directory entry: readdirent: permission denied]
admin@entrvm0038:~$ tail -1 file.json
{"Path":"file_path.xml","Name":"file_name.xml","Size":9716,"MimeType":"application/xml","ModTime":"2019-01-22T10:06:46.225871000+01:00","IsDir":false}admin@entrvm0038:~$
Note the lack of new line, ]
at the end (the prompt comes just after }
)
The rclone config contents with secrets removed.
There is no config for this: local mount
A log from the command with the -vv
flag
admin@entrvm0038:~$ rclone lsjson -vv -R /mnt/spi > file.json
2021/02/02 11:32:29 DEBUG : rclone: Version "v1.53.4" starting with parameters ["rclone" "lsjson" "-vv" "-R" "/mnt/spi"]
2021/02/02 11:32:29 DEBUG : Creating backend with remote "/mnt/spi"
2021/02/02 11:32:29 DEBUG : Using config file from "/home/admin/.rclone.conf"
[4 directories that I don't have permission]
2021/02/02 11:33:01 DEBUG : 2 go routines active
2021/02/02 11:33:01 Failed to lsjson with 5 errors: last error was: error in ListJSON: failed to read directory entry: readdirent: permission denied
If you would like me to open a bug on GitHub let me know. Or if you want any other information let me know (side note: the same rclone command in /etc with some directories that my user cannot read: the JSON is well formatted)