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.

Binary does not work with WSL

See original GitHub issue
  • vscode-remote version: 1.31.0-20
  • OS Version: Windows 10 (rel 1809) - WSL Ubuntu 16.04.4 LTS

Steps to Reproduce

  1. Run WSL and try to run the executable
  2. Error: -bash: ./code-server: cannot execute binary file: Exec format error

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
kylecarbscommented, Mar 5, 2019

Ah interesting. We compress the node binary prior to packaging, so that makes sense. Will add the additional target soon.

On Tue, Mar 5, 2019 at 3:26 PM DiegoBM notifications@github.com wrote:

@kylecarbs https://github.com/kylecarbs running the upx -d command on the binary it says that the binary was not packed by upx

upx -d code-server

                   Ultimate Packer for eXecutables
                      Copyright (C) 1996 - 2013

UPX 3.91 Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013

    File size         Ratio      Format      Name

upx: code-server: NotPackedException: not packed by UPX

Unpacked 0 files.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/codercom/code-server/issues/11#issuecomment-469901139, or mute the thread https://github.com/notifications/unsubscribe-auth/AGysxJD1oJ2C1-6gclf4rpkd1qWsPOPRks5vTv0hgaJpZM4bfeKy .

3reactions
code-ashercommented, Mar 15, 2019

We ended up skipping compression altogether (from 1.32.0-245 onward): https://github.com/codercom/code-server/commit/8bab787804912306821e50747699ce25ba1d22e9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WSL Doesn't run proper binary according to $PATH or `which`
I expect which to show me which binary is going to be run when I run a command. Very core and basic functionality...
Read more >
Are the binaries in Windows Subsystem for Linux the same as ...
No. WSL is only Microsoft's interpretation of Linux, and doesn't have the same hardware access as a standalone ...
Read more >
How to fallback to exe when linux binary is not available in Bash
What I need to be able to do is write scripts which work on both a regular Unix system, but also work on...
Read more >
WSL | IntelliJ IDEA Documentation - JetBrains
WSL (WSL 2) - Windows Subsystem for Linux - is a compatibility layer for running Linux binary executables natively on Windows 10.
Read more >
restart not working in new version of wsl (Ubuntu 16.04 on ...
In the new version of the WSL (Windows Subsystem for Linux) which installs Ubuntu 16.04 (you can install it if you upgrade to...
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