Загрузка данных



Search job log
Running with gitlab-runner 15.8.0 (12335144)
  on gitlab-runner-gitlab-runner-64775b4cff-qpdc8 9cgwHtm5, system ID: r_FsAm41LqwxCr
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: gitlab-runners
Using Kubernetes executor with image registry.rshbdev.ru/appfarm/infra/images/kube-client-apps:8.21.10 ...
Using attach strategy to execute scripts...
Preparing environment
00:06
Waiting for pod gitlab-runners/runner-9cgwhtm5-project-19064-concurrent-02gs2l to be running, status is Pending
Waiting for pod gitlab-runners/runner-9cgwhtm5-project-19064-concurrent-02gs2l to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-9cgwhtm5-project-19064-concurrent-02gs2l via gitlab-runner-gitlab-runner-64775b4cff-qpdc8...
Getting source from Git repository
00:02
$ git config --global --add url."https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/".insteadOf "https://${CI_SERVER_HOST}" # collapsed multi-line command
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/rshbintech/crft/ckof/ownfin/backend/prd/self-employment/.git/
Created fresh repository.
Checking out 63ab0016 as master...
Skipping Git submodules setup
Downloading artifacts
00:02
Downloading artifacts for devsecops_antivirus_scan (23228770)...
Downloading artifacts from coordinator... ok        id=23228770 responseStatus=200 OK token=64_aViSS
Downloading artifacts for dockerfilegen (23228774)...
Downloading artifacts from coordinator... ok        id=23228774 responseStatus=200 OK token=64_aViSS
Downloading artifacts for build (23228777)...
Downloading artifacts from coordinator... ok        id=23228777 responseStatus=200 OK token=64_aViSS
Downloading artifacts for unit (23228779)...
Downloading artifacts from coordinator... ok        id=23228779 responseStatus=200 OK token=64_aViSS
Executing "step_script" stage of the job script
00:03
$ ( umask 0077; mkdir -p ~/.kube && echo "$KUBECONFIG_COMBINED" | base64 -d > ~/.kube/config )
$ if [[ ${IS_SENSITIVE_SYSTEM} = true ]]; then export K8S_CLUSTERS=$K8S_CLUSTERS_SENSITIVE; fi
$ echo 'IS_SENSITIVE_SYSTEM:' $IS_SENSITIVE_SYSTEM
IS_SENSITIVE_SYSTEM: true
$ echo 'TARGET_CLUSTERS:' $K8S_CLUSTERS
TARGET_CLUSTERS: devstbl
$ set -x
++ echo '$ for CLUSTER in $K8S_CLUSTERS; do'
$ for CLUSTER in $K8S_CLUSTERS; do
++ for CLUSTER in $K8S_CLUSTERS
++ echo '$ export CLUSTER=$CLUSTER'
$ export CLUSTER=$CLUSTER
++ export CLUSTER=devstbl
++ CLUSTER=devstbl
++ echo '$ if [[ ${CI_ENVIRONMENT_SLUG} = production ]]; then export NAMESPACE=isys-${ISYS_NAME}; else export NAMESPACE=isys-${ISYS_NAME}-${CI_ENVIRONMENT_SLUG}; fi'
$ if [[ ${CI_ENVIRONMENT_SLUG} = production ]]; then export NAMESPACE=isys-${ISYS_NAME}; else export NAMESPACE=isys-${ISYS_NAME}-${CI_ENVIRONMENT_SLUG}; fi
++ [[ dev = production ]]
++ export NAMESPACE=isys-ownfin-dev
++ NAMESPACE=isys-ownfin-dev
++ echo '$ read -r REVISION STATUS < <(helm --kube-context ${CLUSTER:-default} -n $NAMESPACE history $CI_PROJECT_NAME | tail -1 | cut -f1,3) || true'
$ read -r REVISION STATUS < <(helm --kube-context ${CLUSTER:-default} -n $NAMESPACE history $CI_PROJECT_NAME | tail -1 | cut -f1,3) || true
++ read -r REVISION STATUS
+++ helm --kube-context devstbl -n isys-ownfin-dev history self-employment
+++ tail -1
+++ cut -f1,3
++ echo '$ if [[ "$STATUS" =~ "pending" ]]; then helm --kube-context ${CLUSTER:-default} -n $NAMESPACE rollback $CI_PROJECT_NAME $REVISION || true; fi'
$ if [[ "$STATUS" =~ "pending" ]]; then helm --kube-context ${CLUSTER:-default} -n $NAMESPACE rollback $CI_PROJECT_NAME $REVISION || true; fi
++ [[ deployed =~ pending ]]
++ echo '$ helmfile ${HELMFILE_DEFAULT_NAMESPACE:+--namespace $HELMFILE_DEFAULT_NAMESPACE} --environment ${CLUSTER:-default} -f deploy/helmfile.yaml --log-level info apply --suppress-secrets --set "additionalWorkloadAnnotations.gitlabPipeline=${CI_PIPELINE_URL}" --set "additionalWorkloadAnnotations.gitlabCommit=${CI_COMMIT_SHA}"'
$ helmfile ${HELMFILE_DEFAULT_NAMESPACE:+--namespace $HELMFILE_DEFAULT_NAMESPACE} --environment ${CLUSTER:-default} -f deploy/helmfile.yaml --log-level info apply --suppress-secrets --set "additionalWorkloadAnnotations.gitlabPipeline=${CI_PIPELINE_URL}" --set "additionalWorkloadAnnotations.gitlabCommit=${CI_COMMIT_SHA}"
++ helmfile --environment devstbl -f deploy/helmfile.yaml --log-level info apply --suppress-secrets --set additionalWorkloadAnnotations.gitlabPipeline=https://gitlab.rshbdev.ru/rshbintech/crft/ckof/ownfin/backend/prd/self-employment/-/pipelines/3333129 --set additionalWorkloadAnnotations.gitlabCommit=63ab0016c7baa7013b39169e6646c8e91c78fb00
== /usr/local/link/helmfile: Initialize base deploy hierarchy in /builds/rshbintech/crft/ckof/ownfin/backend/prd/self-employment
in deploy/helmfile.yaml: failed to read bases/_predefined.yaml: failed to load environment values file "statevalues/_predefined.yaml.gotmpl": failed to render [statevalues/_predefined.yaml.gotmpl], because of template: stringTemplate:264:28: executing "stringTemplate" at <exec "vault-wrapper" (list $secretPathGlobal)>: error calling exec: command "/usr/local/bin/vault-wrapper" exited with non-zero status:
PATH:
  /usr/local/bin/vault-wrapper
ARGS:
  0: vault-wrapper (13 bytes)
  1: manual_kv_dev/rshbintech/crft/ckof/ownfin/backend/prd/self-employment (69 bytes)
ERROR:
  exit status 2
EXIT STATUS
  2
STDERR:
  Error making API request.
  URL: GET https://vault.rshbdev.ru/v1/sys/internal/ui/mounts/manual_kv_dev/rshbintech/crft/ckof/ownfin/backend/prd/self-employment
  Code: 403. Errors:
  * permission denied
COMBINED OUTPUT:
  Error making API request.
  URL: GET https://vault.rshbdev.ru/v1/sys/internal/ui/mounts/manual_kv_dev/rshbintech/crft/ckof/ownfin/backend/prd/self-employment
  Code: 403. Errors:
  * permission denied
  null
Uploading artifacts for failed job
00:00
Uploading artifacts...
WARNING: deploy.env: no matching files. Ensure that the artifact path is relative to the working directory (/builds/rshbintech/crft/ckof/ownfin/backend/prd/self-employment) 
ERROR: No files to upload                          
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 1