Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: "fatal error: PowerRegisterSuspendResumeNotification failure" when run golang hello world binary in Azure web app #38523

Closed
ruixue8080 opened this issue Apr 19, 2020 · 4 comments

Comments

@ruixue8080
Copy link

What version of Go are you using (go version)?

I build my "hello world" golang program binary locallly(binary built is "go-hello-world.exe"), which install go version  go1.14 windows/amd64

Does this issue reproduce with the latest release?

Not test

What operating system and processor architecture are you using (go env)?

The binary is build in Windows system

What did you do?

I built my hello world binary locally using go version 1.14, and upload this binary into Azure web app. I suppose under Azure webs app, I can run this binary, however, it throw exception:
runtime: PowerRegisterSuspendResumeNotification failed with errno= 5
fatal error: runtime: PowerRegisterSuspendResumeNotification failure

What did you expect to see?

I expect when I run "go-hello-world.exe" in Azure web app, it can be run successfully, and output "hello world"

What did you see instead?

it throw exception:
runtime: PowerRegisterSuspendResumeNotification failed with errno= 5
fatal error: runtime: PowerRegisterSuspendResumeNotification failure

@networkimprov
Copy link

I think this is fixed in 1.14.2. Could you run go version and report which release you have?

First reported in #37149
@gopherbot add OS-Windows

@ruixue8080
Copy link
Author

go version go1.14 windows/amd64
I build the exe file in environment which installed version "go1.14 windows/amd64", but the environment which run the "go-hello-world.exe" do not install go, will this matter? My understanding is that there is no need to install go package to run the exe file.

@ruixue8080
Copy link
Author

@networkimprov thanks a lot, I reinstall go version 1.14.2, it works now!

@networkimprov
Copy link

Glad to help. Correct, you do not need Go installed on the environment where the app runs.

You can close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants