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.

ERROR when running the Application Inspector in WSL 2

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Download the OWASP Benchmark by git clone https://github.com/OWASP-Benchmark/BenchmarkJava.
  2. Change the directory to the benchmark: cd BenchmarkJava.
  3. Run ApplicationInspector with appinspector analyze -s ./.
  4. See the error.

Expected behavior

Get the result file from the benchmark.

Screenshots 屏幕截图 2022-07-30 235422

Operating Environment (please complete the following information):

  • Application Inspector Version: ApplicationInspector.CLI 1.5.20+3790d0a4cb
  • OS: WSL 2 on Windows 10 [version 10.0.19044.1826].
  • .NET version: 6.0.302

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gfscommented, Aug 1, 2022

There are a few options you can try as a workaround in the meantime:

  1. The AI program should behave the same on Linux and windows. Since you’re running WSL you could just run it in your windows context with the same source code.
  2. You could try to install the .NET sdk inside WSL and then use the .NET tool version with “dotnet tool install” https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
  3. It sounds like it works on your native Linux install as well.
1reaction
MarkLee131commented, Aug 1, 2022

I tried on the Linux system and found that there is no error on it. I think maybe this issue is caused by the WSL 2. So try not to use WSL to run SAST tool···

Read more comments on GitHub >

github_iconTop Results From Across the Web

WSL2 (Preview) cannot run .exe files: exec format error: ...
it was possible to run Windows binaries from within WSL2 by simply having them in PATH and typing binary.exe with systemd enabled and...
Read more >
Troubleshooting Windows Subsystem for Linux
Provides detailed information about common errors and issues people run into while running Linux on the Windows Subsystem for Linux.
Read more >
ECONNREFUSED error with WSL 2 with Chrome ...
It is a bug of vscode. This issue can be fixed by replacing extensions 'JavaScript Debugger' with 'JavaScript Debugger (Nightly)'.
Read more >
How to Install WSL 2 on Windows 10 (Updated)
Install a Linux distro. I walk through each step in turn below. I recommend using the PowerShell app, which you need to run...
Read more >
Using WSL 2 in Enterprises
First, you have to clone the repository. The repository contains the C++ reference implementation for a Windows Subsystem for Linux (WSL) ...
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