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

execing run-client.sh panic: exit status 126 #19

Closed
plutoxiao opened this issue Oct 22, 2020 · 5 comments
Closed

execing run-client.sh panic: exit status 126 #19

plutoxiao opened this issue Oct 22, 2020 · 5 comments

Comments

@plutoxiao
Copy link

plutoxiao commented Oct 22, 2020

I am deploying this project on Ubuntu18.04 and I've done steps one to four. But when I run "go run server.go", there are some problems:

2020/10/22 15:39:38 Starting monitoring server at :3535
2020/10/22 15:39:38 Profiling is enabled at :3535/debug/pprof
2020/10/22 15:39:38 Spawn server
2020/10/22 15:39:38 listening wine at port 9090
2020/10/22 15:39:38 execing run-client.sh
panic: exit status 126

goroutine 1 [running]:
github.com/giongto35/cloud-morph/pkg/core/go/cloudgame.(*ccImpl).launchGameVM(0xc00007f9e0, 0x138c, 0xc000024c80, 0x17, 0xc00002a980, 0xd, 0xc00002a9b0, 0x9, 0x406900, 0x140)
cloud-morph/pkg/core/go/cloudgame/cloudgame.go:141 +0x340
github.com/giongto35/cloud-morph/pkg/core/go/cloudgame.NewCloudGameClient(0xc000024c80, 0x17, 0xc00002a980, 0xd, 0xc00002a9b0, 0x9, 0x0, 0xc00002aa10, 0xd, 0xc00002a9e0, ...)
cloud-morph/pkg/core/go/cloudgame/cloudgame.go:75 +0x1db
github.com/giongto35/cloud-morph/pkg/core/go/cloudgame.NewCloudService(0xc000024c80, 0x17, 0xc00002a980, 0xd, 0xc00002a9b0, 0x9, 0x0, 0xc00002aa10, 0xd, 0xc00002a9e0, ...)
cloud-morph/pkg/core/go/cloudgame/service.go:304 +0x1ac
main.NewServer(0xf490c0)
cloud-morph/server.go:230 +0x44e
main.main()
cloud-morph/server.go:296 +0xb8
exit status 2

@sergystepanov
Copy link
Collaborator

It seems that you are trying to run an old version of the app where that script (maybe) isn't marked as executable. Does this error persist in the current app snapshot?

$ git ls-tree -r HEAD
100755 blob bc553a5b62d3c0acf6f908568e7001fa87de040a    run-wine-nodocker.sh
100755 blob f90c230aeaf48e7a2c17c25a3f05184dd011c8cf    run-wine.sh
100755 blob 8440092efb8a7413c9b3b46c67d4411eca7799f2    setup.sh
100644 blob 66125993d608fff1669f83f60da009f7b2927251    winvm/download_gecko_and_mono.sh
100755 blob 65b48d68b64bd578d91559f5aa24e271fc46f995    winvm/run.sh
100755 blob 1b708b7b5f3512c2081d39c4e7386849830d9936    winvm/test-docker.sh

@giongto35, you forgot to set executable bit for download_gecko_and_mono.sh. No idea if you need that file but there will be similar errors if you use it.

@giongto35
Copy link
Owner

giongto35 commented Oct 25, 2020

@plutoxiao I just made a quick look and still see no problem with it. Can you try with latest master. Are you running with notepad or a different program?
Can you run ls -alh in your cloned folder, there might be possibility that the script isn't marked as executable as sergy mentioned.

@sergystepanov
Copy link
Collaborator

FYI, I tried to run it for the first time and (after half of an hour setup.sh installation (: [gee, that's a lot of dependencies]) it works out of the box, it seems.

image

@giongto35
Copy link
Owner

@sergystepanov : D. Thanks for testing it.
Most of the time is to build docker image. I think I can optimize with docker multistage build like in CloudRetro.

@plutoxiao
Copy link
Author

@giongto35 @sergystepanov: Many thanks for your reply. I have solved this problem.

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

No branches or pull requests

3 participants