Pages:
Author

Topic: Avalon users: bitcoind and slush's/generalfaults mining pool setup - page 2. (Read 39227 times)

full member
Activity: 176
Merit: 100
says the video is not available in my country.
newbie
Activity: 4
Merit: 0
full member
Activity: 176
Merit: 100
Need a bit more the log posted, what database are you using with it ?
newbie
Activity: 2
Merit: 0
I have a problem with this:  Huh


IMAGE LINK
http://zapodaj.net/3aa29501ad7b5.jpg.html





Please help!
Please help!

newbie
Activity: 3
Merit: 0
nevermind. solved issue with
Code:
sudo apt-get install msgpack-python libmsgpack3 libmsgpackc2

everything seems to be up and running so far. was able to connect to it. will be testing it out see how it goes.
sr. member
Activity: 412
Merit: 250
install python MsgPackSerializer
newbie
Activity: 3
Merit: 0
Thanks I fixed that and was about to get the stratum started, but it also gave me an error after it started, looks like its working but miners unable to connect, saying connection refused. read out from the server is as follows:

Code:
jeremy@MineCamp:~/git/stratum-mining$ twistd -ny launcher.tac -l -
2014-02-02 03:21:39,922 INFO mining # Connecting to bitcoind...
2014-02-02 03:21:39-0600 [-] Log opened.
2014-02-02 03:21:39-0600 [-] twistd 13.2.0 (/usr/bin/python 2.7.4) starting up.
2014-02-02 03:21:39-0600 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2014-02-02 03:21:39,950 INFO mining # Connected to bitcoind - Ready to GO!
2014-02-02 03:21:39,956 INFO coinbaser # Coinbase address 'mxUQAbpu31HyFozsMuY2bVGCsnwC75iNaQ' is valid
2014-02-02 03:21:39,957 INFO mining # MINING SERVICE IS READY
2014-02-02 03:21:39-0600 [HTTPPageGetter,client] Unhandled error in Deferred:
2014-02-02 03:21:39-0600 [HTTPPageGetter,client] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
            result = g.send(result)
          File "/home/jeremy/git/stratum-mining/mining/__init__.py", line 83, in setup
            on_startup.callback(True)
          File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 382, in callback
            self._startRunCallbacks(result)
          File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 490, in _startRunCallbacks
            self._runCallbacks()
        --- ---
          File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/stratum/server.py", line 46, in setup_finalize
            import websocket_transport
          File "/usr/local/lib/python2.7/dist-packages/stratum/websocket_transport.py", line 1, in
            from autobahn.twisted.websocket import WebSocketServerProtocol, WebSocketServerFactory
          File "/usr/local/lib/python2.7/dist-packages/autobahn/twisted/websocket.py", line 39, in
            from autobahn.wamp import websocket
          File "/usr/local/lib/python2.7/dist-packages/autobahn/wamp/websocket.py", line 34, in
            from autobahn.wamp.serializer import JsonSerializer, MsgPackSerializer
        exceptions.ImportError: cannot import name MsgPackSerializer

2014-02-02 03:21:39,994 INFO template_registry # New template for 00000000e5fb3cb4f20c1e7cd30d3bdafbd1d1418a0c1a9a2d0c6da8c6a0950c
2014-02-02 03:21:39,994 INFO subscription # BROADCASTED to 0 connections in 0.000 sec
2014-02-02 03:21:39,994 INFO template_registry # Update finished, 0.002 sec, 16 txes
2014-02-02 03:21:44,957 INFO block_updater # Checking for new block.
2014-02-02 03:21:49,957 INFO block_updater # Checking for new block.
2014-02-02 03:21:54,956 INFO block_updater # Checking for new block.
sr. member
Activity: 412
Merit: 250
try to install with pip
newbie
Activity: 3
Merit: 0
Hey first off would like to say I love the guide, its pretty damn simple but i've run into a problem.
Installing on ubuntu-13.10-server-amd64

I ran the command
Code:
sudo easy_install -U distribute

everything looked like it completed successfully however then i went on to the next one and got the following:

Code:
jeremy@MineCamp:~/git$ sudo easy_install stratum
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 9, in
    load_entry_point('distribute', 'console_scripts', 'easy_install')()
  File "/usr/local/lib/python2.7/dist-packages/setuptools-2.1-py2.7.egg/pkg_resources.py", line 353, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/setuptools-2.1-py2.7.egg/pkg_resources.py", line 2301, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'easy_install') not found

