telia-oss / github-pr-resource

Github pull request resource for Concourse
MIT License
182 stars 5 forks source link

return value 32 - meaning #182

Closed drahnr closed 4 years ago

drahnr commented 4 years ago

Using this resource coming from jtarchie/pull-request I always get this error

resource script '/opt/resource/in [/tmp/build/get]' failed: exit status 32

recreating the token or even restarting the worker did not change anything.

The (simplified) concourse yml is:

resource_types:
- name: pull-request
  type: docker-image
  source:
    repository: teliaoss/github-pr-resource

resources:
- name: pr-juice
  type: pull-request
  check_every: 10m
  source:
    repository: spearow/juice
    access_token: ((magictoken))

jobs:
  - name: pr-test-juice
    build_logs_to_retain: 4
    public: true
    serial: true
    plan:
    - in_parallel:
      - get: rust-cudnn
      - get: rust-blas
      - get: rust-cublas
      - get: pr-juice
        verision: every
        trigger: true

      - get: container-fedora-cuda
        trigger: true

    - put: pr-juice-stat
      resource: pr-juice
      params:
        path: pr-juice
        status: pending
    - task: build-fedora-build
      image: container-fedora-cuda
      config:
        platform: linux
        inputs:
        - name: rust-cudnn
        - name: rust-blas
        - name: rust-cublas
        - name: pr-juice
        caches:
        - path: target
        run:
          path: sh
          args:
          - -exc
          - |
            cargo build
          dir: pr-juice

      on_failure:
        put: pr-juice-stat
        resource: pr-juice
        params:
          path: pr-juice
          status: failure

    - task: build-fedora-test
      image: container-fedora-cuda
      config:
        platform: linux
        inputs:
        - name: rust-cudnn
        - name: rust-blas
        - name: rust-cublas
        - name: pr-juice
        caches:
        - path: target
        run:
          path: sh
          args:
          - -exc
          - |
            cargo t
          dir: pr-juice

      on_failure:
        put: pr-juice-stat
        resource: pr-juice
        params:
          path: pr-juice
          status: failure

    - put: pr-juice-stat
      resource: pr-juice
      params:
        path: pr-juice
        status: success
sirmergealot commented 4 years ago
Dec 30 22:21:05 ahoi.cloud.tilaa.com docker[19376]: {"timestamp":"2019-12-30T22:21:05.161645483Z","level":"error","source":"atc","message":"atc.checker.check-step.image.init-image.create.failed-to-fetch-resource","data":{"check":23368,"container":"92b83e9f-17fa-40df-65d9-075e20d25392","error":"resource script '/opt/resource/in [/tmp/build/get]' failed: exit status 32","session":"22.2.1.1.5","step-name":"git-pull-request-resource"}}
drahnr commented 4 years ago

The resolution from https://discuss.concourse-ci.org/t/failing-workers-with-cgroup-already-being-mounted/1966/3 also resolved this issue.