Job report failed to generate report

197 views
Skip to first unread message

Nicollas Teixeira

unread,
Sep 25, 2023, 1:31:19 PM9/25/23
to ZAP User Group
Hey guys! Im facing this problem when running automation plan...Captura de tela 2023-09-25 142817.png
If i run it locally with exactly same plan and image it works, if i try to run it on my automated environment on aws im getting this error but its exactly the same of running locally. I tried to check permissions, run as sudo, etc but doesnt work... 

Nicollas Teixeira

unread,
Sep 25, 2023, 1:37:33 PM9/25/23
to ZAP User Group
Image20230925143612.png

Nicollas Teixeira

unread,
Sep 25, 2023, 4:47:13 PM9/25/23
to ZAP User Group
evidence from zap.log, only this error related to report, there are other errors but related to report it just say " Job report failed to generate report: /zap/wrk/report.json"

Simon Bennetts

unread,
Sep 26, 2023, 4:04:39 AM9/26/23
to ZAP User Group

Nicollas Teixeira

unread,
Sep 26, 2023, 8:05:02 AM9/26/23
to ZAP User Group
Hey Simon!

Im starting using this command: 

docker run --rm --user $(id -u):$(id -g) -v $(pwd):/zap/wrk/:rw -t softwaresecurityproject/zap-stable bash -c "zap.sh -cmd -addonupdate; zap.sh -cmd -autorun /zap/wrk/exported.yaml"

Hmm, I don't think the problem is that I can't access the file, it's not generating the file, I'm having a failure in the report generation job.

Simon Bennetts

unread,
Sep 26, 2023, 8:08:51 AM9/26/23
to ZAP User Group
Why are you specifying "--user $(id -u):$(id -g)" ?
What happens if you dont include that part?

I suspect that the user you are using in docker does not have write access to /zap/wrk
You can test that using a command like:
as per the last link I shared.

Cheers,

Simon

Nicollas Teixeira

unread,
Sep 26, 2023, 8:25:47 AM9/26/23
to ZAP User Group
Oh okay, i will try this command and i already tested without  "--user $(id -u):$(id -g)" and still the same.

Simon Bennetts

unread,
Sep 26, 2023, 8:33:09 AM9/26/23
to ZAP User Group
What happens when you try the command:
  • docker run -v $(pwd):/zap/wrk/:rw -t softwaresecurityproject/zap-stable touch /zap/wrk/test.txt
Is there a text.txt file once docker has existed?

Nicollas Teixeira

unread,
Sep 26, 2023, 8:45:41 AM9/26/23
to ZAP User Group
Capturar.PNG
Hmm, its weird but probably permission issue...

Simon Bennetts

unread,
Sep 26, 2023, 8:49:15 AM9/26/23
to ZAP User Group
Yep, thats what I expected.
Have a look at your filestore perms.
You can also try creating the expected files in advance (eg test1.txt for the testing).

Nicollas Teixeira

unread,
Sep 26, 2023, 9:52:02 AM9/26/23
to ZAP User Group
yeah, it was permission problem, Now that I fixed this folder permission issue, it is having problem launching the browser... im using the docker command to update the add-ons btw
Capturar.PNG

Nicollas Teixeira

unread,
Sep 26, 2023, 10:09:03 AM9/26/23
to ZAP User Group
Capturar.PNG
this error also

Simon Bennetts

unread,
Sep 27, 2023, 4:37:24 AM9/27/23
to ZAP User Group
There was a problem with the last Network add-on release.
Try again making sure that all of your add-ons are up to date - the latest Network add-on should have fixed the problem we became aware of.

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages