Hi everyone, I’m in need of some help while setting up Drone CI with Gitea, I am getting a connect: cannot assign requested address
error with my current setup even tho I followed the deployment guide by the letter.
I’m using Docker for all of this, here is my compose:
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.13.0
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
drone-ci:
image: drone/drone:latest
volumes:
- ./drone:/data
networks:
- gitea
environment:
- DRONE_GITEA_SERVER=https://git.jae.moe
- DRONE_GITEA_CLIENT_ID=imcool
- DRONE_GITEA_CLIENT_SECRET=imsecret
- DRONE_RPC_SECRET=imverysecret
- DRONE_SERVER_HOST=ci.jae.moe
- DRONE_SERVER_PROTO=https
restart: always
ports:
- 1340:80
drone-runner:
image: drone/drone-runner-docker:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- gitea
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-ci
- DRONE_RPC_SECRET=imverysecret
- DRONE_RUNNER_CAPACITY=5
- DRONE_RUNNER_NAME=kronos
Here is the log on the server side:
drone-ci_1 | {"level":"error","msg":"oauth: cannot exchange code: [very secret code here]: Post \"https://git.jae.moe/login/oauth/access_token\": dial tcp [2a01:e0a:14f:5230:fabc:12ff:fe31:97fe]:443: connect: cannot assign requested address","time":"2020-12-19T22:02:42Z"}
Note: as expected, everything is running on the exact same machine.