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

'infinit network create' results in 'infinit: fatal error: json parse error' #11

Closed
paulocoghi opened this issue Feb 20, 2017 · 4 comments

Comments

@paulocoghi
Copy link

Following the Get Started guide, after creating a local storage, I tried both:

infinit network create --as my-username --storage local --name my-local-storage --push

and

infinit-network --create --as my-username --storage local --name my-local-storage --push

But it always returns:

infinit-network: fatal error: json parse error

Details:
Ubuntu 16.04.2 64bit
Linux Kernel 4.8.0-36-generic
Infinit 0.7.3

@Dimrok
Copy link

Dimrok commented Feb 24, 2017

Hi! Sorry my notifications were disabled for some reasons.

Can you cat ~/.local/share/infinit/filesystem/storages/local (if you use the default home, otherwise cat $INFINIT_HOME/.local/share/infinit/filesystem/storages/local) pls ?

Someone else had an issue similar to yours caused by an empty silo descriptor. We are investigating why...

If it's the case, can you remove that file, run infinit silo create --name local and make sure the file was created and filled? It should look like that:

{
    "name" : "local",
    "path" : "/home/<user>/.local/share/infinit/filesystem/blocks/local",
    "type" : "filesystem"
}

@paulocoghi
Copy link
Author

You are right. It is the case, because ~/.local/share/infinit/filesystem/storages/local was empty.

Removing it, and creating it again via infinit silo create ... instead of infinit-storage --create ... solves the problem.

I am concerned to continue the Get Started guide for the moment, since all subsequent commands are also with deprecated syntax.

@akimd
Copy link

akimd commented Mar 3, 2017

Yes, we are aware that the online documentation uses the old syntax, but "it's a feature" :) That's for people who still have a older release.

Of course, eventually we will upgrade the documentation.

@Dimrok
Copy link

Dimrok commented Aug 8, 2017

Everything has been updated (documentation, error messages, etc.) and the JSON parse error is gone in 0.8.0.

@Dimrok Dimrok closed this as completed Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants