Pages:
Author

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

newbie
Activity: 14
Merit: 0
Thank you very much for your help
now it works )

[/quote]

Something or another running instance of the server is running already and using the 3333 port. Check that the mining server isnt already running.
[/quote]
full member
Activity: 176
Merit: 100

     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/posixbase.py", line 489, in listenTCP
       p.startListening()
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/tcp.py", line 980, in startListening
       raise CannotListenError(self.interface, self.port, le)
   twisted.internet.error.CannotListenError: Couldn't listen on any:3333: [Errno 98] Address already in use.

I need to update Twisted or something else?
thanks for any advice and assistance

Something or another running instance of the server is running already and using the 3333 port. Check that the mining server isnt already running.
newbie
Activity: 14
Merit: 0
Hi

run "twistd-ny launcher.tac-l -"

get the response:

2013-06-07 18:18:27,407 INFO mining # Waiting for bitcoin RPC...
2013-06-07 18:18:27+0400 [-] Log opened.
2013-06-07 18:18:27+0400 [-] twistd 13.0.0 (/usr/bin/python 2.7.3) starting up.
2013-06-07 18:18:27+0400 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2013-06-07 18:18:58,184 INFO mining # Response from bitcoin RPC OK
2013-06-07 18:18:58+0400 [HTTPPageGetter,client] Starting factory http://localhost:8332>
2013-06-07 18:18:58+0400 [HTTPPageGetter,client] Stopping factory http://localhost:8332>
2013-06-07 18:19:18,516 INFO coinbaser # Coinbase address '1MYwS2ASuwrucQtVM1VdFYnX4DR7E8WwYr' is valid
2013-06-07 18:19:18+0400 [HTTPPageGetter,client] Starting factory http://localhost:8332>
2013-06-07 18:19:18,518 INFO mining # MINING SERVICE IS READY
2013-06-07 18:19:18+0400 [HTTPPageGetter,client] Loading of signing key 'None' failed, protocol messages cannot be signed.
2013-06-07 18:19:18+0400 [HTTPPageGetter,client] Cannot initiate SSL context, are SSL_PRIVKEY or SSL_CACERT missing?
2013-06-07 18:19:18+0400 [HTTPPageGetter,client] This will skip all SSL-based transports.
2013-06-07 18:19:18+0400 [HTTPPageGetter,client] Unhandled error in Deferred:
2013-06-07 18:19:18+0400 [HTTPPageGetter,client] Unhandled Error
   Traceback (most recent call last):
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks
       result = g.send(result)
     File "/home/zulu/stratum/mining/__init__.py", line 66, in setup
       on_startup.callback(True)
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 380, in callback
       self._startRunCallbacks(result)
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 488, in _startRunCallbacks
       self._runCallbacks()
   --- ---
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 575, in _runCallbacks
       current.result = callback(current.result, *args, **kw)
     File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/server.py", line 77, in setup_finalize
       socket.setServiceParent(application)
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/application/service.py", line 186, in setServiceParent
       self.parent.addService(self)
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/application/service.py", line 308, in addService
       service.privilegedStartService()
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/application/internet.py", line 103, in privilegedStartService
       self._port = self._getPort()
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/application/internet.py", line 131, in _getPort
       'listen%s' % (self.method,))(*self.args, **self.kwargs)
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/posixbase.py", line 489, in listenTCP
       p.startListening()
     File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/tcp.py", line 980, in startListening
       raise CannotListenError(self.interface, self.port, le)
   twisted.internet.error.CannotListenError: Couldn't listen on any:3333: [Errno 98] Address already in use.

I need to update Twisted or something else?
thanks for any advice and assistance
full member
Activity: 176
Merit: 100
Congrats Smiley, saw kano's reply in the stratum thread. Assumed something like he said, but he can explain it properly Smiley

edit: I will have a look at 8.2 next few days and change the tute for it.
sr. member
Activity: 490
Merit: 255
The block my setup found yesterday was on mainnet.  I also tested briefly on test (about a month ago).
legendary
Activity: 1764
Merit: 1002
While I can't confirm that this solo setup works with avalon asic miners (yet), I can confirm that if properly configured as stated in this thread that it does properly credit an external wallet address with a few humble GPU miners configured as stratum when a block is found.  Grin

was this on the real Bitcoin network or test net?

for me, it worked perfectly on test net and i've left it running for over a month and a half w/o mining and bitcoind/blocknotify is updating perfectly w/o any lapses.
newbie
Activity: 19
Merit: 0
Quick update:

Everything was working fine, it was just me being paranoid. It found the block at about 106%.

I think jspielberg hit the nail on the head!

Thanks for your replies!
sr. member
Activity: 490
Merit: 255
While I can't confirm that this solo setup works with avalon asic miners (yet), I can confirm that if properly configured as stated in this thread that it does properly credit an external wallet address with a few humble GPU miners configured as stratum when a block is found.  Grin
sr. member
Activity: 490
Merit: 255
I was under the impression that under 100% means your round was lucky and over 100% means you weren't.
newbie
Activity: 19
Merit: 0
Thanks for replying tiktoc! I have posted on the stratum page but with no reply Sad So thought I'd try my luck here. Have you experienced it at all? Or do you always find the block under 100%?

I am getting the progress value from the pool table in the database, which does display on the stats page, yes.
full member
Activity: 176
Merit: 100
You will have to ask in the stratum pool software thread about that. Is that coming from the statistics page?
newbie
Activity: 19
Merit: 0
Thanks for the original post! I have set it up successfully, just wanted to check something...

the round_progress has gone to 105%. Should it not have found something by 100% or is this just the average?

Basically, is it normal for it to go over 100% or should I be worried??
legendary
Activity: 1764
Merit: 1002
sr. member
Activity: 490
Merit: 255
Thanks Libertybuck -

I agree this thread was much easier to follow and end up with a functional pool server at the end than the eloipool threads.

I don't have my avalon yet, so I am just testing with my GPUs, but if it works fine with your avalon, then I will probably do the same with mine.

Best of luck to you!
full member
Activity: 137
Merit: 100
I believe you have received your avalons already no?

Yes. Already.


Would you care to comment on your experience with this setup of using slush and the avalon?  A number of folks are using eloipool since Jeff posted a rough howto earlier.

I have been tempted to wrestle with eloipool again, but slush worked much better out of the box.  Mine is happily setup and running fine with my testing GPUs... (28 days in and 3.4% of the round completed!  Shocked ).  I really like that slush has the little status webpage.

I tried https://bitcointalk.org/index.php?topic=158105.60 and https://bitcointalksearch.org/topic/my-pool-pool-server-in-a-box-172151 , but I do not have enough skill to make neither of them work.

To try tiktoc's tutorial, I prepare a fresh ubuntu server under vmware esxi. I do it step by step according to https://bitcointalksearch.org/topic/m.1712011 . All are quite smooth. Currently I am testing and studying the pool with icarus. Will point avalon to it later.
sr. member
Activity: 490
Merit: 255
Libertybuck -

I believe you have received your avalons already no?

Would you care to comment on your experience with this setup of using slush and the avalon?  A number of folks are using eloipool since Jeff posted a rough howto earlier.

I have been tempted to wrestle with eloipool again, but slush worked much better out of the box.  Mine is happily setup and running fine with my testing GPUs... (28 days in and 3.4% of the round completed!  Shocked ).  I really like that slush has the little status webpage.

Thanks!
full member
Activity: 137
Merit: 100
Are you using a external database like mysql?
What section of the tute did you get the error in?
I havent seen the error before you might be able to get more answers in the pools forums there is thread there for stratum pool software.

Sir. Thanks for your reply. I have fixed the issue. It was because I did not install sqlite on that fresh ubuntu.
legendary
Activity: 2702
Merit: 1468
Replace the bits you need to

Code:
# bitcoind upstart script for Ubuntu

description "Bitcoin daemon"

start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 60
setuid yourusernameforbitcoinhere
expect fork
exec /usr/local/bin/bitcoind -datadir=/home/yourusernameforbitcoinhere/.bitcoin


Code:
description "Start and stop slush on bitcoind start"

respawn
respawn limit 10 60
expect fork

start on started bitcoind
stop on stopped bitcoind
setuid poolusernamehere
pre-start script
   sleep 30
end script

chdir /home/poolocation/git/stratum-mining
exec twistd --syslog -ny /home/poollocation/git/stratum-mining/launcher.tac &



Thanks tiktok. Got it working now.  On my system, upstart did not like sleep 30 or sleep 30s, so I moved all the waits and other checks to my own daemon which calls execl phyton/twistd process.  Works ok.  I just need to add some smarter monitoring of bitcoind and twistd to my daemon.
Thinking of polling 'bitcoind getinfo'  or something like that, instead of sleep.

  
full member
Activity: 176
Merit: 100
Are you using a external database like mysql?
What section of the tute did you get the error in?
I havent seen the error before you might be able to get more answers in the pools forums there is thread there for stratum pool software.
full member
Activity: 137
Merit: 100
Thanks tiktok. This is the best tutorial related with bitcoin. I have bookmarked it.

During installation I got the following error message, please help me check it:

Code:
mypoolroot@ubuntu:~/git/stratum-mining$ twistd -ny launcher.tac -l -
2013-05-23 22:56:08,199 INFO mining # Connecting to bitcoind...
2013-05-23 22:56:08-0500 [-] Log opened.
2013-05-23 22:56:08-0500 [-] twistd 13.0.0 (/usr/bin/python 2.7.3) starting up.
2013-05-23 22:56:08-0500 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2013-05-23 22:56:22-0500 [-] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/application/app.py", line 402, in startReactor
            self.config, oldstdout, oldstderr, self.profiler, reactor)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/application/app.py", line 323, in runReactorWithLogging
            reactor.run()
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/base.py", line 1192, in run
            self.mainLoop()
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/base.py", line 1201, in mainLoop
            self.runUntilCurrent()
        --- ---
          File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-i686.egg/twisted/internet/base.py", line 824, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/home/mypoolroot/git/stratum-mining/mining/DBInterface.py", line 80, in run_import
            d = self.bitcoinrpc.getinfo()
        exceptions.AttributeError: DBInterface instance has no attribute 'bitcoinrpc'

2013-05-23 22:57:23,541 INFO mining # Connected to bitcoind - Ready to GO!

Pages:
Jump to: