Comments (12)
Harvester only - will not start properly, there is some error in code:
Followed all steps from official wiki - all goes well until I start chia harvester.
Got error and this comes live in logs (below).
LOGS:
2021-04-27T14:37:37.303 daemon chia.daemon.server : ERROR problem starting chia_harvester
Traceback (most recent call last):
File "/chia-blockchain/chia/daemon/server.py", line 610, in start_service
process, pid_path = launch_service(self.root_path, exe_command)
File "/chia-blockchain/chia/daemon/server.py", line 766, in launch_service
process = subprocess.Popen(
File "/usr/lib/python3.8/subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chia_harvester'
If I do this as Ubuntu install not docker or Windows install, not docker - all works OK.
Tried with this docker on 3 different machines - every time same error about filename error in subprocess.py code.
from chia-docker.
So my solution for this is kind of simple - dont start harvester only. In docker config - do not change anything to true. Let it start as full node, harvester, farmer etc.
Once it finishes - log into docker and stop all manually:
./chia stop all
then
./chia start harvester
and it magically starts harvester then only. Works well.
I know its really dirt solution but at least working and you dont end up with many full nodes in one network (what is definitely not a good idea!)
from chia-docker.
On main node I got
21:52:39.616 harvester src.harvester.harvester : INFO 0 plots were eligible for farming 324c0a0b6d... Found 0 proofs. Time: 0.00069 s. Total 5 plots
21:52:39.617 harvester harvester_server : INFO -> farming_info to peer 127.0.0.1 3d4692a392f3fe187037291e8f09a626bca8f83ff7f10387b39d6cbbbb47a26f
21:52:39.617 farmer farmer_server : INFO <- farming_info from peer 4a9fda04a66244517db303fe692af143d5ed3dd85139aec198bd5f7d63fb835a 127.0.0.1
And on harvester after plots check i got
src.plotting.check_plots : WARNING There are 1 plots with a farmer or pool public key that is not on this machine. The farmer private key must be in the keychain in order to farm them, use 'chia keys' to transfer keys. The pool public keys must be in the config.yaml
from chia-docker.
you need to do the by hand setup same as on the main node in the container. chia init -c <ca_source> i will update the documentation to reflect that actual setup process shortly.
from chia-docker.
I'm having the same issue. I created the container using
docker run --name chia -d -v /zpool/chia-plots/:/plots/ -v /home/dillon/chia/:/tmp-chia/ ghcr.io/chia-network/chia:latest -e harvester="true" -e farmer_address="xxx.xxx.xxx.xxx" -e farmer_port="8447" -e keys=""
Then I followed the steps here for creating a harvester only node:
https://github.com/Chia-Network/chia-blockchain/wiki/Farming-on-many-machines
I also added the mnemonic with chia keys add
.
Do we need to create a chia_harvester directory / file?
from chia-docker.
Same issue for me with same error
from chia-docker.
I tried going into the docker container with docker exec -it chia /bin/bash
and then executing . ./activate
to see if maybe it had something to do with the virtual environment but it didn't work. It's weird it works when the docker container initially launches but not when manually restarting the daemon. It looks like the docker entrypoint.sh file is running the same commands we are trying to run manually.
from chia-docker.
Getting the same error where it can't start the harvester in docker, although it seems to have no problems doing so as a full node and operating the harvester as part of the full node.
from chia-docker.
I can't run the harvester-only mode either ... followed the same guide as other guys:
I did the init using the CA of main machine
I added the keys of the main machine via chia key adds
I can telnet my main machine 8447 port
but no cigar
from chia-docker.
Even better on my end, there is a docker parameter on mine for Harvester, when set to True it seems to do it's Harvester stuff without issue. I couldn't ssh in and get it to run Harvester only, but as a docker parameter it seemed to be happy.
from chia-docker.
Even better on my end, there is a docker parameter on mine for Harvester, when set to True it seems to do it's Harvester stuff without issue. I couldn't ssh in and get it to run Harvester only, but as a docker parameter it seemed to be happy.
Thanks for this - works well for me as well!
from chia-docker.
So my solution for this is kind of simple - dont start harvester only. In docker config - do not change anything to true. Let it start as full node, harvester, farmer etc.
Once it finishes - log into docker and stop all manually:
./chia stop all
then
./chia start harvesterand it magically starts harvester then only. Works well.
I know its really dirt solution but at least working and you dont end up with many full nodes in one network (what is definitely not a good idea!)
I tried starting the docker without the environment variables like you said and then followed the multi harvester guide again (stop chia, init with keys, edit harvester config file) and still can't start chia in harvester mode. I get a different error now though. Now it says chia_harvester: chia_harvester failed to start. Error: start failed
from chia-docker.
Related Issues (20)
- When upgrading from version 1.5.0 to a newer version, a "Node healthcheck failed" error appears HOT 2
- 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
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.