Windows 10 - rclone mount - nssm service problem

What is the problem you are having with rclone?

Hello!

I'm having some trouble with configuring a service to keep a gdrive mount alive. The bottom paste from -vv is the working output of the command in the console, without the use of any service. For referance when settign up the service I used the following posts:



Here is a stichted screen of the exact steps I took:
The exact problem I'm having with rclone: After I click Install service I then run it from services.msc, upon which I receive an error, concluding in the script being paused.

What is your rclone version (output from rclone version)

$ rclone version
rclone v1.51.0

  • os/arch: windows/amd64
  • go version: go1.13.7

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

Windows 10 Redstone 2, 64-bit

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

Google Drive

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

mount Mishoneto_crypt: G: --config "C:\Users\Mishonkata.config\rclone\rclone.conf" --volname Subiram_vs

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

$ rclone mount Mishoneto_crypt: G: --config "C:\Users\Mishonkata.config\rclone\rclone.conf" --volname Subiram_vs -vv
2020/04/12 00:43:53 DEBUG : rclone: Version "v1.51.0" starting with parameters ["C:\Users\Mishonkata\Desktop\git\rclone-v1.51.0-windows-amd64\rclone.exe" "mount" "Mishoneto_crypt:" "G:" "--config" "C:\Users\Mishonkata\.config\rclone\rclone.conf" "--volname" "Subiram_vs" "-vv"]
2020/04/12 00:43:53 DEBUG : Using config file from "C:\Users\Mishonkata\.config\rclone\rclone.conf"
2020/04/12 00:43:53 DEBUG : Mishoneto_0001: Loaded invalid token from config file - ignoring
2020/04/12 00:43:53 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2020/04/12 00:43:53 DEBUG : Mishoneto_0001: Saved new token in config file
2020/04/12 00:43:55 DEBUG : Encrypted drive 'Mishoneto_crypt:': Mounting on "G:"
2020/04/12 00:43:55 DEBUG : Adding path "vfs/forget" to remote control registry
2020/04/12 00:43:55 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/04/12 00:43:55 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/04/12 00:43:55 DEBUG : Encrypted drive 'Mishoneto_crypt:': Mounting with options: ["-o" "fsname=Mishoneto_crypt:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=Subiram_vs"]
2020/04/12 00:43:55 DEBUG : Encrypted drive 'Mishoneto_crypt:': Init:
2020/04/12 00:43:55 DEBUG : Encrypted drive 'Mishoneto_crypt:': >Init:
2020/04/12 00:43:55 DEBUG : /: Statfs:
2020/04/12 00:43:55 DEBUG : Google drive root 'Temp_0': read info from team drive "004_rcl"
2020/04/12 00:43:55 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Readlink:
2020/04/12 00:43:55 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Opendir:
2020/04/12 00:43:55 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:43:55 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:43:55 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/04/12 00:43:55 DEBUG : /: Statfs:
2020/04/12 00:43:55 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Opendir:
2020/04/12 00:43:55 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:43:55 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:43:55 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/04/12 00:43:55 DEBUG : /: Releasedir: fh=0x0
2020/04/12 00:43:55 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:43:55 DEBUG : /: Releasedir: fh=0x1
2020/04/12 00:43:55 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:43:55 DEBUG : /: >Getattr: errc=0
2020/04/12 00:43:55 DEBUG : /: Opendir:
2020/04/12 00:43:55 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:43:55 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:43:55 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/04/12 00:43:55 DEBUG : /: Releasedir: fh=0x0
2020/04/12 00:43:55 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:01 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:02 DEBUG : tekst_file_0003.txt: Skipping undecryptable file name: illegal base32 data at input byte 5
2020/04/12 00:44:02 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/04/12 00:44:02 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:02 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/04/12 00:44:02 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:02 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/04/12 00:44:02 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:02 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:02 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:02 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:02 DEBUG : /: Opendir:
2020/04/12 00:44:02 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:02 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:02 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/04/12 00:44:02 DEBUG : /: Releasedir: fh=0x0
2020/04/12 00:44:02 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:02 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:02 DEBUG : /AutoRun.inf: >Getattr: errc=-2
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Opendir:
2020/04/12 00:44:34 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:34 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:34 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/04/12 00:44:34 DEBUG : /: Statfs:
2020/04/12 00:44:34 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/04/12 00:44:34 DEBUG : /: Releasedir: fh=0x0
2020/04/12 00:44:34 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Opendir:
2020/04/12 00:44:34 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:34 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:34 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/04/12 00:44:34 DEBUG : /: Releasedir: fh=0x0
2020/04/12 00:44:34 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Opendir:
2020/04/12 00:44:34 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:34 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:34 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:34 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:34 DEBUG : /: Opendir:
2020/04/12 00:44:34 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:34 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:34 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Opendir:
2020/04/12 00:44:36 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:36 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:36 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:36 DEBUG : /: Statfs:
2020/04/12 00:44:36 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/04/12 00:44:36 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:36 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Opendir:
2020/04/12 00:44:36 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:36 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:36 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:36 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:36 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Opendir:
2020/04/12 00:44:36 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:36 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:36 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:36 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:36 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:36 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:36 DEBUG : /: Opendir:
2020/04/12 00:44:36 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:36 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:36 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:36 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:36 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Opendir:
2020/04/12 00:44:38 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:38 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:38 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:38 DEBUG : /: Statfs:
2020/04/12 00:44:38 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/04/12 00:44:38 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:38 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Opendir:
2020/04/12 00:44:38 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:38 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:38 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:38 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:38 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Opendir:
2020/04/12 00:44:38 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:38 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:38 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:38 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:38 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:38 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:38 DEBUG : /: Opendir:
2020/04/12 00:44:38 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:38 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:38 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:38 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:38 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:40 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:40 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:40 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:40 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:40 DEBUG : /: Opendir:
2020/04/12 00:44:40 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/04/12 00:44:40 DEBUG : /: >OpenFile: fd=/ (r), err=
2020/04/12 00:44:40 DEBUG : /: >Opendir: errc=0, fh=0x2
2020/04/12 00:44:40 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/04/12 00:44:40 DEBUG : /: >Getattr: errc=0
2020/04/12 00:44:40 DEBUG : /: Releasedir: fh=0x2
2020/04/12 00:44:40 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:40 DEBUG : /: Releasedir: fh=0x0
2020/04/12 00:44:40 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:40 DEBUG : /: Releasedir: fh=0x1
2020/04/12 00:44:40 DEBUG : /: >Releasedir: errc=0
2020/04/12 00:44:55 DEBUG : Google drive root 'Temp_0': Checking for changes on remote

hello and welcome to the forum

is there a specific reason you are using mingw?

i use task scheduler instead of nssm.

Thank you for having me here!

I've been using mingw for several years, mostly because of the feel. I just tried the aforementioned proccess in the cmd, repeating the same steps but to no avail. The service was created and when I try to run it- it gives an error just the same as before.

Could you run me through the steps you went through when creating the task? I did find some steps whilst googling my way around:


The task runs, when opened, but the window that opens cannot be closed, even though the "hidden" box is ticked. How would I be able to close said window so it can run safely in the background?

on w10,
i use windows subsystem for linux and task scheduler.
keep it simple

nssm is old and does not seem to be maintained.
ming works but wsl is the future...

image

1 Like

I see that you've pointed the schedule to run a .cmd in stead of rclone itself with the added arguments.
That could work, maybe that's how I could circumvent the popping up of the console!

Can you refer me to a post or guide I could read to build my .cmd file? I tried my hand at it before, but failed miserably.

the reason for the .cmd is many fold.
my rclone.conf is password protected and in a certain folder

set RCLONE_CONFIG_PASS=thesupersecretpassword
set RCLONE_CONFIG=c:\data\rclone\scripts\rclone.conf

Try using something called SilentCMD, which is a launcher for starting BAT/CMD files without opening a CMD window on your desktop - https://github.com/stbrenner/SilentCMD

Capture

i use cmdnow and nirsoft nircmd, which can hide windows and has dozens of other abilities.
also, windows task scheduler can do that

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