Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NexGenTech opened this issue Feb 24, 2022 · 6 comments

Comments

@NexGenTech
Copy link

NexGenTech commented Feb 24, 2022

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 ??

@ILPlais
Copy link

ILPlais commented Mar 8, 2022

Same issue! Did we miss something?

@doomhound188
Copy link

yup same issue for me
mkdir: can't create directory '/shared/xml_files/2022.03.17-15.06': Permission denied

@mil2ne
Copy link

mil2ne commented Apr 13, 2022

It's probably a markupsafe version issue.
https://markupsafe.palletsprojects.com/en/2.1.x/changes/

Add the line below to requirements.txt and try start after make build.

MarkupSafe==2.0.1

@markcaudill
Copy link

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

This project is effectively unmaintained it seems.

@btv
Copy link

btv commented Nov 4, 2022

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

@ngocdd
Copy link

ngocdd commented Oct 9, 2024

Still got the same issue on Oct-2024, change chmod to 777 still not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants