Comments (13)
Yeah this is due to the new key labeling. I'll get a PR in for this.
from chia-docker.
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.
from chia-docker.
still getting the error...and when I do "echo $keys" the 24 words appear
from chia-docker.
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.
from chia-docker.
what is the key file format...do you have an example?
from chia-docker.
the key file contains 24 words.
from chia-docker.
Hi @chechuironman ! Just making sure you were able to resolve this issue?
from chia-docker.
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
sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
File "/chia-blockchain/chia/cmds/chia.py", line 77, in main
cli() # pylint: disable=no-value-for-parameter
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/chia-blockchain/chia/cmds/keys.py", line 52, in add_cmd
mnemonic = Path(filename).read_text().rstrip()
File "/usr/lib/python3.8/pathlib.py", line 1232, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
File "/usr/lib/python3.8/pathlib.py", line 1218, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/usr/lib/python3.8/pathlib.py", line 1074, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '"/run/secrets/se.txt"'
Plots directory '/plots' appears to be empty, try mounting a plot directory with the docker -v command
Added plot directory "/plots".
Daemon not started yet
Starting daemon
chia_harvester: started
chia_farmer: started
chia_full_node: started
chia_wallet: started
Traceback (most recent call last):
File "/chia-blockchain/venv/bin/chia_farmer", line 33, in
sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia_farmer')())
File "/chia-blockchain/chia/server/start_farmer.py", line 63, in main
kwargs = service_kwargs_for_farmer(DEFAULT_ROOT_PATH, config, config_pool, keychain, DEFAULT_CONSTANTS)
File "/chia-blockchain/chia/server/start_farmer.py", line 38, in service_kwargs_for_farmer
farmer = Farmer(root_path, config, config_pool, keychain, consensus_constants=updated_constants)
File "/chia-blockchain/chia/farmer/farmer.py", line 73, in init
raise RuntimeError(error_str)
RuntimeError: No keys exist. Please run 'chia keys generate' or open the UI.
from chia-docker.
'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.'
from chia-docker.
'This issue was automatically closed because it has been flagged as stale and subsequently passed 7 days with no further activity.'
from chia-docker.
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!
from chia-docker.
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?
from chia-docker.
Once #176 is approved, it will auto merge and build, and it gets around the new label prompt
from chia-docker.
Related Issues (20)
- Not possible to pass --expose as documented, entrypoint gets confused HOT 2
- docker harvester stops if recursive dir is empty or errors at some point. HOT 20
- Error in log after upgrading to 1.7.0 HOT 5
- yq_x86 is used on arm image HOT 2
- Multiple plot drives HOT 2
- docker harvester stops if one of recursive dirs has errored hdd which seems to be mounted properly. HOT 2
- Possible issue with port forwarding and wallet sync on latest image. HOT 3
- Compressed plot harvesting disabled by default HOT 1
- Bladebit installed HOT 7
- Remote GUI no longer works HOT 3
- How do you persist the keys and thus identity of remote harvester only? HOT 8
- Docs update for boolean env vars with docker compose HOT 4
- SSL keys permission HOT 2
- Concerns and Suggestions Regarding Chia Token Reserve Strategy
- exposing port 9256 HOT 2
- update readme 'chia show -c' has been renamed to 'chia peer -c' HOT 1
- I started the container using the following parameters, but when connecting to the farmer, the certificate reported an error HOT 7
- Can I use the “chia plots create” command with docker? HOT 1
- When I put the container up to run on another offline machine it's always added /plots my plots_dir doesn't include it HOT 4
- bladebit and other "included in 2.0" plotters are not included in the docker image HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chia-docker.