Closed chechuironman closed 3 years ago
You need to export the key file path to container. By using keys="/blabla/key_file" as docker parameters or env variables. But personally, I don't like this method since the 24 words key file is so important that I don't want to deploy it on drive the plant text...
You can import the key manually inside the container by command "chia keys add". And assign the docker parameter "keys"="" (empty) to skip generating new keys.
still getting the error...and when I do "echo $keys" the 24 words appear
you need to post all info/workflow. or just dig into the entrypoint.sh; it's just a simple script that would add the "keys" file when start up, otherwise it would generate a new key even if you already have a key inside container.
what is the key file format...do you have an example?
the key file contains 24 words.
Hi @chechuironman ! Just making sure you were able to resolve this issue?
same problem
first try with - keys="/run/secrets" then - keys="/run/secrets/se.txt"
finally work time was ended with no chance
below is log from container
Chia directory /root/.chia/mainnet
No keys are present in the keychain. Generate them with 'chia keys generate'
/root/.chia/mainnet already exists, no migration action taken
Traceback (most recent call last):
File "/chia-blockchain/venv/bin/chia", line 33, in
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.'
'This issue was automatically closed because it has been flagged as stale and subsequently passed 7 days with no further activity.'
Hey guys, same issue here
Container log gives me: "No keys are present in the keychain. Generate them with 'chia keys generate'"
Although I have passed my key file to the docker container as described in the readme they keys are not imported on startup.
When I "cat $keys" from inside the container, my 24 mnemonic words are displayed. So docker-entrypoint.sh should be able to import the keys but for some reason doesn't. Thanks for any hints!
So i ran the command chia keys add -f "${keys}" from docker-entrypoint.sh to add the keys manually and noticed that there is an sdtin: Enter the label you want to assign to this key (Press Enter to skip):
I suspect this might be the issue?
Yeah this is due to the new key labeling. I'll get a PR in for this.
Once https://github.com/Chia-Network/chia-docker/pull/176 is approved, it will auto merge and build, and it gets around the new label prompt
hey guys,
im running this on kubernetes, and mounting the key file as a secret...when I do "cat $keys" I can see my 24 words...but log still saying are not present...as the title says any idea?