{"action":"created","issue":{"url":"https://api.github.com/repos/tiian/flom/issues/3","labels_url":"https://api.github.com/repos/tiian/flom/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tiian/flom/issues/3/comments","events_url":"https://api.github.com/repos/tiian/flom/issues/3/events","html_url":"https://github.com/tiian/flom/issues/3","id":53402043,"number":3,"title":"ERROR: 'bind' function returned an error condition","user":{"login":"massdest","id":196945,"avatar_url":"https://avatars.githubusercontent.com/u/196945?v=3","gravatar_id":"","url":"https://api.github.com/users/massdest","html_url":"https://github.com/massdest","followers_url":"https://api.github.com/users/massdest/followers","following_url":"https://api.github.com/users/massdest/following{/other_user}","gists_url":"https://api.github.com/users/massdest/gists{/gist_id}","starred_url":"https://api.github.com/users/massdest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massdest/subscriptions","organizations_url":"https://api.github.com/users/massdest/orgs","repos_url":"https://api.github.com/users/massdest/repos","events_url":"https://api.github.com/users/massdest/events{/privacy}","received_events_url":"https://api.github.com/users/massdest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-05T14:40:02Z","updated_at":"2015-01-07T23:43:52Z","closed_at":"2015-01-07T18:35:10Z","body":"Hello, some times I have this error: ERROR: 'bind' function returned an error condition\r\nI use flom to run from cron some bash scripts, ex(runs every minute):\r\nflom -o 10000 -r puppetrun -- /usr/scripts/puppet_run.sh\r\n\r\nAnd have such error, not to often:\r\nflom_client_connect: ret_cod=-101 (ERROR: 'bind' function returned an error condition)\r\n\r\nScript contents(its running about 30 seconds):\r\n#!/bin/bash\r\nif [ -f /tmp/puppet_run ]; then\r\n\tsource /etc/default/puppet && puppet agent --onetime --no-daemonize --logdest /var/log/puppet/puppet.log && rm /tmp/puppet_run\r\nfi\r\n\r\nSome time error is:\r\nflom_client_connect: ret_cod=-2 (ERROR: flom command was not able to start a new daemon and/or connect to it)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tiian/flom/issues/comments/69113233","html_url":"https://github.com/tiian/flom/issues/3#issuecomment-69113233","issue_url":"https://api.github.com/repos/tiian/flom/issues/3","id":69113233,"user":{"login":"massdest","id":196945,"avatar_url":"https://avatars.githubusercontent.com/u/196945?v=3","gravatar_id":"","url":"https://api.github.com/users/massdest","html_url":"https://github.com/massdest","followers_url":"https://api.github.com/users/massdest/followers","following_url":"https://api.github.com/users/massdest/following{/other_user}","gists_url":"https://api.github.com/users/massdest/gists{/gist_id}","starred_url":"https://api.github.com/users/massdest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massdest/subscriptions","organizations_url":"https://api.github.com/users/massdest/orgs","repos_url":"https://api.github.com/users/massdest/repos","events_url":"https://api.github.com/users/massdest/events{/privacy}","received_events_url":"https://api.github.com/users/massdest/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T23:43:52Z","updated_at":"2015-01-07T23:43:52Z","body":"Yeah, and if I use --resource-idle-lifespan=65000 , flom runs daemon for each script ? \r\n\r\nAbout output redirection, >&2 seems doesn't works to me, because I want normal output puts to log file, and only errors get via email from stderr by cron(cron send stdout and stderr via email by default, but in my case stdout will goes to log file). Do you mind, I make some source change for my local use case: \r\n \r\n        case FLOM_RC_NETWORK_TIMEOUT: /* timeout expired, busy resource */\r\n            g_print(\"The lock was not obtained because timeout \"\r\n                    \"(%d milliseconds) expired\\n\",\r\n                    flom_config_get_resource_timeout(NULL));\r\n+          g_printerr (\"The lock was not obtained because timeout \"\r\n                    \"(%d milliseconds) expired\\n\",\r\n                    flom_config_get_resource_timeout(NULL));\r\n\r\nI checked it out now, works perfect - got email from cron in case of lock timeout. "}}