Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-7382

Hub UI not coming up as expected

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      During Hub testing on Z and P, facing an issue with Tekton Hub API where the API pod fails is failing. This causes the catalog sync process to fail and ui is not coming as expected. 
      The API url and UI url status was showing ok.

      $ oc logs tekton-hub-api-68f94648fc-n6g6g -n openshift-pipelines | grep -i error
      {"level":"info","ts":1742195451.0686939,"caller":"app/gorm_logger.go:75","msg":"SELECT * FROM \"accounts\" WHERE user_name = 'apiserver-bot' AND \"accounts\".\"deleted_at\" IS NULL ORDER BY \"accounts\".\"id\" LIMIT 1","service":"initializer","file":"/go/src/github.com/tektoncd/hub/api/pkg/db/initializer/initializer.go:256","db-error":"record not found","duration":"[1.412ms]","rows":0}
      {"level":"info","ts":1742195451.0751238,"caller":"api/http.go:160","msg":"HTTP \"CatalogError\" mounted on GET /catalog/{catalogName}/error","service":"http"}
      {"level":"info","ts":1742195451.0751376,"caller":"api/http.go:160","msg":"HTTP \"CORS\" mounted on OPTIONS /catalog/{catalogName}/error","service":"http"}
      {"level":"error","ts":1742195454.0903645,"caller":"git/git.go:149","msg":"executedCommand","service":"git","name":"repo","url":"https://github.com/tektoncd/catalog","git init /tmp/catalog/tekton":"executedCommandOutput","":"exec: \"git\": executable file not found in $PATH","stacktrace":"github.com/tektoncd/hub/api/pkg/git.git\n\t/go/src/github.com/tektoncd/hub/api/pkg/git/git.go:149\ngithub.com/tektoncd/hub/api/pkg/git.(*client).initRepo\n\t/go/src/github.com/tektoncd/hub/api/pkg/git/git.go:97\ngithub.com/tektoncd/hub/api/pkg/git.(*client).Fetch\n\t/go/src/github.com/tektoncd/hub/api/pkg/git/git.go:51\ngithub.com/tektoncd/hub/api/pkg/service/catalog.(*syncer).Process\n\t/go/src/github.com/tektoncd/hub/api/pkg/service/catalog/syncer.go:235\ngithub.com/tektoncd/hub/api/pkg/service/catalog.(*syncer).Run.func1\n\t/go/src/github.com/tektoncd/hub/api/pkg/service/catalog/syncer.go:105"}
      {"level":"error","ts":1742195454.0904336,"caller":"catalog/syncer.go:237","msg":"exec: \"git\": executable file not found in $PATHclone failed","service":"syncer","action":"process","stacktrace":"github.com/tektoncd/hub/api/pkg/service/catalog.(*syncer).Process\n\t/go/src/github.com/tektoncd/hub/api/pkg/service/catalog/syncer.go:237\ngithub.com/tektoncd/hub/api/pkg/service/catalog.(*syncer).Run.func1\n\t/go/src/github.com/tektoncd/hub/api/pkg/service/catalog/syncer.go:105"}
      {"level":"info","ts":1742195454.0918884,"caller":"app/gorm_logger.go:75","msg":"UPDATE \"sync_jobs\" SET \"status\"='error',\"updated_at\"='2025-03-17 07:10:54.09' WHERE \"sync_jobs\".\"deleted_at\" IS NULL AND \"id\" = 1","service":"syncer","file":"/go/src/github.com/tektoncd/hub/api/pkg/service/catalog/syncer.go:214","duration":"[1.411ms]","rows":1}
      {"level":"info","ts":1742195454.0927298,"caller":"app/gorm_logger.go:75","msg":"SELECT * FROM \"sync_jobs\" WHERE \"sync_jobs\".\"status\" = 'queued' AND \"sync_jobs\".\"deleted_at\" IS NULL ORDER BY created_at,\"sync_jobs\".\"id\" LIMIT 1","service":"syncer","file":"/go/src/github.com/tektoncd/hub/api/pkg/service/catalog/syncer.go:217","db-error":"record not found","duration":"[0.243ms]","rows":0}
      
      
      $oc exec -it tekton-hub-api-68f94648fc-n6g6g -n openshift-pipelines -- which git
      ERRO[0000] exec failed: unable to start container process: exec: "which": executable file not found in $PATH
      command terminated with exit code 255
      
      $ oc get deployment tekton-hub-api -n openshift-pipelines -o yaml | grep image
              image: registry.stage.redhat.io/openshift-pipelines/pipelines-hub-api-rhel9@sha256:d3a28a26522bc95885473fb96f1970a3787095dc4d26d1811c782d64c508d159 

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       On 1.18.0 builds, getting this issue while testing Hub.

       

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              Unassigned Unassigned
              priyjain Priyanka Jain
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: