ICTU / zap2docker-auth-weekly

Zap baseline scanner in Docker with authentication
Apache License 2.0
104 stars 70 forks source link

"WARNING:root:Failed to start ZAP :(" -error while trying to start zap-baseline-custom.py #8

Closed imatinol closed 5 years ago

imatinol commented 5 years ago

I have the original "ICTU/zap-baseline" image which I named "ictu-zap" (and thus the container) exported from a local workstation to an external server where I am supposed to run a customized baseline scan from.

However, I get the following error when I try to start the zap-baseline-custom.py from the container:

Input: docker run -v $(pwd):/zap/wrk/:rw -it ictu-zap:latest zap/zap-baseline-custom.py -t <URL of the target service> -d

Output:

DEBUG:root:Using port: 39189
DEBUG:root:Starting ZAP
WARNING:root:Failed to start ZAP :(

Any idea what the root cause might be?

imatinol commented 5 years ago

Root cause found.

The problem was with PATH variable in the server. We declared the environment variables with ENV in Dockerfile and rebuilt the image.