jpillora / overseer

Monitorable, gracefully restarting, self-upgrading binaries in Go (golang)
MIT License
2.29k stars 208 forks source link

Windows #73

Closed jtdaad closed 2 years ago

jtdaad commented 2 years ago

Edit: Sorry for the terrible title, I thought I updated it before posting...

Getting a permission denied error on Windows after updated binary downloads. The original application does not crash, which is nice... Works perfectly on Mac. I've tried everything I can think of:

Windows error message:

 [overseer master] failed to overwrite binary: [cmd /c move /y C:\Users\{user}\source\go\src\syncer\syncer.exe C:\Users\{user}\source\go\src\syncer\syncer-old.exe]: "Access is denied.\r\n        0 file(s) moved.": exit status 1

Files created:
image

Overseer.Config

overseer.Config{
        Program:          prog,
        Required:         true,
        TerminateTimeout: time.Second * 30,
        Fetcher: &fetcher.HTTP{
            URL:      fetchUrl,
            Interval: time.Second * 10,
        }

Thanks for any input!

jtdaad commented 2 years ago

Found a previous issue #56