service icon indicating copy to clipboard operation
service copied to clipboard

Service installed OK but started WRONG

Open KeeWong1987 opened this issue 4 years ago • 3 comments

When I use the service package in my program with Go 1.10 version, my service is normally installed and started. But when I use Go 1.16 version, my service is normally installed but not started successfully as the error shows that the process stopped unexpectedly (error code: 1067).

How to solve this problem, please?

KeeWong1987 avatar Mar 24 '21 03:03 KeeWong1987

I have the same issue - application runs fine with run from cmd.exe - both as normal user and admin. It is a 64bit Windows Server 2019 I need to install it into as a service.

bbruun avatar Mar 09 '22 12:03 bbruun

same issue.

huangyt avatar Sep 13 '22 07:09 huangyt

I had an issue with the binary not having .exe extension. From terminal, it was OK, including install, but the service didn't start. I was using go build and -o with relative path for all platforms. Could it be this?


Ok, probably not going to be this since more people were complaining about the Go update. Is it still an issue with Go 1.19? I'm running fine, maybe I'm not using some WinAPI causing problems. Can you try with some reduced service, like example/logger or similar?

prochac avatar Jan 09 '23 21:01 prochac