Bitcoin Forum
December 17, 2017, 08:23:16 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: WARNING: Failed to download current consensus document: Failed to open directory  (Read 1687 times)
ask-dev
Newbie
*
Offline Offline

Activity: 3


View Profile
June 01, 2015, 08:50:27 AM
 #1

Hi All,

Since yesterday I'm getting following warning message when I start my bitcoin application.
Please note: This is happening for both MainNet and TestNet3. Until noon yesterday everything was working just fine when suddenly I see this warning and exception trace:

Code:
WARNING: Failed to download current consensus document: Failed to open directory circuit
java.lang.NullPointerException
at com.subgraph.orchid.circuits.path.CircuitNodeChooser.chooseNodeByBandwidthWeights(CircuitNodeChooser.java:109)
at com.subgraph.orchid.circuits.path.CircuitNodeChooser.chooseByBandwidth(CircuitNodeChooser.java:95)
at com.subgraph.orchid.circuits.path.CircuitNodeChooser.chooseDirectory(CircuitNodeChooser.java:45)
at com.subgraph.orchid.circuits.path.CircuitPathChooser.chooseDirectoryPath(CircuitPathChooser.java:52)
at com.subgraph.orchid.circuits.DirectoryCircuitImpl.choosePathForCircuit(DirectoryCircuitImpl.java:35)
at com.subgraph.orchid.circuits.CircuitImpl.choosePath(CircuitImpl.java:83)
at com.subgraph.orchid.circuits.CircuitCreationRequest.choosePath(CircuitCreationRequest.java:34)
at com.subgraph.orchid.circuits.CircuitBuildTask.run(CircuitBuildTask.java:43)
at com.subgraph.orchid.circuits.CircuitManagerImpl.tryOpenCircuit(CircuitManagerImpl.java:440)
at com.subgraph.orchid.circuits.CircuitManagerImpl.openDirectoryCircuit(CircuitManagerImpl.java:293)
at com.subgraph.orchid.directory.downloader.DirectoryDownloaderImpl.openCircuit(DirectoryDownloaderImpl.java:131)
at com.subgraph.orchid.directory.downloader.DirectoryDownloaderImpl.downloadCurrentConsensus(DirectoryDownloaderImpl.java:76)
at com.subgraph.orchid.directory.downloader.DirectoryDownloadTask$DownloadConsensusTask.run(DirectoryDownloadTask.java:178)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

What is wrong? It seems like some external factor and not my application code causing issues here and somehow consensus document is not getting parsed properly and no circuits are loaded. Any suggestions/recommendation to fix this?

1513542196
Hero Member
*
Offline Offline

Posts: 1513542196

View Profile Personal Message (Offline)

Ignore
1513542196
Reply with quote  #2

1513542196
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513542196
Hero Member
*
Offline Offline

Posts: 1513542196

View Profile Personal Message (Offline)

Ignore
1513542196
Reply with quote  #2

1513542196
Report to moderator
1513542196
Hero Member
*
Offline Offline

Posts: 1513542196

View Profile Personal Message (Offline)

Ignore
1513542196
Reply with quote  #2

1513542196
Report to moderator
shorena
Legendary
*
Offline Offline

Activity: 1400


ALL escrow is signed! https://keybase.io/verify


View Profile WWW
June 01, 2015, 09:08:26 AM
 #2

Bitcoin core isnt written in Java what programm are you using?

ask-dev
Newbie
*
Offline Offline

Activity: 3


View Profile
June 01, 2015, 12:02:20 PM
 #3

I am using Java and bitcoinj library (Java implementation).
Until yesterday there wasn't any issues with this library. And when I say until yesterday that actually means for last 4 months at least I've encountered no such issue. No updates I have made to application or library version etc.
It just doesn't work anymore.

Any clues ...
CIYAM
Legendary
*
Offline Offline

Activity: 1862


Ian Knowles - CIYAM Lead Developer


View Profile WWW
June 01, 2015, 12:10:10 PM
 #4

Only making a guess - but maybe you (currently) have no nodes it can connect to?

Also perhaps you might need to update the library?

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1246


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
June 01, 2015, 08:49:50 PM
 #5

It looks like that your program is trying to open a tor circuit to connect to the Tor network. It is trying to find the consensus document which is required to build a tor connection. If your program is supposed to connect through Tor, then something was implemented wrong. Otherwise, I'm not sure. You will probably get more help if you move this to the BitcoinJ subforum here: https://bitcointalk.org/index.php?board=138.0

ask-dev
Newbie
*
Offline Offline

Activity: 3


View Profile
June 02, 2015, 08:17:39 AM
 #6

Well, figured out the issue. It's not an issue with the application or bitcoinj library or even with tor library it's internally using. My government blocked Tor network yesterday Smiley so we can't connect to Tor from now on wards.

Removing the Tor connectivity fixes the issue for me.

Thanks for your help.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!