Bitcoin Forum

Bitcoin => Electrum => Topic started by: StrongCore on January 20, 2020, 11:30:36 AM



Title: Update check failed?
Post by: StrongCore on January 20, 2020, 11:30:36 AM
Hello,

Why I started to get this error? https://prnt.sc/qq7ac4 before was saying something like you have last ver or no update found.

Thanks


Title: Re: Update check failed?
Post by: nc50lc on January 20, 2020, 11:44:13 AM
Must be a connection issue.

If you do not want to receive any update notification, you can disable it in the settings.
Click "Tools"->"Preferences"->Click "General" Tab-> and disable "Automatically check for software updates".


Title: Re: Update check failed?
Post by: StrongCore on January 20, 2020, 12:08:58 PM
Must be a connection issue.

If you do not want to receive any update notification, you can disable it in the settings.
Click "Tools"->"Preferences"->Click "General" Tab-> and disable "Automatically check for software updates".

No no, I check that Manual and I started to get this error in this month. Idk why?!


Title: Re: Update check failed?
Post by: mocacinno on January 20, 2020, 12:19:41 PM
The url where electrum fetches the latest version is hardcoded:

https://github.com/spesmilo/electrum/blob/a3e522efd968686a32cbf715e4ac91f531c5deca/electrum/gui/qt/update_checker.py#L22

Can you try opening https://electrum.org/version using your normal browser? You should be prompted to download the file 'version'. If you open this file using an ascii editor (like notepad++, vim,...) you should see a json string containing (amonst others) the current latest version.

If this doesn't work, you know what to investigate... If this works properly, the problem must be something else, for example: are you using the tor proxy?


Title: Re: Update check failed?
Post by: StrongCore on January 20, 2020, 08:50:31 PM
The url where electrum fetches the latest version is hardcoded:

https://github.com/spesmilo/electrum/blob/a3e522efd968686a32cbf715e4ac91f531c5deca/electrum/gui/qt/update_checker.py#L22

Can you try opening https://electrum.org/version using your normal browser? You should be prompted to download the file 'version'. If you open this file using an ascii editor (like notepad++, vim,...) you should see a json string containing (amonst others) the current latest version.

If this doesn't work, you know what to investigate... If this works properly, the problem must be something else, for example: are you using the tor proxy?

Yeah I know I have last ver but I just want to know why i get update failed? When I was click (before) on check for updates I get message > you have last update.

I just use VPN not tor and I yea i have 3.3.8 ver


Title: Re: Update check failed?
Post by: BitMaxz on January 20, 2020, 11:49:13 PM
Yeah I know I have last ver but I just want to know why i get update failed? When I was click (before) on check for updates I get message > you have last update.

I just use VPN not tor and I yea i have 3.3.8 ver

It might be because of your VPN that is why you are getting update fail/error.

How about trying to disable the VPN to test it might be blocking your Electrum from requesting on Electrum server that is why you are getting update failed. So disabling VPN might solve your issue.


Title: Re: Update check failed?
Post by: nc50lc on January 21, 2020, 04:10:22 AM
Must be a connection issue.
-snip-
No no, I check that Manual and I started to get this error in this month. Idk why?!
You should've said it along with other info earlier in the OP :)

I've tried the manual update (help->Check for updates) and mine also failed to connect to the update server.
Unlike you, I'm not using a VPN and I have also tried disabling the firewall and other versions, namely: 3.3.7 and 3.3.8.
Electrum on the other hand works fine.

I opened a new issue: https://github.com/spesmilo/electrum/issues/5899 (https://github.com/spesmilo/electrum/issues/5899) (Update Check Failed #5899)
Hopefully, they'll fix it up asap.


Title: Re: Update check failed?
Post by: AltcoinBuilder on January 21, 2020, 08:42:51 AM
can you open https://electrum.org/version with your browser? if you can't, it could be from electrum server that blacklist and block your IP so change your IP and try again.


Title: Re: Update check failed?
Post by: nc50lc on January 21, 2020, 08:53:03 AM
Me or the OP? Me, I've tried it and it prompted to download the version file.
I forgot to mention it here but I have included it in issue #5899. The details are in the link I provided.


Title: Re: Update check failed?
Post by: HCP on January 21, 2020, 09:52:01 AM
I've tried the manual update (help->Check for updates) and mine also failed to connect to the update server.

Hopefully, they'll fix it up asap.
Weird... it's working perfectly here:
https://talkimg.com/images/2023/11/15/zLesJ.png


Anyone else having issues? ???



Title: Re: Update check failed?
Post by: Pmalek on January 21, 2020, 09:53:58 AM
It is recommended to download Electrum software from the official site anyways so why the need to check for updates from within the wallet? 3.3.8 is the latest version, if you want to check if there is an update just visit the official site or their github and get the info from there.

I hope it never gets fixed, that way we will use the official sources to check what is new. 


Title: Re: Update check failed?
Post by: StrongCore on January 21, 2020, 04:05:42 PM
Yeah I know I have last ver but I just want to know why i get update failed? When I was click (before) on check for updates I get message > you have last update.

