Gitlab runner stuck at Initializing executor providers
Summary
This is exactly the same issue as the following only difference is that it's with the most recent gitlab runner version: #29648
Newly installed gitlab runner 16.3.0 stuck at Initializing executor providers.
Steps to reproduce
- Install version 16.3.0 of gitlab-runner.
- Register a runner with shell executor.
- Run in either user or system mode.
- Runner is stuck
Initializing executor providers
.
Actual behavior
Runner is stuck Initializing executor providers
not picking up jobs.
Expected behavior
Runner picking up jobs after initialization.
Relevant logs and/or screenshots
service gitlab-runner status
● gitlab-runner.service - GitLab Runner
Loaded: loaded (/etc/systemd/system/gitlab-runner.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-08-21 18:48:39 CEST; 2 days ago
Main PID: 3869 (gitlab-runner)
Tasks: 13 (limit: 76778)
Memory: 11.7M
CPU: 55.649s
CGroup: /system.slice/gitlab-runner.service
└─3869 /usr/bin/gitlab-runner run --working-directory /home/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --user gitlab-runner
aug 21 18:48:39 systemd[1]: Started GitLab Runner.
aug 21 18:48:39 gitlab-runner[3869]: Runtime platform arch=amd64 os=linux pid=3869 revision=8ec04662 version=16.3.0
aug 21 18:48:39 gitlab-runner[3869]: Starting multi-runner from /etc/gitlab-runner/config.toml... builds=0 max_builds=0
aug 21 18:48:39 gitlab-runner[3869]: Running in system-mode.
aug 21 18:48:39 gitlab-runner[3869]:
aug 21 18:48:39 gitlab-runner[3869]: Configuration loaded builds=0 max_builds=1
aug 21 18:48:39 gitlab-runner[3869]: listen_address not defined, metrics & debug endpoints disabled builds=0 max_builds=1
aug 21 18:48:39 gitlab-runner[3869]: [session_server].listen_address not defined, session endpoints disabled builds=0 max_builds=1
aug 21 18:48:39 gitlab-runner[3869]: Initializing executor providers builds=0 max_builds=1
Running it in debug mode starts the runner as expected either in user-mode or system-mode.
gitlab-runner --debug run
Runtime platform arch=amd64 os=linux pid=674 revision=8ec04662 version=16.3.0
Starting multi-runner from /home/gitlab-runner/.gitlab-runner/config.toml... builds=0 max_builds=0
Checking runtime mode GOOS=linux uid=1001
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Configuration loaded builds=0 max_builds=1
listenaddress: ""
sessionserver:
listenaddress: ""
advertiseaddress: ""
sessiontimeout: 1800
concurrent: 1
checkinterval: 0
loglevel: null
logformat: null
user: ""
runners:
- name: ***
limit: 0
outputlimit: 0
requestconcurrency: 0
unhealthyrequestslimit: 0
unhealthyinterval: null
systemidstate: {}
runnercredentials:
url: ***
id: 30
token: ***
tokenobtainedat: 2023-08-21T15:13:05Z
tokenexpiresat: 0001-01-01T00:00:00Z
tlscafile: ""
tlscertfile: ""
tlskeyfile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
cloneurl: ""
environment: []
preclonescript: ""
postclonescript: ""
pregetsourcesscript: ""
postgetsourcesscript: ""
prebuildscript: ""
postbuildscript: ""
debugtracedisabled: false
safedirectorycheckout: null
shell: ""
custombuilddir: null
referees: null
cache:
type: ""
path: ""
shared: false
maxuploadedarchivesize: 0
s3: null
gcs: null
azure: null
gracefulkilltimeout: null
forcekilltimeout: null
featureflags: {}
instance: null
ssh: null
docker: null
parallels: null
virtualbox: null
machine: null
kubernetes: null
custom: null
autoscaler: null
sentrydsn: null
modtime: 2023-08-24T10:10:17.810056587+02:00
loaded: true
shutdowntimeout: 0
builds=0 max_builds=1
Waiting for stop signal builds=0 max_builds=1
listen_address not defined, metrics & debug endpoints disabled builds=0 max_builds=1
[session_server].listen_address not defined, session endpoints disabled builds=0 max_builds=1
Initializing executor providers builds=0 max_builds=1
Feeding runners to channel builds=0 max_builds=1
Feeding runner to channel builds=0 max_builds=1 runner=1YJ4waux3
Starting worker builds=0 max_builds=1 worker=0
Processing runner builds=0 max_builds=1 runner=1YJ4waux3
Acquiring executor from provider builds=0 max_builds=1 runner=1YJ4waux3
Acquiring job slot builds=0 max_builds=1 runner=1YJ4waux3
Acquiring request slot builds=0 max_builds=1 runner=1YJ4waux3
Dialing: tcp ***:443 ...
Checking for jobs... received job=9508 repo_url=*** runner=1YJ4waux3
Processing chain chain-leaf=[0xc0008e5080 0xc0008e5600 0xc000d1d600] context=certificate-chain-build resolve-full-chain=true
# gitlab-runner --debug run
Runtime platform arch=amd64 os=linux pid=821 revision=8ec04662 version=16.3.0
Starting multi-runner from /etc/gitlab-runner/config.toml... builds=0 max_builds=0
Checking runtime mode GOOS=linux uid=0
Running in system-mode.
Configuration loaded builds=0 max_builds=1
listenaddress: ""
sessionserver:
listenaddress: ""
advertiseaddress: ""
sessiontimeout: 1800
concurrent: 1
checkinterval: 0
loglevel: null
logformat: null
user: ""
runners: []
sentrydsn: null
modtime: 2023-08-21T17:12:22.580480716+02:00
loaded: true
shutdowntimeout: 0
builds=0 max_builds=1
Waiting for stop signal builds=0 max_builds=1
listen_address not defined, metrics & debug endpoints disabled builds=0 max_builds=1
[session_server].listen_address not defined, session endpoints disabled builds=0 max_builds=1
Initializing executor providers builds=0 max_builds=1
Feeding runners to channel builds=0 max_builds=1
Starting worker builds=0 max_builds=1 worker=0
Feeding runners to channel builds=0 max_builds=1
Environment description
Server
- Gitlab 16.1 FREE SELF
Runner
- Ubuntu 20.04.5 LTS (Focal Fossa)
- Runner registered as project runner
- Gitlab runner 16.3.0
- shell executor
config.toml contents
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "***"
url = "***"
id = 30
token = "***"
token_obtained_at = 2023-08-21T15:13:05Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "shell"
[runners.cache]
MaxUploadedArchiveSize = 0
Used GitLab Runner version
Version: 16.3.0
Git revision: 8ec04662
Git branch: 16-3-stable
GO version: go1.20.5
Built: 2023-08-20T17:57:47+0000
OS/Arch: linux/amd64
Edited by Zoli Konta