mkdir: can't create directory '/shared/xml_files/2022.02.24-09.54': Permission denied
See original GitHub issueI 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:
- Created 2 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix is to remove
--cap-drop=all
from the Makefile.This project is effectively unmaintained it seems.
I was able to get this to work by setting the permissions of the
shared
directory to777
.