Получение ошибки состояния 401 при установлении соединения с Concourse API - PullRequest
0 голосов
/ 11 июля 2019

В данный момент мы пытаемся заставить CI работать в наших лабораториях ..

мы только что следовали инструкциям на сайте конкурса.

Мы можем правильно войти в систему и настроить ~/.flyrc, как рекомендуется на веб-сайтах concourse-ci.org и concoursetutorial.com.

Мы заметили, что большинство команд возвращаются с несанкционированной ошибкой 401.

Мы приступили к настройке журналов аудита https://concourse -ci.org / concourse-web.html # audit-logs

Но не ясно, куда это пишет, помогите?

В настоящее время трудно правильно проследить это. Кстати, это наше первое знакомство с залом.

Мы хотели бы знать, почему? и что мы можем сделать, чтобы решить эту проблему (чтобы преодолеть это препятствие).

fly -t rdb-ci set-team --team-name a-team --local-user admin --github-org organization --verbose --print-table-headers --non-interactive

2019/07/10 22:02:37 GET /api/v1/info HTTP/1.1
Host: ci.example.org
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip


2019/07/10 22:02:37 HTTP/1.1 200 OK
Content-Length: 88
Connection: keep-alive
Content-Type: application/json
Date: Wed, 10 Jul 2019 21:02:37 GMT
Server: nginx/1.12.2
X-Concourse-Version: 5.3.0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

{"version":"5.3.0","worker_version":"2.1","external_url":"https://ci.example.org"}

setting team: a-team

role owner:
  users:
  - local:admin

  groups:
  - github:organization

apply team configuration? [yN]: y
2019/07/10 22:02:53 PUT /api/v1/teams/a-team HTTP/1.1
Host: ci.example.org
User-Agent: Go-http-client/1.1
Content-Length: 71
Content-Type: application/json
Accept-Encoding: gzip

{"auth":{"owner":{"groups":["github:organization"],"users":["local:admin"]}}}

2019/07/10 22:02:53 HTTP/1.1 401 Unauthorized
Content-Length: 14
Connection: keep-alive
Content-Type: text/plain; charset=utf-8
Date: Wed, 10 Jul 2019 21:02:53 GMT
Server: nginx/1.12.2
X-Concourse-Version: 5.3.0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

not authorized
could not find a valid token.
logging in to team 'main'

2019/07/10 22:02:53 GET /api/v1/info HTTP/1.1
Host: ci.example.org
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip


could not reach the Concourse server called rdb-ci:

    Get https://ci.example.org/api/v1/info: x509: certificate is valid for www.example.org, not ci.example.org

is the targeted Concourse running? better go catch it lol

...