I just use VPN not tor and I yea i have 3.3.8 ver

It might be because of your VPN that is why you are getting update fail/error.

How about trying to disable the VPN to test it might be blocking your Electrum from requesting on Electrum server that is why you are getting update failed. So disabling VPN might solve your issue.

I was using more then vpn before and was working fine and this same vpn what i use now was working fine with it. I will try without vpn and reply again later


Title: Re: Update check failed?
Post by: StrongCore on January 21, 2020, 04:09:49 PM
It is recommended to download Electrum software from the official site anyways so why the need to check for updates from within the wallet? 3.3.8 is the latest version, if you want to check if there is an update just visit the official site or their github and get the info from there.

I hope it never gets fixed, that way we will use the official sources to check what is new.  

just using original site > https://electrum.org/ to download it and I like to check Manual i have last ver or not.


Title: Re: Update check failed?
Post by: akhjob on January 21, 2020, 07:09:38 PM
Weird... it's working perfectly here:
https://i.imgur.com/BBbVs30.png

Anyone else having issues? ???


Just checked for updates manually, it works fine for me too, with and without VPN. Maybe, the issue was resolved very quickly.

Edit: Just checked the issues page, they have asked to enable debug logging and check the logs.

How to enable debug logging?
On Linux/Mac, if you start Electrum from terminal, you can specify the -v flag, to enable debug logs in the terminal (to stderr). This option does not work on Windows.

Logging to disk is also available since version 3.3.5, and this works on Windows too.

Using the Qt GUI, go to Tools menu > Preferences > General tab, and tick "Write logs to file". After restarting Electrum, debug logs will be written to the /logs folder inside the :ref:`datadir <datadir>`.


Title: Re: Update check failed?
Post by: BitMaxz on January 21, 2020, 08:16:36 PM
Anyone else having issues? ???


There is no issue with me either.
I tried all working versions including portable one and the standalone versions of Electrum but everything works fine to me.

It looks like the problem is in DNS there might be an issue on their DNS that might cause Electrum blocked from requesting the latest data from the Electrum server.



@nc50lc Try to change your DNS to 8.8.8.8 and 8.8.4.4 then update here if it solves your issue.


Title: Re: Update check failed?
Post by: nc50lc on January 22, 2020, 03:04:13 AM
@nc50lc Try to change your DNS to 8.8.8.8 and 8.8.4.4 then update here if it solves your issue.
I was using Cloudflare's DNS prior, then changed to Google's, restarted the router and the issue still persists.
Based from other's replies, I think this is an issue with my and OP's ISP, router, PC or other network setting; not Electrum.

@StrongCore I'll post it here if I found the issue.


Title: Re: Update check failed?
Post by: pooya87 on January 22, 2020, 05:20:13 AM
i am getting the same timeout exception too but the difference is that for some reason i also can not open the link in my browser for some reason (same timeout ERR_TIMED_OUT error in browser too).
maybe it is a cloudflare thing since the IP address i am getting from pinging it (104.18.61.178) belongs to cloudflare.


Title: Re: Update check failed?
Post by: StrongCore on January 24, 2020, 03:40:14 PM
@nc50lc Try to change your DNS to 8.8.8.8 and 8.8.4.4 then update here if it solves your issue.
I was using Cloudflare's DNS prior, then changed to Google's, restarted the router and the issue still persists.
Based from other's replies, I think this is an issue with my and OP's ISP, router, PC or other network setting; not Electrum.

@StrongCore I'll post it here if I found the issue.

Okay, thanks.


Title: Re: Update check failed?
Post by: nc50lc on January 25, 2020, 02:48:24 AM
Turns out it isn't a problem with my or your connection, and seems to be a delay that exceeded the default timeout.
There's nothing to configure in my PC/network since I'm positive that it's relatively fast.
If you can't directly browse to https://electrum.org/version, it could be a different issue.

Following the issue (#5899 (https://github.com/spesmilo/electrum/issues/5899#issuecomment-577303894)), SomberNight have given a simple command to execute in the console.
There's no reply since then.

You can try that and if you like, contribute your results.


Title: Re: Update check failed?
Post by: pooya87 on January 25, 2020, 04:31:08 AM
There's nothing to configure in my PC/network since I'm positive that it's relatively fast.

even if it was super slow it still shouldn't matter because you aren't downloading a big file. to be exact you are receiving 166 bytes only!
the problem is either with the connection on user's end or the server that is not answering and possibly blocks the connection with cloudflare in the way!

by the way i still can't access electrum.org from my PC although if i use my phone (different network) it easily opens up.


Title: Re: Update check failed?
Post by: nc50lc on February 05, 2020, 04:54:54 AM
After I saw SomberNight's reply on the reported issue, I have installed and run the development version 4.0.0a0 and tried to check if the "manual update" will work.
And yes, it does:
https://i.imgur.com/yixq8ej.png

Take note, it's for the next release, not the current official version 3.3.8.