-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build circuits because we don't have enough directory information #33
Comments
Same problem for me.
I guess that's the problem. Because using the tor bin on my OS, all requests are torified correctly. Subgraph should provide an easiest way to change this list instead of a hardcoded one. |
I guess it is also hardcoded in the official tor client. Buy there it is
updated regularly...
|
Does anyone know of an updated orchid lib that works on samsung s6. I read a post that say that samsung removed some of the cipher libs. I was wondering if anyone managed to find a solution to this problem. |
Are you sure those info/warning's are stopping the lib from working? I get the following as well 2017-05-29 16:10:29 .TorClient start That ends up downloading the latest consensus files, Besides, the HTTP/S requests that I'm doing appear to go through Tor (IP check) |
Hi munsuri. thank you for replying to me. The orchid library is the best one i have ever seen. Onionkit and orbot is no match for it. I have abondoned my current project because I got no reply earlier and used onionkit instead. I am guve up on irc and looking at alternative ways to post messages online. Its not ideal but I would still prefer the orchid lib. I wrote an android app that uses the orchid-0.9.1.jar library. I was trying to write a irc chat app that runs over the tor network for freespeech movement in my country because people in my country are being attacked for expressing their opinon openly. It was working initially but when I updated my phone it broke my app (app freezes at connecting to tor). Having realized this I assumed that it will also affect other versions of android. Someone on the forum mentioned in an issue that it has something to do with ciphers being removed. So I tried to download the orchid source and replace the current crypto lib with spongy castle but realized its a lot of work. I have basically given up on the orchid lib. If you can send me a sample project with (libs included) that works on the samsung s6 with the updates then I would be happy and i can test and verify it works on the samsung s6. You would make my day. Thanks. |
@nomadgy i do 100% agree with you! onionkit+orbot is not what i want either. we need a standalone java lib that creates proper tor circuits. anywhere within java, including android. |
nikiwaibel, thank you. i am glad to know i am not the only one who support the orchid lib want it to be the best. onionkut does not offer a raw socket connect like orchid does. That is what impresses me about orchid lib. Its simple implementation. I just wish someone can figure out how to fix it on android. I am glad to test it out on my samsung s6. |
What about orchid 1.0.0? It is the one bitcoinj was using till this commit so you can check whether it works for you or not. But I don't know if this project has official support for Android. The authors of this project don't seem to be very active so you would have to try. |
I tried that too as a last resort. The same problem. Can put up a sample project somewhere I can download that I can test. I tried looking at silver tunnel but it is confusing. Too many dep libraries. I am using eclipse as my ide. Maybe you can send me a sample project with silvertunnel that actually works. I still prefer orchid because it is simple and only one jar. |
I wonder why the tor project developers could not take over the orchid project and develop it. They should ensure that libs like orchid is maintained and supported in order to promote freedom of speech. That's the whole point of tor. They should take the lead since they built the network. |
I'm going to look into forking and developing features for orchid. I've already addressed the issues mentioned here and re-wrote the api to act like a traditional http client in a private project. |
hi geo-gs, thank you very much. you are a life saver. I am glad to get orchid working. I hope the socket interface is still available. I need that feature to tunnel an irc socket connection through tor. let me know when an update is available. thanks. |
hi geo-gs, You said that the issue was addressed. If you have a fix for the current orchid lib then can you direct me to it. I am talking about the crypto lib problem. I saw the following code in your project (TorClientFactory.java). Is this code block a built in feature. Is this the fix to the crypto problem?
I also noticed you are creating a proxy to the torclient. I will assume that is to be used for your http stuff.
In all, your project is good work. |
@nomadgy The However, if the ciphers don't exist at all then this won't work. I'd be surprised if they don't exist though because I think they are needed for https requests too. According to the source post I was following when implementing this (http://stackoverflow.com/a/22492582) an alternative would be to fork the project, bypass the JCE API, and include/use our own unlimited strength ciphers. |
hi geo-gs, I tried something similiar before and it did not work but I will take another look at your link. If I bypass the jce api then is the spongy castle crypto lib compatibale? Will give it a try and see if it works. Thanks. |
Hi everyone! I know this is quite old but hey, I will give it a shot. Is there any fix by now? If not, what is the best alternative library? |
Sorry to bother you @geo-gs but I'm still getting the same issue even with your latest commits on your fork. Is there a way to resolve this? |
I'm using the JDK 1.8.0. I've tried to setup the v1.0.0 from the official web site and updated by bitcoinj the v1.2.1, both stops on 10% and says
|
Hi everyone, I think I could fix several issues including this one, and now Orchid can build circuits again (as of today). Try my fork: https://github.com/geo-gs/Orchid Pre-built JAR is also available: Orchid-v1.0.0.jar |
@mhatta says it right, but the link is https://github.com/mhatta/Orchid |
Oops, thanks @jpelzer! Yes, my repo is https://github.com/mhatta/Orchid. Glad it works for you. |
Hi everyone, I don't know if this thread is still "alive" since its a bit old now, so ill just try. I've been trying to get a working tor connection with the Orchid lib, and It doesn't seem to be working. My network is not blocking tor (tried with the official tor browser and that connects within a couple of seconds) |
@AdvancedDataResearch Yes, I could reproduce your problem. Seems Orchid cannot build circuits again, possibly since the new stable release Tor 0.3.3.6 in May (and fully propagated recently)? I couldn't figure out why yet, but I will look into it. Help appreciated. |
@mhatta great thanks! I'll also try to pinpoint where it "breaks" |
@AdvancedDataResearch Seems finally I fixed Orchid again. Please try v1.0.3. |
@mhatta it's not working for me still. (i had to port my whole project to jdk 11 to get orchid to load at all)
https://hasteb.in/efaduyen.css This error keeps repeating forever. Also I'm getting this in the console, does this mean i can't access the web with it? only local sites? How do i fix that?
|
@Demoniaque Thanks for testing. Could you try https://github.com/mhatta/Orchid/releases/download/v1.0.3/Orchid-v1.0.3-test.jar ? I tested it with Debian's OpenJDK 10 and 11. I guess it also works with OpenJDK 8 if rebuilt with it. |
@mhatta that seems to be working, The tests I got from stackoverflow are returning positive, however there's a lot of console nag. In case its of any importance, here's my log followed by the tests: console: https://hasteb.in/pigozuga.xml Seems positive so far :) |
Okay, I released v1.0.4. |
@mhatta Another crash; https://hasteb.in/alazimaf.sql Not sure why this is happening, I accidentally ran a loop that made new tor clients like 11 times simultaneously and stopped it, now it doesn't want to start with just one of them at all. |
@Demoniaque Is that reproducible? I removed some ciphers from 1.0.5. Does 1.0.4 crash too? |
@mhatta https://hasteb.in/udecicah.sql 1.0.4 does not crash but cannot build circuits anymore. I'm not sure what's going on, maybe my state files are fucked up now or something? Is there a way to completely reset tor after .stop()ing it? EDIT: it finished with: |
@Demoniaque I'm not sure what's happening, maybe it's worth removing ~/.orchid and try again. |
@mhatta I deleted my .orchid folder and tried with both 1.0.4 and 1.0.5. I waited more than 5 minutes on 1.0.5 and then it worked finally. I'm not sure why it's so slow but it was definitely failing before deleted ./orchid. I guess it works now? Check the log and tell me if something stands out to you, just in case. but it seems to be working now. In my opinion, TorClient should automatically remove ./orchid when .stop() is called, but i don't know enough about it to have a say in it. I'll update this thread with any more problems. |
@Demoniaque Seems the response of Dir Auth servers is widely different. Some servers respond fast, others not (or just choked). Can you try removing ~/.orchid and set USE_COMPRESSION = true in src/main/java/com/demo/ApplicationProperties.java and rebuild? Orchid will download microdesc, etc. in the compressed format. |
@mhatta https://hasteb.in/foneyeyu.cs using version 1.0.6 and after deleting .orchid |
Is this reproducible? What's your platform? Java version? |
Hi All,
I start Orchid 1.0.0 and Orchid 1.2.1 but i got a message :
May 09, 2017 2:44:09 PM com.subgraph.orchid.TorClient start
INFO: Starting Orchid (version: 1.0.0)
May 09, 2017 2:44:09 PM com.subgraph.orchid.directory.DirectoryImpl loadFromStore
INFO: Loading cached network information from disk
May 09, 2017 2:44:09 PM com.subgraph.orchid.directory.DirectoryImpl loadFromStore
INFO: Loading certificates
May 09, 2017 2:44:09 PM com.subgraph.orchid.circuits.CircuitCreationTask checkCircuitsForCreation
INFO: Cannot build circuits because we don't have enough directory information
If you have any suggest for me in this issue ,Please, let me know !
Many thanks !
The text was updated successfully, but these errors were encountered: