Undefined Error with Dynamic Child Pipelines

Undefined Error with Dynamic child pipelines

We are currently using a self-hosted instance of Gitlab 16.1.2. We mainly use dynamic child pipeline until today where we keep getting the following error on previously working pipelines:

Undefined error (01HBGJKMQDHE8TT90DPC6FSJRB)

The pipeline error showing unknown failure:

The child pipeline error showing undefined error:

This simple gitlab-ci.yml file returns previous error:

stages:
  - child-generator
  - child-trigger

default:
  retry:
    when: runner_system_failure
    max: 2

pipeline-generator:
  image: python:3
  stage: child-generator
  variables: {}
  script:
    - |
      cat > gitlab_config_child.yaml <<EOL
      stages:
        - build

      default:
        retry:
          when: runner_system_failure
          max: 2

      pipeline-generator:
        image: python:3
        stage: build
        script:
          - echo Hello
      EOL
  artifacts:
    paths:
      - gitlab_config_child.yaml

trigger-child-pipeline:
  stage: child-trigger
  trigger:
    include:
      - artifact: gitlab_config_child.yaml
        job: pipeline-generator
    strategy: depend

Doing the exact same pipeline using a static child pipeline yaml file works fine:

stages:
  - child-generator
  - child-trigger

default:
  retry:
    when: runner_system_failure
    max: 2

trigger-child-pipeline:
  stage: child-trigger
  trigger:
    include: gitlab_config_child.yaml
    strategy: depend

We are using kubernetes executor runners deployed with the gitlab-runner Helm chart. No strange logs shown within the runners.
I could not find any information on this specific undefined error…

Thanks for your help !

1 Like

The error says “yaml invalid”. The yaml generated is stored as an artifact, so I’d suggest finding the artifact and looking at what is being generated.

1 Like

Hey @Elliott !

I tried to run a pipeline with the exact same content of my downloaded artifact gitlab_config_child.yaml, with a simple copy-paste. So my .gitlab-ci.yml looks like this

stages:
  - build

default:
  retry:
    when: runner_system_failure
    max: 2

pipeline-generator:
  image: python:3
  stage: build
  script:
    - echo Hello

And it run just fine on my GitLab instance :confused:

Problem solve after updating Gitlab Instance from 16.1.2 to 16.4.2.
For information, our Gitlab runners are still in 16.1.1. So it clearly seems to be an issue with our Gitlab Instance.

hi, guys
current we use the version v16.9.2 via docker-compose installed. and the gitlab-runner installed same with you on helm chart, but the version big than gitlab instance, and now we facing the same error as you noted, any idea on help?
thanks

Absolutely chancing it here, we’re hitting the same thing with 17.3.1 self hosted on kubernetes, did you ever work out what the issue was?

No… not very clean but the update was the magical solution in our case. Maybe try a downgrade ?

1 Like

Thanks LeTuR - it might be our only hope at this point :sob: much appreciated for getting back to me however

Possibly, the workaround for 7.3.1 is to restart all gitlab nodes or:
Alternatively, navigating to the Admin Area → CI/CD Settings (/admin/application_settings/ci_cd), expanding the Continuous Integration and Deployment section and pressing the Save button at the end there (even without changing anything) might also resolve it.

Issue: Undefined error with dynamic pipeline creation following upgrade of self hosted Gitlab to 17.3.1 (#481986) · Issues · GitLab.org / GitLab · GitLab

BR

1 Like