Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotFound from 'POST https://api.github.com/actions/runner-registration' #41

Open
ricardoboss opened this issue Feb 10, 2021 · 3 comments

Comments

@ricardoboss
Copy link

This is the log when using a docker-compose.yml and docker-compose up -d:

runner_1  |
runner_1  | --------------------------------------------------------------------------------
runner_1  | |        ____ _ _   _   _       _          _        _   _                      |
runner_1  | |       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
runner_1  | |      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
runner_1  | |      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
runner_1  | |       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
runner_1  | |                                                                              |
runner_1  | |                       Self-hosted runner registration                        |
runner_1  | |                                                                              |
runner_1  | --------------------------------------------------------------------------------
runner_1  |
runner_1  | # Authentication
runner_1  |
runner_1  | Http response code: NotFound from 'POST https://api.github.com/actions/runner-registration'
runner_1  | {"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
runner_1  | Response status code does not indicate success: 404 (Not Found).
runner_1  | .path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
runner_1  | Starting Runner listener with startup type: service
runner_1  | Started listener process
runner_1  | Started running service
runner_1  | An error occurred: Not configured
runner_1  | Runner listener exited with error code 2
runner_1  | Runner listener exit with retryable error, re-launch runner in 5 seconds. 

Needless to say that it doesn't even start up. Any idea whats going on?

@ricardoboss
Copy link
Author

This is my docker-compose.yml:

version: "3.7"

services:
    runner:
      image: tcardonne/github-runner:latest
      environment:
        RUNNER_NAME: "runner-x"
        RUNNER_REPOSITORY_URL: ${RUNNER_REPOSITORY_URL}
        RUNNER_ORGANIZATION_URL: ${RUNNER_ORGANIZATION_URL}
        GITHUB_ACCESS_TOKEN: ${GITHUB_ACCESS_TOKEN}
        RUNNER_TOKEN: ${RUNNER_TOKEN}
        RUNNER_LABELS: ${RUNNER_LABELS}
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock

@mms-gianni
Copy link

According to the github doku 404 is usually an authentication error.
https://docs.github.com/en/rest/overview/troubleshooting

Try using only RUNNER_REPOSITORY_URL or RUNNER_ORGANIZATION_URL

And only RUNNER_TOKEN or GITHUB_ACCESS_TOKEN

it worked for me perfectly. But i never tried to provide both tokens.

@markstos
Copy link

markstos commented Apr 5, 2023

I go this error when the token expired after a few hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants