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

Hyperctl load command does not get respond #740

Open
ghost opened this issue Jul 27, 2018 · 15 comments
Open

Hyperctl load command does not get respond #740

ghost opened this issue Jul 27, 2018 · 15 comments

Comments

@ghost
Copy link

ghost commented Jul 27, 2018

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

@gnawux
Copy link
Member

gnawux commented Jul 27, 2018

@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.

@ghost
Copy link
Author

ghost commented Jul 27, 2018

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.

@gnawux
Copy link
Member

gnawux commented Jul 27, 2018

OK, will take a look. Thank you

@gnawux
Copy link
Member

gnawux commented Jul 27, 2018

@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

@ghost
Copy link
Author

ghost commented Jul 27, 2018

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

@gnawux
Copy link
Member

gnawux commented Jul 27, 2018

These two options are not for the images saved by docker

@ghost
Copy link
Author

ghost commented Jul 30, 2018

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

@gnawux gnawux removed the class:bug label Jul 30, 2018
@gnawux
Copy link
Member

gnawux commented Jul 30, 2018

Did you try using the -t option?

@ghost
Copy link
Author

ghost commented Jul 31, 2018

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

@ghost
Copy link
Author

ghost commented Jul 31, 2018

exec also doesn't work with -t option

@gnawux
Copy link
Member

gnawux commented Jul 31, 2018

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.

@ghost
Copy link
Author

ghost commented Jul 31, 2018

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.

@gnawux
Copy link
Member

gnawux commented Jul 31, 2018

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

@ghost
Copy link
Author

ghost commented Jul 31, 2018

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

@ghost
Copy link
Author

ghost commented Jul 31, 2018

just show leveldb: not found when it starts

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

1 participant