I restarted it yet again and now it's working... This is, of course, after I 
tracked down every log file, every config file, and every Catalyst module to 
see what could possibly cause this issue and finding absolutely nothing, no way 
for /beta and /api/v1 to differ in any way (they both route to the exact same 
code).

I am reminded of the story of Tom Knight and the Lisp Machine: A novice was 
trying to fix a broken Lisp machine by turning the power off and on. Knight, 
seeing what the student was doing, spoke sternly: “You cannot fix a machine by 
just power-cycling it with no understanding of what is going wrong.” Knight 
turned the machine off and on. The machine worked.

My actual guess as to what was wrong is that Lighttpd dropped the backend for 
/api/v1 from the "load balancer" configuration, but not the one for /beta 
(since it isn't used as much). So restarting the Catalyst app fixed /beta, but 
Lighttpd assumed that /api/v1 was irreparably down. I can't find any 
documentation, logging, or otherwise to support this theory, but it's working 
and it's late so I'm disinclined to continue searching...


Doug Bell
d...@preaction.me



> On Mar 1, 2017, at 6:28 AM, Nigel Horne <n...@bandsman.co.uk> wrote:
> 
> On 2/28/17 8:21 PM, Nigel Horne wrote:
>> I have one location where https://metabase.cpantesters.org/beta/ works but 
>> https://metabase.cpantesters.org/api/v1/ doesn't.
> Still the case this morning (US time).  /beta/ works, but /api/v1 gives 500 
> HTTP status.
> 
> -Nigel
> 

Reply via email to