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

Extracting the tar content of undefined failed #7087

Open
nhooyr opened this Issue Mar 6, 2019 · 6 comments

Comments

Projects
None yet
1 participant
@nhooyr
Copy link

nhooyr commented Mar 6, 2019

  1. Clone https://github.com/codercom/code-server
  2. Checkout 3fbdb2e46c4f38268df42a03835b43151f9e55b2
  3. Run yarn
  4. You'll often get something similar to:
ERROR Failed to install "browser" dependencies {"error":{"killed":false,"code":1,"signal":null,"cmd":"yarn --network-concurrency 1"},"stdout":"[1/4] Resolving packages...\n[2/4] Fetching packages...\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n","stderr":"warning package.json: No license field\nwarning ../../package.json: No license field\nwarning @coder/app: No license field\nerror https://registry.yarnpkg.com/@material/base/-/base-0.41.0.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: \"ENOENT: no such file or directory, chmod '/usr/local/share/.cache/yarn/v4/npm-@material-base-0.41.0-badadce711b4c25b1eb889a5e7581e32cd07c421/node_modules/@material/base/component.js'\"\n"}

Related #6312

I'm on the latest stable release of yarn, 1.13. And version 8.10 for node (yes it is outdated but shouldn't affect this afaik).

@nhooyr

This comment has been minimized.

Copy link
Author

nhooyr commented Mar 6, 2019

I'll provide a Dockerfiles that reproduces it pretty much always soon.

@nhooyr

This comment has been minimized.

Copy link
Author

nhooyr commented Mar 6, 2019

FROM node:8

# Ensure latest yarn.
RUN npm install -g yarn

# Install VS Code's deps.
RUN apt-get update
RUN apt-get install -y libxkbfile-dev libsecret-1-dev git

WORKDIR /app
COPY . .
RUN yarn --version
RUN node --version
RUN yarn --network-concurrency 1

Plop that in the root of the repo and build it and if you don't get the same error, run it a few times till you do.

@nhooyr

This comment has been minimized.

Copy link
Author

nhooyr commented Mar 6, 2019

(removing the --network-concurrency flag makes it occur more often)

@nhooyr

This comment has been minimized.

Copy link
Author

nhooyr commented Mar 6, 2019

Also randomly see this:

ERROR Failed to install "common" dependencies {"error":{"killed":false,"code":1,"signal":null,"cmd":"yarn --network-concurrency 1"},"stdout":"[1/4] Resolving packages...\n[2/4] Fetching packages...\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n","stderr":"warning package.json: No license field\nwarning ../../package.json: No license field\nwarning @coder/app-common: No license field\nerror https://registry.yarnpkg.com/@material/snackbar/-/snackbar-0.44.0.tgz: Integrity check failed for \"@material/snackbar\" (computed integrity doesn't match our records, got \"sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==\")\n"}
@nhooyr

This comment has been minimized.

Copy link
Author

nhooyr commented Mar 9, 2019

Looks like its because we're running multiple yarn processes concurrently with a single cache.

Is it possible this will become a supported feature?

@nhooyr

This comment has been minimized.

Copy link
Author

nhooyr commented Mar 9, 2019

e.g. to share cache between concurrent CI runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.