bitsofproof / supernode

BOP Bitcoin Server API - superseded versions
http://bitsofproof.com
Apache License 2.0
126 stars 62 forks source link

supernode doesn't reconnect? #41

Closed keo closed 10 years ago

keo commented 10 years ago

I started hacking on the BoP server.

I installed it on OS X 10.8 and was able to successfully run it (thanks a lot Tamas for the help).

It started downloading the blockchain, but after sending my computer to sleep, then waking it up I realized the the server doesn't reconnect.

I tried reproducing the error: turned WiFi off, waited 5 minutes, then turned it back on, then started watching the data dir, but it didn't continue to grow.

Here's the output from the console:

$ java -server -Xmx2g -jar server/target/bitsofproof-server-1.1.4.jar production leveldb
0 [INFO] Main main bitsofproof supernode (c) 2013 bits of proof zrt.
498 [INFO] Main main Loading profile: production
499 [INFO] Main main Loading profile: leveldb
2960 [WARN] JtaTransactionManager main No JTA TransactionManager found: transaction suspension not available
16116 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1.99/' [70001] at seed.bitcoin.sipa.be/106.187.52.100:8333 Open connections: 1
20362 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/77.247.178.71:8333 Open connections: 2
28849 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bluematt.me/77.21.81.201:8333 Open connections: 4
28934 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/192.241.142.165:8333 Open connections: 4
32016 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.99/' [70001] at seed.bitcoin.sipa.be/176.9.104.178:8333 Open connections: 6
33111 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bluematt.me/60.29.146.165:8333 Open connections: 6
34782 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.99/' [70001] at bitseed.xf2.org/69.64.34.118:8333 Open connections: 7
43842 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1/' [70001] at bitseed.xf2.org/94.23.6.26:8333 Open connections: 9
43843 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bitcoin.dashjr.org/130.237.234.162:8333 Open connections: 9
48316 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bitcoin.dashjr.org/199.71.213.209:8333 Open connections: 10
260306 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.1.99/' at seed.bitcoin.sipa.be/106.187.52.100:8333
261123 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/188.122.92.135:8333 Open connections: 10
1714284 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at dnsseed.bluematt.me/77.21.81.201:8333
1715779 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/88.190.229.196:8333 Open connections: 10
1897722 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/88.190.229.196:8333
1898958 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.99/' [70001] at bitseed.xf2.org/62.75.216.13:8333 Open connections: 10
2084134 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.99/' at seed.bitcoin.sipa.be/176.9.104.178:8333
9002757 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at bitseed.xf2.org/94.23.6.26:8333
9002757 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.99/' at bitseed.xf2.org/69.64.34.118:8333
9002759 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/192.241.142.165:8333
9004405 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/77.247.178.71:8333
9005139 [WARN] P2P Peer connector Could not discover peers
9035201 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at dnsseed.bitcoin.dashjr.org/130.237.234.162:8333
9045328 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.99/' at bitseed.xf2.org/62.75.216.13:8333
9062437 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bitcoin.dashjr.org/199.71.213.209:8333
9121254 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/188.122.92.135:8333
9184156 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bluematt.me/60.29.146.165:8333

Is this a known issue or am I doing something wrong?

I would love to fix this and create a pull request, but I'm not a java guy unfortunately.

keo commented 10 years ago

UPDATE:

I left my computer open for this night for the blockchain to download. Today morning I checked it and it downloaded a considerable amount, but then stopped again (this time it was open, with network available).

It can be seen that as some peers go down, others come up, etc. - which is good. Then suddenly it says "P2P Peer connector Could not discover peers" and all peers disconnect.

I am using the top of the master branch.

log:

