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 add --recursive panics on conversion: is cmdkit.Error, not *coreunix.AddedObject #4555
Comments
|
This looks like it could be an easy fix, at least to avoid the crash. |
|
I don't mind the crash (well I do but that's not the point), but I do mind that it hides errors :) I was encountering this the other day and had to jump through a few hoops to find out that my repo parition had turned read-only. |
|
@lgierth are you using flatfs or badger? |
|
The error itself was unrelated to go-ipfs, I had just messed with my filesystem mounts. But it was just giving me the above panic so I had to dig to get to the real error. |
|
In my case, it seems that there was something wrong with the rsync of some files. It could be that my harddrive is old and probably dying too. I found one of the files that causes the crash and tried to add it: I downloaded it again from the mirror: And now ipfs add worked: So yeah, the crash shouldn't happen, it should instead report that there's something wrong with the file. Ideally, something more useful than |
|
The commands library has been rewritten since this was filed. |
come-maiz commentedJan 7, 2018
ipfs version --all:Type:
Description:
I am trying to add a full Ubuntu mirror to ipfs. The mirror is more than 1TB of data. When I run the
ipfs add --recursive "${dir}"command, it eventually fails with:This is the full script I'm running:
https://raw.githubusercontent.com/JaquerEspeis/apt-transport-ipfs/master/scripts/sync_mirror.sh
The text was updated successfully, but these errors were encountered: