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.

FileSystemCollector never ends in Ubuntu 18.04 LTS

See original GitHub issue

There is a problem running “asa collect -a” in Ubuntu Linux 18.04 LTS and to be precise the file system collection. For some reason following commands never finish. I tested this with three different virtual machines that on different virtualization platforms (Oracle VirtualBox and XenCenter):

1. sudo .dotnet/tools/asa collect -a --overwrite --verbose --runid initial
2. sudo .dotnet/tools/asa collect -f --overwrite --verbose --directories /proc --runid initialproc
3. sudo .dotnet/tools/asa collect -f --overwrite --verbose --directories /sys --runid initialsys 

EDIT: Installed Ubuntu Linux 20.04 to Oracle VirtualBox and more information was shown “Killed”: asa_filesystemcollector_killed

When running without sys and proc directories, the file system collection finished in 15 mins: sudo ~/.dotnet/tools/asa collect -cfprsuFCl --overwrite --directories /bin^/boot^/dev^/etc^/home^/lib^/lib64^/lost+found^/media^/mnt^/opt^/root^/run^/sbin^/snap^/srv^/tmp^/usr^/var --runid excludeddirs

System Configuration:

user@user-VirtualBox:~$ sudo .dotnet/tools/asa version
[15:12:47 INF] AttackSurfaceAnalyzer v.2.2.72+917982b04c
Asa 2.2.72+917982b04c

user@user-VirtualBox:~$ uname -a
Linux user-VirtualBox 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gfscommented, Nov 16, 2020

I also pushed a new change that will allow you to specifically exclude directories using the --skip-directories option so that you can explicitly provide / as the argument if you wish. So for example asa collect -f --directories / --skip-directories /proc,/sys,/mnt, to skip /proc and /sys (to prevent stalls) and /mnt (for example).

0reactions
gfscommented, Nov 13, 2020

I updated the default file system collector to skip proc and sys on linux systems. New build should be coming out from the pipeline shortly if you want to give that a shot. The default argument should now scan every root directory other than /sys and /proc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filesystem keeps getting corrupted
Computer: ASUS ROG laptop; Linux: Ubuntu 18.04.5 LTS, ... data collection status: (0x00) Offline data collection activity was never started.
Read more >
Ubuntu 18.04 LTS getting into emergency mode and then ...
On the emergency mode screen when I hit Enter the root user prompt appears and when I type exit, fortunately I can see...
Read more >
How to Fix “Read-Only File System” Error on Ubuntu
In Linux, a filesystem is a collection of data stored in a storage device. How to fix the "Read-Only File System" error on...
Read more >
Ubuntu 18.04 is freezing randomly
I upgraded my Ubuntu from 18.04 to 20.04 LTS few months back (hoping to resolve the issue) and gladly it worked great. Have...
Read more >
National Cyber Security Centre publish Ubuntu 18.04 LTS ...
The “End User Device” (EUD) Security Collection provides “guidance for organisations deploying a range of end user device platforms as part ...
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