hunt-framework / hayoo

Hackage search engine
56 stars 9 forks source link

Search fails due to "No space left on device" #45

Open bkaestner opened 9 years ago

bkaestner commented 9 years ago

Any query yields the following error message:

Connection Error: StatusCodeException (Status {statusCode = 500, statusMessage = "Internal Server Error"}) 
[ ("Transfer-Encoding","chunked")
, ("Date","Fri, 04 Sep 2015 05:47:07 GMT")
, ("Server","Warp/3.0.13.1")
, ("Content-Type","text/plain; charset=utf-8")
, ("X-Response-Body-Start","hunt.log: commitBuffer: resource exhausted (No space left on device)")
, ("X-Request-URL","POST http://localhost:3000/eval")
] (CJ {expose = []})
alexbiehl commented 9 years ago

Thanks. The logs are growing too big. Maybe we should delete logs older than a month.

bkaestner commented 9 years ago

You could use logrotate together with size 10M to keep only the last 60MB or so of your logs.