{"action":"created","issue":{"url":"https://api.github.com/repos/jedireza/hapi-mongo-models/issues/57","repository_url":"https://api.github.com/repos/jedireza/hapi-mongo-models","labels_url":"https://api.github.com/repos/jedireza/hapi-mongo-models/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/jedireza/hapi-mongo-models/issues/57/comments","events_url":"https://api.github.com/repos/jedireza/hapi-mongo-models/issues/57/events","html_url":"https://github.com/jedireza/hapi-mongo-models/issues/57","id":156423287,"number":57,"title":"BaseModel's cursor not being released.","user":{"login":"TomerAvni","id":5339393,"avatar_url":"https://avatars.githubusercontent.com/u/5339393?v=3","gravatar_id":"","url":"https://api.github.com/users/TomerAvni","html_url":"https://github.com/TomerAvni","followers_url":"https://api.github.com/users/TomerAvni/followers","following_url":"https://api.github.com/users/TomerAvni/following{/other_user}","gists_url":"https://api.github.com/users/TomerAvni/gists{/gist_id}","starred_url":"https://api.github.com/users/TomerAvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomerAvni/subscriptions","organizations_url":"https://api.github.com/users/TomerAvni/orgs","repos_url":"https://api.github.com/users/TomerAvni/repos","events_url":"https://api.github.com/users/TomerAvni/events{/privacy}","received_events_url":"https://api.github.com/users/TomerAvni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jedireza/hapi-mongo-models/labels/bug%20in%20dependency","name":"bug in dependency","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-24T05:33:25Z","updated_at":"2016-06-02T19:23:16Z","closed_at":null,"body":"Hi,\r\nI am using this great library on production and it worked perfectly until a few days ago.\r\nTo put it simple, after some usage of the API (vary between 5 min to 20 hours), the BaseModel (hapi-mongo-models) simply timeouts on every request (that is - the callback function is not called - not even as an error).\r\nHowever, if during its \"stuck\" mode I evaluate a JS expression (with eval) that creates a brand new mongoDB proxy (using the native 'mongodb'), it works perfectly fine (hence I think it has to do with BaseModel and the fact it is a singleton-ish).\r\nThis lead me to believe that the db's cursor itself is not being released properly.\r\n**** The following is an assumption (based on some local code).\r\nI have drilled down to the cursor.js file (part of the native library) and the issue seem to be around the nextObject (line 647, mongodb@2.1.19), where no object nor error is being captured by the document and it seem to be entering some deadlock.\r\nUnfortunately I can't easily reproduce it.\r\nAny help, debugging, ideas are welcomed.\r\n\r\nTHANKS.\r\n\r\n** I've moved to the newest frame version which did not help.\r\nI've also opened a SW case http://stackoverflow.com/questions/37371421/hapijs-hapi-mongo-models-server-stuck-on-504-http-error"},"comment":{"url":"https://api.github.com/repos/jedireza/hapi-mongo-models/issues/comments/223395250","html_url":"https://github.com/jedireza/hapi-mongo-models/issues/57#issuecomment-223395250","issue_url":"https://api.github.com/repos/jedireza/hapi-mongo-models/issues/57","id":223395250,"user":{"login":"jedireza","id":979929,"avatar_url":"https://avatars.githubusercontent.com/u/979929?v=3","gravatar_id":"","url":"https://api.github.com/users/jedireza","html_url":"https://github.com/jedireza","followers_url":"https://api.github.com/users/jedireza/followers","following_url":"https://api.github.com/users/jedireza/following{/other_user}","gists_url":"https://api.github.com/users/jedireza/gists{/gist_id}","starred_url":"https://api.github.com/users/jedireza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedireza/subscriptions","organizations_url":"https://api.github.com/users/jedireza/orgs","repos_url":"https://api.github.com/users/jedireza/repos","events_url":"https://api.github.com/users/jedireza/events{/privacy}","received_events_url":"https://api.github.com/users/jedireza/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T19:23:16Z","updated_at":"2016-06-02T19:23:16Z","body":"Thanks for the updates @Kyii. @TomerAvni can you give this a try too?"}}
{"actor":{"display_login":"jedireza"}}