Team, I know this has been asked multiple times but I have not found any concret solution nor answer.
I have pCloud service (I believe issue is not relevant to storage provider) and im using nssm to create service:
nssm stop rclone2
nssm remove rclone2 confirm
nssm install rclone2 c:\rclone\rclone.exe
nssm set rclone2 AppParameters mount pcloud:/ X: --config rclone.conf --cache-dir .\cache\ --volname pCloud --dir-perms=0777 --file-perms=0777 --vfs-cache-mode full -o --uid=65972 --default-permissions
nssm set rclone2 AppDirectory C:\rclone\
nssm set rclone2 AppStdout C:\rclone\rclone.log
nssm set rclone2 AppStderr C:\rclone\rclone.log
nssm set rclone2 AppStopMethodSkip 6
nssm set rclone2 AppStopMethodConsole 1000
nssm set rclone2 AppThrottle 5000
nssm start rclone2
What works: create/delete/rename file/folder
What does not work: modify/update existing files
Of course all issues are gone if I will mount pCloud as current user and use as current user. If I will switch account to other one drive is no longer visible.
Is there a way to get fully functional drive/netdrive available to all logged users at once?
I have solved this other way. I believe this has something related to WIndows permissions it self and Im not specialist but I have doubts it can be solved as a service at all.
I in a wider context - I wantned to automate mounting my pCloud system wide for all users but as I said - moutnting it with SYSTEM user have some drawbacks. That is why I have created task in windows scheduler who runs commnad to mount for each user after logon. I have nearly completed all steps to automate it with usage of Ansible including downloaoding rclone itself.
I have no idea - this is my second attempt to rclone on windows. I believe that at the first time I have read about some limitations with SYSTEM user but this time I have not found it - just faced it. Maybe its something worng with my solution - I have no idea.
Do You have this setup (system wide mount) working correctly?
rclone serve webav remote:emulates a webdav server
and windows operating system itself can mount a webdav server as local storage.
DEBUG : rclone: Version "v1.57.0" starting with parameters ["c:\\data\\rclone\\scripts\\rclone.exe" "serve" "webdav" "wasabi01:zork" "--vfs-cache-mode=full" "--file-perms=0777" "--dir-cache-time=1m" "--vfs-cache-poll-interval=1m" "--vfs-cache-max-age=1m" "--cache-dir=D:\\rclone\\cache\\zork" "--log-file=.\\log.serve.webdav.zork.txt" "--log-level=DEBUG" "--log-file=.\\log.serve.webdav.zork.txt" "--log-level=DEBUG"]
DEBUG : Creating backend with remote "wasabi01:zork"
DEBUG : Using config file from "c:\\data\\rclone\\scripts\\rclone.conf"
INFO : S3 bucket zork: poll-interval is not supported by this remote
DEBUG : vfs cache: root is "D:\\rclone\\cache\\zork"
DEBUG : vfs cache: data root is "\\\\?\\D:\\rclone\\cache\\zork\\vfs\\wasabi01\\zork"
DEBUG : vfs cache: metadata root is "\\\\?\\D:\\rclone\\cache\\zork\\vfsMeta\\wasabi01\\zork"
DEBUG : Creating backend with remote "D:/rclone/cache/zork/vfs/wasabi01/zork"
DEBUG : fs cache: renaming cache item "D:/rclone/cache/zork/vfs/wasabi01/zork" to be canonical "//?/D:/rclone/cache/zork/vfs/wasabi01/zork"
DEBUG : Creating backend with remote "D:/rclone/cache/zork/vfsMeta/wasabi01/zork"
DEBUG : fs cache: renaming cache item "D:/rclone/cache/zork/vfsMeta/wasabi01/zork" to be canonical "//?/D:/rclone/cache/zork/vfsMeta/wasabi01/zork"
INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
NOTICE: S3 bucket zork: WebDav Server started on http://localhost:8080/
rclone ls wasabi01:zork
28 file.txt
net use z: \\localhost@8080\davwwwroot
The command completed successfully.
dir z:
Volume in drive Z has no label.
Volume Serial Number is 0000-0000
Directory of Z:\
01/27/2022 02:08 PM <DIR> .
01/27/2022 02:08 PM <DIR> ..
01/27/2022 02:09 PM 28 file.txt
1 File(s) 28 bytes
2 Dir(s) 57,925,574,656 bytes free
It should be quite easy to write some sort of monitoring tool to read last log line with "INFO" and parse it and display red/green icon in toolbar. This should be easy with .NET ( again - Im not a programer but I wrote some small tool in this ages ago and maybe I will try to it again)
yes, that i what i expected, and nice to need only one rclone cache for all users.
cannot see into your computer screen.
need to see a full rclone debug log, or at a minimum, the top 30 lines.
and you need to look into the debug log for errors and messages pertaining to the exact file that failed to play.
It did the trick but some other limitation occured When I play 1.5GB file it downloads it fully first (maybe its the way Windows Webclient works?). I have changed --vfs-cache-mode=writes but it didnt changed behaviour.
Thank You for Your time and support Maybe I will spent some time still today to check if mentioned offtopic is in my range.