I'm trying to manually add a piece to this dataset, however I keep getting this error panic: invalid cid: cid too short
. From the stack trace it appears to be coming from the --root-cid
, but I'm not sure why it's saying "cid too short"
singularity dataset add-piece singularity-test baga6ea4seaqblmkqfesvijszk34r3j6oairnl4fhi2ehamt7f3knn3gwkyylmlq 34359738368 --root-cid bafybeidylyizmuhqny6dj5vblzokmrmgyq5tocssps3nw3g22dnlty7bhy --file-size 18010019221
panic: invalid cid: cid too short
goroutine 1 [running]:
github.com/ipfs/go-cid.MustParse(...)
/go/pkg/mod/github.com/ipfs/[email protected]/cid.go:210
github.com/data-preservation-programs/singularity/handler/dataset.AddPieceHandler(0xc0006195f0, {0x7ffc8b627ec7, 0x10}, {{0x7ffc8b627ed8, 0x40}, {0x7ffc8b627f19, 0xb}, {0x0, 0x0}, 0x0, ...})
/app/handler/dataset/addpiece.go:113 +0x1485
github.com/data-preservation-programs/singularity/cmd/dataset.glob..func1(0xc0007d0480)
/app/cmd/dataset/addpiece.go:34 +0x2c7
github.com/urfave/cli/v2.(*Command).Run(0x5065720, 0xc0007d0480, {0xc0001f0b00, 0x8, 0x8})
/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:274 +0xa42
github.com/urfave/cli/v2.(*Command).Run(0xc0001ccdc0, 0xc0007d0340, {0xc000e7d200, 0x9, 0x9})
/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xc97
github.com/urfave/cli/v2.(*Command).Run(0xc0001cd8c0, 0xc0007d0180, {0xc000000140, 0xa, 0xa})
/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xc97
github.com/urfave/cli/v2.(*App).RunContext(0xc0007ce000, {0x3cfaf50?, 0xc000058038}, {0xc000000140, 0xa, 0xa})
/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332 +0x616
github.com/urfave/cli/v2.(*App).Run(...)
/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:309
main.main()
/app/singularity.go:160 +0x1005