Hi there,
We have running a self-hosted Gitlab instance on a Ubuntu VM with Hyper-V. We want to use Gitlab CI for building, testing and deploying our NodeJS / Vue applications we develop.
I now have another VM (Ubuntu 16.04.3 LTS) running where I want to run a Gitlab CI Runner from. I followed the instructions on Gitlabs own docs: Install GitLab Runner using the official GitLab repositories | GitLab. I installed Docker CE via the recommended way with their repository. Everything looked fine, but when I commit and push my repository, a new pipeline is not created where it created a pipeline before…
I use the following .gitlab-ci.yml:
stages:
- build
- deploy
Build production:
image: node:6
stage: build
script:
- npm install
- npm run build
artifacts:
expire_in: 1 week
paths:
- dist
Deploy to test server:
image: mwienk/docker-lftp:latest
stage: deploy
script:
- lftp -c "set ftp:ssl-allow no; open -u $DEVFTP_USER,$DEVFTP_PASS $DEVFTP_HOST; mirror ./ ./ -Rev --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
when: on_success
environment:
name: Development
url: https:/xxx.eu
Deploy to production:
image: mwienk/docker-lftp:latest
stage: deploy
script:
- lftp -c "set ftp:ssl-allow no; open -u $PRODFTP_USER,$PRODFTP_PASS $PRODFTP_HOST; mirror ./ ./ -Rev --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
when: manual
environment:
name: Production
url: https://yyy.eu
When I try a to run a pipeline manually, I encounter a HTTP 500. The production.log says the following about that:
- Started POST “/namespace/project/pipelines” for 192.168.1.132 at 2018-11-13 14:40:18 +0100
- Processing by Projects::PipelinesController#create as HTML
- Parameters: {“utf8”=>“✓”, “authenticity_token”=>“[FILTERED]”, “pipeline”=>{“ref”=>“master”}, “namespace_id”=>“namespace”, “project_id”=>“project”}
- Completed 500 Internal Server Error in 358ms (ActiveRecord: 49.0ms | Elasticsearch: 0.0ms)
- OpenSSL::Cipher::CipherError (bad decrypt):
- app/models/concerns/has_variable.rb:26:in `to_runner_variable’
- lib/gitlab/ci/variables/collection/item.rb:39:in `fabricate’
- lib/gitlab/ci/variables/collection.rb:14:in `block in append’
- lib/gitlab/ci/variables/collection.rb:14:in `tap’
- lib/gitlab/ci/variables/collection.rb:14:in `append’
- lib/gitlab/ci/variables/collection.rb:18:in `block (2 levels) in concat’
- lib/gitlab/ci/variables/collection.rb:18:in `block in concat’
- lib/gitlab/ci/variables/collection.rb:18:in `tap’
- lib/gitlab/ci/variables/collection.rb:18:in `concat’
- app/models/ci/build.rb:370:in `block in scoped_variables’
- app/models/ci/build.rb:361:in `tap’
- app/models/ci/build.rb:361:in `scoped_variables’
- app/models/ci/build.rb:382:in `block in simple_variables’
- lib/gitlab/utils/strong_memoize.rb:26:in `strong_memoize’
- app/models/ci/build.rb:381:in `simple_variables’
- app/models/ci/build.rb:310:in `block in expanded_environment_name’
- lib/gitlab/utils/strong_memoize.rb:26:in `strong_memoize’
- app/models/ci/build.rb:309:in `expanded_environment_name’
- lib/gitlab/ci/pipeline/chain/create.rb:19:in `block (2 levels) in perform!’
- lib/gitlab/ci/pipeline/chain/create.rb:16:in `block in perform!’
- lib/gitlab/ci/pipeline/chain/create.rb:10:in `perform!’
- lib/gitlab/ci/pipeline/chain/sequence.rb:17:in `block in build!’
- lib/gitlab/ci/pipeline/chain/sequence.rb:14:in `each’
- lib/gitlab/ci/pipeline/chain/sequence.rb:14:in `build!’
- app/services/ci/create_pipeline_service.rb:44:in `execute’
- app/controllers/projects/pipelines_controller.rb:57:in `create’
- lib/gitlab/i18n.rb:53:in `with_locale’
- lib/gitlab/i18n.rb:59:in `with_user_locale’
- app/controllers/application_controller.rb:432:in `set_locale’
- lib/gitlab/middleware/multipart.rb:101:in `call’
- lib/gitlab/request_profiler/middleware.rb:14:in `call’
- ee/lib/gitlab/jira/middleware.rb:15:in `call’
- lib/gitlab/middleware/go.rb:17:in `call’
- lib/gitlab/etag_caching/middleware.rb:11:in `call’
- lib/gitlab/middleware/read_only/controller.rb:40:in `call’
- lib/gitlab/middleware/read_only.rb:16:in `call’
- lib/gitlab/middleware/basic_health_check.rb:25:in `call’
- lib/gitlab/request_context.rb:18:in `call’
- lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call’
- lib/gitlab/middleware/release_env.rb:10:in `call’
When I google the issue, I only see outdated issues from years ago, so I don’t think that’s the solution, is it?