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

ipfs ls gets stuck #2820

Closed
Kubuxu opened this issue Jun 7, 2016 · 3 comments · Fixed by #2824
Closed

ipfs ls gets stuck #2820

Kubuxu opened this issue Jun 7, 2016 · 3 comments · Fixed by #2824
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@Kubuxu
Copy link
Member

Kubuxu commented Jun 7, 2016

ipfs object get works but ls gets stuck:

ipfs object get QmcmPko2PHCLnLqZTZXjPf4FLKyYjKDpb9VDbH6cVWTsU7
{"Links":[{"Name":".githash","Hash":"QmdG39xEJFK2YmYFxBYip1wCfvhSjVEXqCYnERJY2JY7rC","Size":49},{"Name":"ajax","Hash":"Qmdswc3USf1YoXWbUHUMDAcvwDjkwuPcq5ja4kiFAy5rZx","Size":20796815067}],"Data":"\u0008\u0001"}

Goroutine trace: https://gist.github.com/Kubuxu/ab56191ccb9aa725d5230f22bcd86f1a

It is probably due to fact that one file got lost and is no longer available: fs:/ipfs/QmcmPko2PHCLnLqZTZXjPf4FLKyYjKDpb9VDbH6cVWTsU7/.githash

@Kubuxu Kubuxu added the kind/bug A bug in existing code (including security flaws) label Jun 7, 2016
@Kubuxu
Copy link
Member Author

Kubuxu commented Jun 8, 2016

This can be resolved if we drop Type from ls result.

@whyrusleeping
Copy link
Member

yeah... ipfs ls has the unixfs info encoded in it. We made ipfs files ls to be the 'correct' tool for this purpose. I wonder if we should look at deprecating that feature of ipfs ls.

In any case, you can add --timeout=10s to the command to make it not take longer than ten seconds

@Kubuxu
Copy link
Member Author

Kubuxu commented Jun 8, 2016

The only reason for blocking the node is adding a slash over here: https://github.com/ipfs/go-ipfs/blob/master/core/commands/ls.go#L119

Of course it can be useful from the API but please take a look at #2824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants