{"action":"created","issue":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/150","labels_url":"https://api.github.com/repos/savonet/liquidsoap/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/savonet/liquidsoap/issues/150/comments","events_url":"https://api.github.com/repos/savonet/liquidsoap/issues/150/events","html_url":"https://github.com/savonet/liquidsoap/issues/150","id":26324904,"number":150,"title":"Liquidsoap crashed: too many open files ","user":{"login":"alvassin","id":1497444,"avatar_url":"https://avatars.githubusercontent.com/u/1497444?v=3","gravatar_id":"","url":"https://api.github.com/users/alvassin","html_url":"https://github.com/alvassin","followers_url":"https://api.github.com/users/alvassin/followers","following_url":"https://api.github.com/users/alvassin/following{/other_user}","gists_url":"https://api.github.com/users/alvassin/gists{/gist_id}","starred_url":"https://api.github.com/users/alvassin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvassin/subscriptions","organizations_url":"https://api.github.com/users/alvassin/orgs","repos_url":"https://api.github.com/users/alvassin/repos","events_url":"https://api.github.com/users/alvassin/events{/privacy}","received_events_url":"https://api.github.com/users/alvassin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/savonet/liquidsoap/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/savonet/liquidsoap/labels/RC","name":"RC","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"toots","id":871060,"avatar_url":"https://avatars.githubusercontent.com/u/871060?v=3","gravatar_id":"","url":"https://api.github.com/users/toots","html_url":"https://github.com/toots","followers_url":"https://api.github.com/users/toots/followers","following_url":"https://api.github.com/users/toots/following{/other_user}","gists_url":"https://api.github.com/users/toots/gists{/gist_id}","starred_url":"https://api.github.com/users/toots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toots/subscriptions","organizations_url":"https://api.github.com/users/toots/orgs","repos_url":"https://api.github.com/users/toots/repos","events_url":"https://api.github.com/users/toots/events{/privacy}","received_events_url":"https://api.github.com/users/toots/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2014-01-26T23:01:32Z","updated_at":"2015-10-26T09:56:37Z","closed_at":null,"body":"My email was not replied for a long time, so i decided to put it here just in case you did not see that report, and not to forget about it. I've found liquidsoap crashed, could you please help to research?\r\n\r\nWe use `request.dynamic` to play files from remote server (requested via http and saved to /tmp folder by liquidsoap).\r\n\r\n Last log lines were following:\r\n```\r\n2014/01/18 14:55:16 [request.dynamic_5970:3] Finished with \"/tmp/liq7e1fc7.mp3\".\r\n2014/01/18 14:55:16 [request.dynamic_5970:3] Prepared \"/tmp/liqef6b8f.mp3\" (RID 1).\r\n2014/01/18 14:55:16 [threads:2] Queue generic queue #1 crashed with exception Sys_error(\"/tmp/liq5a2504.mp3: Too many open files\")\r\n2014/01/18 14:55:16 [threads:2] Raised by primitive operation at file \"filename.ml\", line 206, characters 16-75\r\nRe-raised at file \"filename.ml\", line 209, characters 36-37\r\nCalled from file \"protocols/extproto.ml\", line 45, characters 14-21\r\nCalled from file \"request.ml\", line 584, characters 20-64\r\nCalled from file \"request.ml\", line 610, characters 12-27\r\nCalled from file \"sources/request_source.ml\", line 356, characters 22-49\r\nCalled from file \"sources/request_source.ml\", line 340, characters 13-26\r\nCalled from file \"duppy.ml\", line 351, characters 20-24\r\nCalled from file \"duppy.ml\", line 131, characters 61-77\r\nCalled from file \"duppy.ml\", line 253, characters 14-23\r\nCalled from file \"duppy.ml\", line 280, characters 9-26\r\nCalled from file \"tools/tutils.ml\", line 207, characters 19-55\r\n\r\n2014/01/18 14:55:16 [threads:1] PANIC: Liquidsoap has crashed, exiting..\r\n2014/01/18 14:55:16 [threads:1] Please report at: savonet-users@lists.sf.net\r\n```\r\n\r\nThen, i have writted script to monitor stations & restart them if they have crashed. I have currently about 10-15 liquidsoap processes running on that server. My watcher script reports about 1-2 liquidsoap processes crashes every day since i have first saw this issue.\r\n\r\nI am currently using last git source build, running under debian wheezy. Any help will be appeciated.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/comments/151085686","html_url":"https://github.com/savonet/liquidsoap/issues/150#issuecomment-151085686","issue_url":"https://api.github.com/repos/savonet/liquidsoap/issues/150","id":151085686,"user":{"login":"smimram","id":2012073,"avatar_url":"https://avatars.githubusercontent.com/u/2012073?v=3","gravatar_id":"","url":"https://api.github.com/users/smimram","html_url":"https://github.com/smimram","followers_url":"https://api.github.com/users/smimram/followers","following_url":"https://api.github.com/users/smimram/following{/other_user}","gists_url":"https://api.github.com/users/smimram/gists{/gist_id}","starred_url":"https://api.github.com/users/smimram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smimram/subscriptions","organizations_url":"https://api.github.com/users/smimram/orgs","repos_url":"https://api.github.com/users/smimram/repos","events_url":"https://api.github.com/users/smimram/events{/privacy}","received_events_url":"https://api.github.com/users/smimram/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T09:56:37Z","updated_at":"2015-10-26T09:56:37Z","body":"Some more notes. The request is created by\r\n```\r\n    [Request.indicator ~temporary:true local]\r\n```\r\nwhich meants that after it is played, it should be deleted. I guess that we don't handle things correctly when something bad happens (e.g. the process dies before producing the file or so...)"}}