Clair using make local-dev-up-with-quay failing to start quay

102 views
Skip to first unread message

Bill Gercken

unread,
Oct 28, 2021, 9:15:53 AM10/28/21
to clair-dev
Hello,

I am running into the following issue. Any pointers are appreciated.

Thanks.
-bill

Using `make local-dev-up-with-quay` quay fails to start with the following error:


```
time="2021-10-27T22:11:04Z" level=debug msg="Validating SecurityScanner"
time="2021-10-27T22:11:04Z" level=debug msg="Attempting to reach http://clair-traefik:8089"
time="2021-10-27T22:11:04Z" level=debug msg="Dialing clair-traefik:8089 with scheme http"
time="2021-10-27T22:11:04Z" level=debug msg="SecurityScanner%!(EXTRA string=dial tcp 172.19.0.2:8089: connect: connection refused, []string=[SECURITY_SCANNER_V4_ENDPOINT])"
```

Looks like port 8089 is assocaited with the introspection server. I don't see where that gets included in the build (still trying to figure out how you build this from scratch).

Tested with master, release-4.3 and release-4.2. In all cases I had to restart the indexer as well.  CentOS 7 latest.

```
[wgercken@speedo ~]$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[wgercken@speedo ~]$ uname -r
3.10.0-1160.45.1.el7.x86_64
```

```
[wgercken@speedo ~]$ netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp6       0      0 :::9411                 :::*                    LISTEN
tcp6       0      0 :::5672                 :::*                    LISTEN
tcp6       0      0 :::14250                :::*                    LISTEN
tcp6       0      0 :::6060                 :::*                    LISTEN
tcp6       0      0 :::61613                :::*                    LISTEN
tcp6       0      0 :::16686                :::*                    LISTEN
tcp6       0      0 :::8081                 :::*                    LISTEN
tcp6       0      0 :::8082                 :::*                    LISTEN
tcp6       0      0 :::5778                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 :::8087                 :::*                    LISTEN
tcp6       0      0 :::5432                 :::*                    LISTEN
tcp6       0      0 :::3000                 :::*                    LISTEN
tcp6       0      0 :::7000                 :::*                    LISTEN
tcp6       0      0 ::1:25                  :::*                    LISTEN
tcp6       0      0 :::14268                :::*                    LISTEN
tcp6       0      0 :::8161                 :::*                    LISTEN
tcp6       0      0 :::9090                 :::*                    LISTEN
```


```
getenforce
Permissive

git branch -l
  main
* release-4.2

go version
go version go1.17.2 linux/amd64

 docker version
Client: Docker Engine - Community
 Version:           19.03.9
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        9d988398e7
 Built:             Fri May 15 00:25:27 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.9
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       9d988398e7
  Built:            Fri May 15 00:24:05 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13

```

```
docker-compose ps
      Name                    Command                  State                                                                                                      Ports
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
clair-activemq     /app/run.sh                      Up             1883/tcp, 5672/tcp, 0.0.0.0:61613->61613/tcp, 61614/tcp, 61616/tcp, 0.0.0.0:8161->8161/tcp
clair-db           docker-entrypoint.sh postgres    Up (healthy)   0.0.0.0:5432->5432/tcp
clair-grafana      /run.sh                          Up             0.0.0.0:3000->3000/tcp
clair-indexer      bash -c cd /src/clair/cmd/ ...   Up
clair-jaeger       /go/bin/all-in-one-linux - ...   Up             0.0.0.0:14250->14250/tcp, 0.0.0.0:14268->14268/tcp, 0.0.0.0:16686->16686/tcp, 0.0.0.0:5775->5775/udp, 0.0.0.0:5778->5778/tcp, 0.0.0.0:6831->6831/udp, 0.0.0.0:6832->6832/udp, 0.0.0.0:9411->9411/tcp
clair-matcher      bash -c cd /src/clair/cmd/ ...   Up
clair-notifier     bash -c cd /src/clair/cmd/ ...   Up
clair-pgadmin      /entrypoint.sh                   Up             443/tcp, 80/tcp, 0.0.0.0:8081->8081/tcp
clair-prometheus   /bin/prometheus --config.f ...   Up             0.0.0.0:9090->9090/tcp
clair-quay         dumb-init -- /quay-registr ...   Exit 1
clair-rabbitmq     docker-entrypoint.sh rabbi ...   Up             15671/tcp, 0.0.0.0:8087->15672/tcp, 25672/tcp, 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp
clair-redis        docker-entrypoint.sh redis ...   Up             0.0.0.0:6379->6379/tcp
clair-swagger      /docker-entrypoint.sh sh / ...   Up             80/tcp, 0.0.0.0:8082->8080/tcp
clair-traefik      /entrypoint.sh --api.insec ...   Up             0.0.0.0:6060->6060/tcp, 80/tcp, 0.0.0.0:7000->8080/tcp
quay-db            docker-entrypoint.sh postgres    Up (healthy)   0.0.0.0:5433->5432/tcp
```


```
docker network inspect 1074db3f3eec
[
    {
        "Name": "clair_default",
        "Id": "1074db3f3eec6bc2b3b5447aeaea298e20091292a0780be8a322b890536a4c61",
        "Created": "2021-10-27T18:03:46.161292186-04:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.19.0.0/16",
                    "Gateway": "172.19.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": true,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "0087d6047c63872d2c4c70ae8a0b60f189b896e1b51d205f28b59aacc813addd": {
                "Name": "clair-jaeger",
                "EndpointID": "2e7f09b8a36c3c0d4d8445a658fc188476f3988dbf468a78a47fc4ed82f39fbe",
                "MacAddress": "02:42:ac:13:00:03",
                "IPv4Address": "172.19.0.3/16",
                "IPv6Address": ""
            },
            "0ea528349f0cfebb97281aee98acf200a5d78ef16886ea2537d2a78e9392b0b9": {
                "Name": "clair-redis",
                "EndpointID": "19b8238060b1199cf6590e04967fb145026bd2c68ee621a20a153dae860781be",
                "MacAddress": "02:42:ac:13:00:0d",
                "IPv4Address": "172.19.0.13/16",
                "IPv6Address": ""
            },
            "2052d23e67c6b86258c3669ba879e9a2df4ee0d73532ae869fcdbf96889e226e": {
                "Name": "clair-traefik",
                "EndpointID": "f0287d242580b797bacaa4ea80da2696a2383a0daea5cd596654b8ab0affbbdf",
                "MacAddress": "02:42:ac:13:00:02",
                "IPv4Address": "172.19.0.2/16",
                "IPv6Address": ""
            },
            "6467e48d3a438c59beb182c2b3cdae617cbafee07cf68466bf3741718ce40d37": {
                "Name": "clair-indexer",
                "EndpointID": "6e621cbda7a78c515430d70f8634451a9e21ba9eba40c11afa285dea47a097e4",
                "MacAddress": "02:42:ac:13:00:0f",
                "IPv4Address": "172.19.0.15/16",
                "IPv6Address": ""
            },
            "7a3a57caaac14e32c75d35ed30f1b12154e51990d1304fba1665bf276dce8ad5": {
                "Name": "clair-activemq",
                "EndpointID": "6e41910f9492081f8ab66ef79a2340351a7ca211197a9d10fe196292fea77586",
                "MacAddress": "02:42:ac:13:00:07",
                "IPv4Address": "172.19.0.7/16",
                "IPv6Address": ""
            },
            "97a03b2ef1e4dd0e9d430e91ef7ed99074de630cf1f83883965e9ea77141abe5": {
                "Name": "clair-swagger",
                "EndpointID": "5c933c1f399d2fd8e1ffbf5ca463722a8e2f21031d8a78f77a993620ec6fc123",
                "MacAddress": "02:42:ac:13:00:0a",
                "IPv4Address": "172.19.0.10/16",
                "IPv6Address": ""
            },
            "9bdfc66185dbecb9b36e82abffdae6c453db8afe6d566ddfef7d3efd30f06b5c": {
                "Name": "clair-notifier",
                "EndpointID": "8ef0e3d731f7a34853aa0e28cf5825f8697d273454fdd384c522916f92027238",
                "MacAddress": "02:42:ac:13:00:0c",
                "IPv4Address": "172.19.0.12/16",
                "IPv6Address": ""
            },
            "a6c2f2c6eaf7589499840084fda07b367b078a1962604dce7b1d2daf4eb2e748": {
                "Name": "clair-db",
                "EndpointID": "e89e5fc8f9b9bcf6e0342aaf72c330efe68495bde9447ac11fe5afd8b9f6a8aa",
                "MacAddress": "02:42:ac:13:00:08",
                "IPv4Address": "172.19.0.8/16",
                "IPv6Address": ""
            },
            "bf09cc96764912f0cf785b524e09916664f39aadd38ff0e7de693dadedb44ad3": {
                "Name": "clair-grafana",
                "EndpointID": "e26441a0175d98b9bd2b32dd03a238d77b589ef2c154135b037c58ea6ba059a2",
                "MacAddress": "02:42:ac:13:00:05",
                "IPv4Address": "172.19.0.5/16",
                "IPv6Address": ""
            },
            "dae5711fcd365661c96085c544edc04179cfb4691450bf14c0f3140d9d2f8a87": {
                "Name": "clair-prometheus",
                "EndpointID": "484bf2f8aeef7ce78c7dc0940982bc7aa23150fe4f31d60fa701511846fe15be",
                "MacAddress": "02:42:ac:13:00:04",
                "IPv4Address": "172.19.0.4/16",
                "IPv6Address": ""
            },
            "e6d66c7659aa239e87bde9a1900b64095530ac04601146c0716b05669ed6e72e": {
                "Name": "quay-db",
                "EndpointID": "5d2ff6296d4eab6bb53b738e944ec2fc6b7d2a661f61be92714d8d5f449d9df5",
                "MacAddress": "02:42:ac:13:00:0e",
                "IPv4Address": "172.19.0.14/16",
                "IPv6Address": ""
            },
            "ee94e720560d0c20adaa6246f7dce5a53b1d2b2781108099c6548101f41ccd2a": {
                "Name": "clair-rabbitmq",
                "EndpointID": "926e40f09e50415a00b357f876ef8d1d7b7996ba8a8f19531b89feffcc2149b5",
                "MacAddress": "02:42:ac:13:00:06",
                "IPv4Address": "172.19.0.6/16",
                "IPv6Address": ""
            },
            "fc17da28500e85aa87654bc8d0093f4f45717a85e743098970f1d4130ac6119e": {
                "Name": "clair-matcher",
                "EndpointID": "a03eea7308d275515e369127c23543f0428134e9cd00d25e8f6a702d3806a4d2",
                "MacAddress": "02:42:ac:13:00:0b",
                "IPv4Address": "172.19.0.11/16",
                "IPv6Address": ""
            },
            "fc740625b74ac3198e10e2b772aa34b34c8a21a141bfda8614b896ff5e93bf54": {
                "Name": "clair-pgadmin",
                "EndpointID": "1937ead48bb1425136a7be30c13f1864a586918b1e09692013c1f7ffdf322061",
                "MacAddress": "02:42:ac:13:00:09",
                "IPv4Address": "172.19.0.9/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.bridge.name": "clair"
        },
        "Labels": {
            "com.docker.compose.network": "default",
            "com.docker.compose.project": "clair",
            "com.docker.compose.version": "1.28.2"
        }
    }
]
```


Reply all
Reply to author
Forward
0 new messages