{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/clair/issues/558","repository_url":"https://api.github.com/repos/coreos/clair","labels_url":"https://api.github.com/repos/coreos/clair/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/coreos/clair/issues/558/comments","events_url":"https://api.github.com/repos/coreos/clair/issues/558/events","html_url":"https://github.com/coreos/clair/issues/558","id":328377926,"node_id":"MDU6SXNzdWUzMjgzNzc5MjY=","number":558,"title":"Clair responded with a failure: Got response 404 with message Not Found","user":{"login":"archmangler","id":3898404,"node_id":"MDQ6VXNlcjM4OTg0MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3898404?v=4","gravatar_id":"","url":"https://api.github.com/users/archmangler","html_url":"https://github.com/archmangler","followers_url":"https://api.github.com/users/archmangler/followers","following_url":"https://api.github.com/users/archmangler/following{/other_user}","gists_url":"https://api.github.com/users/archmangler/gists{/gist_id}","starred_url":"https://api.github.com/users/archmangler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archmangler/subscriptions","organizations_url":"https://api.github.com/users/archmangler/orgs","repos_url":"https://api.github.com/users/archmangler/repos","events_url":"https://api.github.com/users/archmangler/events{/privacy}","received_events_url":"https://api.github.com/users/archmangler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-01T04:24:21Z","updated_at":"2018-07-09T16:46:43Z","closed_at":"2018-07-09T16:46:43Z","author_association":"NONE","body":"<!--\r\n\r\nThe Clair developers only support the Clair API.\r\nThey do not support or operate any third party client (e.g. clairctl, klar, harbor).\r\nIf you are using a third party client, please create issues on their respective repositories.\r\n\r\nAre you using a development build of Clair (e.g. quay.io/coreos/clair-git)?\r\nYour problem might be solved by switching to a stable release (e.g. quay.io/coreos/clair).\r\n\r\n-->\r\n\r\n**Description of Problem**:\r\n\r\nWhen attempting to scan an image, e.g with the following command:\r\n\r\n```\r\n./clair-scanner --ip  10.0.1.2 postgres:9.6\r\n```\r\n\r\n clair responds with:\r\n\r\n```\r\n018/06/01 01:39:04 [CRIT] ▶ Could not analyze layer: Clair responded with a failure: Got response 404 with message Not Found\r\n```\r\n\r\n**Expected Outcome**:\r\n\r\nWhen using a local image scanner (e.g clair-scanner), clair shoudl respond with sensible analysis of the docker image.\r\n\r\n**Actual Outcome**:\r\n\r\nClair fails scan the image layers:\r\n\r\n```\r\nroot@lol:/opt/clair# ./clair-scanner --ip  10.0.1.2 postgres:9.6\r\n2018/06/01 04:09:43 [INFO] ▶ Start clair-scanner\r\n2018/06/01 04:09:46 [INFO] ▶ Server listening on port 9279\r\n2018/06/01 04:09:46 [INFO] ▶ Analyzing 4b781935f93a2e1bc05b9591021e51646ea4ecac64320cd58dc8c619c1fc407a\r\n2018/06/01 04:09:46 [CRIT] ▶ Could not analyze layer: Clair responded with a failure: Got response 404 with message Not Found\r\n```\r\nHere are some logs from the clair container:\r\n\r\n```\r\n{\"Event\":\"pagination key is empty, generating...\",\"Level\":\"warning\",\"Location\":\"config.go:110\",\"Time\":\"2018-06-01 03:22:39.246664\"}\r\n{\"Detectors\":\"alpine-release,apt-sources,lsb-release,os-release,redhat-release\",\"Event\":\"Clair registered components\",\"Level\":\"info\",\"Listers\":\"apk,dpkg,rpm\",\"Location\":\"main.go:103\",\"Time\":\"2018-06-01 03:22:39.246935\",\"Updaters\":\"rhel,ubuntu,alpine,debian,oracle\"}\r\n{\"Event\":\"running database migrations\",\"Level\":\"info\",\"Location\":\"pgsql.go:270\",\"Time\":\"2018-06-01 03:22:39.255074\"}\r\n{\"Event\":\"database migration ran successfully\",\"Level\":\"info\",\"Location\":\"pgsql.go:277\",\"Time\":\"2018-06-01 03:22:39.848536\"}\r\n{\"Event\":\"starting grpc server\",\"Level\":\"info\",\"Location\":\"server.go:155\",\"Time\":\"2018-06-01 03:22:39.848746\",\"addr\":\"[::]:6060\"}\r\n{\"Event\":\"updater service started\",\"Level\":\"info\",\"Location\":\"updater.go:91\",\"Time\":\"2018-06-01 03:22:39.848732\",\"lock identifier\":\"001dd8fc-1fe9-4b15-a77f-4cd35c9afd93\"}\r\n{\"Event\":\"starting health API\",\"Level\":\"info\",\"Location\":\"api.go:62\",\"Time\":\"2018-06-01 03:22:39.848756\",\"addr\":\"0.0.0.0:6061\"}\r\n{\"Event\":\"grpc server is configured without client certificate authentication\",\"Level\":\"warning\",\"Location\":\"server.go:199\",\"Time\":\"2018-06-01 03:22:39.849096\"}\r\n{\"Event\":\"notifier service is disabled\",\"Level\":\"info\",\"Location\":\"notifier.go:76\",\"Time\":\"2018-06-01 03:22:39.849412\"}\r\n{\"Event\":\"updating vulnerabilities\",\"Level\":\"info\",\"Location\":\"updater.go:191\",\"Time\":\"2018-06-01 03:22:39.851176\"}\r\n{\"Event\":\"fetching vulnerability updates\",\"Level\":\"info\",\"Location\":\"updater.go:271\",\"Time\":\"2018-06-01 03:22:39.851290\"}\r\n{\"Event\":\"Start fetching vulnerabilities\",\"Level\":\"info\",\"Location\":\"debian.go:63\",\"Time\":\"2018-06-01 03:22:39.851367\",\"package\":\"Debian\"}\r\n{\"Event\":\"Start fetching vulnerabilities\",\"Level\":\"info\",\"Location\":\"rhel.go:92\",\"Time\":\"2018-06-01 03:22:39.851364\",\"package\":\"RHEL\"}\r\n{\"Event\":\"Start fetching vulnerabilities\",\"Level\":\"info\",\"Location\":\"oracle.go:119\",\"Time\":\"2018-06-01 03:22:39.851444\",\"package\":\"Oracle Linux\"}\r\n{\"Event\":\"Start fetching vulnerabilities\",\"Level\":\"info\",\"Location\":\"ubuntu.go:88\",\"Time\":\"2018-06-01 03:22:39.851458\",\"package\":\"Ubuntu\"}\r\n{\"Event\":\"Start fetching vulnerabilities\",\"Level\":\"info\",\"Location\":\"alpine.go:52\",\"Time\":\"2018-06-01 03:22:39.851407\",\"package\":\"Alpine\"}\r\n{\"Event\":\"finished fetching\",\"Level\":\"info\",\"Location\":\"updater.go:290\",\"Time\":\"2018-06-01 03:22:44.456218\",\"updater name\":\"alpine\"}\r\n{\"Event\":\"finished fetching\",\"Level\":\"info\",\"Location\":\"updater.go:290\",\"Time\":\"2018-06-01 03:22:44.913842\",\"updater name\":\"debian\"}\r\n{\"Event\":\"finished fetching\",\"Level\":\"info\",\"Location\":\"updater.go:290\",\"Time\":\"2018-06-01 03:25:47.127418\",\"updater name\":\"ubuntu\"}\r\n{\"Event\":\"finished fetching\",\"Level\":\"info\",\"Location\":\"updater.go:290\",\"Time\":\"2018-06-01 03:35:34.003670\",\"updater name\":\"rhel\"}\r\n{\"Event\":\"finished fetching\",\"Level\":\"info\",\"Location\":\"updater.go:290\",\"Time\":\"2018-06-01 03:49:26.118770\",\"updater name\":\"oracle\"}\r\n{\"Event\":\"adding metadata to vulnerabilities\",\"Level\":\"info\",\"Location\":\"updater.go:317\",\"Time\":\"2018-06-01 03:49:26.133465\"}\r\n{\"Event\":\"update finished\",\"Level\":\"info\",\"Location\":\"updater.go:256\",\"Time\":\"2018-06-01 03:52:29.706441\"}\r\n{\"Event\":\"Handled HTTP request\",\"Level\":\"info\",\"Location\":\"server.go:105\",\"Time\":\"2018-06-01 04:09:46.644098\",\"elapsed time (ms)\":0.057273,\"method\":\"POST\",\"remote addr\":\"127.0.0.1:36020\",\"request uri\":\"/v1/layers\",\"status\":\"404\"}\r\n```\r\n\r\n\r\n\r\n\r\n**Environment**:\r\n- Clair version/image: latest\r\n- Clair client name/version:  clair-scanner\r\n- Host OS:  Ubuntu 16.04\r\n- Kernel (e.g. `uname -a`):  Linux lol 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux- Kubernetes version (use `kubectl version`): \r\n- Helm version (use `helm version`):  n/a\r\n- Network/Firewall setup:  default docker\r\n"}}
{"actor":{"display_login":"jzelinskie"}}