Skip to content
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

failed update: failed to find latest fs-repo-migrations: net/http: TLS handshake timeout #1773

Closed
pyDraco9 opened this issue Feb 25, 2021 · 10 comments · Fixed by #1826
Closed
Labels
kind/bug A bug in existing code (including security flaws) status/blocked Unable to be worked further until needs are met

Comments

@pyDraco9
Copy link

Please describe what you were doing when this error happened.

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.14.0
  • Electron Version: 11.2.3
  • Chrome Version: 87.0.4280.141

Error

TypeError: ctx.manualCheckForUpdates is not a function
    at click (E:\Program Files\IPFS Desktop\resources\app.asar\src\tray.js:216:30)
    at MenuItem.click (electron/js2c/browser_init.js:73:1683)
    at Object.a._executeCommand (electron/js2c/browser_init.js:81:2343)
@welcome

This comment has been minimized.

@lidel
Copy link
Member

lidel commented Feb 27, 2021

@yagamiraku are you able to attach logs?

  1. Find IPFS Desktop/*.log files (usually C:/Windows/Users/$user/AppData/Roaming/IPFS Desktop/)
  2. Attach error.log and combined.log to this issue.

@lidel lidel added area/windows Windows kind/bug A bug in existing code (including security flaws) need/author-input Needs input from the original author labels Feb 27, 2021
@pyDraco9
Copy link
Author

error.log

@lidel
Copy link
Member

lidel commented Feb 27, 2021

Thank you! I see it fails because it is unable to fetch fs-repo-migrations:

2021-02-27T04:26:15.323Z error: [ipfsd] start daemon Error: Initializing daemon...
go-ipfs version: 0.8.0
Repo version: 11
System version: amd64/windows
Golang version: go1.15.8
Found outdated fs-repo, migrations need to be run.
  => Looking for suitable fs-repo-migrations binary.
  => None found, downloading.
  => Failed to download fs-repo-migrations.
The migrations of fs-repo failed:
  failed to find latest fs-repo-migrations: http.DefaultClient.Do error: Get "https://ipfs.io/ipfs/QmYRLRDKobvg1AXTGeK5Xk6ntWTsjGiHbyNKhWfz7koGpa/fs-repo-migrations/versions": net/http: TLS handshake timeout
If you think this is a bug, please file an issue and include this whole log output.
  https://github.com/ipfs/fs-repo-migrations
 

 Error: failed to find latest fs-repo-migrations: http.DefaultClient.Do error: Get "https://ipfs.io/ipfs/QmYRLRDKobvg1AXTGeK5Xk6ntWTsjGiHbyNKhWfz7koGpa/fs-repo-migrations/versions": net/http: TLS handshake timeout 

I believe this is a new variant of #1576 but ot fails at TLS handshake level.

@yagamiraku
Are you running any firewall/antivirus software than could be responsible for intercepting web traffic?
Or behind something like The Great Firewall of China?

@lidel lidel changed the title can't start after auto update from 0.13.2 failed update: failed to find latest fs-repo-migrations: net/http: TLS handshake timeout Feb 27, 2021
@pyDraco9
Copy link
Author

pyDraco9 commented Feb 28, 2021

The Great Firewall, Yes.
I can't open that version URL with out proxy,
Have any way to use socks5 proxy?

Thank you for your patience

@lidel
Copy link
Member

lidel commented Mar 2, 2021

@yagamiraku sadly no built-in socks5 support in ipfs-desktop nor go-ipfs at this time. We are determined to improve the upgrade mechanism, so it does not break for users behind the Great Firewall, but for now you need to fix it manually.

I think the way to fix things for you is to:

  1. Manually download the latest version of migration tool (fs-repo-migrations_v1.7.1_windows-amd64.zip) using some proxy
  2. Add unpacked fs-repo-migrations.exe to your PATH – on Windows it means copying .exe to C:\Windows\system32\ or manually adding some other directory via this interface
  3. Quit IPFS Desktop and start it again

Let us know if this worked.

@pyDraco9
Copy link
Author

pyDraco9 commented Mar 3, 2021

It worked, thank you.

@lidel lidel pinned this issue Mar 26, 2021
@lidel
Copy link
Member

lidel commented May 4, 2021

FYSA go-ipfs 0.9.0 will ship soon and will include a fix (ipfs/kubo#8064) that leverages IPFS itself for fetching all the necessary fs-repo-migrations. Let's keep this issue open until ipfs-desktop ships with it.

@lidel lidel added status/blocked Unable to be worked further until needs are met and removed area/windows Windows need/author-input Needs input from the original author labels May 4, 2021
@lidel lidel mentioned this issue May 5, 2021
@lidel
Copy link
Member

lidel commented Jun 23, 2021

Migration issue should be solved since v0.16.0 which includes go-ipfs 0.9.0 that will attempt to fetch migration data over IPFS.

@timecool-cpu
Copy link

@yagamiraku sadly no built-in socks5 support in ipfs-desktop nor go-ipfs at this time. We are determined to improve the upgrade mechanism, so it does not break for users behind the Great Firewall, but for now you need to fix it manually.

I think the way to fix things for you is to:

  1. Manually download the latest version of migration tool (fs-repo-migrations_v1.7.1_windows-amd64.zip) using some proxy
  2. Add unpacked fs-repo-migrations.exe to your PATH – on Windows it means copying .exe to C:\Windows\system32\ or manually adding some other directory via this interface
  3. Quit IPFS Desktop and start it again

Let us know if this worked.
hello ^-^ I get the similar question but i cannot solve it.
I can open the version url like("https://ipfs.io/ipns/dist.ipfs.io/fs-repo-10-to-11/versions")
and I have download fs-repo-migrations,but I run that in term get error:

Could not get available repo migrations: http.DefaultClient.Do error: Get "https://ipfs.io/ipns/dist.ipfs.io/fs-repo-10-to-11/versions": dial tcp 54.89.135.129:443: connect: connection refused

my os is mac,and how can i solve that?tks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) status/blocked Unable to be worked further until needs are met
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants