Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

hyperctl run failed #680

Open
gogolxdong opened this issue Nov 23, 2017 · 5 comments
Open

hyperctl run failed #680

gogolxdong opened this issue Nov 23, 2017 · 5 comments

Comments

@gogolxdong
Copy link

gogolxdong commented Nov 23, 2017

E1123 15:34:06.230936 14844 json.go:141] read init data failed
E1123 15:34:06.231997 14844 json.go:175] SB[vm-aECEGAOFYQ] error when readVmMessage() for ready message: read unix @->/var/run/hyper/vm-aECEGAOFYQ/hyper.sock: read: connection reset by peer
E1123 15:34:06.230944 14844 qmp_handler.go:183] get qmp welcome failed: read unix @->/var/run/hyper/vm-aECEGAOFYQ/qmp.sock: read: connection reset by peer
E1123 15:34:06.232052 14844 json.go:601] SB[vm-aECEGAOFYQ] get hyperstart API version error: hyperstart closed
E1123 15:34:06.231029 14844 json.go:401] read tty data failed
E1123 15:34:06.232276 14844 json.go:458] SB[vm-aECEGAOFYQ] tty socket closed, quit the reading goroutine: read unix @->/var/run/hyper/vm-aECEGAOFYQ/tty.sock: read: connection reset by peer
E1123 15:34:06.232090 14844 vm_states.go:309] SB[vm-aECEGAOFYQ] Start POD failed: hyperstart closed
E1123 15:34:06.232119 14844 qmp_handler.go:364] QMP initialize failed
E1123 15:34:06.232146 14844 vm_states.go:372] SB[vm-aECEGAOFYQ] read unix @->/var/run/hyper/vm-aECEGAOFYQ/qmp.sock: read: connection reset by peer
E1123 15:34:06.232393 14844 vm_states.go:329] SB[vm-aECEGAOFYQ] Shutting down because of an exception: %!(EXTRA string=connection to vm broken)
E1123 15:34:06.232139 14844 qemu_process.go:159] exit status 1
E1123 15:34:06.232468 14844 run.go:34] ubuntu-2430024592: failed to add pod: hyperstart closed
E1123 15:34:06.232481 14844 server.go:170] Handler for POST /v1.0.0/pod/create returned error: hyperstart closed

QEMU 2.10.93
hyperctl version 1.0.0

@gnawux
Copy link
Member

gnawux commented Dec 13, 2017

@gogolxdong Is your QEMU built with virtfs enabled?

@yangwanli2017
Copy link

I have the same erros:
E1225 04:46:07.084291 10970 qmp_handler.go:183] get qmp welcome failed: read unix @->/var/run/hyper/vm-OjTvltcBdS/qmp.sock: read: connection reset by peer
E1225 04:46:07.084723 10970 qmp_handler.go:364] QMP initialize failed
E1225 04:46:07.084745 10970 vm_states.go:207] SB[vm-OjTvltcBdS] read unix @->/var/run/hyper/vm-OjTvltcBdS/qmp.sock: read: connection reset by peer
E1225 04:46:07.084751 10970 vm_states.go:164] SB[vm-OjTvltcBdS] Shutting down because of an exception: %!(EXTRA string=connection to vm broken)
E1225 04:46:07.084868 10970 vm_states.go:144] SB[vm-OjTvltcBdS] Start POD failed: rpc error: code = Unavailable desc = transport is closing
E1225 04:46:07.085770 10970 qemu_process.go:159] exit status 1
E1225 04:46:07.086531 10970 sandbox.go:106] StartPod fail, response: &api.ResultBase{Id:"vm-OjTvltcBdS", Success:false, ResultMessage:"Response Chan is broken"}
Failed to load the container after created, err: &os.PathError{Op:"open", Path:"/run/runv/mycontainer/state.json", Err:0x2}

@gnawux
Copy link
Member

gnawux commented Dec 25, 2017

qemu started failed, what's qemu version and OS distro are you working on @yangwanli2017 ?

And looks you are working with runV instead of hyperd.

@yangwanli2017
Copy link

qemu version-2.4.1 , and CentOS 7.2 .
But I use your release rpm:
hyper-container-1.0.0-1.el7.centos.x86_64.rpm
hyperstart-1.0.0-1.el7.centos.x86_64.rpm
qemu-hyper-2.4.1-3.el7.centos.x86_64.rpm


hyperd errors:
WARN[0000] devmapper: Usage of loopback devices is strongly discouraged for production use. Please use --storage-opt dm.thinpooldev or use man docker to refer to dm.thinpooldev section.
WARN[0000] devmapper: Base device already exists and has filesystem xfs on it. User specified filesystem will be ignored.
INFO[0000] [graphdriver] using prior storage driver "devicemapper"
INFO[0000] Graph migration to content-addressability took 0.00 seconds
INFO[0000] Firewalld running: false
INFO[0000] Loading containers: start.

INFO[0000] Loading containers: done.
E1226 06:21:34.732926 31949 qmp_handler.go:183] get qmp welcome failed: read unix @->/var/run/hyper/vm-yZzcdxDGVB/qmp.sock: read: connection reset by peer
E1226 06:21:34.733495 31949 qmp_handler.go:364] QMP initialize failed
E1226 06:21:34.732943 31949 json.go:141] read init data failed
E1226 06:21:34.733521 31949 vm_states.go:372] SB[vm-yZzcdxDGVB] read unix @->/var/run/hyper/vm-yZzcdxDGVB/qmp.sock: read: connection reset by peer
E1226 06:21:34.733539 31949 vm_states.go:329] SB[vm-yZzcdxDGVB] Shutting down because of an exception: %!(EXTRA string=connection to vm broken)
E1226 06:21:34.733560 31949 json.go:175] SB[vm-yZzcdxDGVB] error when readVmMessage() for ready message: read unix @->/var/run/hyper/vm-yZzcdxDGVB/hyper.sock: read: connection reset by peer
E1226 06:21:34.733029 31949 json.go:401] read tty data failed
E1226 06:21:34.733581 31949 json.go:458] SB[vm-yZzcdxDGVB] tty socket closed, quit the reading goroutine: read unix @->/var/run/hyper/vm-yZzcdxDGVB/tty.sock: read: connection reset by peer
E1226 06:21:34.733613 31949 json.go:601] SB[vm-yZzcdxDGVB] get hyperstart API version error: hyperstart closed
E1226 06:21:34.733615 31949 vm_states.go:309] SB[vm-yZzcdxDGVB] Start POD failed: hyperstart closed
E1226 06:21:34.733753 31949 run.go:34] ubuntu-6967856279: failed to add pod: hyperstart closed
E1226 06:21:34.733764 31949 server.go:170] Handler for POST /v1.0.0/pod/create returned error: hyperstart closed
E1226 06:21:34.733881 31949 qemu_process.go:159] exit status 1

@lemonli
Copy link

lemonli commented Mar 19, 2018

I got the same problem, and then I replace my qemu with https://hypercontainer-download.s3-us-west-1.amazonaws.com/qemu-hyper/qemu-hyper-2.4.1-3.el7.centos.x86_64.rpm.
Now everything goes well. :)

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

No branches or pull requests

4 participants