If I start rclone mount from command line to mount a remote SFTP, all works as expected.
Then I tried to start rclone as service via NSSM, the mount works well, but when I tried to write a file on remote, it failed. However, if I append a new file to the remote directory, it's OK.
I also tried rlcone of version 1.51, it also failed.
What is your rclone version (output from rclone version)
rclone v1.55.1
os/type: windows
os/arch: amd64
go/version: go1.16.3
go/linking: dynamic
go/tags: cmount
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10, 64bit
Which cloud storage system are you using? (eg Google Drive)
SFTP
The command you were trying to run (eg rclone copy /tmp remote:tmp)
C:\Program\rclone-v1.55.1-windows-amd64\rclone.exe mount mmm: E: --config "rclone.conf" --vfs-cache-mode writes --dir-cache-time 30s
The rclone config contents with secrets removed.
[mmm]
type = sftp
host = xx.xx.xx.xx
user = xxx
pass = xxxxxxxx
md5sum_command = md5sum
sha1sum_command = sha1sum
A log from the command with the -vv flag
If rclone is started from command line, it works just FINE.
I don't know how to catch log when start rclone as a service
I can add new file to remote directory, But If I tried to modify this file, it always failed.
Looks it became read only.
But I didn't mount as read only.
This may be a Windows user permissions problem to do with how you started the mount. Can you try starting the mount not via nssm and running it as you and see if it works?