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.

The open port and service collectors in Ubuntu Linux fail

See original GitHub issue

Dockerfile.txt

Describe the bug Running ASA in a container based on dotnet core 2.2 Ubuntu fails on the open port and service collectors

To Reproduce Steps to reproduce the behavior:

  1. Download the attached file
  2. Build the container image using (run on the directory where the file was downloaded)
docker build -t linux-asa -f Dockerfile.txt .
  1. Observe on step 12/13 the failure after starting the OpenPortCollector

Expected behavior No errors should be encounter when running the openportcollector or servicecollector

Screenshots Begin OpenPortCollector. [22:55:40 ERR] Error collecting from OpenPortCollector: No such file or directory at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at AttackSurfaceAnalyzer.Utils.ExternalCommandRunner.RunExternalCommand(String command, String[] args) in /home/vsts/work/1/s/Lib/Utils/ExternalCommandRunner.cs:line 24 at AttackSurfaceAnalyzer.Collectors.OpenPorts.OpenPortCollector.ExecuteLinux() in /home/vsts/work/1/s/Lib/Collectors/OpenPorts/OpenPortCollector.cs:line 174 at AttackSurfaceAnalyzer.Collectors.OpenPorts.OpenPortCollector.Execute() in /home/vsts/work/1/s/Lib/Collectors/OpenPorts/OpenPortCollector.cs:line 108 at AttackSurfaceAnalyzer.AttackSurfaceAnalyzerCLI.RunCollectCommand(CollectCommandOptions opts) in /home/vsts/work/1/s/Cli/Program.cs:line 1332 System.ComponentModel.Win32Exception (2): No such file or directory at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at AttackSurfaceAnalyzer.Utils.ExternalCommandRunner.RunExternalCommand(String command, String[] args) in /home/vsts/work/1/s/Lib/Utils/ExternalCommandRunner.cs:line 24 at AttackSurfaceAnalyzer.Collectors.OpenPorts.OpenPortCollector.ExecuteLinux() in /home/vsts/work/1/s/Lib/Collectors/OpenPorts/OpenPortCollector.cs:line 174 at AttackSurfaceAnalyzer.Collectors.OpenPorts.OpenPortCollector.Execute() in /home/vsts/work/1/s/Lib/Collectors/OpenPorts/OpenPortCollector.cs:line 108 at AttackSurfaceAnalyzer.AttackSurfaceAnalyzerCLI.RunCollectCommand(CollectCommandOptions opts) in /home/vsts/work/1/s/Cli/Program.cs:line 1332 [22:55:40 INF] Begin ServiceCollector. [22:55:40 ERR] Error collecting from ServiceCollector: No such file or directory at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at AttackSurfaceAnalyzer.Utils.ExternalCommandRunner.RunExternalCommand(String command, String[] args) in /home/vsts/work/1/s/Lib/Utils/ExternalCommandRunner.cs:line 24 at AttackSurfaceAnalyzer.Collectors.Service.ServiceCollector.Execute() in /home/vsts/work/1/s/Lib/Collectors/Service/ServiceCollector.cs:line 169 at AttackSurfaceAnalyzer.AttackSurfaceAnalyzerCLI.RunCollectCommand(CollectCommandOptions opts) in /home/vsts/work/1/s/Cli/Program.cs:line 1332 System.ComponentModel.Win32Exception (2): No such file or directory at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at AttackSurfaceAnalyzer.Utils.ExternalCommandRunner.RunExternalCommand(String command, String[] args) in /home/vsts/work/1/s/Lib/Utils/ExternalCommandRunner.cs:line 24 at AttackSurfaceAnalyzer.Collectors.Service.ServiceCollector.Execute() in /home/vsts/work/1/s/Lib/Collectors/Service/ServiceCollector.cs:line 169 at AttackSurfaceAnalyzer.AttackSurfaceAnalyzerCLI.RunCollectCommand(CollectCommandOptions opts) in /home/vsts/work/1/s/Cli/Program.cs:line 1332

System Configuration (please complete the following information):

  • OS: Windows host
  • OS Version: Windows 10 1803 host, Docker Desktop using Linux containers
  • Application Version: 2.0.154
  • CLI or GUI: cli

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cmesyngiercommented, Aug 16, 2019

I guess systemd is not installed by default in this version of Ubuntu (18.04). After installing it all collectors succeed!

0reactions
gfscommented, Aug 16, 2019

Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Open Com Port
Hi AskUbuntu community. I want ask a question about the opening of serial ports in Ubuntu. I use Ubuntu 20.04 in my MSI...
Read more >
CAn not open port 1514 in ubuntu iptables
No, if a service doesn't bind to the port 1514 server side, the OS will return an error that will make the client...
Read more >
SSH tunneling: connect_to localhost port 22: failed
If it says connection refused then you have to enable ssh on that machine. If that succeeds, type ifconfig and note the local...
Read more >
OpenSSH Server
OpenSSH is a powerful collection of tools for the remote control of, and transfer of data between, networked computers. You will also learn...
Read more >
Ubuntu 20.04: CondaHTTPError: HTTP 000 CONNECTION ...
Current Behavior Conda always gives the error HTTP: 000 CONNECTION FAILED Steps to Reproduce $ conda update -q conda Collecting package ...
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