Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-4838

clair pod in crashloopbackoff with error (panic: runtime error: invalid memory address or nil pointer dereference)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • clair-4.6.0
    • None
    • clair
    • 0

      customer clusters are disconnected and they have a mirror registry (standalone quay) with an attached standalone clairV4  on VMs running with podman. These Machines have internet access to mirror images and in the case of the standalone clairv4 to update the postgresdb. The deployments in the disconnected clusters are now allowed to connect to the postgres container on the connected, standalone clairv4 instance. So there are in total 4 clair instances sharing the database of the connected podman host.

      1. oc get pods -n registry
      NAME                                      READY   STATUS             RESTARTS                                                                                                                                                                       AGE
      dev-clair-app-5d4797c8c9-5hb4l            0/1     CrashLoopBackOff   847 (3m27s                                                                                                                                                              ago)   5d18h
      dev-clair-app-5d4797c8c9-vnbgq            0/1     CrashLoopBackOff   847 (45s ag                                                                                                                                                             o)     5d21h
      dev-quay-app-6bf8c78645-2qj9d             1/1     Running            4 (5d21h ag                                                                                                                                                             o)     5d21h
      dev-quay-app-6bf8c78645-blmv2             1/1     Running            4 (5d21h ag                                                                                                                                                             o)     5d21h
      dev-quay-app-upgrade-mbc2n                0/1     Completed          0                                                                                                                                                                              6d16h
      dev-quay-config-editor-77c647c975-mjs5n   1/1     Running            0                                                                                                                                                                              6d16h
      dev-quay-database-6dbc4d8646-frd4t        1/1     Running            0                                                                                                                                                                              6d17h
      dev-quay-mirror-85cdd47d7c-qsn55          1/1     Running            0                                                                                                                                                                              6d16h
      dev-quay-mirror-85cdd47d7c-wcg8v          1/1     Running            0                                                                                                                                                                              6d16h
      dev-quay-redis-669558bd9-7x6dq            1/1     Running            0                                                                                                                                                                              6d17h4. I 2. Cu is running RHOCP on 4.10.40
      2. The Quay Version is 3.8.0

      3. clair pod error:

      {"level":"error","manifest":"sha256:f24947436fe25a4f1a7993682d05bafb62b8e826fdae8461415d36356c5d9307","version":"1.1","component":"rhel/internal/common/Updater.Get","error":"Get \"https://access.redhat.com/security/data/metrics/repository-to-cpe.json\": context deadline exceeded","time":"2022-12-13T13:54:23Z","message":"error updating mapping file"}
      46:2022-12-13T14:54:43.376980930+01:00 {"level":"error","component":"libvuln/updates/Manager.Run","error":"debian: examining remote: debian: unable to do request: Get \"http://archive.debian.org/debian/dists/\": dial tcp 130.89.148.13:80: i/o timeout","time":"2022-12-13T13:54:43Z","message":"failed constructing factory, excluding from run"}
      50:2022-12-13T14:54:44.664083263+01:00 panic: runtime error: invalid memory address or nil pointer dereference  <------

            jcroslan@redhat.com Joseph Crosland
            rhn-support-sbhavsar Sayali Bhavsar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: