monero-bash icon indicating copy to clipboard operation
monero-bash copied to clipboard

Error after upgrading

Open nemomaximus opened this issue 2 years ago • 2 comments

Just did an update of monero-bash to the following versions:

monero-bash | v1.9.5
Monero      | v0.18.1.2
XMRig       | v6.18.1
P2Pool      | v2.6

However, P2Pool doesn't seem to work as it should, monero-bash status returns the following:

[P2Pool] ONLINE
| %CPU |     ELAPSED |     PID |
|  211 |       00:22 |     332 |
--------------------------------
/usr/local/share/monero-bash/src/func/status.sh: line 177: warning: command substitution: ignored null byte in input
[monero-bash warning] P2Pool API file was not found, stats will be inaccurate!
[monero-bash warning] Consider restarting P2Pool. It will regenerate necessary files.

How shall I fix this?

nemomaximus avatar Dec 07 '22 14:12 nemomaximus

Seems to be working now, but I still get the warning:

[P2Pool] ONLINE
| %CPU |     ELAPSED |     PID |
| 27.0 |       17:59 |     332 |
--------------------------------
/usr/local/share/monero-bash/src/func/status.sh: line 177: warning: command substitution: ignored null byte in input
Wallet        | [xxxxxxxxxxx]
Effort        | [average: 0%] [current: 9.555%]
Hashrate      | [15s/1h/24h] [9005 H/s] [8585 H/s] [8585 H/s]
Connection    | [miners: 2] [sidechain: P2Pool Mini]
~~~

nemomaximus avatar Dec 07 '22 14:12 nemomaximus

P2Pool doesn't immediately create the API file so you'll see that error until it does.

The line 177 warning means your p2pool.log has a null byte in it. It doesn't really matter but if it annoys you, you could try restarting P2Pool (with monero-bash restart p2pool) which will reset the log for you.

hinto-janai avatar Dec 07 '22 16:12 hinto-janai