simplonco / carto-emploi

Projet de cartographie des emplois du numérique en France
0 stars 3 forks source link

[Bug] Après 3-4 requêtes (ville, métier), l'app crash #67

Closed annemarie35 closed 9 years ago

annemarie35 commented 9 years ago

dans les logs

Jul 17 14:57:12 ango-jobs app/web.1:  >>>>>>>>>>>> DB >>>>this is @conn.CLASS dans get geosearch: PG::Connection ---------------- 
Jul 17 14:57:12 ango-jobs app/web.1:  ----   // //   //   //  :  
Jul 17 14:57:12 ango-jobs app/web.1:  83.142.149.227 - - [17/Jul/2015:14:57:12 +0200] "GET /geosearch/48.852997361149775,2.34133243560791?d=20&limit=50&p=1&text=Int%C3%A9grateur HTTP/1.1" 200 18 0.7505 
Jul 17 14:57:13 ango-jobs heroku/router:  at=error code=H13 desc="Connection closed without response" method=GET path="/geosearch/48.85802347375378,2.3432207107543945?d=20&limit=50&p=1&text=Int%C3%A9grateur" host=ango-jobs.herokuapp.com request_id=d2cab2f3-98f1-48c9-9b73-30ff801bf13f fwd="83.142.149.227" dyno=web.1 connect=1ms service=1531ms status=503 bytes=0 
Jul 17 14:57:13 ango-jobs app/web.1:  >>>>>>>>>>>> DB >>>>this is @conn dans get geosearch: #<PG::Connection:0x007f7b57be1f48> ---------------- 
Jul 17 14:57:13 ango-jobs heroku/router:  at=error code=H13 desc="Connection closed without response" method=GET path="/geosearch/48.860931611800844,2.3413753509521484?d=20&limit=50&p=1&text=Int%C3%A9grateur" host=ango-jobs.herokuapp.com request_id=1f7fe58b-6a2f-4f8f-9893-d76a3c10044c fwd="83.142.149.227" dyno=web.1 connect=2ms service=19ms status=503 bytes=0 
Jul 17 14:57:13 ango-jobs app/web.1:  >>>>>>>>>>>> DB >>>>this is @conn.CLASS dans get geosearch: PG::Connection ---------------- 
Jul 17 14:57:13 ango-jobs app/web.1:  *** Error in `ruby': double free or corruption (!prev): 0x00007f7b3802c910 *** 
annemarie35 commented 9 years ago

L'explication de l'erreur

H13 - Connection closed without response

This error is thrown when a process in your web dyno accepts a connection, but then closes the socket without writing anything to it.

2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno=web.1 connect=3030ms service=9767ms status=503 bytes=0

One example where this might happen is when a Unicorn web server is configured with a timeout shorter than 30s and a request has not been processed by a worker before the timeout happens. In this case, Unicorn closes the connection before any data is written, resulting in an H13.