ZAP failed to generate report

423 views
Skip to first unread message

Charlie Lin

unread,
May 9, 2022, 4:18:51 AM5/9/22
to OWASP ZAP User Group
I use the following command to perform the test.
1 - docker run -v /opt/zap/automation:/zap/wrk/:rw -dt --name owasp owasp/zap2docker-stable /bin/bash
2 - docker exec owasp zap.sh -cmd -autorun /zap/wrk/zap_auto.yaml

However, the second step encountered an error. The following is a clip that indicates the error.
Job passiveScan-wait started
Job passiveScan-wait finished
Job report started
Job report failed to generate report: /report.html
Job report finished
Automation plan failures:
    Job report failed to generate report: /report.html


How can I make the program execute correctly?

zap.log

kingthorin+owaspzap

unread,
May 9, 2022, 9:32:54 AM5/9/22
to OWASP ZAP User Group
Provide a path where the report can actually be written.

Charlie Lin

unread,
May 9, 2022, 9:59:48 PM5/9/22
to OWASP ZAP User Group
I use the docker command 'docker exec -ti -u root 8b8 /bin/bash' to enter the container, where I can create files. It is writable.
I tried to change to another directory, but it didn't work. I hope the report can be written into the mounted directory.

Simon Bennetts

unread,
May 10, 2022, 4:15:44 AM5/10/22
to OWASP ZAP User Group

Charlie Lin

unread,
May 10, 2022, 9:48:50 PM5/10/22
to OWASP ZAP User Group
It is confirmed that it is a permission problem. The problem has been solved.

Thank you for your reply.

Simon Bennetts

unread,
May 11, 2022, 4:16:03 AM5/11/22
to OWASP ZAP User Group
Thanks for letting us know.
Reply all
Reply to author
Forward
0 new messages