Updating/initializing submodules... ERROR: Job failed: exit status 66
We are a gitlab enterprise customer, I'm pretty sure this is the correct area to post this but please advise if not.
The situation is as follows :
I have bunch of shell executor runners operating inside windows docker containers. At some point in the future when GitLab supports windows docker I will make these docker executors- but at this stage they are just containers running the shell executor.
I recently got a new workstation and am attempting to gather build/ci benchmarks on this machine.
So, I built the container and ran it locally with a unique runner tag; set up a branch to fire jobs at runners with that tag. Here is a sanitised version of the failure section in the log with CI_DEBUG_TRACE : "true" :
The clone of the main repo works fine
echo Fetching changes for pro-delltest with git depth set to 200...
cd /D "C:\\builddir"
IF 0 NEQ 0 exit /b 0
"git" "config" "fetch.recurseSubmodules" "false"
IF 0 NEQ 0 exit /b 0
"git" "config" "http.https://" "C:\builddir.tmp\CI_SERVER_TLS_CA_FILE"
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
rd /s /q ".git\HEAD.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" "https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git"
IF 0 NEQ 0 exit /b 0
"git" "fetch" "--depth" "200" "origin" "--prune" "+refs/heads/pro-delltest:refs/remotes/origin/pro-delltest"
IF 0 NEQ 0 exit /b 0
) ELSE (
dir "C:\builddir.tmp\git-template" 2>NUL 1>NUL || md "C:\builddir.tmp\git-template" 2>NUL 1>NUL
rd /s /q "C:\\builddir" 2>NUL 1>NUL
"git" "config" "-f" "C:\builddir.tmp\git-template/config" "fetch.recurseSubmodules" "false"
IF 0 NEQ 0 exit /b 0
"git" "config" "-f" "C:\builddir.tmp\git-template/config" "http.https://gitFqdn.sslCAInfo" "C:\builddir.tmp\CI_SERVER_TLS_CA_FILE"
IF 0 NEQ 0 exit /b 0
echo Cloning repository for pro-delltest with git depth set to 200...
"git" "clone" "--no-checkout" "https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git" "C://builddir" "--template" "C:\builddir.tmp\git-template" "--depth" "200" "--branch" "pro-delltest"
IF 0 NEQ 0 exit /b 0
cd /D "C:\\builddir"
IF 0 NEQ 0 exit /b 0
)
09:03:52.440976 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
09:03:52.446018 git.c:418 trace: built-in: git config -f 'C:\builddir.tmp\git-template/config' fetch.recurseSubmodules false
09:03:52.482247 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
09:03:52.482247 git.c:418 trace: built-in: git config -f 'C:\builddir.tmp\git-template/config' http.https://gitFqdn.sslCAInfo 'C:\builddir.tmp\CI_SERVER_TLS_CA_FILE'
Cloning repository for pro-delltest with git depth set to 200...
09:03:52.498248 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
09:03:52.498248 git.c:418 trace: built-in: git clone --no-checkout https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git C://builddir --template 'C:\builddir.tmp\git-template' --depth 200 --branch pro-delltest
09:03:52.513818 run-command.c:643 trace: run_command: git remote-https origin https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git
Cloning into 'C://builddir'...
09:03:52.618307 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
09:03:52.620306 git.c:675 trace: exec: git-remote-https origin https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git
09:03:52.620306 run-command.c:643 trace: run_command: git-remote-https origin https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git
09:03:52.747586 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
09:03:52.975409 run-command.c:643 trace: run_command: 'git credential-manager store'
09:03:53.183022 run-command.c:643 trace: run_command: git fetch-pack --stateless-rpc --stdin --lock-pack --include-tag --thin --cloning --no-progress --depth=200 https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git/
09:03:53.190020 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
09:03:53.191020 git.c:418 trace: built-in: git fetch-pack --stateless-rpc --stdin --lock-pack --include-tag --thin --cloning --no-progress --depth=200 https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitFqdn/productteam/project.git/
09:04:53.641757 run-command.c:643 trace: run_command: git --shallow-file C:/builddir/.git/shallow.lock index-pack --stdin --fix-thin '--keep=fetch-pack 2624 on 4df8ce0467c7' --pack_header=2,188409
09:04:53.651758 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
09:04:53.653767 git.c:418 trace: built-in: git index-pack --stdin --fix-thin '--keep=fetch-pack 2624 on 4df8ce0467c7' --pack_header=2,188409
09:05:40.689877 run-command.c:643 trace: run_command: git rev-list --objects --stdin --not --all --quiet
09:05:40.696894 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
09:05:40.697892 git.c:418 trace: built-in: git rev-list --objects --stdin --not --all --quiet
C:\builddir>echo Checking out 2b519066 as pro-delltest...
Checking out 2b519066 as pro-delltest...
C:\builddir>"git" "checkout" "-f" "-q" "2b51906629d8fc099b0e195df48e095678c013b0"
09:05:41.909919 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
09:05:41.911921 git.c:418 trace: built-in: git checkout -f -q 2b51906629d8fc099b0e195df48e095678c013b0
C:\builddir>IF 0 NEQ 0 exit /b 0
C:\builddir>echo Updating/initializing submodules recursively...
Updating/initializing submodules recursively...
C:\builddir>"git" "submodule" "sync" "--recursive"
09:05:49.440819 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
09:05:49.443886 git.c:675 trace: exec: git-submodule sync --recursive
09:05:49.443886 run-command.c:643 trace: run_command: git-submodule sync --recursive
C:\builddir>IF 66 NEQ 0 exit /b 66
ERROR: Job failed: exit status 66
This is with GIT_TRACE=2 and CI_DEBUG_TRACE : "true" .
This output obviously isn't that verbose, in my searching I've found very little about git and its specific exit codes. Any help greatly appreciated.
Host Versions etc : Docker version 17.06.2-ce, build cec0b72 Microsoft Windows [Version 10.0.17763.253]
Container versions : git version 2.20.1.windows.1 gitlab-runner 10.7.0