Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
September 28, 2020, 05:18:04 PM |
|
Greetings all, This is my first time in this forum, as I have tried everything else before capitulating to posting in a public forum. It is my hope that by posting this, I will not only be able to solve my problem, but maybe help somebody else that might be experiencing similar difficulties. I have been following the guide by @stadicus ( https://stadicus.github.io/RaspiBolt/ ), and I am at the electrum section. For some reason, I can not get it to connect via proxy. I have followed the guide exactly, and think I have executed every required step. I have done everything from changing the server and proxy settings to going into the command line and console and manually inputting code. I have even manually changed the config files in %appdata%. I have tried the latest version 4.0.3, and even downgraded the version to the one in the guide as a last ditch attempt. Still, nothing. This is obviously a crucial step, as connecting via Tor and using a proxy is your protection from compromising yourself. It is an absolutely critical, non-negotiable step if you do not want to risk getting exposed. If anybody can provide some assistance or point me in the right direction, it would be greatly appreciated! This is one of the last hurdles (hopefully) in my project, so I would like to figure this out ASAP. If you need me to provide any more information, please, let me know! Thanks in advance, Corayee
|
|
|
|
jackg
Copper Member
Legendary
Offline
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
|
|
September 28, 2020, 06:14:14 PM |
|
Can you screenshot the proxy settings in electrum? It looks right on the guide afaik. You could try doing netstat -rn in the command line once you've run electrum to check the state of the port. Eg try netstat -rn | grep="9050" Feel free to not trust a random person on the Internet and look at what that code does via a search engine or your Linux build help docs.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
September 28, 2020, 09:30:33 PM Last edit: November 15, 2023, 12:51:48 AM by HCP |
|
You might also want to try using the "Write logs to file" option in "Tools -> Preferences -> General": The log files will be generated in the "%AppData%\Electrum\logs" folder. Hopefully, it will show the error causing Electrum to be unable to connect to your TOR proxy.
|
|
|
|
Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
September 29, 2020, 02:20:30 AM |
|
Hi all, I reinstalled Electrum 4.0.3 to get the most up-to-date version of the software so I can follow along with your help. I recreated my test wallet (nothing in it to make sure I'm not playing around with real funds yet) and attempted to connect to my Raspberry Pi using the device IP and port 50002. It seems like Electrum will not even connect to the Pi anymore (red light on connection) and I can't figure out why. The service works just fine when I check "Select server automatically", the light turns green. Here's a screenshot of the client in action: https://i.imgur.com/3D88yev.jpgNot sure what is going wrong here, would appreciate some further assistance. Thanks!
|
|
|
|
nc50lc
Legendary
Offline
Activity: 2632
Merit: 6510
Self-proclaimed Genius
|
|
September 29, 2020, 07:04:25 AM |
|
The service works just fine when I check "Select server automatically", the light turns green. Here's a screenshot of the client in action: Not sure what is going wrong here, would appreciate some further assistance. Thanks! There's not much info from that image aside from a non-connected state Electrum. It's best if you can follow HCP's guide above to get the debug.log in order to see what's the actual issue. Just carefully censor the parts which you do not want to share for privacy reasons.
|
|
|
|
jackg
Copper Member
Legendary
Offline
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
|
|
September 29, 2020, 10:12:01 AM |
|
Is the pi running the server not expecting a tor proxy for connections? I don't think you can just connect to it directly if so?
Also is the server you're trying to connect to fully synchronised? If you've connected to an external one it might be expecting a block height >= that servers block height.
|
|
|
|
BitMaxz
Legendary
Offline
Activity: 3472
Merit: 3200
Playbet.io - Crypto Casino and Sportsbook
|
|
September 29, 2020, 10:40:28 PM |
|
Maybe the Tor server he trying to use might not active or offline. Did you install the Tor locally? You must run the Tor service first through command. Check this video below just found it on Youtube. - Electrum over Tor
|
|
|
|
bob123
Legendary
Offline
Activity: 1624
Merit: 2504
|
|
October 01, 2020, 12:18:34 PM |
|
Did you check the log files? There must be an issue somewhere (either client- or server side).
You can start troubleshoot the issue by checking your client logs (electrum) and then, if it just says it couldn't connect, check the logs from your server.
|
|
|
|
Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
October 03, 2020, 10:00:53 PM |
|
Hi everyone, So I uninstalled Electrum and restarted the Electrum section of the Stadicus guide to see if I missed anything (any command line entries or improper file writing). Still ending up with no connection. I followed HCP's advice and found the debug.log in the %appdata% folder. Everything seems to be working up until this error comes up: https://i.imgur.com/YCA8LfP.jpgIn response to BitMaxz, the Tor proxy I am using appears to be online - Tor has been locally installed on my computer - not sure how to run it first through command, I simply open the Tor client prior to opening Electrum. In response to bob123, I'm not sure how to check the logs from my server. My apologies for the lack of experience with command line and technical jargon, I am new to all of this. Hoping this info can help you help me. Thanks!
|
|
|
|
Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
October 05, 2020, 03:40:08 AM |
|
Looks like I am running into a problem where Electrum (on my computer) will not connect to my Raspberry Pi via its IP. I think this is related to the issue I am having - I keep getting hit with a red light, even without a proxy on. Not sure how to proceed, it worked before but I have reinstalled Electrum several times at this point. In relation to my issues with the Tor proxy, I tried typing in "tor" on the SSH command line prompt to my Pi and was greeted with this snippet of information. Maybe this is related to my problem? https://i.imgur.com/ebGWPWv.jpg
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
October 05, 2020, 06:23:09 AM |
|
That seems to indicate that the electrs "hidden service" may not be running properly due to the directory permissions... either you need to change the user, or the directory permissions for your current user. Possibly something has gone astray during your setup and subsequent troubleshooting etc.
|
|
|
|
BitMaxz
Legendary
Offline
Activity: 3472
Merit: 3200
Playbet.io - Crypto Casino and Sportsbook
|
|
October 05, 2020, 04:00:05 PM |
|
It's a tor issue or you might put set it to different port as you can see on the logs it show 9150 that's why the error shows (Host unreachable). Check this guide on how to install the Tor here https://stadicus.github.io/RaspiBolt/raspibolt_22_privacy.html#tor-projectAfter install modify the Tor configuration to make sure both Electrum use the same port. $ sudo nano /etc/tor/torrc uncomment: ControlPort 9051 CookieAuthentication 1
add: CookieAuthFileGroupReadable 1 Then restart the Tor to apply the config. $ sudo systemctl restart tor The guides is under than link above. Now make sure Electrum is use the same port.
|
|
|
|
Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
October 06, 2020, 04:32:46 AM |
|
Hi, I checked the Tor configuration and all seems correct. Restarted Tor and ran the commands to start, enable, and start Tor through service. Typed in journalctl -xe and was met with this. https://i.imgur.com/nufXw7v.jpgAll seems like it's running okay, no apparent issues. However, even without using proxy, I still cannot connect to my raspberry Pi via IP address (showing red light on Electrum). The proxy is working through public servers when I have the Tor browser open on my computer, but still does not work when I use my Pi's IP.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
October 06, 2020, 07:20:16 AM |
|
Is there a firewall of some description running on the Pi? If you're not able to connect, and there is nothing showing in the "electrs" debugging that shows connection attempts, it's possible the connection is being blocked.
|
|
|
|
mocacinno
Legendary
Offline
Activity: 3598
Merit: 5277
https://merel.mobi => buy facemasks with BTC/LTC
|
|
October 06, 2020, 07:47:47 AM Last edit: October 06, 2020, 08:05:22 AM by mocacinno |
|
I quickly browsed this topic, and the RaspiBolt documentation... And i just wanted to ask: is there any point in making your setup so complicated? The more layers you add, the more devices, the more daemons, the more firewalls, proxy's, certificates,... The bigger the odds you mess up and expose yourself... You could just run tor on your local machine, then connect electrum trough your local tor proxy and have really good privacy. Sure, you'll be using public electrum nodes, but you'd be connecting over tor. An other option would be to switch to wasabi, which has the tor bundle built-in, and it has an out-of-the-box coinjoin application, which makes it easy to gain privacy after receiving funds. I know this isn't the answer to your question, i just want to tell you there might be an easyer sollution for many use-cases instead of configuring a pi as electrs node, making it a hidden service and connecting a local electrum client to your electrs node over tor... This being said, i'd probably start troubleshooting by: - testing out your electrs node over the clearnet... If it doesn't work over the clearnet, you know it'll never work as a hidden service
- disabling your firewall to test for firewall issues. If it works when you disable your firewall service, but doesn't when you re-enable it, it's a firewall issue
- "service tor status". Is it active? Maybe even setup a second hidden service like nginx, so you have an "easy" testcase
- try connecting to your electrs hidden service using telnet (yes, telnet is still a thing... I use it quite often when debugging a setup)
- letting somebody else test your electrs node, connecting trough your hidden service. IF somebody else can use your hidden service, but you cannot, it's a client issue... Afterwards, you can just remove tor's keyfiles and let it generate new ones, the tester will never be able to expose you this way
PS/EDIT: I gave you post a merit, please stick around on bitcointalk... We need more people that are discussing topic like this one, and less people that come here to spam ico's
|
|
|
|
Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
October 06, 2020, 01:14:44 PM |
|
Funny you say that... I thought to myself the other day that this seemed quite complicated for what was supposed to be a rather simple setup. As this is just the wallet, I would probably be fine settling for something like a Wasabi. Is that the consensus best alternative, and do I download it to the pi or my local desktop? Only reason I went with Electrum in the first place is because it was in the guide and not cutting any corners seemed like the right thing to do. However, if there is no real difference in privacy, I would much rather use the easier, more efficient, updated wallet. I am just about over troubleshooting lol Out of curiosity, is there perhaps a discord forum for bitcoin talk? I am online much more often over there. Regardless, I appreciate all the guidance! P.s. Thank you for the first merit. Happy to stick around as one of the good guys
|
|
|
|
mocacinno
Legendary
Offline
Activity: 3598
Merit: 5277
https://merel.mobi => buy facemasks with BTC/LTC
|
|
October 06, 2020, 01:28:14 PM |
|
about Wasabi: it would probably fit best on your desktop, eventough you could run it on a rPi aswell (you'd have to make sure x forewarding is enabled tough...). Hidden-service related, wasabi is basically "the same" as if you'd run tor on your local machine and configured electrum to use your local tor proxy. The big difference is that wasabi actually eliminates the need to run tor seperately (tor is just part of wasabi's setup), a second "plus" on wasabi's side is that routing packets over tor is default for wasabi, and not default for electrum (so if you start wasabi for the first time, tor will already be enabled, whilst if you run electrum for the first time without adding command line parameters or additional config, it won't route it's packages over tor). You could configure wasabi not to route it's packages over the tor network, and you can configure electrum to route it's packages over the tor network... There's just a difference in default behaviour. And since the default behaviour of wasabi is to route it's packages over tor, it has tor included in it's bundle, making your life a little bit easyer Now, don't get me wrong... I use electrum all the time, it's a great wallet (eventough you have to make sure you're downloading it from the correct repo, and double check the signature), it's just that wasabi comes with better privacy features out of the box. This doesn't make wasabi safer, faster or more feature-rich... It just makes it more private without having to jump trough a couple of extra hoops). btw: a big plus on electrum's side is that you can also run it as a daemon (without gui). That way it's easyer to run on your rPi without having to mess with x forewarding... And electrum is also older, so it *should* theoretically be vetted more than wasabi... But both wallets are open-source, and both have been vetted by the community... So i wouldn't worry about this to much...
|
|
|
|
BitMaxz
Legendary
Offline
Activity: 3472
Merit: 3200
Playbet.io - Crypto Casino and Sportsbook
|
|
October 06, 2020, 07:09:12 PM |
|
Is there a firewall of some description running on the Pi? If you're not able to connect, and there is nothing showing in the "electrs" debugging that shows connection attempts, it's possible the connection is being blocked. Or your router has a firewall enabled? Try to set up your router/modem and disable your firewall it might be one of the reasons why the Electrum can't connect to your Tor. Or your Electrum is not set up properly. Much better bring your issue here https://github.com/Stadicus/RaspiBolt/issuesSo that other raspibolt users can help with your issue or start again and maybe you forgot something. Start from this guide and follow it properly - https://github.com/Stadicus/RaspiBolt/blob/master/raspibolt_20_pi.md#L249
|
|
|
|
mocacinno
Legendary
Offline
Activity: 3598
Merit: 5277
https://merel.mobi => buy facemasks with BTC/LTC
|
|
October 07, 2020, 12:11:21 PM |
|
--snip-- A bit off-topic, but does Wasabi support ARM devices? I don't see single mention about it on their github or their documentation.
As for X forwarding problem, you could use VNC as alternative, even though it demands higher bandwidth.
I didn't check if it was arm compatible tbh... But apparently, there are problems with dependencies: https://github.com/zkSNACKs/WalletWasabi/issues/2189I just (wrongfully) assumed you'd be able to run wasabi on an rpi... So, basically linux or windows on x64 or mac
|
|
|
|
Corayee (OP)
Newbie
Offline
Activity: 16
Merit: 8
|
|
October 07, 2020, 12:58:25 PM Last edit: October 07, 2020, 01:17:44 PM by Corayee |
|
For my use case, I am trying to determine the level of privacy that is actually necessary.
FYI, I am building a website and would like to have the capacity to accept BTC and lightning network payments. Not sure if that changes anything, but the main factors I am looking for are safety, privacy, and efficiency. With that in mind, do you think going through the extra hurdles to get electrum up and running is worth it? Or is it just not worth the extra effort? I plan on moving the coins to a hardware wallet most of the time anyways, so this would just be for sending/receiving and temporary short-term storage. I thought that having electrum available on multiple devices might prove beneficial, but maybe I am mistaken or overvaluing the utility it provides? I already have Wasabi downloaded, and am very close to just using that and calling it a day.
As for Discord, yes I am aware it is not the most privacy savvy. However, I do have 2fa enables and take the necessary precautions that are available to protect myself. I have no problems hanging out on this Bitcoin talk forum, however, I assume I will be much less active on here and check it much less frequently than I would a discord server. As we all know, there does come a point where privacy compromises convenience..
|
|
|
|
|