Context:
After migrating a previous Gitlab version (Community Edition 9.5.10) to
a new GITLAB running docker image gitlab/gitlab-ee:15.0.5-ee.0
(https://gitlab.com/gitlab-org/gitlab/-/tags/v15.0.5-ee)
I got problem using CI Lint and pipeline with syntax with .gitlab-ci.yml.
(A) problem on CI LINT validation :
{group} > {my project} >
On the left sidebar, select CI/CD > Pipelines.
In the upper-right corner, select CI lint.
Validate your GitLab CI configuration
<copy/paste hello world below>
Validate
=> “Error: Request failed with status code 500”
When Validate with [x] "Simulate a pipeline created for the default branch"
=> "Syntax is incorrect. CI configuration validated,
including all configuration added with the includes keyword. More information
Undefined error (01GWKKZHPAM19JR91WYSKJZA7W)"
(B) Pipeline Editor > Edit
https://{external domain}/{group}/{project}/-/ci/lint
=> OK
But
Pipeline Editor > visualize
Pipeline Editor > Lint
Pipeline Editor > View merged YAML
=> "We're experiencing difficulties and this tab content is currently unavailable."
(C) When commiting, the Pipeline Jobs immediatly fails with
=> “Found errors in your .gitlab-ci.yml: Undefined error (01GWH7GEZ15X5QWZ7NK0WTNMVK)”
(D) Google Chrome debug console when visualise pipeline
Contents of .gitlab-ci.yml
build1:
stage: build
script:
- echo Hello World
interresting logs / inside container
==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 138ms (ActiveRecord: 48.8ms | Elasticsearch: 0.0ms | Allocations: 34312)
==> /var/log/gitlab/gitlab-rails/production.log <==
OpenSSL::Cipher::CipherError (bad decrypt):
app/models/concerns/ci/has_variable.rb:44:in uncached_runner_variable' app/models/concerns/ci/has_variable.rb:38:in
block in to_runner_variable’
lib/gitlab/safe_request_store.rb:12:in fetch' app/models/concerns/ci/has_variable.rb:38:in
to_runner_variable’
app/models/concerns/ci/maskable.rb:22:in `to_runner_variable’
…
other tests
https://{external domain}/api/v4/projects/{group}%2f{projet}/ci/lint
=> {“message”:“500 Internal Server Error”}
http://{external domain}/api/v4/projects/{group}%2f{projet}/repository/branches/master
=> OK ( json provided )
/usr/local/bin/gitlab-runner --debug run --working-directory /home/gitlab-runner --config /etc/gitlab-runner/config.toml
…
Checking for jobs… nothing runner=pFZYeLBA
Feeding runners to channel builds=0
=> seem OK
https://{external domain}/api/graphql
=> {“errors”:[{“message”:“Unexpected end of document”,“locations”:}]}
GraphQl api test using SSH tunnel
http://localhost:3000/api/graphql
=> “errors”:[{“message”:“Unexpected end of document”,“locations”:}]}
Special notes : brackets elements is for scrubbing the customer & project
{group} : GITLAB project group name for our customer
{project} : GITLAB projet name
{gitlab hostname} : hosting amazon instance
{external domain} : external URL of our registered DNS name and HTTPS signed certificate
Thanks for your help.