Unicorn returns blank page after no use
Farjad Adamjee <fadamjee <at> vailsys.com>
2015-07-01 16:08:04 GMT
I am not sure if this is the correct place for this, I have googled
around to see if anyone else has encountered such an issue, but I did
not find anything.
I am having this issue where after a period of time of no use (on beta
[production] environment), maybe 12 hours or so, the unicorn process
sleeps. When I go and re-request the page, it returns blank.
I am using Apache proxy to Unicorn.
My unicorn.stderr.log states:
I, [2015-07-01T03:07:05.168511 #13258] INFO -- : master done reopening logs
I, [2015-07-01T03:07:05.232546 #16222] INFO -- : worker=2 done
I, [2015-07-01T03:07:05.239934 #13308] INFO -- : worker=0 done
I, [2015-07-01T03:07:05.307616 #13311] INFO -- : worker=1 done
When I request the page again, it loads fine. It is only during the
process of "reopening logs" when it returns a blank page.
My unicorn.rb file:
# Load app into the master before forking workers
# for super-fast worker spawn times