Protip: check your debug.log regularly

Where did you pull this info from?

It comes from the logs of your full node / main harvester.

You have to change the level to INFO to see all the interesting details though.

2 Likes

Hi guys!
I’m farming since 3 weeks, I have above 100 plots and no win ( ok it happens :)), but i Have something like that in my logs (look below), should I worry?

Regards!

2021-04-29T15:08:52.134 full_node full_node_server        : WARNING  Banning 79.43.14.40 for 10 seconds
2021-04-29T15:08:52.134 full_node full_node_server        : WARNING  Invalid handshake with peer. Maybe the peer is running old software.
2021-04-29T16:10:12.866 full_node full_node_server        : WARNING  Banning 119.9.108.167 for 10 seconds
2021-04-29T16:10:12.866 full_node full_node_server        : WARNING  Invalid handshake with peer. Maybe the peer is running old software.
2021-04-29T16:25:20.512 full_node full_node_server        : WARNING  Banning 119.9.108.167 for 10 seconds
2021-04-29T16:25:20.512 full_node full_node_server        : WARNING  Invalid handshake with peer. Maybe the peer is running old software.
2021-04-29T16:38:31.296 full_node full_node_server        : ERROR    Exception Was not able to get peername from <function WSChiaConnection.__getattr__.<locals>.invoke at 0x000001466C3A69D8> at 112.101.97.77, exception Stack: Traceback (most recent call last):
  File "chia\server\server.py", line 243, in incoming_connection
  File "chia\server\ws_connection.py", line 59, in __init__
ValueError: Was not able to get peername from <function WSChiaConnection.__getattr__.<locals>.invoke at 0x000001466C3A69D8> at 112.101.97.77

2021-04-29T17:29:31.976 full_node full_node_server        : WARNING  Banning 119.9.108.167 for 10 seconds
2021-04-29T17:29:31.976 full_node full_node_server        : WARNING  Invalid handshake with peer. Maybe the peer is running old software.
2021-04-29T17:32:21.416 full_node full_node_server        : WARNING  Banning 27.151.8.91 for 10 seconds
2021-04-29T17:32:21.432 full_node full_node_server        : WARNING  Invalid handshake with peer. Maybe the peer is running old software.
2021-04-29T17:33:07.755 full_node full_node_server        : ERROR    Exception Was not able to get peername from <function WSChiaConnection.__getattr__.<locals>.invoke at 0x000001466BF23AF8> at 222.83.154.49, exception Stack: Traceback (most recent call last):
  File "chia\server\server.py", line 243, in incoming_connection
  File "chia\server\ws_connection.py", line 59, in __init__
ValueError: Was not able to get peername from <function WSChiaConnection.__getattr__.<locals>.invoke at 0x000001466BF23AF8> at 222.83.154.49

2021-04-29T17:33:14.127 full_node full_node_server        : WARNING  Banning 117.30.107.47 for 10 seconds
2021-04-29T17:33:14.127 full_node full_node_server        : WARNING  Invalid handshake with peer. Maybe the peer is running old software.
2021-04-29T17:36:19.383 full_node full_node_server        : ERROR    Exception: Failed to fetch block 204762 from {'host': '68.224.65.220', 'port': 8444}, timed out, {'host': '68.224.65.220', 'port': 8444}. Traceback (most recent call last):
  File "chia\server\server.py", line 511, in wrapped_coroutine
  File "chia\full_node\full_node_api.py", line 100, in new_peak
  File "chia\full_node\full_node.py", line 358, in new_peak
  File "chia\full_node\full_node.py", line 307, in short_sync_backtrack
  File "chia\full_node\full_node.py", line 292, in short_sync_backtrack
ValueError: Failed to fetch block 204762 from {'host': '68.224.65.220', 'port': 8444}, timed out
1 Like

How can I check plot pass time? Any Commands please share.

If you have it set to INFO you get to see the proof challenges!

2021-05-09T01:15:04.423 harvester chia.harvester.harvester: INFO 0 plots were eligible for farming a64c9b1656... Found 0 proofs. Time: 0.00046 s. Total 1 plots

If you have “grep” available on your machine it’s easy to remove all “INFO” entries like so:

grep -v INFO debug.log

The “-v” on grep says: “show me all lines that DON’T have the word INFO in them.”

Since chia requires “git” in the first place, even on windows this means you probably have “git bash” which means you have “grep”. :slight_smile: Just make sure to examine debug.log using “bash” instead of “cmd”.

1 Like

You don’t need grep, there’s an equivalent in PowerShell; here’s how to list all eligibility checks so I can scan the harvester times

select-string -path "*.log*" -pattern "eligible" >eligible.txt

1 Like

I’ve never used PowerShell, but from a quick google search looks like “-notMatch” would achieve what I described (trim out all INFO lines to see if any serious problems or warning are occurring):

select-string -path "*.log*" -notMatch "INFO"

But I don’t have a windows environment handy to test this… this is pure speculation based on documentation on my part.

1 Like

Is there a way to do this in bash on my mac as I don’t have Powershell?

Thanks!

Well yeah you’d use the standard Linux way grep wouldn’t you, since Mac is basically Unix?

My log folder is empty!
~/.chia/mainnet/log

Where can i find my logs?

I don’t know, that looks like the correct path. Is it under a different user? Because ~/ means current user, that may not be where it is…

When I set the server up, I entered a single user account, which is what I SSH in with. It’s also what I installed chia with and where I plot.

Im a quick learner but am fairly new to Unix still. I can see my plotter plotting when I SSH in and recal the screen. I’m lost. Can you tell?

Do you have your log level set to INFO and did you restart the Chia software after changing the log level?

That is the default location for your logs although you can check the config file to make sure. Any chance you installed as a different user?

1 Like

I have a lot of these in the log:

Err.DOUBLE_SPEND
WARNING: Wasn't able to add transaction with id
Consensus error 124, not disconnecting

Please don’t post pictures of console output. Google can’t index those and nobody can search for them. Try searching for those phrases here in the forum; there are already topics for them.

TL;DR I think that’s related to the negative amount bug they fixed in earlier versions, but searching is key and will give you the answers you require.

1 Like

Sorry about that, what I learned from the web is that nothing needs to be done about it…just ignore it…

1 Like

I’ve just checked config.yaml and logging was set to WARNING but the location was correct.

~/.chia/mainnet/logs

I’ve just changed the level to INFO.

Can i list the users on the server. As far as I am aware there’s only one user, and maybe root but I only setup one password when I installed it.

Thanks.

W

On Linux, the software doesn’t seem to pickup the log level change until it is restarted.

It sounds like you’ve done everything under one user account so my question about having switched users shouldn’t be an issue.

I didn’t need to recycle the server, theres now a log file and it has ALOT of info in it. Ive set this back to WARNING at the moment and will check it again in a while. What would you normally set your logfile to be?

I DIDN’T see any lines starting Farming plot plot-0-30.xxxxx.dat of size 30

My blockchain is still syncing, is that normal?

A post was split to a new topic: What do pre validate transaction and add_spendbundle mean in the logs?