Search code examples
githuboauthdockeraccess-denieddrone.io

setting up local drone server: Unable to login. Registration is closed


I'm trying to set up a local drone.io server for CD with my github account. I'm using the official docker container. The setup instructions says to add an application in github settings to get the client id and secret needed for drone github remote configuration, which I have done, the only difference from official docs is that I see the "Register new application" on the "Developer Applications" and not on "Authorized Applications", I hope it's the same. Then, I have defined the environment variables:

REMOTE_DRIVER=github
REMOTE_CONFIG=https://github.com?client_id=${client_id}&client_secret=${client_secret}

Replacing the client id and secret with my own. Then I bring the container up and try to login, I get redirected to github's authorization page, I authorize it and when redirected back I get this error:

Unable to login. Registration is closed.

And the redirected URL is:

http://drone.myserver.com/login?error=access_denied

I really don't have a clue on what could possible be missing/misconfigured, the same setup works with the bitbucket remote.


Solution

  • Found the problem. Browsing drone issues I found this one that mentions that I need to add open=true to the query string so drone is able to create the github application.