Giter Site home page Giter Site logo

Comments (13)

cmmarslender avatar cmmarslender commented on August 16, 2024 1

Yeah this is due to the new key labeling. I'll get a PR in for this.

from chia-docker.

kimklai avatar kimklai commented on August 16, 2024

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.

chechuironman avatar chechuironman commented on August 16, 2024

still getting the error...and when I do "echo $keys" the 24 words appear

from chia-docker.

kimklai avatar kimklai commented on August 16, 2024

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.

chechuironman avatar chechuironman commented on August 16, 2024

what is the key file format...do you have an example?

from chia-docker.

kimklai avatar kimklai commented on August 16, 2024

the key file contains 24 words.

from chia-docker.

mengland17 avatar mengland17 commented on August 16, 2024

Hi @chechuironman ! Just making sure you were able to resolve this issue?

from chia-docker.

SalimiHabib avatar SalimiHabib commented on August 16, 2024

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.

github-actions avatar github-actions commented on August 16, 2024

'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.

github-actions avatar github-actions commented on August 16, 2024

'This issue was automatically closed because it has been flagged as stale and subsequently passed 7 days with no further activity.'

from chia-docker.

mkubicek avatar mkubicek commented on August 16, 2024

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.

mkubicek avatar mkubicek commented on August 16, 2024

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.

cmmarslender avatar cmmarslender commented on August 16, 2024

Once #176 is approved, it will auto merge and build, and it gets around the new label prompt

from chia-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.