and now thats what i get if i try to sudo easy_install anything.... thoughts?
newbie
Activity: 19
Merit: 0
The fix is edit

/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/websocket_transport.py

change the first line from autobahn.websocket import

to autobahn.twisted.websocket import

Thanks a lot ktbken. That did the trick. Works like a charm now Smiley
full member
Activity: 158
Merit: 100
Hello, I've followed this awesome guide the other day and installed the pool software and bitcoind with no problems. They were running and my miners could connect to pool and also web stats were running as well.

Anyway my computer froze some hours later and I couldn't get the bitcoind to load blockchain again. I don't know if it was corrupted or not. I've decided to do a fresh install. Removed my virtual machine, created new one and started again. I've done everything same but this time I get an error quoted below:

Code:
2014-01-03 18:30:48+0200 [-] twistd 13.2.0 (/usr/bin/python 2.7.3) starting up.
2014-01-03 18:30:48+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2014-01-03 18:30:52,007 INFO mining # Connected to bitcoind - Ready to GO!
2014-01-03 18:30:52,033 WARNING coinbaser # !!! Coinbase address 'mybtcaddress' is valid BUT it is not local
2014-01-03 18:30:52,034 INFO mining # MINING SERVICE IS READY
2014-01-03 18:30:52+0200 [HTTPPageGetter,client] Unhandled error in Deferred:
2014-01-03 18:30:52+0200 [HTTPPageGetter,client] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1099, in _inlineCallbacks
            result = g.send(result)
          File "/root/git/stratum-mining/mining/__init__.py", line 83, in setup
            on_startup.callback(True)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 382, in callback
            self._startRunCallbacks(result)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 490, in _startRunCallbacks
            self._runCallbacks()
        --- ---
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 577, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/server.py", line 46, in setup_finalize
            import websocket_transport
          File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/websocket_transport.py", line 1, in
            from autobahn.websocket import WebSocketServerProtocol, WebSocketServerFactory
        exceptions.ImportError: cannot import name WebSocketServerProtocol

2014-01-03 18:30:52,212 INFO template_registry # New template for 0000000000000001da1455a71d9c0d7a7d3d3a2c3cf9ae98e631eb706ade7850
2014-01-03 18:30:52,213 INFO subscription # BROADCASTED to 0 connections in 0.000 sec
2014-01-03 18:30:52,213 INFO template_registry # Update finished, 0.056 sec, 356 txes

Now I cannot connect to the pool and and web stats are not working. I am using Ubuntu 12.04 32Bit. I am not that experienced with linux environment. Any help appreciated.

The fix is edit

/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/websocket_transport.py

change the first line from autobahn.websocket import

to autobahn.twisted.websocket import
full member
Activity: 176
Merit: 100
Try bitcoind -reindex if it wont load the blockchain normally fixes it.

On the other error havent seen it before but, but one of the python modules is missing I think.
newbie
Activity: 19
Merit: 0
Hello, I've followed this awesome guide the other day and installed the pool software and bitcoind with no problems. They were running and my miners could connect to pool and also web stats were running as well.

Anyway my computer froze some hours later and I couldn't get the bitcoind to load blockchain again. I don't know if it was corrupted or not. I've decided to do a fresh install. Removed my virtual machine, created new one and started again. I've done everything same but this time I get an error quoted below:

Code:
2014-01-03 18:30:48+0200 [-] twistd 13.2.0 (/usr/bin/python 2.7.3) starting up.
2014-01-03 18:30:48+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2014-01-03 18:30:52,007 INFO mining # Connected to bitcoind - Ready to GO!
2014-01-03 18:30:52,033 WARNING coinbaser # !!! Coinbase address 'mybtcaddress' is valid BUT it is not local
2014-01-03 18:30:52,034 INFO mining # MINING SERVICE IS READY
2014-01-03 18:30:52+0200 [HTTPPageGetter,client] Unhandled error in Deferred:
2014-01-03 18:30:52+0200 [HTTPPageGetter,client] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1099, in _inlineCallbacks
            result = g.send(result)
          File "/root/git/stratum-mining/mining/__init__.py", line 83, in setup
            on_startup.callback(True)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 382, in callback
            self._startRunCallbacks(result)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 490, in _startRunCallbacks
            self._runCallbacks()
        --- ---
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 577, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/server.py", line 46, in setup_finalize
            import websocket_transport
          File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/websocket_transport.py", line 1, in
            from autobahn.websocket import WebSocketServerProtocol, WebSocketServerFactory
        exceptions.ImportError: cannot import name WebSocketServerProtocol

2014-01-03 18:30:52,212 INFO template_registry # New template for 0000000000000001da1455a71d9c0d7a7d3d3a2c3cf9ae98e631eb706ade7850
2014-01-03 18:30:52,213 INFO subscription # BROADCASTED to 0 connections in 0.000 sec
2014-01-03 18:30:52,213 INFO template_registry # Update finished, 0.056 sec, 356 txes

Now I cannot connect to the pool and and web stats are not working. I am using Ubuntu 12.04 32Bit. I am not that experienced with linux environment. Any help appreciated.
full member
Activity: 176
Merit: 100
Just tried it and seems to work for me

move the old clone of the bitcoin git to bitcoinold
in the git directory
Code:

cd git
mv bitcoin bitcoinold

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin

git checkout v0.8.6

cd src

make -f makefile.unix


If it still doesnt work post the error.

or you can use the pre-built binaries

from here

http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.6/bitcoin-0.8.6-linux.tar.gz/download

Code:
cd
wget http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.6/bitcoin-0.8.6-linux.tar.gz/download

tar zvf bitcoin-0.8.6-linux.tar.gz
cd bitcoin-0.8.6-linux/bin/32/

killall -TERM bitcoind

./bitcoind -daemon


check it with ./bitcoind getinfo

and also the logs in your home directory under .bitcoin

to see if its working ok, if so start with options you normally use eg ./bitcoind -blah blah blah

test it out if it works then backup the old bitcoind binary in /usr/local/bin

Code:
sudo mv /usr/local/bin/bitcoind /usr/local/bin/bitcoin85
sudo mv ./bitcoind /usr/local/bin/bitcoind
killall -TERM bitcoind

Run it like normal

full member
Activity: 176
Merit: 100
Ill have look after some sleep and double check them.
legendary
Activity: 1764
Merit: 1002
just tried a new install but getting errors with compiling.

are the packages or dependencies up to date?
full member
Activity: 176
Merit: 100
Why use mysql?

Is that all the startup log?

You need to post more of it. Is the pool server actually starting up ? or does it fall back to command line after failing?
legendary
Activity: 2702
Merit: 1468
The devices using different login names ?

change the setting and see how it goes Smiley

Yes.  All clients use different names.  When I used VDIFF_TARGET=5  I got the correct share/min, but after it goes into checking client diff it re-evaluates and diff goes up to 1k+ then down to 300.  The variable diff does not work too well for me.

I set POOL_TARGET=600 and disabled the variable diff functionality.  Works ok now.  Might need to hack the diff for each client during subscription once I get clients with different hashing rates.

With 600 I get mini rig going at ~11 shares/min.



any feedback on this strategy?

I ended up adding new config variables for different type of workers based on hash rates.  Modified interfaces to set the default difficulty based on the worker name.  I've run mini rigs at 1024, bitfuries h-cards at 64.  Worked well.  I only have one mini rig now so it is no use to run solo, but maybe people with 20-30 KNC Jupiters can test this  Wink
sr. member
Activity: 412
Merit: 250
I have setup my ovn mining pool but when client connect to it I get error
Most likely you put wrong  URL, forgotten to add port, or not setup a workers

Also when starting stratum
twistd -ny launcher.tac -l log/twistd.log


2013-12-04 12:35:29,021 DEBUG DBInterface # run_import_thread current size: 0
2013-12-04 12:35:29,022 DEBUG DBInterface # DB_Mysql INIT
2013-12-04 12:35:29,022 DEBUG DB_Mysql # Connecting to DB
2013-12-04 12:35:29,025 DEBUG DBInterface # DBInterface.do_import called. force: no, queue size: 0


Please some pointers what I did wrong?
full member
Activity: 176
Merit: 100
You tried the one it uses by default the built in one and are all the dependencies installed ?
Pages:
Jump to: