I have a NerdMiner_v2. Since OP doesn't want such low hashrate devices connecting to his ckpool (that's completely understandable, no coplaints here on my side), I figured I would try to run my own backend as I have one VPS that is pretty much getting bored and is already running bitcoind.
I compiled OP's solobtc from
https://bitbucket.org/ckolivas/ckpool-solo/src/solobtc/ , I have bitcoind configured in server mode and running, ckpool (solobtc) tools is running, my NerdMiner_v2 is connecting and hashing. However, there are some (I hope) minor issues.
Firstly, I see the below messages about failing to set the desired rcvbufsiz, in the ckpool log at logging level 7:
[2023-07-16 13:03:54.962] ckpool connector starting
[2023-07-16 13:03:54.962] Succeeded delayed connect
[2023-07-16 13:03:54.962] Succeeded delayed connect
[2023-07-16 13:03:54.962] ckpool connector ready
[2023-07-16 13:03:54.962] connsock rcvbufsiz detected as 65536
[2023-07-16 13:03:54.962] Succeeded delayed connect
[2023-07-16 13:03:55.055] Increased rcvbufsiz to 92842 of desired 69632
[2023-07-16 13:03:55.055] Increased rcvbufsiz to 125610 of desired 94208
[2023-07-16 13:03:55.055] Increased rcvbufsiz to 169301 of desired 126976
[2023-07-16 13:03:55.055] Increased rcvbufsiz to 212992 of desired 172032
[2023-07-16 13:03:55.055] Failed to set desired rcvbufsiz of 217088 unprivileged, only got 212992
[2023-07-16 13:03:55.055] Failed to increase rcvbufsiz to 217088, increase rmem_max or start ckpool privileged if using a remote btcd
[2023-07-16 13:03:55.148] Closing file handle 14
[2023-07-16 13:03:55.149] Succeeded delayed connect
[2023-07-16 13:03:55.149] connsock rcvbufsiz detected as 65536
Since it complained about unprivileged user, I tried running with sudo and got the below:
[2023-07-16 13:12:03.984] ckpool connector ready
[2023-07-16 13:12:03.984] Succeeded delayed connect
[2023-07-16 13:12:03.984] Succeeded delayed connect
[2023-07-16 13:12:03.984] connsock rcvbufsiz detected as 65536
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 92842 of desired 69632
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 125610 of desired 94208
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 169301 of desired 126976
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 212992 of desired 172032
[2023-07-16 13:12:04.035] Failed to set desired rcvbufsiz of 217088 unprivileged, only got 212992
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 289450 of desired 217088
[2023-07-16 13:12:04.035] Failed to set desired rcvbufsiz of 290816 unprivileged, only got 212992
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 387754 of desired 290816
[2023-07-16 13:12:04.035] Failed to set desired rcvbufsiz of 389120 unprivileged, only got 212992
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 518826 of desired 389120
[2023-07-16 13:12:04.035] Failed to set desired rcvbufsiz of 520192 unprivileged, only got 212992
[2023-07-16 13:12:04.035] Increased rcvbufsiz to 693589 of desired 520192
[2023-07-16 13:12:04.036] Failed to set desired rcvbufsiz of 696320 unprivileged, only got 212992
[2023-07-16 13:12:04.036] Increased rcvbufsiz to 928426 of desired 696320
[2023-07-16 13:12:04.036] Failed to set desired rcvbufsiz of 929792 unprivileged, only got 212992
[2023-07-16 13:12:04.036] Increased rcvbufsiz to 1239722 of desired 929792
[2023-07-16 13:12:04.039] Failed to set desired rcvbufsiz of 1241088 unprivileged, only got 212992
[2023-07-16 13:12:04.039] Increased rcvbufsiz to 1654784 of desired 1241088
[2023-07-16 13:12:04.046] Failed to set desired rcvbufsiz of 1658880 unprivileged, only got 212992
[2023-07-16 13:12:04.046] Increased rcvbufsiz to 2211840 of desired 1658880
[2023-07-16 13:12:04.046] Failed to set desired rcvbufsiz of 2215936 unprivileged, only got 212992
[2023-07-16 13:12:04.046] Increased rcvbufsiz to 2954581 of desired 2215936
[2023-07-16 13:12:04.047] Failed to set desired rcvbufsiz of 2957312 unprivileged, only got 212992
[2023-07-16 13:12:04.047] Increased rcvbufsiz to 3943082 of desired 2957312
[2023-07-16 13:12:04.096] Closing file handle 15
[2023-07-16 13:12:04.097] Succeeded delayed connect
Is that something I should address, if so, how? Should I always run it as root (that does not seem smart to run internet exposed code as root)?
Second thing is, if I run
ckpool -B -l 7 -c /mypath/to/ckpool.conf
I see one (my) client connected but it reports zero hashes/sec.
0.00H/s 0.0 SPS 1 users 1 workers 0 shares 0.0% diff
and the ckpool.log says it's "Skipping user" of mine, "Failed to parse suggest_difficulty for client 1" and reports in idle stats. See below. What's the problem?
[2023-07-16 14:19:32.365] Sending stratum message update
[2023-07-16 14:19:32.365] Broadcast updated stratum base
[2023-07-16 14:19:32.366] Stratifier added 264 transactions and purged 0
[2023-07-16 14:19:47.188] Stratifier requesting connector test client 1
[2023-07-16 14:19:47.188] Skipping user
[2023-07-16 14:19:47.188] Connector received message: testclient=1
[2023-07-16 14:19:47.189] Reopening logfile
[2023-07-16 14:19:47.189] Closing file handle 3
[2023-07-16 14:19:47.189] Pool:{"runtime": 60, "lastupdate": 1689517187, "Users": 1, "Workers": 1, "Idle": 1, "Disconnected": 0}
[2023-07-16 14:19:47.189] Pool:{"hashrate1m": "0", "hashrate5m": "0", "hashrate15m": "0", "hashrate1hr": "0", "hashrate6hr": "0", "hashrate1d": "0", "hashrate7d": "0"}
[2023-07-16 14:19:47.189] Pool:{"diff": 0.0, "accepted": 0, "rejected": 0, "bestshare": 0, "SPS1m": 0.0, "SPS5m": 0.0, "SPS15m": 0.0, "SPS1h": 0.0}
[2023-07-16 14:19:48.394] Failed to parse suggest_difficulty for client 1
[2023-07-16 14:20:02.184] 30s elapsed in strat_loop, updating gbt base
[2023-07-16 14:20:02.184] Succeeded delayed connect
[2023-07-16 14:20:02.184] connsock rcvbufsiz detected as 65536
[2023-07-16 14:20:02.361] Closing file handle 12
Oh, and by the way, if OP really doesn't want so low hash rate devices connecting to his ckpool, I would suggest reaching out to authors of the NerdMiner_v2 software here
https://github.com/BitMaker-hub/NerdMiner_v2 as ckpool address is a default option there.