Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Issues on working Bisq on Tails #2278
Yet for me this issue could nt be solved at all. I'm working on it for like 25 hours, but I'm a noob and couldn't do it. What did I do:
Now it seems we have this 4 options with this new version:
1-) I began with the easiest one, using with control port as long as
So I run
$./Bisq --torControlPort 9052
Outcome: No Use, Bisq crashes even before connecting to the Tor, exactly as before.
2-) I cannot telnet localhost on Tails either to learn the specifics of my network connection, so my attempt to telnet localhost did not do any good either.
3-) So I go on and open the torrc file on the shared user folder of Tails, this seemed me as the most liable option because the main torrc file of Tails is this afaik. So I type,
Now it's read here:
ControlSocket /var/run/tor/control GroupWritable RelaxDirModeCheck
Log notice syslog
So what do I do?
a-) now I cannot hexdump on this control.authcookie file to Authenticate it because Tails won't let me do it. And I guessed I did not need it either, because there was this safecookie option. So I type:
$ ./Bisq --torControlCookieFile='/var/run/tor/control.authcookie' --torControlUseSafeCookieAuth
I take: "error: Option(s) [torControlCookieFile] are unavailable given other options on the command line"
(((------ I also used these options with refering to directory '/var/run/tor-instances/amnesia/control.authcookie' and '/var/run/tor-instances/debian-tor/control.authcookie' as this autcookie is listed on '/usr/share/tor/tor-service-defaults-torrc-instances' as '/var/run/tor-instances/@@name@@/control.authcookie' ------ This was again with no use, unsurprisingly I guess.)))
b-) I'm a noob, I'm confused. Without a string in directory part, I try again:
$ ./Bisq --torControlCookieFile=/var/run/tor/control.authcookie --torControlUseSafeCookieAuth
c-) I torify it, Same result. But there is now also a line that reads: 1547727541 WARNING torsocks: [syscall] Unsupported syscall number 229. Denying the call (in tsocks_syscall() at syscall.c:488) So I decide to not to use torify
d-) Now it seems something missing with using this --torControlCookieFile command, it seems there is something I need to add, so I begin adding other options, first by binding the main torrc file so maybe it can add the missing parts:
$ ./Bisq --torControlCookieFile='/var/run/tor/control.authcookie' --torControlUseSafeCookieAuth --torrcFile='/usr/share/tor/tor-service-defaults-torrc'
Same error: error: Option(s) [torControlCookieFile] are unavailable given other options on the command line
e-) I thought there may be a socks problem and try to reconfigure the socks5's through the whitelisted addresses by Tails (Don't laugh, I really don't know what I'm doing at all, just trying to find blind-sighted, as my knowledge of ANY language of programming is none, zero, empty, null. But my want to use Bisq on Tails is great, and I just want to use Bisq on Tails as an end-user, that's all. Anyways, I do this:)
$ ./Bisq --torControlCookieFile='/var/run/tor/control.authcookie' --torControlUseSafeCookieAuth --socks5ProxyBtcAddress=127.192.0.1:9050 --socks5ProxyHttpAddress=127.192.0.2:9050
(Because on the riseup it says 127.192.0.0/10 are whitelisted as SOCKS5 so I thought this can maybe what this needs.)
Outcome: Same error.
***3-) Ok, then I start from scratch. Now I randomly try some other options on --help, and then I find when I use --useLocalhostForP2P=True , the program actually starts and GUI also starts! Cool. This was a fine finding. Then my above SOCKS5 attempts made some sense at least.
However, after running this, the GUI ran, but it could not connect to any node, however I wait. Connection refused
Okay, after this, now I stop writing the trial and errors I did, because despite now I spent many hours on this, and I tried many many things, the outcome has been more or less the same ("connection refused", that is). I combined almost all ./Bisq commands with --useLocalhostForP2P=True , I edited the GUI options, I edited TorControlPort and NodePorts to 9052, and 9051, and some other ports I don't remember but found that could work elsewhere (or on "ferm"), I connected through obfs4bridges to Tails but this time with only those using the port 9443, and tried to restrict all the ports Bisq uses to 9443, and tried combinations of Bisq port commands and GUI network options to work through that port, I tried to find some other Bisq nodes that do not work through the 8333 port, I tried to whitelist the 8333 port on Tails but I couldn't do that, and then I decided that I didn't want to mess with that. Instead from the GUI I tried different transport type bridges, then I added custom bridges, then I even added my local host as a bridge, I checked and unchecked connecting through the Tor from the GUI and; combined all these all above combinations of the combinations of combinations and then recombined them... Connections all refused. No nodes connected.
Now at some instances in these maybe I succeeded in somethings, because for this one time BTC price updated from 4000 to 3600 but I noticed this too late so I don't know, because I was too focusedon console ant its refusals of connections because it just didn't stop refusing connections at all, at any point.
And maybe in some cases I just couldn't connect any node because I am already connecting Tails through transport bridges ((obfs3 and obfs4, I am from a restrictive country, even normal bridges are restricted here) so these may also be related with that.
In sum, this was all I could do as a noob, and the result was the same: failure. I and people like me would really, really like that one of you knowledgeable fellas would add one easy step-to-step guide for using Bisq on Tails, because it's said now it's supported but it seems to be really hard to do, but there has to be some easy way that I just miss because I just don't have enough information. And also I would be glad if you also consider those who can only run onions through transport bridges.
With appreciation to all your works, and kind regards.
You have been on the correct way by using
If you want to use an external Tor instance, you always have to tell Bisq where to find the control port.
However, unless your Tor instance is open to everyone (which I do not assume is the case on Tails) you have to provide authentication information in addition to the control port:
That is the theory. I have been the guy adding this functionality to Bisq but I must confess that I only tested on my local Arch Linux installation. And there, it works like that.
Please let me know if that works for you. If not, please provide the log file output. Maybe we can uprank the priority then.
There might be some Gui support for external tor and its error messages eventually, however, right now, there is more important work to be done.
Hello freimair, thanks for the fast response. Appreciate your work!
Ok that was also one of the commands I tried, now I tried again.
First to note; permissions of the user amnesia is not enough to read authcookie file, so one needs to start tails with administrator mode enabled, and write the command from root.
In this way still, this does not work. Here what happens is that GUI file opens, goes through 1/4 2/4... steps and writes "connected to tor network", but it cannot connect to any seed. Probably because the port 8333 is blocked in Tails in default? Maybe there are also other reasons? Anyways, I am attaching the log file.
Thanks again for your attention and concern.
made authcookie readable:
added iptables rules to to connect to nodes:
and started bisq: