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

Running ./bin/gossamer init fails #2770

Closed
axaysagathiya opened this issue Aug 22, 2022 · 3 comments · Fixed by #2775
Closed

Running ./bin/gossamer init fails #2770

axaysagathiya opened this issue Aug 22, 2022 · 3 comments · Fixed by #2775

Comments

@axaysagathiya
Copy link
Contributor

axaysagathiya commented Aug 22, 2022

Describe the bug

While trying to initialize Gossamer errors.

axay@axay-Inspiron-3542:~/go/src/github.com/ChainSafe/gossamer$ ./bin/gossamer init --force
2022-08-22T22:17:08+05:30 INFO     🕸️ initialising node with name asset-wine-3519, id gssmr_test, base path /home/axay/.gossamer/gssmr and genesis ./chain/gssmr/genesis-spec.json...	node.go:L128	pkg=dot
2022-08-22T22:17:08+05:30 ERROR    failed to initialise node: failed to convert genesis-spec to raw genesis: key array less than 2	main.go:L342	pkg=cmd
failed to convert genesis-spec to raw genesis: key array less than 2
danforbes added a commit that referenced this issue Aug 22, 2022
Since Gossamer cannot compile human-readable specs, it should use raw specs. Closes #2770
@danforbes
Copy link
Contributor

This is related to #2417

@EclesioMeloJunior
Copy link
Member

hey @axaysagathiya! Thanks for pointing this out, currently our default configuration values point to a human-readable genesis file which gossamer tries to convert into a raw genesis file but it cannot because there are missing parts we should cover however, there is an alternative that the team agreed that is using the raw genesis file directly to bootstrap the node, right now I'm working on to change those default values to always use a raw genesis file.

@EclesioMeloJunior
Copy link
Member

fixed at dd2fbc9

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

Successfully merging a pull request may close this issue.

3 participants