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.

mkdir: can't create directory '/shared/xml_files/2022.02.24-09.54': Permission denied

See original GitHub issue

I followed the instructions in the descripiton in order to clone and run it but I run into these errors :

docker run --rm --cap-drop=all --cap-add=NET_RAW --name flan_1645696455 -v "/home/lazarakis/Desktop/Code/flan/shared:/shared:Z" flan_scan
mkdir: can't create directory '/shared/xml_files/2022.02.24-09.54': Permission denied
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/1.1.1.1.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/1.1.1.1.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/8.8.8.8.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/8.8.8.8.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/127.0.0.0-8.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/127.0.0.0-8.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/192.168.1.235.xml for writing: No such file or directory (2)
Failed to open XML output file /shared/xml_files/2022.02.24-09.54/192.168.1.235.xml for writing: No such file or directory (2)
Traceback (most recent call last):
  File "/output_report.py", line 9, in <module>
    from contrib.report_builders import ReportBuilder, LatexReportBuilder, MarkdownReportBuilder, JinjaHtmlReportBuilder, \
  File "/contrib/report_builders/__init__.py", line 5, in <module>
    from .html_report_builder import JinjaHtmlReportBuilder
  File "/contrib/report_builders/html_report_builder.py", line 4, in <module>
    from jinja2 import Template, FileSystemLoader, Environment
  File "/usr/local/lib/python3.9/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/usr/local/lib/python3.9/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/usr/local/lib/python3.9/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.9/site-packages/markupsafe/__init__.py)
sed: /shared/reports/report_2022.02.24-09.54.tex: No such file or directory
sed: /shared/reports/report_2022.02.24-09.54.tex: No such file or directory
sed: /shared/reports/report_2022.02.24-09.54.tex: No such file or directory
sed: /shared/reports/report_2022.02.24-09.54.tex: No such file or directory

As I can see, the root of all problems is the first error :

mkdir: can't create directory '/shared/xml_files/2022.02.24-09.54': Permission denied

I have not changed anything in the project nor the permissions of each folder.

Can anyone help ??

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

4reactions
markcaudillcommented, Jun 21, 2022

The fix is to remove --cap-drop=all from the Makefile.

This project is effectively unmaintained it seems.

0reactions
btvcommented, Nov 4, 2022

I was able to get this to work by setting the permissions of the shared directory to 777.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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