Open cblage opened 5 years ago
After upgrading to 1.0, the problem still persists, but with a different error
agentrisk_1 | ** (exit) exited in: :gen_server.call(Geolix.Server.Pool, {:checkout, #Reference<0.1273179890.3252420613.173863>, true}, 5000)
agentrisk_1 | ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
agentrisk_1 | stacktrace:
agentrisk_1 | (stdlib) gen_server.erl:223: :gen_server.call/3
agentrisk_1 | (poolboy) /opt/app/deps/poolboy/src/poolboy.erl:63: :poolboy.checkout/3
agentrisk_1 | (poolboy) /opt/app/deps/poolboy/src/poolboy.erl:82: :poolboy.transaction/3
agentrisk_1 | (agentrisk) lib/agentrisk/integrations/geolix.ex:7: Agentrisk.Integrations.Geolix.lookup/1
...
I will update the adapter to properly log an error for any non 200 status code so the app can start without problems. You will still need to take care of manually triggering a reload in this (hopefully rare) case as there is no retry of any sort.
The different error after the update however is "interesting" :thinking:
I fixed it by shipping static DBs on every build
Seems like Geolix will crash the app completely if the backend returns a 503