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

Error: required Datastore.Spec entry missing form config file #163

Closed
maxkerp opened this issue Apr 11, 2018 · 3 comments
Closed

Error: required Datastore.Spec entry missing form config file #163

maxkerp opened this issue Apr 11, 2018 · 3 comments
Assignees
Labels
status/ready Ready to be worked

Comments

@maxkerp
Copy link

maxkerp commented Apr 11, 2018

Hi there :)

TL;DR

js-ipfs-repo seems to miss some entries in the config file.

What

I'm working with orbit-db-cli and trying to examine the ipfs repo with go-ipfs results in this error message. js-ipfs doesn't care about it and works fine.

I'd liked to be able to examine the repo with go-ipfs (since it has a bit more features ), but adding the default config file to it, does not solve the issue.

Any ideas what I can do? Adding the entry to the config file should fix the issue, but I might made some stupid mistake I'm not aware of.

For more background see this issue.

@daviddias
Copy link
Member

@maxkerp is this still an issue with the latest ipfs-repo?

@daviddias daviddias added kind/bug A bug in existing code (including security flaws) exp/expert Having worked on the specific codebase is important P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked and removed P2 Medium: Good to have, but can wait until someone steps up kind/bug A bug in existing code (including security flaws) exp/expert Having worked on the specific codebase is important labels Jun 4, 2018
@maxkerp
Copy link
Author

maxkerp commented Jun 4, 2018

I created a new temporary jsipfs repo under /tmp and it still seems to be the case.

/tmp $ IPFS_PATH=./ipfs/ jsipfs add data.json
added QmYvuL72a7qZJq6EzXAzGix1FsJ1ZUjgAXvAuq2795bznw data.json

/tmp $ IPFS_PATH=./ipfs/ jsipfs cat QmYvuL72a7qZJq6EzXAzGix1FsJ1ZUjgAXvAuq2795bznw
"{\"hash\":null,\"id\":\"QmXGrQZ8vPqwsCLHL9DhQEYLQb13n96oUtLatteh1zNk89\",\"payload\":{\"op\":\"PUT\",\"key\":\"002\",\"value\":{\"key\":\"002\",\"name\":\"Daniel\"}},\"next\":[\"QmRvhdhy5GQzs7Rd9KRh1x8GSCEXooFBa9GqbZvixnn9s1\"],\"v\":0,\"clock\":{\"id\":\"QmXGrQZ8vPqwsCLHL9DhQEYLQb13n96oUtLatteh1zNk89\",\"time\":2},\"sig\":\"304502203c5e6e26377e46b49f5bccdf6bd066f31314c0caa90fd05550f1616715d4bb38022100800665bc58d7639a5403dcab6dc52428a281219f46b66523e01f74a9e956c465\",\"key\":\"04fbfa074a34326a6099d1c1a05109b610687e5066c2ba4944105e15fdc74261ac391520d47fd2064eb6f6458224f2a66a89f03215bc3d51c1922a15db5606e6cc\"}"

/tmp $ IPFS_PATH=./ipfs/ ipfs cat QmYvuL72a7qZJq6EzXAzGix1FsJ1ZUjgAXvAuq2795bznw
Error: required Datastore.Spec entry missing form config file

/tmp $ jsipfs --version
0.29.2

/tmp $ ipfs --version
ipfs version 0.4.14

I created the repo with /tmp $ IPFS_PATH=./ipfs/ jsipfs init

@vasco-santos vasco-santos self-assigned this Jul 21, 2018
@vasco-santos vasco-santos added the status/in-progress In progress label Jul 21, 2018
@vasco-santos
Copy link
Member

Basically go-ipfs requires the existence of datastore_spec file here.

js-ipfs-repo does not create this file and that's why there are problems with the repo interoperability in both interop#26 and interop#28.

@ghost ghost removed the status/in-progress In progress label Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

3 participants