Skip to content
nicoschtein edited this page Jan 21, 2014 · 4 revisions

Description

I have created this page to reduce the number of issues and advise users on any errors which may occur.

GetWork Errors

  • WARNING protocol # Failed message: Cannot decode message 'POST / HTTP/1.1' from 127.0.0.1

This error Message Indicated that a miner is trying to connect via Getwork/HTTP rather than Stratum+tcp://

VarDiff Errors

  • 2014-01-08 14:24:51,447 ERROR protocol # [Failure instance: Traceback: : long division or modulo by zero

POOL_TARGET as well as any vardiff settings MUST be set to a variable dividable by 2/4/6/8/12 etc.. It cannot be "10" "20" or "30"..

  • REJECTED Job ?? Not Found

The miner is quite far from the server or latency is affecting the connection to the miner so they submitted old/stale work. Nothing can be done to fix this.

  • resp = (yield self._call('submitblock', [block_hex,])) Error: 404 Not Found

This means the coin code is old and does not yet support the now standard submitblock code. Ask the devs to add it in. until then stratum will use GetBlockTemplate Mode:Submit

Stratum Import Error & Stratum not listening on configured port (connection refused)

  • from autobahn.websocket import WebSocketServerProtocol, WebSocketServerFactory exceptions.ImportError: cannot import name WebSocketServerProtocol

Due to AutoBahn being updated Edit: /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/websocket_transport.py change: from autobahn.websocket import to from autobahn.twisted.websocket import

Coin Errors

  • 2014-01-05 13:48:52,001 ERROR mining # CoinD does not support getblocktemplate!!! (time to upgrade.) This Means the coin source is too old and does not support the necessary code for stratum to be used

  • ERROR coinbaser # Cannot validate Wallet address Any Message similar to this means that the wallet address is invalid and cant be used. Check and retry

  • Error: Final job validation failed This message usually occurs when disabling transaction messages on a coin which requires them resulting in an invalid block

  • ERROR mining init.setup # Wrong Algo Selected, Switch to appropriate POS/POW in config.py! This message occurs usually due to an invalid algorithm in the config or due to a POS coin not returning stake in getinfo

  • 2013-12-29 18:42:51,335 ERROR template_registry # [Failure instance: Traceback: <class 'struct.error'>: unpack requires a string argument of length 4

This normally occurs when the config has tx message enabled when the coin does not actually support it.