Author

Topic: WARNING: Failed to download current consensus document: Failed to open directory (Read 1829 times)

newbie
Activity: 3
Merit: 0
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.
staff
Activity: 3458
Merit: 6793
Just writing some code
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
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
Only making a guess - but maybe you (currently) have no nodes it can connect to?

Also perhaps you might need to update the library?
newbie
Activity: 3
Merit: 0
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 ...
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
Bitcoin core isnt written in Java what programm are you using?
newbie
Activity: 3
Merit: 0
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?

Jump to: