-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug] Various farm summary items do not work when using a remote node #9615
Comments
In various places in the farmer, the code specifically only looks for the node at the current self_hostname setting in config.yaml and for some reason ignores the setting for the node in the farmer section. See eg. |
farm summary
items do not work
farm summary
items do not work
Oups, sorry for the title edit, I didn't see you changed it. Thank you for your attention on this issue 🙏🙏 ! |
It's not a common deployment model, so priority obviously hasn't been that high. |
I understand, and the problem is really minor. If I can help with testing, let me know. |
In my case this no longer appear in 2.0.0, prior version appear and works normally $ chia farm summary
Connection error. Check if full node is running at 8555
Farming status: Not available
[...]
Estimated network space: Unknown
Expected time to win: Unknown It become this
my setup is
There is only minimal overhead using vpn connection |
I've been searching for the change in the source code, diff between 1.8.0 and 2.0.0 but haven't found the change that cause this. Doesn't see any related change in I cannot update my node, so if there is open full node v2.0.0, I can help test by creating new farmer-only and redirect some of my harvester there.
Ah regarding this, I forget to mention if I change farmer-only to farmer ( farmer and full node ) on same config.yml and setup. It works directly |
Hi @emlowe is this the problem in async def get_blockchain_state(
rpc_port: Optional[int], root_path: Path = DEFAULT_ROOT_PATH
) -> Optional[Dict[str, Any]]:
config = load_config(root_path, "config.yaml")
async with FullNodeRpcClient.create(config["farmer"]["full_node_peer"]["host"], config["farmer"]["full_node_peer"]["port"], path, config) as (client, _):
return await client.get_blockchain_state() Should we create additional Or we can add in the full_node config.yaml to mark it as remote and use the ip instead of localhost ? full_node:
remote: someip / localhost Can you point me which file that might cause the problem, I have trouble finding the function in the source code. This issue appear to be closed also, I got a lot of harvester and currently cannot move the node to the same server as farmer due to resource limit. |
Hey @wiryonolau , I have seen you respond to a number of very old discussion messages with support questions but am not entirely sure what the issue or question is that you are facing. (link to open a support discussion - https://github.com/Chia-Network/chia-blockchain/discussions/new?category=support) |
My issue is closed #16164 due to similar to this one I explain the general problem there. |
Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes Chia-Network#16164. Related to issue Chia-Network#9615, but that issue is wider in scope.
Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes Chia-Network#16164. Related to issue Chia-Network#9615, but that issue is wider in scope.
Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes Chia-Network#16164. Related to issue Chia-Network#9615, but that issue is wider in scope.
Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes Chia-Network#16164. Related to issue Chia-Network#9615, but that issue is wider in scope.
Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes Chia-Network#16164. Related to issue Chia-Network#9615, but that issue is wider in scope.
Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes Chia-Network#16164. Related to issue Chia-Network#9615, but that issue is wider in scope.
…16387) * Fix `chia farm summary` aborting early if no local full node present Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes #16164. Related to issue #9615, but that issue is wider in scope. * Improve exception reporting for `chia farm summary` With this change, only the exceptions when failing to connect to a local full node and/or wallet are suppressed, as these cases are already properly handled by adjusted command output. Any other exception is printed to stderr.
Hi just migrate today, seems there is no longer any error in 2.1.1 for remote farm. Thanks @xchdata1 |
What happened?
Setup
Long story short: my internet is slow, running a full node at home is too heavy to do it properly. Monitoring the network usage shows this bandwidth consumption:
So to optimize my setup, I moved the Full node only to a VPS, but I keep the Farmer at home:
I just configure the full node address in the Farmer configuration, and it works.
This is my best setup so far (months of testing/monitoring). I win blocks, and the private key stays at home with the farmer (the full node on VPS doesn't need keys).
The issue
The only issue with this setup so far is the
chia farm summary
output :It properly shows the plot count and the harvesters (I hided this info here for privacy).
But the
Farming status: Not available
doesn't works even if:Less important, the
Expected time to win: Unknown
andEstimated network space
are broken too.Version
1.2.11
What platform are you using?
Linux
What ui mode are you using?
CLI
Relevant log output
No response
The text was updated successfully, but these errors were encountered: