Drone

Drone Setup with Gitea - Empty Page On Login

Hi,

I’m trying to setup drone on my local machine, but I cant get it to work. Gitea runs with no problem, I also create the OAuth2 stuff. But after I entered it into the docker-compose file and restart it. I get an empty page. And sometimes I get this strange prompt of google chrome which wants to open something…

docker-compose.yml:

version: "3"

services:
  gitea-app:
    image: gitea/gitea:latest
    container_name: gitea-app
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - SSH_DOMAIN=mydomain.com
      - DB_TYPE=postgres
      - DB_HOST=gitea-db:5432
      - DB_NAME=gitea
      - DB_USER=gitea
      - DB_PASSWD=gitea
    restart: always
    volumes:
      - ./volumes/gitea_app:/data
    ports:
      - "3000:3000"
      - "2221:22"
    depends_on:
      - gitea-db
    networks:
      - appnet

  gitea-db:
    image: postgres:alpine
    container_name: gitea-db
    restart: always
    volumes:
      - ./volumes/gitea_db:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=gitea
      - POSTGRES_DB=gitea
    networks:
      - appnet

  drone-server:
    image: drone/drone:latest
    container_name: drone-server
    ports:
      - "80:80"
    volumes:
      - ./volumes/drone:/var/lib/drone/
    restart: always
    depends_on:
      - gitea-app
    environment:
      - DRONE_GITLAB_DEBUG=true
      - DRONE_DEBUG=true
      - DRONE_LOGS_PRETTY=true
      - DRONE_LOGS_COLOR=true
      - DRONE_LOGS_DEBUG=true
      - DRONE_SERVER_HOST=drone-server:80
      - DRONE_SERVER_PROTO=http
      - DRONE_GITEA_CLIENT_ID=080b2d18-415b-4b52-a742-a06e0d6a6d82
      - DRONE_GITEA_CLIENT_SECRET=hHJPSj2uRzsEL6UVPO1SIulLNhZDJ_vOA_o-ayidsOY=
      - DRONE_GITEA_SERVER=gitea-app:3000
      - DRONE_RPC_SECRET=secret
      - DRONE_NETWORK=appnet
    networks:
      - appnet

  drone-agent:
    image: drone/agent:latest
    container_name: drone-agent
    command: agent
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_DEBUG=true
      - DRONE_LOGS_PRETTY=true
      - DRONE_LOGS_COLOR=true
      - DRONE_LOGS_TRACE=true
      - DRONE_SERVER_HOST=drone-server:80
      - DRONE_RPC_SECRET=secret
    networks:
      - appnet

volumes:
  gitea-app:
  gitea-db:

networks:
  appnet:
    external: true

Log file output:

Attaching to gitea-db, gitea-app, drone-server, drone-agent
drone-server     {
drone-server       "level": "info",
drone-server       "msg": "main: internal scheduler enabled",
drone-server       "time": "2020-01-03T10:53:13Z"
drone-server     }
gitea-app        Server listening on :: port 22.
gitea-app        Server listening on 0.0.0.0 port 22.
drone-server     {
drone-server       "build.limit": 0,
drone-server       "expires": "0001-01-01T00:00:00Z",
drone-server       "kind": "trial",
drone-server       "level": "debug",
drone-server       "msg": "main: license loaded",
drone-server       "repo.limit": 0,
drone-server       "time": "2020-01-03T10:53:13Z",
drone-server       "user.limit": 0
drone-server     }
drone-server     {
drone-server       "interval": "30m0s",
drone-server       "level": "info",
drone-server       "msg": "starting the cron scheduler",
drone-server       "time": "2020-01-03T10:53:13Z"
drone-server     }
gitea-app        2020/01/03 10:53:12 cmd/web.go:107:runWeb() [I] Starting Gitea on PID: 15
drone-server     {
drone-server       "acme": false,
drone-server       "host": "drone-server:80",
drone-server       "level": "info",
drone-server       "msg": "starting the http server",
drone-server       "port": ":80",
drone-server       "proto": "http",
drone-server       "time": "2020-01-03T10:53:13Z",
drone-server       "url": "http ://drone-server:80"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream opened",
drone-server       "request-id": "1VsjehS0TK2UGbOh5P2jUVtVYD2",
drone-server       "time": "2020-01-03T10:53:13Z"
drone-server     }
gitea-app        2020/01/03 10:53:12 ...dules/setting/git.go:87:newGit() [I] Git Version: 2.24.1, Wire Protocol Version 2 Enabled
gitea-app        2020/01/03 10:53:12 routers/init.go:87:GlobalInit()  AppPath: /app/gitea/gitea
gitea-app        2020/01/03 10:53:12 routers/init.go:88:GlobalInit()  AppWorkPath: /app/gitea
gitea-app        2020/01/03 10:53:12 routers/init.go:89:GlobalInit()  Custom path: /data/gitea
gitea-app        2020/01/03 10:53:12 routers/init.go:90:GlobalInit()  Log path: /data/gitea/log
gitea-db         
gitea-db         PostgreSQL Database directory appears to contain a database; Skipping initialization
gitea-db         
gitea-db         2020-01-03 10:53:11.825 UTC [1] LOG:  starting PostgreSQL 12.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 8.3.0) 8.3.0, 64-bit
gitea-db         2020-01-03 10:53:11.825 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
drone-agent      {
drone-agent        "level": "debug",
drone-agent        "msg": "successfully pinged the docker daemon",
drone-agent        "time": "2020-01-03T10:53:13Z"
drone-agent      }
gitea-db         2020-01-03 10:53:11.825 UTC [1] LOG:  listening on IPv6 address "::", port 5432
drone-server     {
drone-server       "arch": "amd64",
drone-server       "kernel": "",
drone-server       "kind": "pipeline",
drone-server       "level": "debug",
drone-server       "msg": "manager: request queue item",
drone-server       "os": "linux",
drone-server       "time": "2020-01-03T10:53:13Z",
drone-server       "type": "docker",
drone-server       "variant": ""
drone-server     }
drone-agent      {
drone-agent        "arch": "amd64",
drone-agent        "level": "debug",
drone-agent        "machine": "3137e2d40805",
drone-agent        "msg": "runner: polling queue",
drone-agent        "os": "linux",
drone-agent        "time": "2020-01-03T10:53:13Z"
drone-agent      }
gitea-db         2020-01-03 10:53:11.828 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
gitea-db         2020-01-03 10:53:11.844 UTC [20] LOG:  database system was shut down at 2020-01-03 10:52:50 UTC
drone-agent      2020/01/03 10:53:13 [DEBUG] POST http ://drone-server:80/rpc/v1/request
gitea-db         2020-01-03 10:53:11.847 UTC [1] LOG:  database system is ready to accept connections
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream cancelled",
drone-server       "request-id": "1VsjehS0TK2UGbOh5P2jUVtVYD2",
drone-server       "time": "2020-01-03T10:53:28Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream closed",
drone-server       "request-id": "1VsjehS0TK2UGbOh5P2jUVtVYD2",
drone-server       "time": "2020-01-03T10:53:28Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: guest access",
drone-server       "request-id": "1VsjehS0TK2UGbOh5P2jUVtVYD2",
drone-server       "time": "2020-01-03T10:53:28Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:53:28Z",
drone-server       "latency": 14530398139,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42842",
drone-server       "request": "/api/stream",
drone-server       "request-id": "1VsjehS0TK2UGbOh5P2jUVtVYD2",
drone-server       "time": "2020-01-03T10:53:28Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:53:33Z",
drone-server       "latency": 58080,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42862",
drone-server       "request": "/",
drone-server       "request-id": "1VsjhGNvEMZHPNYztzxKKQZXHDd",
drone-server       "time": "2020-01-03T10:53:33Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: authentication required",
drone-server       "request-id": "1VsjhJuXBS6ufoIDWyHq2VXdp8E",
drone-server       "time": "2020-01-03T10:53:34Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: guest access",
drone-server       "request-id": "1VsjhJuXBS6ufoIDWyHq2VXdp8E",
drone-server       "time": "2020-01-03T10:53:34Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:53:34Z",
drone-server       "latency": 154298,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42862",
drone-server       "request": "/api/user",
drone-server       "request-id": "1VsjhJuXBS6ufoIDWyHq2VXdp8E",
drone-server       "time": "2020-01-03T10:53:34Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:53:34Z",
drone-server       "latency": 80794,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42862",
drone-server       "request": "/login",
drone-server       "request-id": "1VsjhMthcBKE0iuMKgTSwLfVvJj",
drone-server       "time": "2020-01-03T10:53:34Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream opened",
drone-server       "request-id": "1VsjhKwLBumqxYDGlUE6tgSeILy",
drone-server       "time": "2020-01-03T10:53:34Z"
drone-server     }
drone-server     {
drone-server       "arch": "amd64",
drone-server       "kernel": "",
drone-server       "kind": "pipeline",
drone-server       "level": "debug",
drone-server       "msg": "manager: context canceled",
drone-server       "os": "linux",
drone-server       "time": "2020-01-03T10:53:43Z",
drone-server       "type": "docker",
drone-server       "variant": ""
drone-server     }
drone-agent      2020/01/03 10:53:43 [DEBUG] POST http ://drone-server:80/rpc/v1/request (status: 524): retrying in 1s (30 left)
drone-server     {
drone-server       "arch": "amd64",
drone-server       "kernel": "",
drone-server       "kind": "pipeline",
drone-server       "level": "debug",
drone-server       "msg": "manager: request queue item",
drone-server       "os": "linux",
drone-server       "time": "2020-01-03T10:53:44Z",
drone-server       "type": "docker",
drone-server       "variant": ""
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:54:00Z",
drone-server       "latency": 34671,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42862",
drone-server       "request": "/",
drone-server       "request-id": "1VsjkZJvo6gc7eH1URLvcGBMLbo",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream cancelled",
drone-server       "request-id": "1VsjhKwLBumqxYDGlUE6tgSeILy",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream closed",
drone-server       "request-id": "1VsjhKwLBumqxYDGlUE6tgSeILy",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: guest access",
drone-server       "request-id": "1VsjhKwLBumqxYDGlUE6tgSeILy",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:54:00Z",
drone-server       "latency": 26310389080,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42864",
drone-server       "request": "/api/stream",
drone-server       "request-id": "1VsjhKwLBumqxYDGlUE6tgSeILy",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: authentication required",
drone-server       "request-id": "1VsjkbVCxSsTvWW7BxesE6NO1if",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: guest access",
drone-server       "request-id": "1VsjkbVCxSsTvWW7BxesE6NO1if",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:54:00Z",
drone-server       "latency": 235204,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42862",
drone-server       "request": "/api/user",
drone-server       "request-id": "1VsjkbVCxSsTvWW7BxesE6NO1if",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream opened",
drone-server       "request-id": "1VsjkgJORSsAHUM2IpxBvG4ZcmM",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:54:00Z",
drone-server       "latency": 114811,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42870",
drone-server       "request": "/login",
drone-server       "request-id": "1VsjkdaVzYuxNDF4mu7vhQh5fjF",
drone-server       "time": "2020-01-03T10:54:00Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream cancelled",
drone-server       "request-id": "1VsjkgJORSsAHUM2IpxBvG4ZcmM",
drone-server       "time": "2020-01-03T10:54:03Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "events: stream closed",
drone-server       "request-id": "1VsjkgJORSsAHUM2IpxBvG4ZcmM",
drone-server       "time": "2020-01-03T10:54:03Z"
drone-server     }
drone-server     {
drone-server       "level": "debug",
drone-server       "msg": "api: guest access",
drone-server       "request-id": "1VsjkgJORSsAHUM2IpxBvG4ZcmM",
drone-server       "time": "2020-01-03T10:54:03Z"
drone-server     }
drone-server     {
drone-server       "fields.time": "2020-01-03T10:54:03Z",
drone-server       "latency": 2881714141,
drone-server       "level": "debug",
drone-server       "method": "GET",
drone-server       "msg": "",
drone-server       "remote": "172.18.0.1:42862",
drone-server       "request": "/api/stream",
drone-server       "request-id": "1VsjkgJORSsAHUM2IpxBvG4ZcmM",
drone-server       "time": "2020-01-03T10:54:03Z"
drone-server     }
Gracefully stopping... (press Ctrl+C again to force)