There is the output when running the command no GUI, no daemon.
$ zap.sh -cmd -autorun `pwd`/zap/automation/config-zap.yaml
Found Java version 11.0.14
Available memory: 3889 MB
Using JVM args: -Xmx972m
Job authentication set parameters = {}
Job verification set method = response
Job verification set pollFrequency = 60
Job verification set pollUnits = requests
Job verification set pollUrl =
Job verification set pollPostData =
Job sessionManagement set method = cookie
Job sessionManagement set parameters = {}
Job passiveScan-config set maxAlertsPerRule = 10
Job passiveScan-config set scanOnlyInScope = true
Job passiveScan-config set maxBodySizeInBytesToScan = 0
Job passiveScan-config set enableTags = true
Job script set action = run
Job script set type = standalone
Job script set engine =
Job script set name = Zaproxy Test.zst
Job passiveScan-wait set maxDuration = 0
Job report set template = risk-confidence-html
Job report set theme = original
Job report set reportDir = /home/hmluna00/zap/reports
Job report set reportFile =
Job report set reportTitle = UAT ZAP Scanning Report
Job report set reportDescription =
Job report set displayReport = true
Job passiveScan-config started
Job passiveScan-config set rule 10,202 threshold to MEDIUM
Job passiveScan-config set rule 10,020 threshold to MEDIUM
Job passiveScan-config set rule 90,022 threshold to MEDIUM
Job passiveScan-config set rule 10,055 threshold to MEDIUM
Job passiveScan-config set rule 90,011 threshold to MEDIUM
Job passiveScan-config set rule 10,019 threshold to MEDIUM
Job passiveScan-config set rule 10,010 threshold to MEDIUM
Job passiveScan-config set rule 10,011 threshold to MEDIUM
Job passiveScan-config set rule 10,054 threshold to MEDIUM
Job passiveScan-config set rule 10,017 threshold to MEDIUM
Job passiveScan-config set rule 10,098 threshold to MEDIUM
Job passiveScan-config set rule 10,023 threshold to MEDIUM
Job passiveScan-config set rule 10,025 threshold to MEDIUM
Job passiveScan-config set rule 10,024 threshold to MEDIUM
Job passiveScan-config set rule 10,027 threshold to MEDIUM
Job passiveScan-config set rule 90,001 threshold to MEDIUM
Job passiveScan-config set rule 90,033 threshold to MEDIUM
Job passiveScan-config set rule 2 threshold to MEDIUM
Job passiveScan-config set rule 10,015 threshold to MEDIUM
Job passiveScan-config set rule 50,001 threshold to MEDIUM
Job passiveScan-config set rule 10,040 threshold to MEDIUM
Job passiveScan-config set rule 10,037 threshold to MEDIUM
Job passiveScan-config set rule 3 threshold to MEDIUM
Job passiveScan-config set rule 50,003 threshold to MEDIUM
Job passiveScan-config set rule 10,096 threshold to MEDIUM
Job passiveScan-config set rule 10,057 threshold to MEDIUM
Job passiveScan-config set rule 10,032 threshold to MEDIUM
Job passiveScan-config set rule 10,003 threshold to MEDIUM
Job passiveScan-config set rule 90,030 threshold to MEDIUM
Job passiveScan-config set rule 10,105 threshold to MEDIUM
Job passiveScan-config set rule 10,061 threshold to MEDIUM
Job passiveScan-config set rule 10,021 threshold to MEDIUM
Job passiveScan-config set rule 10,056 threshold to MEDIUM
Job passiveScan-config finished
Job script started
Job: script Start action: run
org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/
127.0.0.1] failed: Connection refused (Connection refused)
Job script finished
Job passiveScan-wait started
Job passiveScan-wait finished
Job report started
Job report generated report /home/hmluna00/zap/reports/2022-04-05-ZAP-Report-www.google-analytics.com.html
Job report finished
Automation plan succeeded!
ATTENTION: default value of option mesa_glthread overridden by environment.
This is what it looks like when I run it from the command line and the GUI is running.
$ zap.sh -cmd -autorun `pwd`/zap/automation/config-zap.yaml
Found Java version 11.0.14
Available memory: 3889 MB
Using JVM args: -Xmx972m
Job authentication set parameters = {}
Job verification set method = response
Job verification set pollFrequency = 60
Job verification set pollUnits = requests
Job verification set pollUrl =
Job verification set pollPostData =
Job sessionManagement set method = cookie
Job sessionManagement set parameters = {}
Job passiveScan-config set maxAlertsPerRule = 10
Job passiveScan-config set scanOnlyInScope = false
Job passiveScan-config set maxBodySizeInBytesToScan = 0
Job passiveScan-config set enableTags = true
Job script set action = run
Job script set type = standalone
Job script set engine =
Job script set name = Zaproxy Test.zst
Job passiveScan-wait set maxDuration = 0
Job report set template = risk-confidence-html
Job report set theme = original
Job report set reportDir = /home/hmluna00/zap/reports
Job report set reportFile =
Job report set reportTitle = UAT ZAP Scanning Report
Job report set reportDescription =
Job report set displayReport = true
Job passiveScan-config started
Job passiveScan-config set rule 10,202 threshold to MEDIUM
Job passiveScan-config set rule 10,020 threshold to MEDIUM
Job passiveScan-config set rule 90,022 threshold to MEDIUM
Job passiveScan-config set rule 10,055 threshold to MEDIUM
Job passiveScan-config set rule 90,011 threshold to MEDIUM
Job passiveScan-config set rule 10,019 threshold to MEDIUM
Job passiveScan-config set rule 10,010 threshold to MEDIUM
Job passiveScan-config set rule 10,011 threshold to MEDIUM
Job passiveScan-config set rule 10,054 threshold to MEDIUM
Job passiveScan-config set rule 10,017 threshold to MEDIUM
Job passiveScan-config set rule 10,098 threshold to MEDIUM
Job passiveScan-config set rule 10,023 threshold to MEDIUM
Job passiveScan-config set rule 10,025 threshold to MEDIUM
Job passiveScan-config set rule 10,024 threshold to MEDIUM
Job passiveScan-config set rule 10,027 threshold to MEDIUM
Job passiveScan-config set rule 90,001 threshold to MEDIUM
Job passiveScan-config set rule 90,033 threshold to MEDIUM
Job passiveScan-config set rule 2 threshold to MEDIUM
Job passiveScan-config set rule 10,015 threshold to MEDIUM
Job passiveScan-config set rule 50,001 threshold to MEDIUM
Job passiveScan-config set rule 10,040 threshold to MEDIUM
Job passiveScan-config set rule 10,037 threshold to MEDIUM
Job passiveScan-config set rule 3 threshold to MEDIUM
Job passiveScan-config set rule 50,003 threshold to MEDIUM
Job passiveScan-config set rule 10,096 threshold to MEDIUM
Job passiveScan-config set rule 10,057 threshold to MEDIUM
Job passiveScan-config set rule 10,032 threshold to MEDIUM
Job passiveScan-config set rule 10,003 threshold to MEDIUM
Job passiveScan-config set rule 90,030 threshold to MEDIUM
Job passiveScan-config set rule 10,105 threshold to MEDIUM
Job passiveScan-config set rule 10,061 threshold to MEDIUM
Job passiveScan-config set rule 10,021 threshold to MEDIUM
Job passiveScan-config set rule 10,056 threshold to MEDIUM
Job passiveScan-config finished
Job script started
Job: script Start action: run
Response:
http://zaproxy.org/ passed = true code=302
Response:
http://www.zaproxy.org/ passed = true code=301
Response:
https://www.zaproxy.org/ passed = true code=200
Response:
https://www.zaproxy.org/main.7dbba1.css passed = true code=200
Response:
https://www.zaproxy.org/main.08cf90.js passed = true code=200
Response:
https://fonts.googleapis.com/css?family=Quicksand:500,700 passed = false code=200
572451 [ZAP-ProxyThread-93] WARN Â org.parosproxy.paros.core.proxy.ProxyThread - Failed to read
https://www.googletagmanager.com/gtag/js?id=UA-71455536-1 within 20 seconds, check to see if the site is available and if so consider adjusting ZAP's read time out in the Connection options panel.
Response:
https://www.googletagmanager.com/gtag/js?id=UA-71455536-1 passed = false code=504
Response:
https://fonts.googleapis.com/css?family=Istok+Web%257COpen+Sans:400,700%257CRubik&display=swap passed = false code=200
Response:
https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.6/lunr.min.js passed = true code=200
Response:
https://fonts.gstatic.com/s/quicksand/v28/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkBgv58a-wg.woff2 passed = true code=200
Response:
https://fonts.gstatic.com/s/opensans/v28/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4gaVI.woff2 passed = true code=200
Response:
https://fonts.gstatic.com/s/opensans/v28/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2 passed = true code=200
Response:
https://fonts.gstatic.com/s/quicksand/v28/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkM0o58a-wg.woff2 passed = true code=200
593499 [ZAP-ProxyThread-97] WARN Â org.parosproxy.paros.core.proxy.ProxyThread - Failed to read
https://www.google-analytics.com/analytics.js within 20 seconds, check to see if the site is available and if so consider adjusting ZAP's read time out in the Connection options panel.
Response:
https://www.google-analytics.com/analytics.js passed = false code=504
613538 [ZAP-ProxyThread-97] WARN Â org.parosproxy.paros.core.proxy.ProxyThread - Failed to read
https://www.google-analytics.com/j/collect?v=1&_v=j96&a=1405494435&t=pageview&_s=1&dl=https%3A%2F%2Fwww.zaproxy.org%2F&ul=en-us&de=UTF-8&dt=OWASP%20ZAP&sd=24-bit&sr=1870x1044&vp=1268x830&je=0&_u=YEBAAUABAAAAAC~&jid=244393815&gjid=216306495&cid=1907860492.1648141728&tid=UA-71455536-1&_gid=280050515.1648141728&_r=1>m=2ou3e0&z=980902847 within 20 seconds, check to see if the site is available and if so consider adjusting ZAP's read time out in the Connection options panel.
Response:
https://www.google-analytics.com/j/collect?v=1&_v=j96&a=1405494435&t=pageview&_s=1&dl=https%253A%252F%252Fwww.zaproxy.org%252F&ul=en-us&de=UTF-8&dt=OWASP%2520ZAP&sd=24-bit&sr=1870x1044&vp=1268x830&je=0&_u=YEBAAUABAAAAAC~&jid=244393815&gjid=216306495&cid=1907860492.1648141728&tid=UA-71455536-1&_gid=280050515.1648141728&_r=1>m=2ou3e0&z=980902847 passed = false code=504
Job script finished
Job passiveScan-wait started
Job passiveScan-wait finished
Job report started
Job report generated report /home/hmluna00/zap/reports/2022-04-05-ZAP-Report-www.google-analytics.com.html
Job report finished
Automation plan succeeded!
ATTENTION: default value of option mesa_glthread overridden by environment.
Here is what the GUI looks like when I run the plan from the command line.

Here is what the GUI looks like when I run the plan from the GUI
Also included are the two reports it generates.
Maybe there is a setting that I am missing or something that I am doing wrong. Is there something I have to do in ZAP so that this works that I am not doing?
Thanks again!