It complains that "'python' is not recognized as an internal or external command, operable program or batch file."
Hi, I encounter a problem which complains the following error:
'python' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Job failed: exit status 9009
Here is the detail about how I installed the Runner and the logs: I install gitlab-runner on Win10x64 and CentOS7: Here is how I install gitlab-runner on Win10x64:
open Command Prompt(Admin)
cd C:\GitLab-Runner
c:\GitLab-Runner>gitlab-runner.exe register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://gitlab.<my private server>.com/
Please enter the gitlab-ci token for this runner:
nKkpzBBxou1xn3RgwgzM
Please enter the gitlab-ci description for this runner:
[DESKTOP-2R41JO5]: yaoyansiVMWin10
Please enter the gitlab-ci tags for this runner (comma separated):
win
Whether to run untagged builds [true/false]:
[false]: false
Whether to lock the Runner to current project [true/false]:
[true]: false
Registering runner... succeeded [0;m runner[0;m=nKkpzBBx
Please enter the executor: kubernetes, parallels, shell, ssh, docker-ssh+machine, docker, docker-ssh, virtualbox, docker+machine:
shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded![0;m
PS C:\GitLab-Runner> .\gitlab-runner.exe install
WARNING: Since GitLab Runner 10.0 this command is marked as DEPRECATED and will be removed in one of the upcoming releases
PS C:\GitLab-Runner> .\gitlab-runner.exe start
WARNING: Since GitLab Runner 10.0 this command is marked as DEPRECATED and will be removed in one of the upcoming releases
C:\GitLab-Runner>.\gitlab-runner.exe --version
Version: 10.0.0~beta.55.g2055cfdc
Git revision: 2055cfdc
Git branch: 10-0-stable
GO version: go1.8.3
Built: Fri, 22 Sep 2017 12:22:32 +0000
OS/Arch: windows/amd64
And the PATH env is:
C:\GitLab-Runner>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\Microsoft\WindowsApps;C:\ProgramFiles\CMake\bin;C:\Python27;
Here is how I install gitlab-runner on CentOS7x64:
(create account "gitlab-runner" and set password)
$sudo useradd --comment 'gitlab-runner' --create-home gitlab-runner --shell /bin/bash
$sudo passwd gitlab-runner
Changing password for user gitlab-runner.
New password: (gitlab-runner)
etype new password: (gitlab-runner)
(Switch account "gitlab-runner")
$ /usr/bin/gitlab-runner register
(here is the log:)
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://gitlab.<my private server>.com/
Please enter the gitlab-ci token for this runner:
nKkpzBBxou1xn3RgwgzM
Please enter the gitlab-ci description for this runner:
[localhost.localdomain]: yaoyansiVMCentOS7
Please enter the gitlab-ci tags for this runner (comma separated):
centos
Whether to run untagged builds [true/false]:
[false]:
Whether to lock the Runner to current project [true/false]:
[true]: false
Registering runner... succeeded runner=nKkpzBBx
Please enter the executor: docker+machine, docker-ssh+machine, kubernetes, parallels, shell, ssh, virtualbox, docker, docker-ssh:
shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
$ gitlab-runner --version
Version: 10.2.0~beta.122.gef544ea0
Git revision: ef544ea0
Git branch: master
GO version: go1.8.3
Built: Thu, 12 Oct 2017 08:39:10 +0000
OS/Arch: linux/amd64
$ /usr/bin/gitlab-runner run
Starting multi-runner from /home/gitlab-runner/.gitlab-runner/config.toml ... builds=0
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
And, My private gitlab server is "GitLab Community Edition 9.5.5 3cf5eba"
Now, I encounter a problem which complains the following error:
'python' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Job failed: exit status 9009
Then I add CI_DEBUG_TRACE into each job, here is the content of ".gitlab-ci.yml":
stages:
- build
- test
- deploy
#####################################################################
# Winows
#####################################################################
build2016:win:
variables:
CI_DEBUG_TRACE: "true"
stage: build
script:
- echo "Building the app 2016"
tags:
- win
#*****************************
#
build2017:win:
variables:
CI_DEBUG_TRACE: "true"
stage: build
script:
- echo "Building the app 2017"
tags:
- win
#*****************************
#
#
test2016:win:
variables:
CI_DEBUG_TRACE: "true"
stage: test
script:
- echo "Running tests 2016"
tags:
- win
#*****************************
#
test2017:win:
variables:
CI_DEBUG_TRACE: "true"
stage: test
script:
- echo "Running tests 2017"
- python ./project_py/test_py.py
tags:
- win
#*****************************
#
#
deploy_staging:win:
variables:
CI_DEBUG_TRACE: "true"
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging.example.com
only:
- master
tags:
- win
#*****************************
#####################################################################
# CentOS
#####################################################################
build2016:centos:
variables:
CI_DEBUG_TRACE: "true"
stage: build
script:
- echo "Building the app 2016"
tags:
- centos
#*****************************
#
build2017:centos:
variables:
CI_DEBUG_TRACE: "true"
stage: build
script:
- echo "Building the app 2017"
tags:
- centos
#*****************************
#
#
test2016:centos:
variables:
CI_DEBUG_TRACE: "true"
stage: test
script:
- echo "Running tests 2016"
tags:
- centos
#*****************************
#
test2017:centos:
variables:
CI_DEBUG_TRACE: "true"
stage: test
script:
- echo "Running tests 2017"
- python ./project_py/test_py.py
tags:
- centos
#*****************************
#
#
deploy_staging:centos:
variables:
CI_DEBUG_TRACE: "true"
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging.example.com
only:
- master
tags:
- centos
Then, I run "./gitlab-runner.ext --debug run" both on Windows10(cmd.exe window) runner and CentOS7runner(Konsole window). Then, on the gitlab project page, I click the "Run Pipeline" and "Create Pipeline" buttons to launch the jobs.
====================================================== On windows Runner, here is the log in command console window:
[37;1mRuntime platform [0;m [37;1march[0;m=amd64 [37;1mos[0;m=windows [37;1mrevision[0;m=2055cfdc [37;1mversion[0;m=10.0.0~beta.55.g2055cfdc
Starting multi-runner from C:\GitLab-Runner\config.toml ...[0;m builds[0;m=0
[37;1mChecking runtime mode [0;m [37;1mGOOS[0;m=windows [37;1muid[0;m=-1
Configuration loaded [0;m builds[0;m=0
[37;1mmetricsserveraddress: ""
concurrent: 1
checkinterval: 0
loglevel: null
user: ""
runners:
- name: yaovmWin10x64
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: 683b79da1d0be93c3906b73fb8dadf
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
- name: yaovmWin10x64-diskC
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: 42154817e710b328f4f279c7cf3962
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
- name: yaovmWin10x64-diskC
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: 0d4cd0b1b46caa677b7b4aefee252f
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
- name: yaovmWin10x64-diskC
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: 6e5d584d6b51798613b8df53a3d4f5
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
- name: yaoyansiWin7vm
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: c309250a75badd9ce8449cfe02bbdd
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
- name: yaoyansiVMWin10
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: 52d17abde9df2701bb15e5014d2536
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
sentrydsn: null
modtime: 2017-10-17T08:50:48.1484602+01:00
loaded: true
[0;m [37;1mbuilds[0;m=0
Metrics server disabled [0;m
[37;1mStarting worker [0;m [37;1mbuilds[0;m=0 [37;1mworker[0;m=0
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mDialing: tcp gitlab.<my private server>.com:80 ... [0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=683b79da
[37;1mDialing: tcp gitlab.<my private server>.com:80 ... [0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=42154817
[37;1mDialing: tcp gitlab.<my private server>.com:80 ... [0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=0d4cd0b1
[37;1mDialing: tcp gitlab.<my private server>.com:80 ... [0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=6e5d584d
[37;1mDialing: tcp gitlab.<my private server>.com:80 ... [0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=c309250a
[37;1mDialing: tcp gitlab.<my private server>.com:80 ... [0;m
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=683b79da
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=42154817
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=0d4cd0b1
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=6e5d584d
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=c309250a
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=683b79da
[31;1mERROR: Runner http://gitlab.<my private server>.com/683b79da1d0be93c3906b73fb8dadf is not healthy and will be disabled![0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=42154817
[31;1mERROR: Runner http://gitlab.<my private server>.com/42154817e710b328f4f279c7cf3962 is not healthy and will be disabled![0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=0d4cd0b1
[31;1mERROR: Runner http://gitlab.<my private server>.com/0d4cd0b1b46caa677b7b4aefee252f is not healthy and will be disabled![0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=6e5d584d
[31;1mERROR: Runner http://gitlab.<my private server>.com/6e5d584d6b51798613b8df53a3d4f5 is not healthy and will be disabled![0;m
[31;1mERROR: Checking for jobs... forbidden [0;m [31;1mrunner[0;m=c309250a
[31;1mERROR: Runner http://gitlab.<my private server>.com/c309250a75badd9ce8449cfe02bbdd is not healthy and will be disabled![0;m
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
...(omit the same repeated logs)
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
Checking for jobs... received [0;m job[0;m=772 repo_url[0;m=http://gitlab.<my private server>.com/yaoyansi/gitlabtest.git runner[0;m=52d17abd
[37;1mFailed to requeue the runner: [0;m [37;1mbuilds[0;m=1 [37;1mrunner[0;m=52d17abd
[37;1mRunning with gitlab-runner 10.0.0~beta.55.g2055cfdc (2055cfdc)
on yaoyansiVMWin10 (52d17abd)[0;m [37;1mjob[0;m=772 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mShell configuration: environment: []
dockercommand: []
command: cmd
arguments:
- /C
passfile: true
extension: cmd
[0;m [37;1mjob[0;m=772 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mUsing Shell executor... [0;m [37;1mjob[0;m=772 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mWaiting for signals... [0;m [37;1mjob[0;m=772 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=1
[37;1mSubmitting job to coordinator... ok [0;m [37;1mjob[0;m=772 [37;1mrunner[0;m=52d17abd
[37;1mAppending trace to coordinator... ok [0;m [37;1mcode[0;m=202 [37;1mjob[0;m=772 [37;1mjob-log[0;m=0-15620 [37;1mjob-status[0;m=running [37;1mrunner[0;m=52d17abd [37;1msent-log[0;m=0-15620 [37;1mstatus[0;m=202 Accepted
Job succeeded [0;m job[0;m=772 project[0;m=9 runner[0;m=52d17abd
[37;1mSubmitting job to coordinator... ok [0;m [37;1mjob[0;m=772 [37;1mrunner[0;m=52d17abd
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
Checking for jobs... received [0;m job[0;m=776 repo_url[0;m=http://gitlab.<my private server>.com/yaoyansi/gitlabtest.git runner[0;m=52d17abd
[37;1mFailed to requeue the runner: [0;m [37;1mbuilds[0;m=1 [37;1mrunner[0;m=52d17abd
[37;1mRunning with gitlab-runner 10.0.0~beta.55.g2055cfdc (2055cfdc)
on yaoyansiVMWin10 (52d17abd)[0;m [37;1mjob[0;m=776 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mShell configuration: environment: []
dockercommand: []
command: cmd
arguments:
- /C
passfile: true
extension: cmd
[0;m [37;1mjob[0;m=776 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mUsing Shell executor... [0;m [37;1mjob[0;m=776 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mWaiting for signals... [0;m [37;1mjob[0;m=776 [37;1mproject[0;m=9 [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=1
[37;1mSubmitting job to coordinator... ok [0;m [37;1mjob[0;m=776 [37;1mrunner[0;m=52d17abd
[37;1mAppending trace to coordinator... ok [0;m [37;1mcode[0;m=202 [37;1mjob[0;m=776 [37;1mjob-log[0;m=0-15588 [37;1mjob-status[0;m=running [37;1mrunner[0;m=52d17abd [37;1msent-log[0;m=0-15588 [37;1mstatus[0;m=202 Accepted
Job succeeded [0;m job[0;m=776 project[0;m=9 runner[0;m=52d17abd
[37;1mSubmitting job to coordinator... ok [0;m [37;1mjob[0;m=776 [37;1mrunner[0;m=52d17abd
[37;1mChecking for jobs... nothing [0;m [37;1mrunner[0;m=52d17abd
[37;1mFeeding runners to channel [0;m [37;1mbuilds[0;m=0
....(omit the same repeated logs)
==================================================== On CentOS7 Runner, here is the log in Konsole window:
Runtime platform arch=amd64 os=linux revision=ef544ea0 version=10.2.0~beta.122.gef544ea0
Starting multi-runner from /home/gitlab-runner/.gitlab-runner/config.toml ... builds=0
Checking runtime mode GOOS=linux uid=1000
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Configuration loaded builds=0
metricsserveraddress: ""
concurrent: 1
checkinterval: 0
loglevel: null
user: ""
runners:
- name: yaoyansiVMCentOS7
limit: 0
outputlimit: 0
requestconcurrency: 0
runnercredentials:
url: http://gitlab.<my private server>.com/
token: c40a8c6e2d79aeea2531803f9e3be5
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
cloneurl: ""
environment: []
preclonescript: ""
prebuildscript: ""
postbuildscript: ""
shell: ""
ssh: null
docker: null
parallels: null
virtualbox: null
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
path: ""
shared: false
machine: null
kubernetes: null
sentrydsn: null
modtime: 2017-10-17T19:01:59.477910889+08:00
loaded: true
builds=0
Waiting for stop signal builds=0
Metrics server disabled
Feeding runners to channel builds=0
Starting worker builds=0 worker=0
Dialing: tcp gitlab.<my private server>.com:80 ...
Checking for jobs... nothing runner=c40a8c6e
....(omit the same repeated logs)
Feeding runners to channel builds=0
Checking for jobs... nothing runner=c40a8c6e
Feeding runners to channel builds=0
Checking for jobs... received job=774 repo_url=http://gitlab.<my private server>.com/yaoyansi/gitlabtest.git runner=c40a8c6e
Failed to requeue the runner: builds=1 runner=c40a8c6e
Running with gitlab-runner 10.2.0~beta.122.gef544ea0 (ef544ea0)
on yaoyansiVMCentOS7 (c40a8c6e) job=774 project=9 runner=c40a8c6e
Shell configuration: environment: []
dockercommand:
- sh
- -c
- "if [ -x /usr/local/bin/bash ]; then\n\texec /usr/local/bin/bash --login\nelif [
-x /usr/bin/bash ]; then\n\texec /usr/bin/bash --login\nelif [ -x /bin/bash ]; then\n\texec
/bin/bash --login\nelif [ -x /usr/local/bin/sh ]; then\n\texec /usr/local/bin/sh
--login\nelif [ -x /usr/bin/sh ]; then\n\texec /usr/bin/sh --login\nelif [ -x /bin/sh
]; then\n\texec /bin/sh --login\nelse\n\techo shell not found\n\texit 1\nfi\n\n"
command: bash
arguments:
- --login
passfile: false
extension: ""
job=774 project=9 runner=c40a8c6e
Using Shell executor... job=774 project=9 runner=c40a8c6e
Waiting for signals... job=774 project=9 runner=c40a8c6e
Job succeeded job=774 project=9 runner=c40a8c6e
Submitting job to coordinator... ok job=774 runner=c40a8c6e
Feeding runners to channel builds=0
Checking for jobs... nothing runner=c40a8c6e
Feeding runners to channel builds=0
Checking for jobs... received job=778 repo_url=http://gitlab.<my private server>.com/yaoyansi/gitlabtest.git runner=c40a8c6e
Failed to requeue the runner: builds=1 runner=c40a8c6e
Running with gitlab-runner 10.2.0~beta.122.gef544ea0 (ef544ea0)
on yaoyansiVMCentOS7 (c40a8c6e) job=778 project=9 runner=c40a8c6e
Shell configuration: environment: []
dockercommand:
- sh
- -c
- "if [ -x /usr/local/bin/bash ]; then\n\texec /usr/local/bin/bash --login\nelif [
-x /usr/bin/bash ]; then\n\texec /usr/bin/bash --login\nelif [ -x /bin/bash ]; then\n\texec
/bin/bash --login\nelif [ -x /usr/local/bin/sh ]; then\n\texec /usr/local/bin/sh
--login\nelif [ -x /usr/bin/sh ]; then\n\texec /usr/bin/sh --login\nelif [ -x /bin/sh
]; then\n\texec /bin/sh --login\nelse\n\techo shell not found\n\texit 1\nfi\n\n"
command: bash
arguments:
- --login
passfile: false
extension: ""
job=778 project=9 runner=c40a8c6e
Using Shell executor... job=778 project=9 runner=c40a8c6e
Waiting for signals... job=778 project=9 runner=c40a8c6e
Job succeeded job=778 project=9 runner=c40a8c6e
Submitting job to coordinator... ok job=778 runner=c40a8c6e
Feeding runners to channel builds=0
...(omit the same repeated logs)
====================================================== On gitlab web page, it shows that only job "test2017:win" faled, here is the log of this job: (I repeated launching the pipeline("Run Pipeline" and "Create Pipeline") several times, and only this job always failed.)
Running with gitlab-runner 10.0.0~beta.55.g2055cfdc (2055cfdc)
on yaoyansiVMWin10 (52d17abd)
Using Shell executor...
C:\GitLab-Runner>setlocal enableextensions
C:\GitLab-Runner>setlocal enableDelayedExpansion
C:\GitLab-Runner>set nl=
C:\GitLab-Runner>echo Running on DESKTOP-2R41JO5...
Running on DESKTOP-2R41JO5...
C:\GitLab-Runner>setlocal enableextensions
C:\GitLab-Runner>setlocal enableDelayedExpansion
C:\GitLab-Runner>set nl=
C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_SERVER=yes
C:\GitLab-Runner>SET CI=true
C:\GitLab-Runner>SET GITLAB_CI=true
C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab
C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5
C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba
C:\GitLab-Runner>SET CI_JOB_ID=777
C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win
C:\GitLab-Runner>SET CI_JOB_STAGE=test
C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master
C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master
C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token
C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/yaoyansi/gitlabtest.git
C:\GitLab-Runner>SET CI_BUILD_ID=777
C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000
C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master
C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master
C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win
C:\GitLab-Runner>SET CI_BUILD_STAGE=test
C:\GitLab-Runner>SET CI_PROJECT_ID=9
C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH=yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=yaoyansi-gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=yaoyansi
C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PIPELINE_ID=115
C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml
C:\GitLab-Runner>SET CI_RUNNER_ID=14
C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=yaoyansiVMWin10
C:\GitLab-Runner>SET CI_RUNNER_TAGS=win
C:\GitLab-Runner>SET CI_DEBUG_TRACE=true
C:\GitLab-Runner>SET GITLAB_USER_ID=5
C:\GitLab-Runner>SET GITLAB_USER_EMAIL=yaoyansi@inmail.<my private server>.com
C:\GitLab-Runner>IF EXIST "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest\.git" (
echo Fetching changes...
cd /D "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest"
IF 0 NEQ 0 exit /b 0
"git" "config" "fetch.recurseSubmodules" "false"
IF 0 NEQ 0 exit /b 0
rd /s /q ".git\index.lock" 2>NUL 1>NUL
rd /s /q ".git\shallow.lock" 2>NUL 1>NUL
IF EXIST ".git\hooks\post-checkout" (rd /s /q ".git\hooks\post-checkout" 2>NUL 1>NUL )
"git" "clean" "-ffdx"
IF 0 NEQ 0 exit /b 0
"git" "reset" "--hard"
IF 0 NEQ 0 exit /b 0
"git" "remote" "set-url" "origin" "http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/yaoyansi/gitlabtest.git"
IF 0 NEQ 0 exit /b 0
"git" "fetch" "origin" "--prune" "+refs/heads/*:refs/remotes/origin/*" "+refs/tags/*:refs/tags/*"
IF 0 NEQ 0 exit /b 0
) ELSE (
dir "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest.tmp\git-template" 2>NUL 1>NUL || md "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest.tmp\git-template" 2>NUL 1>NUL
rd /s /q "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest" 2>NUL 1>NUL
"git" "config" "-f" "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest.tmp\git-template/config" "fetch.recurseSubmodules" "false"
IF 0 NEQ 0 exit /b 0
echo Cloning repository...
"git" "clone" "--no-checkout" "http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/yaoyansi/gitlabtest.git" "C:/GitLab-Runner/builds/52d17abd/0/yaoyansi/gitlabtest" "--template" "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest.tmp\git-template"
IF 0 NEQ 0 exit /b 0
cd /D "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest"
IF 0 NEQ 0 exit /b 0
)
Fetching changes...
HEAD is now at 83b0d0a + variables:CI_DEBUG_TRACE:"true"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>echo Checking out 83b0d0a1 as master...
Checking out 83b0d0a1 as master...
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>"git" "checkout" "-f" "-q" "83b0d0a1a30073e57bd134038f80f980daf6e0cb"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>IF 0 NEQ 0 exit /b 0
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>echo Skipping Git submodules setup
Skipping Git submodules setup
C:\GitLab-Runner>setlocal enableextensions
C:\GitLab-Runner>setlocal enableDelayedExpansion
C:\GitLab-Runner>set nl=
C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_SERVER=yes
C:\GitLab-Runner>SET CI=true
C:\GitLab-Runner>SET GITLAB_CI=true
C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab
C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5
C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba
C:\GitLab-Runner>SET CI_JOB_ID=777
C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win
C:\GitLab-Runner>SET CI_JOB_STAGE=test
C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master
C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master
C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token
C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/yaoyansi/gitlabtest.git
C:\GitLab-Runner>SET CI_BUILD_ID=777
C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000
C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master
C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master
C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win
C:\GitLab-Runner>SET CI_BUILD_STAGE=test
C:\GitLab-Runner>SET CI_PROJECT_ID=9
C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH=yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=yaoyansi-gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=yaoyansi
C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PIPELINE_ID=115
C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml
C:\GitLab-Runner>SET CI_RUNNER_ID=14
C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=yaoyansiVMWin10
C:\GitLab-Runner>SET CI_RUNNER_TAGS=win
C:\GitLab-Runner>SET CI_DEBUG_TRACE=true
C:\GitLab-Runner>SET GITLAB_USER_ID=5
C:\GitLab-Runner>SET GITLAB_USER_EMAIL=yaoyansi@inmail.<my private server>.com
C:\GitLab-Runner>cd /D "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>IF 0 NEQ 0 exit /b 0
C:\GitLab-Runner>setlocal enableextensions
C:\GitLab-Runner>setlocal enableDelayedExpansion
C:\GitLab-Runner>set nl=
C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_SERVER=yes
C:\GitLab-Runner>SET CI=true
C:\GitLab-Runner>SET GITLAB_CI=true
C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab
C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5
C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba
C:\GitLab-Runner>SET CI_JOB_ID=777
C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win
C:\GitLab-Runner>SET CI_JOB_STAGE=test
C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master
C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master
C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token
C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/yaoyansi/gitlabtest.git
C:\GitLab-Runner>SET CI_BUILD_ID=777
C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000
C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master
C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master
C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win
C:\GitLab-Runner>SET CI_BUILD_STAGE=test
C:\GitLab-Runner>SET CI_PROJECT_ID=9
C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH=yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=yaoyansi-gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=yaoyansi
C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PIPELINE_ID=115
C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml
C:\GitLab-Runner>SET CI_RUNNER_ID=14
C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=yaoyansiVMWin10
C:\GitLab-Runner>SET CI_RUNNER_TAGS=win
C:\GitLab-Runner>SET CI_DEBUG_TRACE=true
C:\GitLab-Runner>SET GITLAB_USER_ID=5
C:\GitLab-Runner>SET GITLAB_USER_EMAIL=yaoyansi@inmail.<my private server>.com
C:\GitLab-Runner>cd /D "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>IF 0 NEQ 0 exit /b 0
C:\GitLab-Runner>setlocal enableextensions
C:\GitLab-Runner>setlocal enableDelayedExpansion
C:\GitLab-Runner>set nl=
C:\GitLab-Runner>SET CI_PROJECT_DIR=C:/GitLab-Runner/builds/52d17abd/0/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_SERVER=yes
C:\GitLab-Runner>SET CI=true
C:\GitLab-Runner>SET GITLAB_CI=true
C:\GitLab-Runner>SET CI_SERVER_NAME=GitLab
C:\GitLab-Runner>SET CI_SERVER_VERSION=9.5.5
C:\GitLab-Runner>SET CI_SERVER_REVISION=3cf5eba
C:\GitLab-Runner>SET CI_JOB_ID=777
C:\GitLab-Runner>SET CI_JOB_NAME=test2017:win
C:\GitLab-Runner>SET CI_JOB_STAGE=test
C:\GitLab-Runner>SET CI_JOB_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_COMMIT_SHA=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_COMMIT_REF_NAME=master
C:\GitLab-Runner>SET CI_COMMIT_REF_SLUG=master
C:\GitLab-Runner>SET CI_REGISTRY_USER=gitlab-ci-token
C:\GitLab-Runner>SET CI_REGISTRY_PASSWORD=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_REPOSITORY_URL=http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.<my private server>.com/yaoyansi/gitlabtest.git
C:\GitLab-Runner>SET CI_BUILD_ID=777
C:\GitLab-Runner>SET CI_BUILD_TOKEN=xxxxxxxxxxxxxxxxxxxx
C:\GitLab-Runner>SET CI_BUILD_REF=83b0d0a1a30073e57bd134038f80f980daf6e0cb
C:\GitLab-Runner>SET CI_BUILD_BEFORE_SHA=0000000000000000000000000000000000000000
C:\GitLab-Runner>SET CI_BUILD_REF_NAME=master
C:\GitLab-Runner>SET CI_BUILD_REF_SLUG=master
C:\GitLab-Runner>SET CI_BUILD_NAME=test2017:win
C:\GitLab-Runner>SET CI_BUILD_STAGE=test
C:\GitLab-Runner>SET CI_PROJECT_ID=9
C:\GitLab-Runner>SET CI_PROJECT_NAME=gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH=yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_PATH_SLUG=yaoyansi-gitlabtest
C:\GitLab-Runner>SET CI_PROJECT_NAMESPACE=yaoyansi
C:\GitLab-Runner>SET CI_PROJECT_URL=http://gitlab.<my private server>.com/yaoyansi/gitlabtest
C:\GitLab-Runner>SET CI_PIPELINE_ID=115
C:\GitLab-Runner>SET CI_CONFIG_PATH=.gitlab-ci.yml
C:\GitLab-Runner>SET CI_RUNNER_ID=14
C:\GitLab-Runner>SET CI_RUNNER_DESCRIPTION=yaoyansiVMWin10
C:\GitLab-Runner>SET CI_RUNNER_TAGS=win
C:\GitLab-Runner>SET CI_DEBUG_TRACE=true
C:\GitLab-Runner>SET GITLAB_USER_ID=5
C:\GitLab-Runner>SET GITLAB_USER_EMAIL=yaoyansi@inmail.<my private server>.com
C:\GitLab-Runner>cd /D "C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>IF 0 NEQ 0 exit /b 0
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>echo $ echo "Running tests 2017"
$ echo "Running tests 2017"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>echo "Running tests 2017"
"Running tests 2017"
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>IF 0 NEQ 0 exit /b 0
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>echo $ python ./project_py/test_py.py
$ python ./project_py/test_py.py
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>python ./project_py/test_py.py
'python' is not recognized as an internal or external command,
operable program or batch file.
C:\GitLab-Runner\builds\52d17abd\0\yaoyansi\gitlabtest>IF 9009 NEQ 0 exit /b 9009
C:\GitLab-Runner>setlocal enableextensions
C:\GitLab-Runner>setlocal enableDelayedExpansion
C:\GitLab-Runner>set nl=
ERROR: Job failed: exit status 9009
But I don't know how to solve this problem.