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: NetworkKeyNotFound("/tmp/node01/chains/local_testnet/network/secret_ed25519") #6730

Open
2 tasks done
AlphaGamingArcade opened this issue Dec 2, 2024 · 7 comments
Open
2 tasks done
Labels
I5-enhancement An additional feature request. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@AlphaGamingArcade
Copy link

AlphaGamingArcade commented Dec 2, 2024

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Motivation

Why the new solochain template not working now, following this https://docs.substrate.io/tutorials/build-a-blockchain/add-trusted-nodes/ it seems it is now reading the /tmp/node01/chains/local_testnet/network/secret_ed25519 folder, but in the docs it stored inside /tmp/node01/chains/_testnet/keystore folder.

Request

Update docs

Solution

NA

Are you willing to help with this request?

No., Maybe (please elaborate above)

@AlphaGamingArcade AlphaGamingArcade added the I5-enhancement An additional feature request. label Dec 2, 2024
@github-actions github-actions bot added the I10-unconfirmed Issue might be valid, but it's not yet known. label Dec 2, 2024
@bkchr
Copy link
Member

bkchr commented Dec 3, 2024

@AlphaGamingArcade which command exactly are you executing?

@AlphaGamingArcade
Copy link
Author

AlphaGamingArcade commented Dec 4, 2024

./target/release/node-template key generate --scheme Sr25519 --password-interactive

./target/release/node-template key inspect --password-interactive --scheme Ed25519 "pig giraffe ceiling enter weird liar orange decline behind total despair fly"

./target/release/node-template \ --base-path /tmp/node01 \ --chain ./customSpecRaw.json \ --port 30333 \ --rpc-port 9945 \ --telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \ --validator \ --rpc-methods Unsafe \ --name MyNode01 \ --password-interactive

I'm just following the documentation, it works on the old version I have which is polkadot-v1.9.0 but not to this latest one.

@aurexav
Copy link
Contributor

aurexav commented Dec 30, 2024

I encounter the same issue after upgrading to 2407 from 1.7.2.

This only happens with --collator, --alice, --bob etc.

It looks like the node can not generate keys automatically if there isn't one.

I'll take look into this today.

@aurexav
Copy link
Contributor

aurexav commented Dec 30, 2024

Okay, this is quite clear. This behavior is expected.

Do not auto-generate the network if the network file does not exist in the provided path. Nodes where the key file does not exist will get the following error:

@bkchr I think this can be closed.

@aurexav
Copy link
Contributor

aurexav commented Jan 11, 2025

Up.

@BeginArtem
Copy link

BeginArtem commented Jan 13, 2025

@aurexav
Do we have any full instruction how to run a node with custom validator keys now?
I've asked the question here about this.
As I understand from this we can now use --unsafe-force-node-key-generation to generate validator keys if we run the node for the first time, but in this case blocks not finalised.

@aurexav
Copy link
Contributor

aurexav commented Jan 13, 2025

@aurexav Do we have any full instruction how to run a node with custom validator keys now?

Validator keys is session keys. This issue is talking about network P2P key. They are different things.

I'll take a look of that question later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I5-enhancement An additional feature request. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

No branches or pull requests

4 participants