question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: xz: (stdin): File format not recognized

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: chrome
  • Local OS: Ubuntu 18.04.4
  • Remote OS: Ubuntu 18.04.4
  • Remote Architecture: amd64
  • code-server --version: v4.4.0 Latest

Steps to Reproduce

Follow the Development workflow: https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md#development-workflow

  1. git clone https://github.com/coder/code-server.git
  2. git submodule update --init
  3. quilt push -a
  4. yarn

Expected

yarn install completed

Actual

code-server/node_modules/shellcheck: Command failed. Command: ./install.sh

xz: (stdin): File format not recognized
tar: Child returned status 1

Logs

$ yarn
yarn install v1.22.18
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > @coder/logger@1.1.16" has unmet peer dependency "@google-cloud/logging@^4.5.2".
[5/5] Building fresh packages...
[1/3] ⠄ argon2
[2/3] ⠄ yarn
error /home/test/code-server/node_modules/shellcheck: Command failed.
Exit code: 2
Command: ./install.sh
Arguments:
Directory: /home/test/code-server/node_modules/shellcheck
Output:
xz: (stdin): File format not recognized
tar: Child returned status 1

Screenshot/Video

No response

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

$ bsdtar --version
bsdtar 3.2.2 - libarchive 3.2.2 zlib/1.2.11 liblzma/5.2.2 bz2lib/1.0.6 liblz4/1.7.1
$ tar --version
tar (GNU tar) 1.29

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tony-jinwoo-ahncommented, May 23, 2022

ok thank you so much!

1reaction
tony-jinwoo-ahncommented, May 22, 2022

at first, I tried building code-server on latest commit 1e304b1e7d3b5cd0edb1aa35edbbe74cd79254c2, but failed.

Now I’ve git checkout v4.4.0 and now everything succeeded on Ubuntu 20.04! the commit c96202528fc0daf1339a55c45951f40834b72c95 (HEAD, tag: v4.4.0) works fine to me.

by the way, if you guide me official Dockerfile for Ubuntu environment, it would be really helpful for the next time.

if you guide me official Dockerfile for Ubuntu environment, I’d follow every single steps to install exactly same packages, to build custom code-server for Ubuntu.

thank you so much for this amazing project. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

tar.xz extracting error "xz: (stdin): File format not recognized"
Try file file.tar.xz , this should give you a hint on the file type, unless it just says "data". – Olaf Dietsche.
Read more >
extracting error “xz: (stdin): File format not recognized” #569
I believe the xz file is from llvm, which is our dependency. Not sure why it failed downloading llvm for you.
Read more >
(stdin): File format not recognized" (2 Solutions!!) - YouTube
Ubuntu: tar. xz extracting error " xz : ( stdin ): File format not recognized " (2 Solutions!!)
Read more >
Docker Build: xz(stdin): File format not recognized
The problem is the -O option to curl that writes to disk instead of stdout. Try with: curl -L https://...
Read more >
[Fixed] Compile error LE 8.0.1, xz: (stdin): File format not ...
It saves the file as an xz file and try's to decompress it as an xz file. I couldn't see any downloads happening...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found