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

Command execution error to find the quay database name

XMLWordPrintable

    • True
    • Hide

      Command cannot be executed

      Show
      Command cannot be executed
    • False

      Because the number of quay-app replicas has been reduced to 0 in the previous step, the subsequent command to search for the database in the quay-app pod is wrong.

      1. Executing this command will result in an error

      ~$ oc -n <quay_namespace> rsh $(oc get pod -l app=quay -o NAME -n <quay_namespace> |head -n 1) cat /conf/stack/config.yaml|awk -F"/" '/^DB_URI/

      {print $4}

      '
      Error from server (NotFound): pods "cat" not found~

      https://docs.redhat.com/zh-cn/documentation/red_hat_quay/3.14/html/red_hat_quay_operator_features/backing-up-red-hat-quay-operator#backing-up-managed-database

              rhn-support-stevsmit Steven Smith
              rhn-support-yawei Yang Wei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: