0

Ich habe meine Gitlab-Installation von der Quelle eingerichtet, mit letsencrypt abgesichert und unter https://gitlab.mydomain.com bereitgestellt. Ich kann auf die Website zugreifen und Repositories usw. erstellen, aber ich kann keinen Weg finden, einen gitlab ci runner für die Installation zu registrieren.Gitlab CI - Fehler beim Registrieren des Runners

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/ci): 
https://gitlab.mydomain.com/ci 
Please enter the gitlab-ci token for this runner: 
xxxxxxxx-xxxxxxxx 
Please enter the gitlab-ci description for this runner: 
[server]: test 
Please enter the gitlab-ci tags for this runner (comma separated): 
test 
ERROR: Registering runner... failed  runner=xxxxxxx 
status=couldn't execute POST against https://gitlab.mydomain.com/ci/api/v1/runners/register.json: 
Post https://gitlab.mydomain.com/ci/api/v1/runners/register.json: 
read tcp [ipv6address]:33518->[ipv6address]:443: read: connection reset by peer 
PANIC: Failed to register this runner. Perhaps you are having network problems 

Mein Gitlab System funktioniert gut und ich lief wirklich Erklärungen aus, warum es eine connection reset by peer sein würde. Wenn ich versuche, die Adresse direkt aus der Fehlermeldung zu curlen, wird eine korrekte Antwort zurückgegeben.

curl -v https://gitlab.mydomain.com/ci/api/v1/runners/register.json 
* Trying ipv6address... 
* Connected to gitlab.mydomain.com (ipv6address) port 443 (#0) 
* found 174 certificates in /etc/ssl/certs/ca-certificates.crt 
* found 700 certificates in /etc/ssl/certs 
* ALPN, offering h2 
* ALPN, offering http/1.1 
* SSL connection using TLS1.2/ECDHE_RSA_AES_256_GCM_SHA384 
*  server certificate verification OK 
*  server certificate status verification SKIPPED 
*  common name: mydomain.com (matched) 
*  server certificate expiration date OK 
*  server certificate activation date OK 
*  certificate public key: RSA 
*  certificate version: #3 
*  subject: CN=mydomain.com 
*  start date: Wed, 18 May 2016 14:35:00 GMT 
*  expire date: Tue, 16 Aug 2016 14:35:00 GMT 
*   issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3 
*  compression: NULL 
* ALPN, server did not agree to a protocol 
> GET /ci/api/v1/runners/register.json HTTP/1.1 
> Host: gitlab.mydomain.com 
> User-Agent: curl/7.47.0 
> Accept: */* 
> 
< HTTP/1.1 405 Method Not Allowed 
< Server: nginx 
< Date: Sun, 29 May 2016 09:14:09 GMT 
< Content-Type: application/json 
< Content-Length: 2 
< Connection: keep-alive 
< Allow: OPTIONS, POST 
< Cache-Control: no-cache 
< Status: 405 Method Not Allowed 
+0

Sie Ihre Läufer Config posten könnte? –

+0

@HuiWang - Es hat nur 1 Zeile 'gleichzeitig = 1'. Ich nehme an, das liegt daran, dass der Prozess zum Erstellen einer Konfiguration mit dem obigen Fehler fehlschlägt. – Jonas

+0

Bitte werfen Sie einen Blick auf diesen Link https://gitlab.com/wiget/gitlab-ci-multi-runner/blob/master/docs/configuration/tls-self-signed.md –

Antwort

0

Problem wegging Gitlab zu 8.8.3 und gitlab-multi-ci-runner auf die neueste Version nach der Aktualisierung.

Ich habe auch meine gitlab nginx Konfigurationsdateien von Grund auf neu gestartet.

Am Ende kann ich nicht sagen, welche Änderung genau das Problem gelöst hat.

0

Ich hatte bisher viele Fehler und Probleme beginnend mit Fehler 404, 403 und endet mit Problem mit Post-Anfrage.

Bei mir scheint das Problem incompatibility between GitLab and ci-runner zu sein.

Lösung, gleichen auf Postausgabe war ältere Version von ci-runner installieren:

sudo apt install gitlab-ci-multi-runner=1.11.1