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

Error fetching: exceeded number of retries #2023

Closed
ckevinroque opened this issue Mar 11, 2022 · 1 comment · Fixed by #2030
Closed

Error fetching: exceeded number of retries #2023

ckevinroque opened this issue Mar 11, 2022 · 1 comment · Fixed by #2030
Labels
kind/bug A bug in existing code (including security flaws) need/author-input Needs input from the original author need/triage Needs initial labeling and prioritization

Comments

@ckevinroque
Copy link

👉️ Please describe what you were doing when this error happened.

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.20.1
  • Electron Version: 17.1.0
  • Chrome Version: 98.0.4758.102

Error

Error: Initializing daemon...
go-ipfs version: 0.12.0
Repo version: 12
System version: amd64/windows
Golang version: go1.16.12
Found outdated fs-repo, migrations need to be run.
Looking for suitable migration binaries.
Need 1 migrations, downloading.
Downloading migration: fs-repo-11-to-12...
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/versions"
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/versions"
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/versions"
Error fetching: exceeded number of retries. last error was http.DefaultClient.Do error: Get "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/versions": dial tcp: lookup ipfs.io: no such host
Fetching with IPFS: "fs-repo-11-to-12/versions"
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/v1.0.2/fs-repo-11-to-12_v1.0.2_windows-amd64.zip"
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/v1.0.2/fs-repo-11-to-12_v1.0.2_windows-amd64.zip"
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1X
@ckevinroque ckevinroque added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Mar 11, 2022
@ipfs ipfs deleted a comment from welcome bot Mar 14, 2022
@lidel
Copy link
Member

lidel commented Mar 14, 2022

It seems we are failing HTTP and then retrying with IPFS when fetching /versions and then try to fetch actual file over HTTP again.

The error message is cut, so it is hard to tell if this failed due to real error or is a false-negative, but base don similar reports from #2018 and #2027 i think it is a racy bug in error handling logic. We should:

  • ensure the last two lines are always sent with error report like this one
  • avoid string matching, and have a catch-all error handling that engages when go-ipfs daemon pid points at dead/missing process

@ckevinroque are you able to attach your combined.log and error.log?

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) need/author-input Needs input from the original author need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants