EDIT: Problems were understood and solved, see last two posts.
After running drone in the office for some time now, I’m really happy with it and want to setup a small instance on my mini server at home. I’m trying to setup drone on the following:
- small server on ARM cpu with 4GB of RAM
- Ubuntu 20.04
- Docker 20.10.11
- Caddy as reverse proxy in front
I followed the official guide from here closely: GitHub | Drone
Sadly, the login doesn’t work and I’m out of ideas. It will properly redirect me to github, I can grant access and am then redirected to my-drone.host.com/login with the code issued by github. This then takes forever until something times out and I get this error message:
oauth: cannot exchange code: [code here]: Post \"https://github.com/login/oauth/access_token\": read tcp 172.20.0.2:48520->220.127.116.11:443: read: connection reset by peer
I already checked a lot of things. Outgoing connections to github work, also from inside the drone container I can ping github.com. I restarted the docker service and even tried to disable ufw to see if there is some connection issue, but it should actually be working.
Is this a known issue? What else could I try to get it working? Thanks for your help!