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

Error Generating Report Post Run #253

Open
jeffsani opened this issue Jul 31, 2024 · 1 comment
Open

Error Generating Report Post Run #253

jeffsani opened this issue Jul 31, 2024 · 1 comment

Comments

@jeffsani
Copy link

I reviewed some of the other errors people were seeing but did not find a solution. Tests complete successfully, but I am unable to generate a PDF or HTML report as the following error is thrown:
 
ERRO[0281] caught error in main function error="couldn't export full report: couldn't export report to HTML: open reports/waf-evaluation-report-2024-July-31-19-50-43.html: permission denied"

The account I am running docker under is a member of sudoers, but it seems like I am hitting some permissions issue. I am running the latest docker image. OS environment is WSL2 on Win 11.

Any ideas?

@linkdd
Copy link

linkdd commented Aug 8, 2024

The Docker daemon creates the folder to be mounted in the container as owned by root with the rwxr-xr-x permissions. But then the gotestwaf is executed as the user gtw in the container which do not have permission to write in that folder.

This fixes the issue for me:

$ mkdir reports
$ chmod a+w reports
$ docker run ...

But be mindful that this basically sets the permissions as rwxrwxrwx (the ugly chmod 777).

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

2 participants