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

protobuf error with test go-ipfs-repo #300

Closed
AdamStone opened this issue Jun 4, 2016 · 13 comments
Closed

protobuf error with test go-ipfs-repo #300

AdamStone opened this issue Jun 4, 2016 · 13 comments
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws)

Comments

@AdamStone
Copy link

AdamStone commented Jun 4, 2016

I'm noticing some weirdness with the cli test repo. The object at QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG contains links to the starting materials (about, contact, help, quick-start, readme, security-notes). When trying to get some of the linked objects such as readme (QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB) from within the cli tests (which are based on a copy of go-ipfs-repo), I'm getting an error "Groups are not supported".

Apparently this error is associated with protocol buffers. It's occurring at node.unMarshal(block.data) in the dag service, but I think the problem is with the block data rather than the dag service because I don't get this error using the same console command against the ~/.ipfs repo (node ./src/cli/bin.js object get QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB).

Example of a test that shows this:

nexpect.spawn('node', [process.cwd() + '/src/cli/bin.js', 'object', 'get', 'QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB'], {env: env, stream: 'all'})
  .run((err, stdout, exitcode) => {
    console.log(stdout)
    done()
  })
@daviddias daviddias added kind/bug A bug in existing code (including security flaws) milestone 2 labels Jul 27, 2016
@daviddias
Copy link
Member

daviddias commented Aug 15, 2016

I believe this is because js-ipfs-unixfs-engine doesn't support sharding or node wrapping like go-ipfs does. Making it so that some files added through go-ipfs not readable on js-ipfs (for now)

ipfs-inactive/js-ipfs-unixfs-engine#45

@whyrusleeping are we settling on the trickle-dag for future versions of go-ipfs ipfs add? (ref: ipfs/specs#98)

@daviddias daviddias added the exp/expert Having worked on the specific codebase is important label Aug 15, 2016
@whyrusleeping
Copy link
Member

@diasdavid I think that the trickledag code is irrelevant to what is going on here.

@daviddias
Copy link
Member

I mean, in js-unixfs-engine we don't 'understand' (yet) all the dag structures you do in go-ipfs to represent files, just the simplest one. I believe that is the issue here.

@daviddias
Copy link
Member

Follow up on ipfs-inactive/js-ipfs-unixfs-engine#45

@AdamStone would you like to tackle and implement this one?

@dignifiedquire
Copy link
Member

To make sure we can handle all different versions of things that go-ipfs stores @whyrusleeping could you generate a small repo, with a set of all the different shardings that go-ipfs currently supports please?

@daviddias
Copy link
Member

daviddias commented Aug 21, 2016

  • + list the hashes of which is which :)

@AdamStone
Copy link
Author

Would you prefer I work on this next, or the datastore? I can take a closer look at either, I'd like to get the pinning implementation finalized first though.

@daviddias
Copy link
Member

@whyrusleeping could you provide #300 (comment)

@daviddias
Copy link
Member

@whyrusleeping see: #300 (comment)

To make sure we can handle all different versions of things that go-ipfs stores @whyrusleeping could you generate a small repo, with a set of all the different shardings that go-ipfs currently supports please?

@daviddias
Copy link
Member

Is this still an issue?

@daviddias daviddias added status/deferred Conscious decision to pause or backlog status/ready Ready to be worked help wanted Seeking public contribution on this issue and removed js-ipfs-backlog status/deferred Conscious decision to pause or backlog labels Dec 5, 2016
@whyrusleeping
Copy link
Member

I don't think i have anything to do here.

a set of all the different shardings that go-ipfs currently supports

This set is infinite, i can do the file layout any number of ways, and the parser code should have no trouble dealing with any of it.

@whyrusleeping whyrusleeping removed their assignment Dec 10, 2016
@daviddias
Copy link
Member

Our unixfs-engine is now 'complete' thanks to @pgte and can handle all the DAGBuilders. I believe this isn't an issue anymore, @AdamStone can you provide a test case so that we validate it?

Thank you!

@daviddias daviddias added status/deferred Conscious decision to pause or backlog and removed status/ready Ready to be worked labels Jan 29, 2017
@daviddias
Copy link
Member

Closing this issue, @AdamStone let me know if you manage to reproduce the problem.

@daviddias daviddias removed the status/deferred Conscious decision to pause or backlog label Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

4 participants