Post
Topic
Board Mining software (miners)
Re: CGMINER ASIC FPGA GPU overc monit fanspd RPC linux/win/osx/mip/r-pi 3.2.2
by
moroz
on 17/06/2013, 18:55:27 UTC
I cannot add p2pool through API:
Code:
echo "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|

I see this error in cgminer:
Code:
[2013-06-17 10:08:48] Switching pool 1 http://p2pool.org:9327 to stratum+tcp://p2pool.org:9327
 [2013-06-17 10:08:50] Pool 1 difficulty changed to 210.767276
 [2013-06-17 10:08:50] Pool 1 difficulty changed to 205.967835
 [2013-06-17 10:08:51] pool 1 JSON stratum auth failed: {
   "data": null,
   "code": -32700,
   "message": "Parse error"
}

I can add this pool from command line or from cgminer GUI, so login information is correct. When the pool is added through API, it is marked as DEAD and I see authentication errors.

It looks like cgminer has similar problem as cpuminer 2.3
https://bitcointalk.org/index.php?topic=55038.msg2492605#msg2492605


Same problem here. My workaround so far is:
clusterssh to the miners
echo "{\"command\":\"quit\"}" | nc 127.0.0.1 4028
killall -9 lxterminal
export DISPLAY=:0.0
sudo nohup lxterminal --command "sh /root/cgminer.sh"

cgminer.sh looks approximately like this:
cd /root
myip=$(/sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}')
wget -N --ftp-user=miner ftp:// minersrv.asd/$myip/cgminer.conf
cd /root/cgminer
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
./cgminer --config /root/cgminer.conf

So, miners just massively pull configs from the server (defined by ip). This is kinda dirty since it involves restarting cgminer.
It's the only way if algorithm change is required (scrypt->sha256).
However, it would be really nice to add pools through the API for scrypt alts.