$ java -server -Xmx2g -jar server/target/bitsofproof-server-1.1.4.jar production leveldb
0 [INFO] Main main bitsofproof supernode (c) 2013 bits of proof zrt.
599 [INFO] Main main Loading profile: production
600 [INFO] Main main Loading profile: leveldb
3368 [WARN] JtaTransactionManager main No JTA TransactionManager found: transaction suspension not available
25671 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bitcoin.dashjr.org/91.143.93.12:8333 Open connections: 2
25730 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bluematt.me/81.234.125.218:8333 Open connections: 2
26826 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.1/' [70001] at seed.bitcoin.sipa.be/178.209.57.24:8333 Open connections: 3
29204 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.99/' [70001] at bitseed.xf2.org/62.75.216.13:8333 Open connections: 5
29219 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bitcoin.dashjr.org/199.241.185.243:8333 Open connections: 5
38301 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bitcoin.dashjr.org/37.28.154.85:8333 Open connections: 8
38305 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/62.150.15.100:8333 Open connections: 8
38308 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bluematt.me/203.146.170.50:8333 Open connections: 8
44803 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bluematt.me/189.193.154.64:8333 Open connections: 10
45681 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/76.173.49.161:8333 Open connections: 10
522094 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.99/' at bitseed.xf2.org/62.75.216.13:8333
526154 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/188.126.8.14:8333 Open connections: 10
775299 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bitcoin.dashjr.org/37.28.154.85:8333
778717 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/72.55.153.152:8333 Open connections: 10
792962 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.1/' at dnsseed.bitcoin.dashjr.org/91.143.93.12:8333
794946 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/106.187.88.144:8333 Open connections: 10
1120510 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.0/' [70001] at seed.bitcoin.sipa.be/188.165.12.185:8333 Open connections: 10
1124991 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/72.55.153.152:8333
1369152 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/106.187.88.144:8333
1385768 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/67.252.134.109:8333 Open connections: 10
1581280 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bluematt.me/189.193.154.64:8333
1585638 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/188.175.66.200:8333 Open connections: 10
1648329 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at seed.bitcoin.sipa.be/178.209.57.24:8333
1648331 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bluematt.me/203.146.170.50:8333
1648334 [INFO] BitcoinPeer Peer-thread-2 Disconnected 'null' at bitseed.xf2.org/94.23.6.26:8333
1648456 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/188.165.193.21:8333 Open connections: 10
1648775 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bluematt.me/108.20.119.130:8333 Open connections: 10
1835940 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/188.165.193.21:8333
1881032 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bitcoin.dashjr.org/78.46.66.196:8333 Open connections: 10
2223042 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/188.175.66.200:8333
2223477 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.0/' at seed.bitcoin.sipa.be/188.165.12.185:8333
2229466 [INFO] BitcoinPeer Peer-thread-2 Disconnected 'null' at bitseed.xf2.org/69.64.34.118:8333
2230604 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1/' [70001] at seed.bitcoin.sipa.be/91.230.193.146:8333 Open connections: 10
2231018 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bluematt.me/99.153.68.60:8333 Open connections: 10
2234045 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.1/' at dnsseed.bitcoin.dashjr.org/78.46.66.196:8333
2239350 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bitcoin.dashjr.org/199.231.188.248:8333 Open connections: 10
2340515 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/67.252.134.109:8333
2345271 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/173.192.48.138:8333 Open connections: 10
2417199 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.1/' at seed.bitcoin.sipa.be/91.230.193.146:8333
2419353 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.99/' [70001] at seed.bitcoin.sipa.be/208.78.101.60:8333 Open connections: 10
2529468 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.1/' at dnsseed.bluematt.me/81.234.125.218:8333
2529468 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/173.192.48.138:8333
2534567 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.1/' [70001] at seed.bitcoin.sipa.be/5.135.138.118:8333 Open connections: 10
2543682 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.1/' [70001] at seed.bitcoin.sipa.be/199.101.100.218:8333 Open connections: 10
2731829 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at seed.bitcoin.sipa.be/5.135.138.118:8333
2731829 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.1/' at seed.bitcoin.sipa.be/199.101.100.218:8333
2733419 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bluematt.me/192.163.239.14:8333 Open connections: 8
2735524 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/76.173.49.161:8333
2737448 [INFO] BitcoinPeer Peer-thread-2 Disconnected 'null' at dnsseed.bitcoin.dashjr.org/27.147.171.29:8333
2757954 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.1/' [70001] at seed.bitcoin.sipa.be/50.27.247.198:8333 Open connections: 10
2859864 [INFO] BitcoinPeer Peer-thread-1 Disconnected 'null' at dnsseed.bitcoin.dashjr.org/91.234.48.2:8333
2859867 [INFO] BitcoinPeer Peer-thread-1 Disconnected 'null' at dnsseed.bluematt.me/190.123.46.241:8333
2863293 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bluematt.me/86.111.82.19:8333 Open connections: 10
3043245 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/188.126.8.14:8333
3049865 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.1/' [70001] at dnsseed.bluematt.me/24.0.184.52:8333 Open connections: 10
3408865 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at dnsseed.bluematt.me/192.163.239.14:8333
3420615 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.2.2/' [70001] at seed.bitcoin.sipa.be/89.189.190.114:8333 Open connections: 10
3689682 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.99/' at seed.bitcoin.sipa.be/208.78.101.60:8333
3693813 [INFO] BitcoinPeer Peer-thread-1 Disconnected 'null' at bitseed.xf2.org/62.75.216.13:8333
3695090 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.1/' [70001] at bitseed.xf2.org/94.23.6.26:8333 Open connections: 10
3718581 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.1/' at dnsseed.bitcoin.dashjr.org/199.241.185.243:8333
3725845 [INFO] BitcoinPeer Peer-thread-1 Disconnected 'null' at bitseed.xf2.org/69.64.34.118:8333
3725845 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.3/' at dnsseed.bluematt.me/99.153.68.60:8333
3725845 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bluematt.me/108.20.119.130:8333
3725846 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.2.2/' at seed.bitcoin.sipa.be/89.189.190.114:8333
3725850 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.1/' at dnsseed.bluematt.me/24.0.184.52:8333
10754182 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.1/' at bitseed.xf2.org/94.23.6.26:8333
10770774 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.1.99/' [70001] at seed.bitcoin.sipa.be/199.91.172.222:8333 Open connections: 5
10771514 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/192.241.142.165:8333 Open connections: 6
10774833 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/119.141.126.131:8333 Open connections: 7
10779767 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.0/' [70001] at seed.bitcoin.sipa.be/188.165.12.185:8333 Open connections: 8
10782083 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/77.255.113.181:8333 Open connections: 9
10785010 [INFO] BitcoinPeer Peer-thread-0 Connection to '/Satoshi:0.8.3/' [70001] at dnsseed.bitcoin.dashjr.org/87.106.130.46:8333 Open connections: 10
10934949 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/119.141.126.131:8333
10948034 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.2.2/' [70001] at dnsseed.bitcoin.dashjr.org/60.29.146.163:8333 Open connections: 10
11100149 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bluematt.me/86.111.82.19:8333
11101997 [INFO] BitcoinPeer Peer-thread-1 Connection to '/Satoshi:0.8.3/' [70001] at seed.bitcoin.sipa.be/5.254.255.101:8333 Open connections: 10
11105658 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/62.150.15.100:8333
11105927 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.0/' [70001] at seed.bitcoin.sipa.be/87.149.162.138:8333 Open connections: 10
11115355 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bitcoin.dashjr.org/199.231.188.248:8333
11119545 [INFO] BitcoinPeer Peer-thread-2 Connection to '/Satoshi:0.8.99/' [70001] at seed.bitcoin.sipa.be/218.54.45.177:8333 Open connections: 10
17629532 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.2.2/' at dnsseed.bitcoin.dashjr.org/60.29.146.163:8333
17633302 [INFO] BitcoinPeer Peer-thread-3 Connection to '/Satoshi:0.8.1/' [70001] at seed.bitcoin.sipa.be/83.212.206.37:8333 Open connections: 10
17634690 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.99/' at seed.bitcoin.sipa.be/218.54.45.177:8333
21577055 [WARN] P2P Peer connector Could not discover peers
21577813 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.0/' at seed.bitcoin.sipa.be/188.165.12.185:8333
21586537 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/5.254.255.101:8333
21608740 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/192.241.142.165:8333
21668405 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.0/' at seed.bitcoin.sipa.be/87.149.162.138:8333
21783052 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.1/' at seed.bitcoin.sipa.be/83.212.206.37:8333
21896616 [INFO] BitcoinPeer Peer-thread-1 Disconnected '/Satoshi:0.8.3/' at dnsseed.bitcoin.dashjr.org/87.106.130.46:8333
21917062 [INFO] BitcoinPeer Peer-thread-0 Disconnected '/Satoshi:0.8.1.99/' at seed.bitcoin.sipa.be/199.91.172.222:8333
21926100 [INFO] BitcoinPeer Peer-thread-3 Disconnected '/Satoshi:0.8.3/' at seed.bitcoin.sipa.be/77.255.113.181:8333
22120132 [INFO] BitcoinPeer Peer-thread-2 Disconnected '/Satoshi:0.8.1/' at seed.bitcoin.sipa.be/50.27.247.198:8333
bitsofproof commented 10 years ago

The disconnects look like if they would have been timed out after long inactivity, then the "Could not discover peers" indicates that it did not get new hints from DNS seed. I guess this is some networking problem or operating system limit (sockets) exhausted. The initial chain download is quite greedy and wasteful with resources. Try restarting it. Switch on higher log level and rebuild if the problem persists to get more insight. Log level is in server/src/main/resources/log4j.properties

keo commented 10 years ago

Thanks for the reply.

Restarting helped it. Also starting it as a slave with an existing, already downloaded blockchain through bitcoind made it a lot faster to catch up.

This doesn't slow the network problem. Here's how to reproduce it:

  1. Start a fresh new server, wait 2 minutes
  2. Turn WiFi off (or unplug the cable), wait 5 minutes
  3. Turn WiFi back on
  4. The server can't get back online. Wait for another hour while fully online, but it still doesn't find its way back.

This is probably a bug.

On 2013.07.28., at 8:46, Bits of Proof notifications@github.com wrote:

The disconnects look like if they would have been timed out after long inactivity, then the "Could not discover peers" indicates that it did not get new hints from DNS seed. I guess this is some networking problem or operating system limit (sockets) exhausted. The initial chain download is quite greedy and wasteful with resources. Try restarting it. Switch on higher log level and rebuild if the problem persists to get more insight. Log level is in server/src/main/resources/log4j.properties

— Reply to this email directly or view it on GitHub.