Folder corrupted when using ipfs get
#8535
Labels
exp/intermediate
Prior experience is likely helpful
kind/bug
A bug in existing code (including security flaws)
need/analysis
Needs further analysis before proceeding
P1
High: Likely tackled by core team if no one steps up
Projects
Checklist
Installation method
ipfs-desktop
Version
Config
Description
Hi,
I noticed the folder structure cannot be recreated when using
ipfs get
. The CID isQmXSPqQpNcbZ9tW1te16xWQfA3a1R9Yt86JzTP6XjtvdVe
.I add those files into IPFS on Node
12D3KooWPdaeapEAhnnvaBiCag4zganrvGycw3N87axfTgaFduVx
, this is the original copy, then I pinned it to my server, which is node12D3KooWLQSvjfzZaBjGvNs99YaG9ojSMkKGAVB2PeRNBt6omtot
. Then I useipfs get
to download this on my friend's server, not just holding those dag nodes, but reconstructing them back into files.I use
ipfs get -o "[Airota&VCB-Studio] Liz to Aoi Tori [Ma10p_1080p]" QmXSPqQpNcbZ9tW1te16xWQfA3a1R9Yt86JzTP6XjtvdVe
, this command can recreate folder structure correctly, but then I get this error:Only ~2GB of 14GB can be downloaded by this method, the rest of them are canceled because of that error.
Mentioned in #8293 , I tried to get the archive file using this command
ipfs get -a -o "[Airota&VCB-Studio] Liz to Aoi Tori [Ma10p_1080p].tar" QmXSPqQpNcbZ9tW1te16xWQfA3a1R9Yt86JzTP6XjtvdVe
, I got this with no error, but when I exam the result, I noticed data in theCD
folder are corrupted.The folder name is not correct and the data in the folder cannot be found, however, the total size is correct. So technically speaking, no data is missing, but some of them are not addressable by the tar file.
If you check the CID using some gateway, like mines: https://ampere.skyblond.info/ipfs/QmXSPqQpNcbZ9tW1te16xWQfA3a1R9Yt86JzTP6XjtvdVe/CDs/%5B180425%5D%20%EF%BD%A2girls,dance,staircase%EF%BD%A3%EF%BC%8F%E7%89%9B%E5%B0%BE%E6%86%B2%E8%BC%94%20%5B24bit_96kHz%5D%20%28flac+webp%29 , you can see it's perfectly fine and I download some of them, it works perfectly fine, I confirmed this with my friend, which the data is distributed to his machine, but cannot be reconstructed back into files using
ipfs get
.Note: those corrupted folders can do
ipfs get
properly without the archive flag, also they are the only folder gets recovered before encountering thetar has invalid root
error. And looks like they are the only folders corrupted in the archive file.I inferred that it's the issue with the CLI interface since the file itself contains non-ASCII chars. The HTTP interface is working properly, both the gateway page and my Java program can confirm it.
The text was updated successfully, but these errors were encountered: