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

[BUG] yarn install results in Error: unexpected end of file during archive extraction (Zlib.zlibOnError) #5066

Closed
jgehrcke opened this issue Jan 20, 2021 · 2 comments

Comments

@jgehrcke
Copy link

[2021-01-20T12:15:19Z] yarn --frozen-lockfile
yarn install v1.22.10
[1/5] Validating package.json...
...
[5/5] Building fresh packages...
 
 
error /build/node_modules/playwright: Command failed.
[2021-01-20T12:17:18Z] Exit code: 1
[2021-01-20T12:17:18Z] Command: node install.js
[2021-01-20T12:17:18Z] Arguments:
[2021-01-20T12:17:18Z] Directory: /build/node_modules/playwright
[2021-01-20T12:17:18Z] Output:
[2021-01-20T12:17:18Z] chromium v833159 downloaded to /build/.cache/ms-playwright/chromium-833159
[2021-01-20T12:17:18Z]
[2021-01-20T12:17:18Z] firefox v1221 downloaded to /build/.cache/ms-playwright/firefox-1221
[2021-01-20T12:17:18Z]
[2021-01-20T12:17:18Z] (node:1704) UnhandledPromiseRejectionWarning: Error: unexpected end of file
[2021-01-20T12:17:18Z]     at Zlib.zlibOnError [as onerror] (zlib.js:182:17)
± cat yarn.lock | grep playwright
playwright@1.7.0:
  resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.7.0.tgz#72a836dcdfa5a99cc36981eb2e86abafd9a30ce3"

Was reproducible, retrying did not help.

Trying 1.7.1 now.

@jgehrcke
Copy link
Author

Not sure if that was really the solution or pure coincidence, but after bumping to playwright 1.7.1 the problem seems to be gone: opstrace/opstrace#276.

@yury-s yury-s closed this as completed Jan 20, 2021
@jgehrcke
Copy link
Author

jgehrcke commented May 6, 2021

Seen again:

[2021-05-06T08:07:52Z] Command: node install.js
[2021-05-06T08:07:52Z] Arguments:
[2021-05-06T08:07:52Z] Directory: /build/node_modules/playwright
[2021-05-06T08:07:52Z] Output:
[2021-05-06T08:07:52Z] (node:1965) UnhandledPromiseRejectionWarning: Error: Failed to download chromium, caused by
[2021-05-06T08:07:52Z] Error: unexpected end of file
[2021-05-06T08:07:52Z]     at Zlib.zlibOnError [as onerror] (zlib.js:182:17)
[2021-05-06T08:07:52Z]     at /build/node_modules/playwright/lib/install/installer.js:130:19
[2021-05-06T08:07:52Z]     at async validateCache (/build/node_modules/playwright/lib/install/installer.js:129:9)
[2021-05-06T08:07:52Z]     at async installBrowsersWithProgressBar (/build/node_modules/playwright/lib/install/installer.js:80:9)

With 1.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants