[solved] Drone does not sync new repos with Gitea

When I click the “Sync” button in the drone dashboard, it does not seem to sync new repos I created in my Gitea instance. Not sure if this is a problem with gitea or drone.

This feels similar to when Gitea introduced pagination and it would not sync other repos. But that was fixed.

Running Drone 2.6.0, Gitea 1.15.7

HTTP logs from Gitea:

gitea_1  | 2021/12/11 11:41:55 Started GET /api/v1/user/repos?limit=100 for 172.18.0.2:52746
gitea_1  | 2021/12/11 11:41:56 Completed GET /api/v1/user/repos?limit=100 200 OK in 79.035157ms
gitea_1  | 2021/12/11 11:41:56 Started GET /api/v1/user/repos?limit=100&page=2 for 172.18.0.2:52746
gitea_1  | 2021/12/11 11:41:57 Completed GET /api/v1/user/repos?limit=100&page=2 200 OK in 107.45578ms
gitea_1  | 2021/12/11 11:41:58 Started GET /api/v1/user/repos?limit=100&page=3 for 172.18.0.2:52746
gitea_1  | 2021/12/11 11:41:58 Completed GET /api/v1/user/repos?limit=100&page=3 200 OK in 96.70871ms
gitea_1  | 2021/12/11 11:41:59 Started GET /api/v1/user/repos?limit=100&page=4 for 172.18.0.2:52746
gitea_1  | 2021/12/11 11:41:59 Completed GET /api/v1/user/repos?limit=100&page=4 200 OK in 109.992806ms
gitea_1  | 2021/12/11 11:42:00 Started GET /api/v1/user/repos?limit=100&page=5 for 172.18.0.2:53014
gitea_1  | 2021/12/11 11:42:00 Completed GET /api/v1/user/repos?limit=100&page=5 200 OK in 51.185219ms

Debug logs from drone:

host_1  | {"fields.time":"2021-12-11T11:36:22Z","latency":22065806,"level":"debug","method":"POST","msg":"","remote":"192.168.192.2:35400","request":"/api/user/repos?async=true","request-id":"228cJXDWSPVZaUPxUfdCiYw8HYn","time":"2021-12-11T11:36:22Z"}
host_1  | {"level":"debug","login":"konrad","msg":"syncer: begin repository sync","time":"2021-12-11T11:36:22Z"}
host_1  | {"level":"debug","login":"konrad","msg":"syncer: finished repository sync","time":"2021-12-11T11:36:28Z"}
host_1  | {"fields.time":"2021-12-11T11:36:32Z","latency":21510924,"level":"debug","method":"GET","msg":"","remote":"192.168.192.2:35400","request":"/api/user","request-id":"228cKmzXpguH2K6hxOItjRMg8Hq","time":"2021-12-11T11:36:32Z"}

Okay so I poked at it a few more times and now it looks like it synced everything. Weird.