简体   繁体   English

gitlab-ci-multi-runner 9.2.0:错误:作业失败:退出代码252

[英]gitlab-ci-multi-runner 9.2.0: ERROR: Job failed: exit code 252

I am running my tests inside a docker image on a docker gitlab executor. 我正在docker gitlab执行程序的docker映像内运行测试。 The logs are looking like this: 日志看起来像这样:

Running with gitlab-ci-multi-runner 9.2.0
.
.
<after_script called>
ERROR: Job failed: exit code 252

The last thing I am doing in my job script (shell) is a call to mongo eval My after_script for this job just has a docker rm -f imagename like so: 我在工作脚本(外壳程序)中做的最后一件事是对mongo eval的调用我为此工作的after_script仅具有一个docker rm -f imagename,如下所示:

after_script:
- docker rm -f imagename

First of all, I cannot find any concrete reference to this error code #. 首先,我找不到对此错误代码#的任何具体引用。 I don't know if it is a mongo eval error code or gitlab ci. 我不知道这是不是mongo eval错误代码或gitlab ci。 My best guess is gitlab ci because that script works fine if run directly on the build machine. 我最好的猜测是gitlab ci,因为如果直接在构建机器上运行,该脚本可以正常工作。 Also, the after_script is executed 另外,执行after_script

I added the following in the beginning of my .gitlab-ci.yml: 我在.gitlab-ci.yml的开头添加了以下内容:

variables:
  CI_DEBUG_TRACE: "true"

But all I am seeing is: 但是我所看到的是:

+ docker rm -f imagename
imagename
+ exit 0
ERROR: Job failed: exit code 252

Any help or any clue is appreciated! 任何帮助或任何线索表示赞赏!

My mongo eval connection was failing because my mongo command was incorrect. 我的mongo评估连接失败,因为我的mongo命令不正确。 I 一世

  1. Left the docker container running by using && tail -f /dev/null in my docker CMD. 通过在我的docker CMD中使用&& tail -f / dev / null使docker容器运行。
  2. I shelled in with $docker exec -it 我用$ docker exec -it炮轰
  3. Ran my script and executed the mongo eval section step by step again 运行我的脚本并再次逐步执行mongo eval部分

Getting a connection fail for the wrong mongo eval javascript threw me off :/ 错误的mongo eval javascript导致连接失败,这使我失望:/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM