microsoft / opengcs

Moved to https://github.com/microsoft/hcsshim/tree/master/internal/guest. If you wish to open PRs/submit issues please do so against https://github.com/microsoft/hcsshim.
MIT License
83 stars 41 forks source link

I would like to ask for some wrong answers #366

Closed wajika closed 4 years ago

wajika commented 4 years ago

When I use Azure Devops to execute push image(docker desktop on windows agent), sometimes these errors appear. I don't know if they belong to bug.

docker version 企业微信截图_20191231151110

docker push faild 1

Some mistakes I found in the log

[10:02:29.545][WindowsDaemon     ][Error  ] Error running exec a46c567764790fdeeff14e5f2daaec9c2d6f882b359539f18bd5b29ebdf2f137 in container: container 358065197b415b4a249cff28732f491e088fbe276b5d0bd4a2fd2f1cbacd7f41 encountered an error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)
[Event Detail: failed to run runc create/exec call for container 358065197b415b4a249cff28732f491e088fbe276b5d0bd4a2fd2f1cbacd7f41: exit status 1 Stack Trace: 
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:580
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).runExecCommand
    /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:520
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).ExecProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:136
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:418
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335
runtime.goexit
    /usr/lib/go/src/runtime/asm_amd64.s:1333 Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandArgs":["cmd.exe","/C","ECHO 192.168.11.136    host.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts \u0026 ECHO 192.168.11.136    gateway.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts"],"WorkingDirectory":"/","Environment":{"ASPNETCORE_URLS":"http://+:80","ASPNETCORE_VERSION":"3.0.1","DOTNET_RUNNING_IN_CONTAINER":"true","DOTNET_VERSION":"3.0.1","HOSTNAME":"358065197b41","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}

[10:02:55.752][WindowsDaemon     ][Error  ] hcsshim::ComputeSystem::CreateProcess - End Operation - Error [cid=358065197b415b4a249cff28732f491e088fbe276b5d0bd4a2fd2f1cbacd7f41 error=CreateProcess 358065197b415b4a249cff28732f491e088fbe276b5d0bd4a2fd2f1cbacd7f41: Unspecified error
[Event Detail: failed to run runc create/exec call for container 358065197b415b4a249cff28732f491e088fbe276b5d0bd4a2fd2f1cbacd7f41: exit status 1 Stack Trace: 
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:580
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).runExecCommand
    /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:520
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).ExecProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:136
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:418
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
    /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335
runtime.goexit
    /usr/lib/go/src/runtime/asm_amd64.s:1333 Provider: 00000000-0000-0000-0000-000000000000]
(extra info: {"CommandArgs":["cmd.exe","/C","ECHO 192.168.11.136    host.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts \u0026 ECHO 192.168.11.136    gateway.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts"],"WorkingDirectory":"/","Environment":{"ASPNETCORE_URLS":"http://+:80","ASPNETCORE_VERSION":"3.0.1","DOTNET_RUNNING_IN_CONTAINER":"true","DOTNET_VERSION":"3.0.1","HOSTNAME":"358065197b41","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]})]

[10:02:55.755][WindowsDaemon     ][Info   ] debug: HCS Result [json={"Error":-1070137072,"ErrorMessage":"具有指定标识符的容器或虚拟机不运行。","ErrorEvents":[{"Message":"HRESULT 0xc0370110: a container with the ID \"358065197b415b4a249cff28732f491e088fbe276b5d0bd4a2fd2f1cbacd7f41\" does not exist","StackTrace":"\ngithub.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).SignalContainer\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:467\ngithub.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).signalContainer\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:695\ngithub.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).shutdownContainer\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:659\ngithub.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).shutdownContainer-fm\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:255\ngithub.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72\ngithub.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146\ngithub.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1\n\t/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335\nruntime.goexit\n\t/usr/lib/go/src/runtime/asm_amd64.s:1333","Provider":"00000000-0000-0000-0000-000000000000","EventId":0}]}]
jterry75 commented 4 years ago

Sorry we do not package Docker Desktop so the version of the gcs and kernel are not ours

wajika commented 4 years ago

@jterry75 But the github.com/Microsoft/opengcs project is shown in the error log.

jterry75 commented 4 years ago

Yes I understand. They package a version of the repo themselves. So I dont know what version of the code this is. We have made many fixes and improvements to LCOW that have not been taken in linuxkit

wajika commented 4 years ago

OK, thank you for your reply