I currently try to enable gitlab-runner Terminal using [session_server] settings.
While my CI job is running, when I click on “Debug”, I get a “Connection failure” in the black web terminal.
If i run the web inspector, I get a 500 error on terminal.ws without much detail "Firefox cannot establish the connection with wss://…/terminal.ws.
when I curl on https://runner.dev.home:8093, I get a SSL Certificate problem: Unable to get local issuer certificate. But when I look at the doc, it says that x509 self signed certificate is created on runner start so it seems normal.
I also used openssl s_client -connect runner.dev.home:8093 and it says “unable to verify the first certificate” but as it’s a self signed certificate by gitlab runner, again is seems OK.
Each time I restart the gitlab-runner, certificate is changing (as the doc says).
journalctl -f -u gitlab-runner says :
If anyone have an idea about where I should start looking, I’ll be glad to hear
Context
Ubuntu 20.04 15.1.0 gitlab-runner with docker executor on bare metal : runner.dev.home;
Every certificate is signed by my PKI and each OS has the CA certificate in his trusted CA store (i can curl/firefox https://gitlab.dev.home without warning from client and runner)
gitlab-runner register is OK with my certificate without CA bypass
Config abstracts
My gitlab-runner toml contains is the following lines:
Had the same issue. Solution was to use 0.0.0.0:8093, not 127.0.0.1. It is also important to specify the advertise_address as the hostname of the machine where the runner is running (my-machine-name:8093).