Bitcoin Forum
November 18, 2024, 12:24:27 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: WARNING: Failed to download current consensus document: Failed to open directory  (Read 1827 times)
ask-dev (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


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?

shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


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

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

Im not really here, its just your imagination.
ask-dev (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


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: 1890
Merit: 1086


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: 3542
Merit: 6886


Just writing some code


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 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


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:  

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