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

x/playground: errors running locally #58372

Closed
comdiv opened this issue Feb 7, 2023 · 4 comments
Closed

x/playground: errors running locally #58372

comdiv opened this issue Feb 7, 2023 · 4 comments
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@comdiv
Copy link

comdiv commented Feb 7, 2023

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

$ go version 1.19.5

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"

What did you do?

Try to launch golang/playground locally, with instruction from https://github.com/golang/playground

What did you expect to see?

Working playground

What did you see instead?

When Run button pressed - it's web interface writes

Error communicating with remote server.
Program exited.

In terminal log where is following problem:

Listening on :8080 ...
2023/02/07 05:30:40 http: panic serving 172.17.0.1:50798: no SANDBOX_BACKEND_URL environment and no default defined for project ""
goroutine 41 [running]:
net/http.(*conn).serve.func1()
	/usr/local/go/src/net/http/server.go:1850 +0xbf
panic({0xcfbfc0, 0xc0001be2d0})
	/usr/local/go/src/runtime/panic.go:890 +0x262
main.sandboxBackendURL()
	/go/src/playground/sandbox.go:569 +0xbe
main.sandboxRun({0x11b1a00, 0xc000114660}, {0xc00004ac80, 0x1c}, {0x0, 0x0})
	/go/src/playground/sandbox.go:497 +0x19c

when try make runlocal it's not working too, but with another message

Listening on :8080 ...
cmdFunc error: POST "http://sandbox_dev.sandnet/run": Post "http://sandbox_dev.sandnet/run": dial tcp: lookup sandbox_dev.sandnet: no such host


No idea how to launch it locally....

@bcmills
Copy link
Contributor

bcmills commented Feb 7, 2023

What did you do?

What were the commands that you ran?

@bcmills bcmills changed the title affected/package: golang/playground x/playground: errors running locally Feb 7, 2023
@gopherbot gopherbot added this to the Unreleased milestone Feb 7, 2023
@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Feb 7, 2023
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@essodjolo
Copy link

Hi @bcmills,
I'm having the same issue, and here's the command I ran:

docker run --name=goplay -p 8181:8080 golang/playground

@essodjolo
Copy link

Finally used https://github.com/x1unix/go-playground which ran smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants