Lighthouse compiling freezes
Closed this issue · 5 comments
I went through the build process described in the "build from source" section. Including the building and installing of bitcoinj. But when I finally get to call "mvn clean package" I get stuck at some point. I waited for half an hour and it didn't move from there. I'm on Arch so I guessed some library could be outdated, so I updated the system and restarted and tried again, but the same happened.
Here are the last lines I see in the console before it "freezes":
08:57:26 74 DeterministicKeyChain.maybeLookAhead: 6 keys needed for M/0H/0 = 0 issued + 5 lookahead size + 1 lookahead threshold - 0 num children
08:57:26 74 DeterministicKeyChain.maybeLookAhead: Took 5 msec
08:57:26 74 DeterministicKeyChain.maybeLookAhead: 6 keys needed for M/0H/1 = 0 issued + 5 lookahead size + 1 lookahead threshold - 0 num children
08:57:26 74 DeterministicKeyChain.maybeLookAhead: Took 6 msec
08:57:26 74 PeerGroup$7.run: Starting ...
08:57:27 74 PeerGroup.discoverPeers: Peer discovery took 0msec and returned 0 items
08:57:27 76 DiskManager.loadAll: Updating all data from disk
08:57:27 76 DiskManager.loadAll: ... disk data loaded
08:57:27 76 DirectoryWatcher.<init>: Starting directory watch service for [/tmp/lighthouse-dmtest1033995400389864811]
08:57:27 76 LighthouseBackend.lambda$new$39: Backend initialized ...
08:57:27 1 PeerGroup.connectTo: Attempting connection to [127.0.0.1]:2001 (0 connected, 1 pending, 0 max)
08:57:27 81 Peer.connectionOpened: Announcing to /127.0.0.1:2001 as: /bitcoinj:0.13-SNAPSHOT/
08:57:27 81 Peer.processVersionMessage: Connected to 127.0.0.1: version=70001, subVer='/bitcoinj:0.13-SNAPSHOT/', services=0x1, time=2015-04-10 20:57:26, blocks=1
08:57:27 81 PeerGroup.handleNewPeer: [127.0.0.1]:2001: New peer (1 connected, 0 pending, 1 max)
08:57:27 81 PeerGroup.setDownloadPeer: Setting download peer: [127.0.0.1]:2001
08:57:27 1 PeerGroup.connectTo: Attempting connection to [127.0.0.1]:2002 (1 connected, 1 pending, 1 max)
08:57:27 82 Peer.connectionOpened: Announcing to /127.0.0.1:2002 as: /bitcoinj:0.13-SNAPSHOT/
08:57:27 82 Peer.processVersionMessage: Connected to 127.0.0.1: version=70002, subVer='/bitcoinj:0.13-SNAPSHOT/', services=0x3, time=2015-04-10 20:57:27, blocks=1
08:57:27 82 PeerGroup.handleNewPeer: [127.0.0.1]:2002: New peer (2 connected, 0 pending, 2 max)
08:57:30 76 DiskManager.lambda$addPledgePath$32: Adding pledge path /tmp/lh-droptest3313919358852670340
08:57:30 76 DiskManager.writePledgePaths: Writing /tmp/lighthouse-dmtest1033995400389864811/projects.txt
08:57:30 76 DiskManager.loadPledge: Attempting to load /tmp/lh-droptest3313919358852670340/dropped-pledge2.lighthouse-pledge
08:57:30 76 DiskManager.tryLoadPledge: Found pledge on disk we don't have the project for: /tmp/lh-droptest3313919358852670340/dropped-pledge2.lighthouse-pledge
08:57:30 76 DiskManager.loadPledge: Attempting to load /tmp/lh-droptest3313919358852670340/dropped-pledge1.lighthouse-pledge
08:57:30 76 DiskManager.tryLoadPledge: Found pledge on disk we don't have the project for: /tmp/lh-droptest3313919358852670340/dropped-pledge1.lighthouse-pledge
08:57:30 76 DirectoryWatcher.<init>: Starting directory watch service for [/tmp/lh-droptest3313919358852670340, /tmp/lighthouse-dmtest1033995400389864811]
Thanks.
I've seen this error too, it's caused by a unit test. An easy workaround is to compile without testing:
mvn clean package -Dmaven.test.skip=true
Recently a fresh clone from github won't build for me anymore, mvn clean
package -Dmaven.test.skip=true throwing:
[ERROR] /home/lighthouse/common/src/main/java/lighthouse/protocol/LHUtils.java:[280,30]
cannot find symbol
symbol: method hash(byte[])
location: class org.bitcoinj.core.Sha256Hash
full log:
http://pastebin.com/raw.php?i=zBBLjMGF
On Fri, Apr 10, 2015 at 10:31 PM, digital-dreamer notifications@github.com
wrote:
I've seen this error too, it's caused by a unit test. An easy workaround
is to compile without testing:
mvn clean package -Dmaven.test.skip=true—
Reply to this email directly or view it on GitHub
#182 (comment)
.
@lightlist - you need to get the latest version of bitcoinj
. 23 days ago (in 85df86c) @mikehearn changed it to use the latest API with "hash" instead of "create". The hash method wasn't in the old bitcoinj. That's exactly the error you are getting.
thanks!
On Fri, Apr 10, 2015 at 11:49 PM, digital-dreamer notifications@github.com
wrote:
@lightlist https://github.com/lightlist - you need to get the latest
version of bitcoinj. 23 days ago (in 85df86c
85df86c)
@mikehearn https://github.com/mikehearn changed it to use the latest
API with "hash" instead of "create". The hash method wasn't in the old
bitcoinj. That's exactly the error you are getting.—
Reply to this email directly or view it on GitHub
#182 (comment)
.
Sorry the build is such a pain. The flaky unit tests are because of the stupid file watching code I have in the backend - destroying it with fire is on my todo list.
I've pushed a new snapshot of bitcoinj to Maven, though I'm going to release 0.13 soon so then it won't be needed to get git master snapshots of bitcoinj.