The Cypress App could not be downloaded. I'm not under a proxy network.
[19:54:19] Downloading Cypress 85% 57s [title changed]
[19:54:22] Downloading Cypress 86% 53s [title changed]
[19:54:25] Downloading Cypress 87% 49s [title changed]
[19:54:29] Downloading Cypress 88% 45s [title changed]
[19:54:31] Downloading Cypress 89% 41s [title changed]
[19:54:33] Downloading Cypress 90% 37s [title changed]
[19:54:35] Downloading Cypress 91% 33s [title changed]
[19:54:37] Downloading Cypress 92% 29s [title changed]
[19:54:38] Downloading Cypress 92% 30s [title changed]
[19:54:40] Downloading Cypress 93% 26s [title changed]
[19:54:48] Downloading Cypress 94% 22s [title changed]
[19:55:09] Downloading Cypress 94% 24s [title changed]
[19:55:16] Downloading Cypress 95% 20s [title changed]
[19:55:18] Downloading Cypress 96% 16s [title changed]
[19:55:24] Downloading Cypress 97% 12s [title changed]
[19:55:29] Downloading Cypress 98% 8s [title changed]
[19:55:34] Downloading Cypress 99% 4s [title changed]
[19:55:38] Downloading Cypress 100% 0s [title changed]
[19:55:41] Downloading Cypress 100% 0s [failed]
[19:55:41] → The Cypress App could not be downloaded.
Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
Otherwise, please check network connectivity and try again:
----------
URL: https://download.cypress.io/desktop/4.2.0?platform=darwin&arch=x64
Error: Corrupted download
Expected downloaded file to have checksum: 66ae5ac2fb9e10f0d055928a12cb3fb1a25493a4d39699f0c638e9c2f1f9b02d2c5eb24a8ed0555ac9bb31512ea65d45cddf7a728c26807a97698e20fb23ab53
Computed checksum: 6474dd287f8416cbf2f146352cf4b7fc0fbd806d049fe6fb8497cbfbcd6c95e21374539074308f713ac6c8d9d81ccb7281aede4c9fb70b7ea56081d2d9d756f3
Expected downloaded file to have size: 172922629
Computed size: 172922629
----------
Platform: darwin (19.3.0)
Cypress Version: 4.2.0
The Cypress App could not be downloaded.
Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
Otherwise, please check network connectivity and try again:
----------
URL: https://download.cypress.io/desktop/4.2.0?platform=darwin&arch=x64
Error: Corrupted download
Expected downloaded file to have checksum: 66ae5ac2fb9e10f0d055928a12cb3fb1a25493a4d39699f0c638e9c2f1f9b02d2c5eb24a8ed0555ac9bb31512ea65d45cddf7a728c26807a97698e20fb23ab53
Computed checksum: 6474dd287f8416cbf2f146352cf4b7fc0fbd806d049fe6fb8497cbfbcd6c95e21374539074308f713ac6c8d9d81ccb7281aede4c9fb70b7ea56081d2d9d756f3
Expected downloaded file to have size: 172922629
Computed size: 172922629
----------
Installation should be successful.
Clone repo: https://github.com/Joel-Raju/webiny-js
Run yarn install
+1,
...
Platform: linux (Debian - 9.12)
Cypress Version: 4.2.0
The Cypress App could not be downloaded.
Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
Otherwise, please check network connectivity and try again:
----------
URL: https://download.cypress.io/desktop/4.2.0?platform=linux&arch=x64
Error: Corrupted download
Expected downloaded file to have checksum: 1ce71878a421d42793f9f90e9481cf7c02a17bf29f29f75328ab1c988f207ae2c58b5e9cd7afaf8cd678e47d05a8dd010412170f66266092aedfd73c7d27db82
Computed checksum: 5282c102f4fa05d7b11b1c81f77aba82d00e3ba6447d0703de332cfaac3a7d79710935b533fc81e578d5a405ef476ab740d9304700a491affc2f46ce86234182
Expected downloaded file to have size: 169529202
Computed size: 169529202
...
Can you try downloading a previous version of Cypress like 4.1.0? I'd like to narrow down if this is a newly introduced issue.
On my side it fails with both 4.1.0 and 4.2.0, in an Alpine docker image (node:12-alpine
).
I'm using Yarn, with workspaces by the way.
This may be another expression of this issue: https://github.com/cypress-io/cypress/issues/4595 Where you can have multiple versions of Cypress downloaded at the same time - causing a corrupt download? This can happen in Yarn workspaces sometimes.
Yep, that was my issue... Several modules depend on Cypress in my project:
cypress
itself@types/cypress
@types/testing-library__cypress
I obviously can't remove the typings so I ended using the CHILD_CONCURRENCY trick in my CI (I don't know why but I don't have any issue locally).
Really looking forward to a proper fix on the Cypress side, as you proposed in #4595 👌
Thanks for your help @jennifer-shehane!
Same issue with 3.4.1
There's no proxy. We run our tests on 30 separate Kubernetes pods in parallel. Sometimes none of the pods fail, sometimes 5 of them fail, or 7 or 29. Seems to be fairly random.
We're using this image: cypress/browsers:node12.13.0-chrome80-ff74
```Output:
[14:20:41] Downloading Cypress [started]
[14:20:56] Downloading Cypress [failed]
The Cypress App could not be downloaded.
Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
Otherwise, please check network connectivity and try again:
URL: https://download.cypress.io/desktop/3.4.1?platform=linux&arch=x64
Error: Corrupted download
Expected downloaded file to have checksum: 1d83944c77bc9628909ea095ea15e85dd2c2e728a3440330c42eb49cc4f3260a9276ee9f176db7f462cf8031c42744bdd3f459927f2f4c00828b969b5cb8df7a
Computed checksum: 12c982973bd9cf3a563653b5746b89a0c397b22b5f79e6ae7651fa1783cb7c892547325b7af5cbba6e3a73885aff2a5dcba4ff6e12d33bda13122318c3042651
Expected downloaded file to have size: 138660520
Computed size: 138660520
Platform: linux (Debian - 10)
Cypress Version: 3.4.1
```
@davidfm Are you using yarn workspaces? See this comment: https://github.com/cypress-io/cypress/issues/6789#issuecomment-604899385
Closing as duplicate of #4595
Edit: linked to correct issue
I had the same issue on a monorepo using lerna.
I was able to fix it by changing the install step on CI to:
yarn install --frozen-lockfile
And also changing the yarn.lock
file manually for the dependency @types/testing-library__cypress
:
"@types/testing-library__cypress@^5.0.3":
version "5.0.5"
resolved "https://registry.yarnpkg.com/@types/testing-library__cypress/-/testing-library__cypress-5.0.5.tgz#ca2a23eb03c48ecb50f411b3d5e62a218ac6b03b"
integrity sha512-FXRE98G+jkru7Dag6dFWs3M90BGMzDEBzox8Uro+7M70UcB1YVUetNVRyqYShFDLIDv+z3ZjV4ZeUmdgPuuyNw==
dependencies:
"@types/testing-library__dom" "*"
- cypress "*"
+ cypress "4.5.0"
Edit:
I hadn't noticed that there was two cypress@
declared on yarn.lock
: [email protected]
and cypress@*
.
Changed the *
to be the same as the 4.5.0
:
diff --git a/yarn.lock b/yarn.lock
index 209895d..b2acfa4 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2504,7 +2504,7 @@
integrity sha512-FXRE98G+jkru7Dag6dFWs3M90BGMzDEBzox8Uro+7M70UcB1YVUetNVRyqYShFDLIDv+z3ZjV4ZeUmdgPuuyNw==
dependencies:
"@types/testing-library__dom" "*"
- cypress "4.5.0"
+ cypress "*"
"@types/testing-library__dom@*":
version "7.0.2"
@@ -4263,50 +4263,7 @@ cypress-plugin-retries@^1.5.2:
dependencies:
chalk "^3.0.0"
-cypress@*:
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/cypress/-/cypress-4.7.0.tgz#3ea29bddaf9a1faeaa5b8d54b60a84ed1cafa83d"
- integrity sha512-Vav6wUFhPRlImIND/2lOQlUnAWzgCC/iXyJlJjX9nJOJul5LC1vUpf/m8Oiae870PFPyT0ZLLwPHKTXZNdXmHw==
- dependencies:
- "@cypress/listr-verbose-renderer" "0.4.1"
- "@cypress/request" "2.88.5"
- "@cypress/xvfb" "1.2.4"
- "@types/sinonjs__fake-timers" "6.0.1"
- "@types/sizzle" "2.3.2"
- arch "2.1.1"
- bluebird "3.7.2"
- cachedir "2.3.0"
- chalk "2.4.2"
- check-more-types "2.24.0"
- cli-table3 "0.5.1"
- commander "4.1.0"
- common-tags "1.8.0"
- debug "4.1.1"
- eventemitter2 "4.1.2"
- execa "1.0.0"
- executable "4.1.1"
- extract-zip "1.7.0"
- fs-extra "8.1.0"
- getos "3.1.4"
- is-ci "2.0.0"
- is-installed-globally "0.1.0"
- lazy-ass "1.6.0"
- listr "0.14.3"
- lodash "4.17.15"
- log-symbols "3.0.0"
- minimist "1.2.5"
- moment "2.24.0"
- ospath "1.2.2"
- pretty-bytes "5.3.0"
- ramda "0.26.1"
- request-progress "3.0.0"
- supports-color "7.1.0"
- tmp "0.1.0"
- untildify "4.0.0"
- url "0.11.0"
- yauzl "2.10.0"
-
[email protected]:
+cypress@*, [email protected]:
version "4.5.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-4.5.0.tgz#01940d085f6429cec3c87d290daa47bb976a7c7b"
integrity sha512-2A4g5FW5d2fHzq8HKUGAMVTnW6P8nlWYQALiCoGN4bqBLvgwhYM/oG9oKc2CS6LnvgHFiKivKzpm9sfk3uU3zQ==
Closing as duplicate of #6789
That's this issue. Where is the actual original issue? Having the same problem when running in Github Actions.
EDIT: I guess it's this: #6953
@kschiffer Sorry, duplicate of #4595
Most helpful comment
This may be another expression of this issue: https://github.com/cypress-io/cypress/issues/4595 Where you can have multiple versions of Cypress downloaded at the same time - causing a corrupt download? This can happen in Yarn workspaces sometimes.