src-d / borges

borges collects and stores Git repositories.
https://docs.sourced.tech/borges/
GNU General Public License v3.0
52 stars 20 forks source link

Borges producer fails to reconnect to broker on startup #302

Open rporres opened 6 years ago

rporres commented 6 years ago

In a deploy in k8s I got this only message and nothing else

 $ kubectl logs  -n borges borges-borges-producer-1419705849-vgmcl
{"error":"dial tcp 10.3.0.134:5432: connect: no route to host","level":"error","msg":"error obtaining next job","time":"2018-06-12T10:23:25.429805197Z"}

I deleted the pod and then things went ok

$ kubectl logs  -n borges borges-borges-producer-1419705849-gt0h9 | head
{"job":"0163f387-e171-b109-bd47-806559ed9d3b","level":"info","msg":"job queued","time":"2018-06-12T10:25:58.68472892Z"}
{"job":"0163f387-e62b-2848-c919-ac959fe5589e","level":"info","msg":"job queued","time":"2018-06-12T10:25:59.867859586Z"}
{"job":"0163f387-ead9-a68a-91bc-a8f185b6603e","level":"info","msg":"job queued","time":"2018-06-12T10:26:01.07288932Z"}
{"job":"0163f387-ef8a-6595-0f2b-99b8317fc5f9","level":"info","msg":"job queued","time":"2018-06-12T10:26:02.253198471Z"}
{"job":"0163f387-f42a-3a4b-35fa-62bc8f096903","level":"info","msg":"job queued","time":"2018-06-12T10:26:03.461245366Z"}
{"job":"0163f387-f8d7-99ec-1ee9-3e2f546682c6","level":"info","msg":"job queued","time":"2018-06-12T10:26:04.649475903Z"}
{"job":"0163f387-fd77-5089-7b60-965f5f272cb0","level":"info","msg":"job queued","time":"2018-06-12T10:26:05.840780762Z"}
{"job":"0163f388-022d-ce28-f21f-2b80e2bc2582","level":"info","msg":"job queued","time":"2018-06-12T10:26:07.042836295Z"}
{"job":"0163f388-06d5-40d9-e91b-0d4661eaac4e","level":"info","msg":"job queued","time":"2018-06-12T10:26:08.219667877Z"}
{"job":"0163f388-0b80-a479-898d-b931dd355a6b","level":"info","msg":"job queued","time":"2018-06-12T10:26:09.418743185Z"}