AnswerBun.com

The Runner of type Shell don't work: Job failed (system failure): preparing environment:

Stack Overflow Asked by Arthu Vinicius Demetrio Santia on November 29, 2020

1- Environment:

  • Gitlab-CE
  • GitLab 13.2.1 (b55baf593e6)
  • GitLab Shell 13.3.0
  • GitLab Workhorse v8.37.0
  • GitLab API v4
  • Ruby 2.6.6p146
  • Rails 6.0.3.1
  • PostgreSQL 11.7
  • Debian GNU / Linux 10 server (buster)

2- .gitlab-ci.yml file:

before_script:
  - echo "--------- STARTING WORK ------------"

job_homologacao:
   only:
     - homologation
   script:
     - cd /home/ati/
     - mkdir test
     - echo "got here"

job_producao:
   only:
     - master
   script:
     - cd /home/ati/test/
     - echo "got here"

3- Error presented when the runner is executed:
Running with gitlab-runner 13.2.1 (efa30e33) on runner with Akx_BvYF shell
Preparing the "shell" performer
Using Shell executor …
Preparing environment
Running on hermes …
ERROR: Job failed (system failure): prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

4- correction attempts:
I read and executed all the procedures contained in the codumentation:

2 Answers

I finded the error! o/ I was erroneously editing the file .bash_logout located inside my Home /home/ati/

Gitlab when installing gitlab-runner create a Home for him in /home/gitlab-runner/

I just had to comment on the contents of the /home/gitlab-runner/.bash_logout file for the job to work.

Correct answer by Arthu Vinicius Demetrio Santia on November 29, 2020

Did you check these?

  • Debian users should use APT pinning, because a native package called gitlab-ci-multi-runner is available in Debian Stretch and by default, when installing gitlab-runner, that package from the official repositories will have a higher priority.

  • Also, be sure to disable SKEL when installing GitLab Runner: set the environment variable GITLAB_RUNNER_DISABLE_SKEL to true before you install the package.

For details on both, see https://docs.gitlab.com/runner/install/linux-repository.html#apt-pinning

Answered by Iron Bishop on November 29, 2020

Add your own answers!

Related Questions

MySQL join three queries without multiplying records

1  Asked on December 9, 2021 by wizytor

     

Apply group by having order by with latest record

3  Asked on December 9, 2021 by mussadiqchhipa

   

CSS active styling is not remaining

0  Asked on December 9, 2021 by unkown53

     

Ambiguous method overloading for method

1  Asked on December 9, 2021

     

how can use Yandex Disk c# Api

1  Asked on December 9, 2021 by emrearas

       

Making a API request from inside of a Nodejs application

1  Asked on December 9, 2021 by kylebotha

   

Using Unique in Laravel

2  Asked on December 7, 2021 by xtremecode

 

useReducer dispatch executing twice

2  Asked on December 7, 2021 by remil

     

Accessing storyboard from custom framework not working

2  Asked on December 7, 2021 by sanjay-mishra

       

How to use regex pattern W in javascript

1  Asked on December 7, 2021 by jitendra-yadav

     

How to update styles dynamically in JSX

3  Asked on December 7, 2021 by nomalts

   

resizing divs on click

1  Asked on December 7, 2021 by reactrookie

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir