Anchore scans started failing with 0 change to my jenkins setup DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505/reports/image_report.json), but failed to load for imageId (10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505) - exception: No JSON object could be decoded 20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x32bd490>> ignored #61
Description
I have a Jenkins Multi branch DSL pipeline job that calls anchore scans on all the docker images we build. This one is a scan on nginx reverse proxy. Until about 1 hour ago it has been working fine. There has been no change to our system but now it is failing.
I have verified the disk has space.
Jenkins file code that gets called
try {
env.ANCHORE_SETUP = sh([script: "anchore_scan", returnStdout: true]).trim()
print env.ANCHORE_SETUP
anchore bailOnFail: false, inputQueries: [[query: 'cve-scan all'], [query: 'list-packages all'], [query: 'list-files all'], [query: 'show-pkg-diffs base']], name: 'anchore_images'
} catch (Exception e){
sh 'cat anchore_images'
}
This is the file anchore_images that gets referenced that list location of docker file and the image name:
nebulagarage/proxy:development /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/Dockerfile
This is my docker file for the proxy docker image:
from owasp/modsecurity:v3-ubuntu-nginx
ADD nginx.conf /etc/nginx/nginx.conf.template
ADD ssls/* /etc/nginx/ssl/
RUN apt-get update -y && \
apt-get -y install gettext-base mlocate psmisc && \
ionice -c3 updatedb
EXPOSE 80
EXPOSE 443
CMD envsubst < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf && exec /usr/local/nginx/nginx -g "daemon off;"
Bash script for ensuring anchore image is latest, and is pulled
#!/usr/bin/env bash
set +ex
if [[ "$(docker images -q anchore/jenkins:latest 2> /dev/null)" == "" ]]; then
docker pull anchore/jenkins:latest
fi
echo "${DOCKER_IMAGE_NAME}:${PACKAGE_VERSION} ${WORKSPACE}/Dockerfile" > ${WORKSPACE}/anchore_images
As you can see the docker file is not commented on the first line, I have checked disk space the space is free, the pattern for naming and scanning the image hasn't changed.
This is the anchore scan output:
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker Jenkins version: 2.141
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker Anchore Container Image Scanner Plugin version: 1.0.14
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] enabled: true
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] enginemode: anchorelocal
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] engineurl: http://your_anchore_engine_host_ip:your_anchore_engine_port/v1
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] engineuser:
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] enginepass: ****
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] engineverify: false
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] debug: true
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] useSudo: false
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] containerImageId: anchore/jenkins:latest
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] containerId: jenkins_anchore
20:57:18 2018-12-27T20:57:18.047 INFO AnchoreWorker [global] localVol: /var/lib/jenkins/.anchore
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [global] modulesVol: /var/lib/jenkins/.anchore
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] name: anchore_images
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] policyName: anchore_policy
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] globalWhiteList: anchore_global_whitelist
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] anchoreioUser:
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] anchoreioPass: ****
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] userScripts: anchore_user_scripts
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] engineRetries: 300
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] bailOnFail: false
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] bailOnWarn: false
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] bailOnPluginFail: true
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] doCleanup: false
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] useCachedBundle: true
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] policyEvalMethod: plainfile
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] bundleFileOverride: anchore_policy_bundle.json
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] query: cve-scan all
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] query: list-packages all
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] query: list-files all
20:57:18 2018-12-27T20:57:18.048 INFO AnchoreWorker [build] query: show-pkg-diffs base
20:57:18 2018-12-27T20:57:18.051 DEBUG AnchoreWorker Initializing Jenkins workspace
20:57:18 2018-12-27T20:57:18.053 DEBUG AnchoreWorker Creating workspace directory AnchoreReport.development_282
20:57:18 2018-12-27T20:57:18.056 DEBUG AnchoreWorker Initializing Anchore workspace
20:57:18 2018-12-27T20:57:18.056 DEBUG AnchoreWorker Checking container jenkins_anchore
20:57:18 2018-12-27T20:57:18.056 DEBUG AnchoreWorker Executing "docker start jenkins_anchore"
20:57:18 $ docker start jenkins_anchore
20:57:18 jenkins_anchore
20:57:18 2018-12-27T20:57:18.115 DEBUG AnchoreWorker Execution of "docker start jenkins_anchore" returned 0
20:57:18 2018-12-27T20:57:18.116 DEBUG AnchoreWorker Anchore container jenkins_anchore is already running
20:57:18 2018-12-27T20:57:18.116 DEBUG AnchoreWorker Creating build artifact directory /root/anchore.development_282 in Anchore container jenkins_anchore
20:57:18 2018-12-27T20:57:18.116 DEBUG AnchoreWorker Executing "docker exec jenkins_anchore mkdir -p /root/anchore.development_282"
20:57:18 $ docker exec jenkins_anchore mkdir -p /root/anchore.development_282
20:57:18 2018-12-27T20:57:18.246 DEBUG AnchoreWorker Execution of "docker exec jenkins_anchore mkdir -p /root/anchore.development_282" returned 0
20:57:18 2018-12-27T20:57:18.246 DEBUG AnchoreWorker Staging image file in Jenkins workspace
20:57:18 2018-12-27T20:57:18.255 DEBUG AnchoreWorker Copying Dockerfile from Jenkins workspace: /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/Dockerfile, to Anchore workspace: /root/anchore.development_282/dfile.1
20:57:18 2018-12-27T20:57:18.255 DEBUG AnchoreWorker Executing "docker cp /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/Dockerfile jenkins_anchore:/root/anchore.development_282/dfile.1"
20:57:18 $ docker cp /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/Dockerfile jenkins_anchore:/root/anchore.development_282/dfile.1
20:57:18 2018-12-27T20:57:18.570 DEBUG AnchoreWorker Execution of "docker cp /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/Dockerfile jenkins_anchore:/root/anchore.development_282/dfile.1" returned 0
20:57:18 2018-12-27T20:57:18.570 DEBUG AnchoreWorker Staging sanitized entry: "nebulagarage/proxy:development /root/anchore.development_282/dfile.1"
20:57:18 2018-12-27T20:57:18.570 DEBUG AnchoreWorker Copying staged image file from Jenkins workspace: /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/AnchoreReport.development_282/staged_images.development_282, to Anchore workspace: /root/anchore.development_282/images
20:57:18 2018-12-27T20:57:18.570 DEBUG AnchoreWorker Executing "docker cp /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/AnchoreReport.development_282/staged_images.development_282 jenkins_anchore:/root/anchore.development_282/images"
20:57:18 $ docker cp /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/AnchoreReport.development_282/staged_images.development_282 jenkins_anchore:/root/anchore.development_282/images
20:57:18 2018-12-27T20:57:18.878 DEBUG AnchoreWorker Execution of "docker cp /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/AnchoreReport.development_282/staged_images.development_282 jenkins_anchore:/root/anchore.development_282/images" returned 0
20:57:18 2018-12-27T20:57:18.880 DEBUG AnchoreWorker No user scripts/modules found, using default Anchore modules
20:57:18 2018-12-27T20:57:18.883 INFO AnchoreWorker Bundle file either not specified or does not exist, using default Anchore policy
20:57:18 2018-12-27T20:57:18.885 INFO AnchoreWorker Policy file either not specified or does not exist, using default Anchore policy
20:57:18 2018-12-27T20:57:18.888 INFO AnchoreWorker Global whitelist file either not specified or does not exist, using default Anchore global whitelist
20:57:18 2018-12-27T20:57:18.888 DEBUG AnchoreWorker Build worker initialized
20:57:18 2018-12-27T20:57:18.888 INFO AnchoreWorker Running Anchore Analyzer
20:57:18 2018-12-27T20:57:18.888 DEBUG AnchoreWorker Executing "docker exec jenkins_anchore anchore --debug analyze --skipgates --imagefile /root/anchore.development_282/images"
20:57:18 $ docker exec jenkins_anchore anchore --debug analyze --skipgates --imagefile /root/anchore.development_282/images
20:57:19 2018-12-27 20:57:19,180 DEBUG anchore_image_db_fs.py __init__ using directory for anchore image data: /root/.anchore/data
20:57:19 2018-12-27 20:57:19,181 DEBUG anchore_image_db_fs.py __init__ using directory for anchore feed data: /root/.anchore/feeds
20:57:19 2018-12-27 20:57:19,181 DEBUG anchore_image_db_fs.py __init__ using directory for anchore policy data: /root/.anchore/policy
20:57:19 2018-12-27 20:57:19,184 DEBUG auth.py find_config_file Trying paths: ['/root/.docker/config.json', '/root/.dockercfg']
20:57:19 2018-12-27 20:57:19,184 DEBUG auth.py find_config_file No config file found
20:57:19 2018-12-27 20:57:19,191 DEBUG connectionpool.py _make_request "GET /version HTTP/1.1" 200 537
20:57:19 2018-12-27 20:57:19,194 DEBUG connectionpool.py _make_request "GET /v1.38/version HTTP/1.1" 200 537
20:57:19 2018-12-27 20:57:19,215 DEBUG connectionpool.py _make_request "GET /v1.38/images/json?only_ids=0&all=1 HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,216 DEBUG anchore_image_db_fs.py __init__ using directory for anchore image data: /root/.anchore/data
20:57:19 2018-12-27 20:57:19,216 DEBUG anchore_image_db_fs.py __init__ using directory for anchore feed data: /root/.anchore/feeds
20:57:19 2018-12-27 20:57:19,216 DEBUG anchore_image_db_fs.py __init__ using directory for anchore policy data: /root/.anchore/policy
20:57:19 2018-12-27 20:57:19,217 DEBUG anchore_utils.py discover_imageId looking for name (nebulagarage/proxy:development) in docker_images
20:57:19 2018-12-27 20:57:19,217 DEBUG anchore_utils.py discover_imageId looking for alternative names (nebulagarage/proxy:development) in docker_images
20:57:19 2018-12-27 20:57:19,218 DEBUG analyzer.py __init__ analyzer initialization: begin
20:57:19 2018-12-27 20:57:19,218 DEBUG analyzer.py __init__ init input processed, loading input images: [u'nebulagarage/proxy:development']
20:57:19 2018-12-27 20:57:19,218 DEBUG anchore_image.py __init__ initializing image: nebulagarage/proxy:development
20:57:19 2018-12-27 20:57:19,218 DEBUG anchore_utils.py discover_imageId looking for name (nebulagarage/proxy:development) in docker_images
20:57:19 2018-12-27 20:57:19,218 DEBUG anchore_utils.py discover_imageId looking for alternative names (nebulagarage/proxy:development) in docker_images
20:57:19 Analyzing image: nebulagarage/proxy:development
20:57:19 2018-12-27 20:57:19,219 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea/reports/image_report.json), but failed to load for imageId (4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,253 DEBUG connectionpool.py _make_request "GET /v1.38/images/4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,257 DEBUG connectionpool.py _make_request "GET /v1.38/images/4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,258 DEBUG anchore_image.py __init__ initializing image: 1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10
20:57:19 2018-12-27 20:57:19,258 DEBUG anchore_utils.py discover_imageId looking for name (1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10) in docker_images
20:57:19 2018-12-27 20:57:19,258 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10/reports/image_report.json), but failed to load for imageId (1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,260 DEBUG connectionpool.py _make_request "GET /v1.38/images/1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,264 DEBUG connectionpool.py _make_request "GET /v1.38/images/1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,265 DEBUG anchore_image.py __init__ initializing image: 28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c
20:57:19 2018-12-27 20:57:19,265 DEBUG anchore_utils.py discover_imageId looking for name (28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c) in docker_images
20:57:19 2018-12-27 20:57:19,266 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c/reports/image_report.json), but failed to load for imageId (28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,268 DEBUG connectionpool.py _make_request "GET /v1.38/images/28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,271 DEBUG connectionpool.py _make_request "GET /v1.38/images/28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,271 DEBUG anchore_image.py __init__ initializing image: f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b
20:57:19 2018-12-27 20:57:19,271 DEBUG anchore_utils.py discover_imageId looking for name (f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b) in docker_images
20:57:19 2018-12-27 20:57:19,272 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b/reports/image_report.json), but failed to load for imageId (f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,273 DEBUG connectionpool.py _make_request "GET /v1.38/images/f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,277 DEBUG connectionpool.py _make_request "GET /v1.38/images/f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,278 DEBUG anchore_image.py __init__ initializing image: 10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505
20:57:19 2018-12-27 20:57:19,278 DEBUG anchore_utils.py discover_imageId looking for name (10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505) in docker_images
20:57:19 2018-12-27 20:57:19,278 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505/reports/image_report.json), but failed to load for imageId (10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,280 DEBUG connectionpool.py _make_request "GET /v1.38/images/10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,283 DEBUG connectionpool.py _make_request "GET /v1.38/images/10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,284 DEBUG anchore_image.py __init__ initializing image: 1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946
20:57:19 2018-12-27 20:57:19,284 DEBUG anchore_utils.py discover_imageId looking for name (1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946) in docker_images
20:57:19 2018-12-27 20:57:19,284 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946/reports/image_report.json), but failed to load for imageId (1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,286 DEBUG connectionpool.py _make_request "GET /v1.38/images/1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,290 DEBUG connectionpool.py _make_request "GET /v1.38/images/1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,290 DEBUG anchore_image.py __init__ initializing image: fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90
20:57:19 2018-12-27 20:57:19,290 DEBUG anchore_utils.py discover_imageId looking for name (fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90) in docker_images
20:57:19 2018-12-27 20:57:19,297 DEBUG connectionpool.py _make_request "GET /v1.38/images/fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90/json HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,298 DEBUG connectionpool.py _make_request "GET /v1.38/images/fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,301 DEBUG connectionpool.py _make_request "GET /v1.38/images/1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,304 DEBUG connectionpool.py _make_request "GET /v1.38/images/10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,307 DEBUG connectionpool.py _make_request "GET /v1.38/images/f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,310 DEBUG connectionpool.py _make_request "GET /v1.38/images/28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,314 DEBUG connectionpool.py _make_request "GET /v1.38/images/1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10/history HTTP/1.1" 200 None
20:57:19 2018-12-27 20:57:19,314 DEBUG analyzer.py __init__ loaded input images, checking that all input images have been loaded [u'4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea']
20:57:19 2018-12-27 20:57:19,315 DEBUG analyzer.py __init__ analyzer initialization: end
20:57:19 2018-12-27 20:57:19,315 DEBUG analyzer.py run main image analysis on images: [u'4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea']: begin
20:57:19 2018-12-27 20:57:19,315 DEBUG analyzer.py run images to be analyzed: [u'fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90', u'4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea']
20:57:19 2018-12-27 20:57:19,317 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/13_retrieve_files.py
20:57:19 2018-12-27 20:57:19,317 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/10_package_list.py
20:57:19 2018-12-27 20:57:19,317 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/32_java_packages.py
20:57:19 2018-12-27 20:57:19,317 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/02_layers.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/12_npm_package_list.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/20_file_list.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/12_gem_package_list.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/13_secret_search.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/30_file_checksums.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/11_package_detail_list.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/13_content_search.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/32_python_packages.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/40_file_suids.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/01_analyzer_meta.py
20:57:19 2018-12-27 20:57:19,318 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/31_file_package_verify.py
20:57:19 2018-12-27 20:57:19,319 DEBUG analyzer.py run_analyzers analyzer commands all finished with successful exit codes
20:57:19 2018-12-27 20:57:19,319 DEBUG analyzer.py run_analyzers saving image information with updated analysis data
20:57:19 2018-12-27 20:57:19,321 INFO analyzer.py run_analyzers fa21bf78d25e: analyzed.
20:57:19 2018-12-27 20:57:19,321 DEBUG analyzer.py run_analyzers running analyzers on image: fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90: end
20:57:19 2018-12-27 20:57:19,323 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/13_retrieve_files.py
20:57:19 2018-12-27 20:57:19,324 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/10_package_list.py
20:57:19 2018-12-27 20:57:19,324 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/32_java_packages.py
20:57:19 2018-12-27 20:57:19,324 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/02_layers.py
20:57:19 2018-12-27 20:57:19,325 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/12_npm_package_list.py
20:57:19 2018-12-27 20:57:19,325 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/20_file_list.py
20:57:19 2018-12-27 20:57:19,325 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/12_gem_package_list.py
20:57:19 2018-12-27 20:57:19,325 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/13_secret_search.py
20:57:19 2018-12-27 20:57:19,325 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/30_file_checksums.py
20:57:19 2018-12-27 20:57:19,326 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/11_package_detail_list.py
20:57:19 2018-12-27 20:57:19,326 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/13_content_search.py
20:57:19 2018-12-27 20:57:19,326 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/32_python_packages.py
20:57:19 2018-12-27 20:57:19,326 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/40_file_suids.py
20:57:19 2018-12-27 20:57:19,327 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/01_analyzer_meta.py
20:57:19 2018-12-27 20:57:19,327 DEBUG analyzer.py run_analyzers skipping analyzer (no change in analyzer/config and prior run succeeded): /usr/lib/python2.7/site-packages/anchore/anchore-modules/analyzers/31_file_package_verify.py
20:57:19 2018-12-27 20:57:19,327 DEBUG analyzer.py run_analyzers analyzer commands all finished with successful exit codes
20:57:19 2018-12-27 20:57:19,327 DEBUG analyzer.py run_analyzers saving image information with updated analysis data
20:57:19 2018-12-27 20:57:19,329 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea/reports/image_report.json), but failed to load for imageId (4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea) - exception: No JSON object could be decoded
20:57:19 2018-12-27 20:57:19,330 ERROR common.py anchore_print_err failed to run analyzer
20:57:19 Traceback (most recent call last):
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/cli/analyzer.py", line 392, in analyze
20:57:19 rc = analyzer.Analyzer(anchore_config=anchore_config, imagelist=inlist, allimages=allimages, force=force, args=args).run()
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/analyzer.py", line 416, in run
20:57:19 success = self.run_analyzers(image)
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/analyzer.py", line 368, in run_analyzers
20:57:19 image.save_image()
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/anchore_image.py", line 263, in save_image
20:57:19 self.anchore_db.save_image_report(self.meta['imageId'], report)
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/anchore_image_db/anchore_image_db_fs.py", line 625, in save_image_report
20:57:19 diff = list(set(oldreport['anchore_current_tags']).symmetric_difference(set(report['anchore_current_tags'])))
20:57:19 TypeError: unhashable type: 'list'
20:57:19 2018-12-27 20:57:19,331 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'fa21bf78d25e', 'usertype': None, 'shortId': u'1fc25d14020a', 'imagename': u'1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946', 'parentId': u'fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90', 'shortname': u'1fc25d14020a', 'imageId': u'1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946', 'sizebytes': '261815094', 'humanname': u'1fc25d14020a'}
20:57:19 2018-12-27 20:57:19,331 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946/reports/image_report.json), but failed to load for imageId (1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946) - exception: No JSON object could be decoded
20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x32bd090>> ignored
20:57:19 2018-12-27 20:57:19,331 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'10cc4becbe9f', 'usertype': None, 'shortId': u'f1495ea6b72c', 'imagename': u'f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b', 'parentId': u'10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505', 'shortname': u'f1495ea6b72c', 'imageId': u'f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b', 'sizebytes': '306857985', 'humanname': u'f1495ea6b72c'}
20:57:19 2018-12-27 20:57:19,332 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b/reports/image_report.json), but failed to load for imageId (f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b) - exception: No JSON object could be decoded
20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x31dcf90>> ignored
20:57:19 2018-12-27 20:57:19,332 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'28dcf4463643', 'usertype': None, 'shortId': u'1706df414124', 'imagename': u'1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10', 'parentId': u'28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c', 'shortname': u'1706df414124', 'imageId': u'1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10', 'sizebytes': '306857985', 'humanname': u'1706df414124'}
20:57:19 2018-12-27 20:57:19,332 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10/reports/image_report.json), but failed to load for imageId (1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10) - exception: No JSON object could be decoded
20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x31dcb10>> ignored
20:57:19 2018-12-27 20:57:19,332 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'f1495ea6b72c', 'usertype': None, 'shortId': u'28dcf4463643', 'imagename': u'28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c', 'parentId': u'f1495ea6b72c139a0c3d8c0bac27dc09400987a6fdda0525b55133f76c3bfe2b', 'shortname': u'28dcf4463643', 'imageId': u'28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c', 'sizebytes': '306857985', 'humanname': u'28dcf4463643'}
20:57:19 2018-12-27 20:57:19,333 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c/reports/image_report.json), but failed to load for imageId (28dcf4463643a526c95b1de34e9d50450c952d250efae04c04aec769e053917c) - exception: No JSON object could be decoded
20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x31dce50>> ignored
20:57:19 2018-12-27 20:57:19,333 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'1fc25d14020a', 'usertype': None, 'shortId': u'10cc4becbe9f', 'imagename': u'10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505', 'parentId': u'1fc25d14020a53ce9cbb9af0a1ef2b835feb4f799a1c2e3fab07867250fb8946', 'shortname': u'10cc4becbe9f', 'imageId': u'10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505', 'sizebytes': '261824606', 'humanname': u'10cc4becbe9f'}
20:57:19 2018-12-27 20:57:19,333 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505/reports/image_report.json), but failed to load for imageId (10cc4becbe9fc8ab3901a74588ffef73a1a16109173efa25545a51abfb511505) - exception: No JSON object could be decoded
20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x32bd490>> ignored
20:57:19 2018-12-27 20:57:19,333 ERROR common.py anchore_print_err analysis failed for one or more images.
20:57:19 Traceback (most recent call last):
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/cli/analyzer.py", line 392, in analyze
20:57:19 rc = analyzer.Analyzer(anchore_config=anchore_config, imagelist=inlist, allimages=allimages, force=force, args=args).run()
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/analyzer.py", line 416, in run
20:57:19 success = self.run_analyzers(image)
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/analyzer.py", line 368, in run_analyzers
20:57:19 image.save_image()
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/anchore_image.py", line 263, in save_image
20:57:19 self.anchore_db.save_image_report(self.meta['imageId'], report)
20:57:19 File "/usr/lib/python2.7/site-packages/anchore/anchore_image_db/anchore_image_db_fs.py", line 625, in save_image_report
20:57:19 diff = list(set(oldreport['anchore_current_tags']).symmetric_difference(set(report['anchore_current_tags'])))
20:57:19 TypeError: unhashable type: 'list'
20:57:19 2018-12-27 20:57:19,334 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'', 'usertype': None, 'shortId': u'fa21bf78d25e', 'imagename': u'fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90', 'parentId': u'', 'shortname': u'fa21bf78d25e', 'imageId': u'fa21bf78d25e1fa3d46660182ec8ca383f294e18e780a8b2538163c6ce8e4f90', 'sizebytes': '261809129', 'humanname': u'owasp/modsecurity:v3-ubuntu-nginx'}
20:57:19 2018-12-27 20:57:19,335 DEBUG anchore_image.py __del__ destructor called: {'shortparentId': u'1706df414124', 'usertype': 'user', 'shortId': u'4a2f8bce9861', 'imagename': u'4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea', 'parentId': u'1706df4141241db1af14f78ed8f4ecfcb7977fca0fb0978be985c53277761e10', 'shortname': u'4a2f8bce9861', 'imageId': u'4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea', 'sizebytes': '306857985', 'humanname': u'4a2f8bce9861'}
20:57:19 2018-12-27 20:57:19,336 DEBUG anchore_image_db_fs.py load_image_report image report json found (/root/.anchore/data/4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea/reports/image_report.json), but failed to load for imageId (4a2f8bce98614ce0020cdad29260d9150536956eac6dd61ad7d2af4c70288aea) - exception: No JSON object could be decoded
20:57:19 Exception TypeError: "unhashable type: 'list'" in <bound method AnchoreImage.__del__ of <anchore.anchore_image.AnchoreImage object at 0x31dc990>> ignored
20:57:19 2018-12-27T20:57:19.382 DEBUG AnchoreWorker Execution of "docker exec jenkins_anchore anchore --debug analyze --skipgates --imagefile /root/anchore.development_282/images" returned 1
20:57:19 2018-12-27T20:57:19.382 ERROR AnchoreWorker Anchore analyzer failed with return code 1, check output above for details
20:57:19 2018-12-27T20:57:19.382 ERROR AnchorePlugin Failing Anchore Container Image Scanner Plugin build step due to errors in plugin execution
20:57:19 hudson.AbortException: Anchore analyzer failed, check output above for details
20:57:19 at com.anchore.jenkins.plugins.anchore.BuildWorker.runAnalyzerLocal(BuildWorker.java:295)
20:57:19 at com.anchore.jenkins.plugins.anchore.BuildWorker.runAnalyzer(BuildWorker.java:175)
20:57:19 at com.anchore.jenkins.plugins.anchore.AnchoreBuilder.perform(AnchoreBuilder.java:233)
20:57:19 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
20:57:19 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
20:57:19 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
20:57:19 at hudson.security.ACL.impersonate(ACL.java:290)
20:57:19 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
20:57:19 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
20:57:19 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
20:57:19 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
20:57:19 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
20:57:19 at java.lang.Thread.run(Thread.java:748)
20:57:19 2018-12-27T20:57:19.382 DEBUG AnchoreWorker Cleaning up build artifacts
20:57:19 2018-12-27T20:57:19.382 DEBUG AnchoreWorker Deleting Jenkins workspace AnchoreReport.development_282
20:57:19 2018-12-27T20:57:19.385 DEBUG AnchoreWorker Deleting Anchore container workspace /root/anchore.development_282
20:57:19 2018-12-27T20:57:19.385 DEBUG AnchoreWorker Executing "docker exec jenkins_anchore rm -rf /root/anchore.development_282"
20:57:19 $ docker exec jenkins_anchore rm -rf /root/anchore.development_282
20:57:19 2018-12-27T20:57:19.544 DEBUG AnchoreWorker Execution of "docker exec jenkins_anchore rm -rf /root/anchore.development_282" returned 0
20:57:19 2018-12-27T20:57:19.545 INFO AnchorePlugin Completed Anchore Container Image Scanner build step
[Pipeline] sh
20:57:19 [neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA] Running shell script
20:57:19 + cat anchore_images
20:57:19 nebulagarage/proxy:development /home/ubuntu/workspace/neb-proxy_development-TDIDJWKBYTRESTCEVAPDJLMGQL67ZFAEKTH4KKKXBUL2ORCCFWJA/Dockerfile