Skip to content

The built-in IDE updater does not work with my snapshot build #843

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

Closed
kittaakos opened this issue Feb 17, 2022 · 2 comments
Closed

The built-in IDE updater does not work with my snapshot build #843

kittaakos opened this issue Feb 17, 2022 · 2 comments
Assignees
Labels
conclusion: resolved Issue was resolved topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

Describe the bug

I did not notice any IDE malfunction but I see Error: Cannot find channel "stable-mac.yml" update info errors in the backend logs. It could be an electron-update issue (#797) or an infra problem and the updater cannot access the S3 bucket.

Click for the full stacktrace
Error: Error: Cannot find channel "stable-mac.yml" update info: HttpError: 404 
"method: GET url: https://downloads.arduino.cc/arduino-ide/stable-mac.yml?noCache=1fs4p9v6r\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
  "date": "Thu, 17 Feb 2022 21:27:14 GMT",
  "content-type": "text/html",
  "cf-ray": "6df219357bf47276-HAM",
  "etag": "W/\"2e388576eefd92a15967868d5f566f29\"",
  "last-modified": "Fri, 12 Apr 2019 12:31:08 GMT",
  "vary": "Accept-Encoding",
  "via": "1.1 dcfe318aa268be733627ea7884246be4.cloudfront.net (CloudFront)",
  "cf-cache-status": "MISS",
  "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
  "x-amz-cf-id": "KL8WMTjO19jeBjIs5fgrsxpTaHNpJVy93_P7qQx2RooM00kFjT4XIg==",
  "x-amz-cf-pop": "MUC50-P1",
  "x-amz-replication-status": "COMPLETED",
  "x-amz-version-id": "VqbLlYOrmhwZcBiGDmQhZPztJf8PNquh",
  "x-cache": "Error from cloudfront",
  "set-cookie": [
    "__cf_bm=eS4hAbXDhb7yM6jeYydoqwF2WMUznAL18Uz1bLZcR2M-1645133234-0-AYTyZn0S4Zo9TobH+hIPFerjz9jxandik1dObz9LuRWoXMG2eZLDyfKa9mfWBxj4vC59CNrKFkg2ac+XWGVbWQU=; path=/; expires=Thu, 17-Feb-22 21:57:14 GMT; domain=.arduino.cc; HttpOnly; Secure; SameSite=None"
  ],
  "server": "cloudflare",
  "content-encoding": "gzip",
  "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
}
    at createHttpError (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:14:12)
    at ElectronHttpExecutor.handleResponse (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:116:20)
    at ClientRequest.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:82:26)
    at ClientRequest.emit (node:events:394:28)
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:105:6816)
    at SimpleURLLoaderWrapper.emit (node:events:394:28)
    at Object.newError (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js:47:19)
    at GenericProvider.getLatestVersion (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/out/providers/GenericProvider.js:27:50)
    at async MacUpdater.getUpdateInfoAndProvider (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/out/AppUpdater.js:298:19)
    at async MacUpdater.doCheckForUpdates (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/out/AppUpdater.js:312:24)
    at async IDEUpdaterImpl.checkForUpdates (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/ide-updater/ide-updater-impl.js:40:52)
    at async JsonRpcProxyFactory.onRequest (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:127:24)
Request checkForUpdates failed with error: Cannot find channel "stable-mac.yml" update info: HttpError: 404 
"method: GET url: https://downloads.arduino.cc/arduino-ide/stable-mac.yml?noCache=1fs4p9v6r\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
  "date": "Thu, 17 Feb 2022 21:27:14 GMT",
  "content-type": "text/html",
  "cf-ray": "6df219357bf47276-HAM",
  "etag": "W/\"2e388576eefd92a15967868d5f566f29\"",
  "last-modified": "Fri, 12 Apr 2019 12:31:08 GMT",
  "vary": "Accept-Encoding",
  "via": "1.1 dcfe318aa268be733627ea7884246be4.cloudfront.net (CloudFront)",
  "cf-cache-status": "MISS",
  "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
  "x-amz-cf-id": "KL8WMTjO19jeBjIs5fgrsxpTaHNpJVy93_P7qQx2RooM00kFjT4XIg==",
  "x-amz-cf-pop": "MUC50-P1",
  "x-amz-replication-status": "COMPLETED",
  "x-amz-version-id": "VqbLlYOrmhwZcBiGDmQhZPztJf8PNquh",
  "x-cache": "Error from cloudfront",
  "set-cookie": [
    "__cf_bm=eS4hAbXDhb7yM6jeYydoqwF2WMUznAL18Uz1bLZcR2M-1645133234-0-AYTyZn0S4Zo9TobH+hIPFerjz9jxandik1dObz9LuRWoXMG2eZLDyfKa9mfWBxj4vC59CNrKFkg2ac+XWGVbWQU=; path=/; expires=Thu, 17-Feb-22 21:57:14 GMT; domain=.arduino.cc; HttpOnly; Secure; SameSite=None"
  ],
  "server": "cloudflare",
  "content-encoding": "gzip",
  "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
}
    at createHttpError (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:14:12)
    at ElectronHttpExecutor.handleResponse (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:116:20)
    at ClientRequest.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:82:26)
    at ClientRequest.emit (node:events:394:28)
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:105:6816)
    at SimpleURLLoaderWrapper.emit (node:events:394:28) Error: Cannot find channel "stable-mac.yml" update info: HttpError: 404 
"method: GET url: https://downloads.arduino.cc/arduino-ide/stable-mac.yml?noCache=1fs4p9v6r\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
  "date": "Thu, 17 Feb 2022 21:27:14 GMT",
  "content-type": "text/html",
  "cf-ray": "6df219357bf47276-HAM",
  "etag": "W/\"2e388576eefd92a15967868d5f566f29\"",
  "last-modified": "Fri, 12 Apr 2019 12:31:08 GMT",
  "vary": "Accept-Encoding",
  "via": "1.1 dcfe318aa268be733627ea7884246be4.cloudfront.net (CloudFront)",
  "cf-cache-status": "MISS",
  "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
  "x-amz-cf-id": "KL8WMTjO19jeBjIs5fgrsxpTaHNpJVy93_P7qQx2RooM00kFjT4XIg==",
  "x-amz-cf-pop": "MUC50-P1",
  "x-amz-replication-status": "COMPLETED",
  "x-amz-version-id": "VqbLlYOrmhwZcBiGDmQhZPztJf8PNquh",
  "x-cache": "Error from cloudfront",
  "set-cookie": [
    "__cf_bm=eS4hAbXDhb7yM6jeYydoqwF2WMUznAL18Uz1bLZcR2M-1645133234-0-AYTyZn0S4Zo9TobH+hIPFerjz9jxandik1dObz9LuRWoXMG2eZLDyfKa9mfWBxj4vC59CNrKFkg2ac+XWGVbWQU=; path=/; expires=Thu, 17-Feb-22 21:57:14 GMT; domain=.arduino.cc; HttpOnly; Secure; SameSite=None"
  ],
  "server": "cloudflare",
  "content-encoding": "gzip",
  "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
}
    at createHttpError (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:14:12)
    at ElectronHttpExecutor.handleResponse (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:116:20)
    at ClientRequest.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/httpExecutor.js:82:26)
    at ClientRequest.emit (node:events:394:28)
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:105:6816)
    at SimpleURLLoaderWrapper.emit (node:events:394:28)
    at Object.newError (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js:47:19)
    at GenericProvider.getLatestVersion (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/out/providers/GenericProvider.js:27:50)
    at async MacUpdater.getUpdateInfoAndProvider (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/out/AppUpdater.js:298:19)
    at async MacUpdater.doCheckForUpdates (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/electron-updater/out/AppUpdater.js:312:24)
    at async IDEUpdaterImpl.checkForUpdates (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/ide-updater/ide-updater-impl.js:40:52)
    at async JsonRpcProxyFactory.onRequest (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:127:24)

This is the message of the HTTP 404:

Please double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.

To Reproduce
Steps to reproduce the behavior:

  1. Open the IDE from a terminal. On macOS it is open /Applications/Arduino\ IDE.app/Contents/MacOS/Arduino\ IDE
  2. Check the error logs in the terminal

Expected behavior
Maybe the app could log/warn: update failed.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: macOS 11.6.3 (20G415)
  • Version:
Version: 2.0.0-rc4-snapshot.7b5c9d7-snapshot-7b5c9d7
Date: 2022-02-17T15:10:36.531Z
CLI Version: 0.21.0 [10107d24]

Copyright © 2022 Arduino SA

Additional context
Add any other context about the problem here.

@kittaakos kittaakos added the type: imperfection Perceived defect in any part of project label Feb 17, 2022
@kittaakos kittaakos changed the title The built-in IDE updater does not work with my dev build The built-in IDE updater does not work with my snapshot build Feb 17, 2022
@kittaakos
Copy link
Contributor Author

Maybe related: 77b4306

@per1234
Copy link
Contributor

per1234 commented Mar 3, 2022

Thanks @kittaakos. The check on the "stable" update channel was failing because the necessary "channel update info file" for that channel is only uploaded on release and there had not been one since the time the updater was added. Now that the 2.0.0-rc4 release has been made, the error you reported should no longer occur.

Due to even the release versions using the pre-release syntax (e.g., 2.0.0-rc4 < 2.0.0-rc4-snapshot.7b5c9d7-snapshot-7b5c9d7), we still won't get a genuine update offer from the "stable" channel until the next release comes out (2.0.0-rc5 > 2.0.0-rc4), but the "nightly" update channel ("arduino.ide.updateChannel": "nightly") is already offering daily updates.

It is also now easy to produce artificial stable channel updates using this feature: #865

@per1234 per1234 closed this as completed Mar 3, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants