hyperd icon indicating copy to clipboard operation
hyperd copied to clipboard

Hyperctl load command does not get respond

Open ghost opened this issue 7 years ago • 15 comments

Hyperctl load command works good without -r option while adding "-r aaa" makes it fail.

ghost avatar Jul 27 '18 07:07 ghost

@Chen8132 thanks for reporting, will check it.

It would be appreciated if you could paste related logs which located in /var/log/hyper/ by default.

gnawux avatar Jul 27 '18 07:07 gnawux

I think no log is about this issue. Just stop there when I execute hyperctl load -i /tmp/a.tar -r aaa. I actually do not know what is the use of -n option and -r option and want to figure it out.

ghost avatar Jul 27 '18 08:07 ghost

OK, will take a look. Thank you

gnawux avatar Jul 27 '18 08:07 gnawux

@Chen8132 I checked the code of these two flags, and both designed for OCI Image format

		Name  string   `short:"n" long:"name" value-name:"\"\"" description:"Name to use when loading OCI image layout tar archive"`
		Refs  []string `short:"r" long:"references" value-name:"\"\"" description:"References to use when loading an OCI image layout tar archive"`

I don't think it could work proper with docker images

gnawux avatar Jul 27 '18 08:07 gnawux

My tar file is from docker save. Maybe it causes the problem?

ghost avatar Jul 27 '18 09:07 ghost

These two options are not for the images saved by docker

gnawux avatar Jul 27 '18 09:07 gnawux

I find hyperctl exec and attach command do not get respond too.

ghost avatar Jul 30 '18 11:07 ghost

Did you try using the -t option?

gnawux avatar Jul 30 '18 14:07 gnawux

I don't think attach command has -t option.

ghost avatar Jul 31 '18 02:07 ghost

exec also doesn't work with -t option

ghost avatar Jul 31 '18 02:07 ghost

try hit the enter key after attach, if your container is launched with -t. Sometimes it simply no output after you attached. And could you got output if you exec a bash -c 'echo "hello, world"' if you have bash in the container.

gnawux avatar Jul 31 '18 02:07 gnawux

Both attach and exec still do not work after I try what you said. I don't think they will make it in my server. My system is centOS 7.

ghost avatar Jul 31 '18 02:07 ghost

Specific image or no output with any images? And could you get the output with hyperctl logs?

gnawux avatar Jul 31 '18 02:07 gnawux

I have tried ubuntu image and centos image. Nothing in logs.

ghost avatar Jul 31 '18 02:07 ghost

just show leveldb: not found when it starts

ghost avatar Jul 31 '18 02:07 ghost