Bitcoin Forum
May 13, 2024, 11:33:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: stratum - exceptions.TypeError: %d format: a number is required, not str  (Read 2245 times)
surfer43 (OP)
Sr. Member
****
Offline Offline

Activity: 560
Merit: 250


"Trading Platform of The Future!"


View Profile
January 23, 2014, 03:31:52 PM
Last edit: January 23, 2014, 05:45:28 PM by surfer43
 #1

I get an exception after starting
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/root/stratum-mining/mining/__init__.py", line 33, in setup
    bitcoin_rpc = BitcoinRPCManager()
  File "/root/stratum-mining/lib/bitcoin_rpc_manager.py", line 27, in __init__
    settings.COINDAEMON_TRUSTED_PASSWORD)
  File "/root/stratum-mining/lib/bitcoin_rpc.py", line 18, in __init__
    self.bitcoin_url = 'http://%s:%d' % (host, port)
exceptions.TypeError: %d format: a number is required, not str


and then this repeats while stratum is running:

2014-01-23 11:42:26,673 DEBUG DB_Mysql # Connecting to DB
2014-01-23 11:42:26,674 DEBUG DBInterface # DBInterface.do_import called. force: no, queue size: 0
2014-01-23 11:42:41,678 DEBUG DBInterface # run_import_thread current size: 0
2014-01-23 11:42:41,679 DEBUG DBInterface # DB_Mysql_Vardiff INIT


Log opened.
twistd 11.1.0 ( 2.7.3) starting up.
reactor class: twisted.internet.epollreactor.EPollReactor.
ERROR mining # Failed Connect(HTTP 500 or Invalid JSON), Check Username and Password!

Is this because of
COINDAEMON_TRUSTED_USER = '...'
or
COINDAEMON_TRUSTED_PASSWORD = '...'
in conf/config.py
?
And what should I put for those values?
1715643231
Hero Member
*
Offline Offline

Posts: 1715643231

View Profile Personal Message (Offline)

Ignore
1715643231
Reply with quote  #2

1715643231
Report to moderator
1715643231
Hero Member
*
Offline Offline

Posts: 1715643231

View Profile Personal Message (Offline)

Ignore
1715643231
Reply with quote  #2

1715643231
Report to moderator
1715643231
Hero Member
*
Offline Offline

Posts: 1715643231

View Profile Personal Message (Offline)

Ignore
1715643231
Reply with quote  #2

1715643231
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
HellDiverUK
Hero Member
*****
Offline Offline

Activity: 1246
Merit: 501



View Profile
January 23, 2014, 04:37:02 PM
 #2

Err...the username you set up in the coin demon.  The names of the variables kinda give it away.
surfer43 (OP)
Sr. Member
****
Offline Offline

Activity: 560
Merit: 250


"Trading Platform of The Future!"


View Profile
January 23, 2014, 04:47:56 PM
Last edit: January 23, 2014, 05:46:10 PM by surfer43
 #3

Err...the username you set up in the coin demon.  The names of the variables kinda give it away.
I already figured that out  Embarrassed

anyway

now I get

File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/root/stratum-mining/mining/__init__.py", line 33, in setup
    bitcoin_rpc = BitcoinRPCManager()
  File "/root/stratum-mining/lib/bitcoin_rpc_manager.py", line 27, in __init__
    settings.COINDAEMON_TRUSTED_PASSWORD)
  File "/root/stratum-mining/lib/bitcoin_rpc.py", line 18, in __init__
    self.bitcoin_url = 'http://%s:%d' % (host, port)
exceptions.TypeError: %d format: a number is required, not str

and then this repeats while stratum is running:

2014-01-23 11:42:26,673 DEBUG DB_Mysql # Connecting to DB
2014-01-23 11:42:26,674 DEBUG DBInterface # DBInterface.do_import called. force: no, queue size: 0
2014-01-23 11:42:41,678 DEBUG DBInterface # run_import_thread current size: 0
2014-01-23 11:42:41,679 DEBUG DBInterface # DB_Mysql_Vardiff INIT

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!