Can anyone give me a hint on what might be going wrong with my server. Any time it catches up with the blockchain, it crashes. The exception error message suggests that bind() fails, however I can't see the reason for that happening, as all ports assigned in the configuration file are unused. Here is what I get in the log file:
[21/04/2014-12:37:56] Database version 3
[21/04/2014-12:37:56] Blockchain height 296956
[21/04/2014-12:37:56] UTXO tree root hash: 469a5e3385265bc67a0f9479cc26f012d31b6544728148faf594140411d964d3
[21/04/2014-12:37:56] Coins in database: 1267617386701994
[21/04/2014-12:37:56] catching up missing headers: 296934 296956
[21/04/2014-13:24:55] catch_up: block 297000 (4.029s 2814.156s) 36ce5c0b18d7b84140e4b87c8d0334046c267c024d1ef51fe34b43573a97d54f
[21/04/2014-14:04:53] Blockchain is up to date.
[21/04/2014-14:05:40] utxo not in database; postponing mempool update
[21/04/2014-14:05:40] Memory pool initialized.
[21/04/2014-14:05:40] TCP server started on port 50001
[21/04/2014-14:05:40] SSL server started on port 50002
[21/04/2014-14:05:40] Stopping Stratum
Exception in thread Thread-8:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/home/bitcoin/src/electrum/server/transports/stratum_tcp.py", line 168, in run
sock.bind((self.host, self.port))
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 99] Cannot assign requested address
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/home/bitcoin/src/electrum/server/transports/stratum_tcp.py", line 168, in run
sock.bind((self.host, self.port))
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 99] Cannot assign requested address
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/home/bitcoin/src/electrum/server/transports/stratum_http.py", line 375, in run
self.server = StratumThreadedServer((self.host, self.port))
File "/home/bitcoin/src/electrum/server/transports/stratum_http.py", line 294, in __init__
SocketServer.TCPServer.__init__(self, addr, requestHandler, bind_and_activate)
File "/usr/lib64/python2.7/SocketServer.py", line 419, in __init__
self.server_bind()
File "/usr/lib64/python2.7/SocketServer.py", line 430, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 99] Cannot assign requested address
Exception in thread Thread-10:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/home/bitcoin/src/electrum/server/transports/stratum_http.py", line 370, in run
self.server = StratumThreadedServer((self.host, self.port), self.certfile, self.keyfile)
File "/home/bitcoin/src/electrum/server/transports/stratum_http.py", line 327, in __init__
SSLTCPServer.__init__(self, addr, certfile, keyfile, requestHandler, bind_and_activate)
File "/home/bitcoin/src/electrum/server/transports/stratum_http.py", line 263, in __init__
self.server_bind()
File "/usr/lib64/python2.7/SocketServer.py", line 430, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 99] Cannot assign requested address
[21/04/2014-14:05:50] Stopping timer
[21/04/2014-14:05:50] Closing database...
[21/04/2014-14:05:50] Database is closed
[21/04/2014-14:05:50] Electrum Server stopped