{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluent-plugin-flume/issues/4","labels_url":"https://api.github.com/repos/fluent/fluent-plugin-flume/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluent-plugin-flume/issues/4/comments","events_url":"https://api.github.com/repos/fluent/fluent-plugin-flume/issues/4/events","html_url":"https://github.com/fluent/fluent-plugin-flume/issues/4","id":55601381,"number":4,"title":"Cannot assign requested address","user":{"login":"bryanchapman9999","id":10634881,"avatar_url":"https://avatars.githubusercontent.com/u/10634881?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanchapman9999","html_url":"https://github.com/bryanchapman9999","followers_url":"https://api.github.com/users/bryanchapman9999/followers","following_url":"https://api.github.com/users/bryanchapman9999/following{/other_user}","gists_url":"https://api.github.com/users/bryanchapman9999/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanchapman9999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanchapman9999/subscriptions","organizations_url":"https://api.github.com/users/bryanchapman9999/orgs","repos_url":"https://api.github.com/users/bryanchapman9999/repos","events_url":"https://api.github.com/users/bryanchapman9999/events{/privacy}","received_events_url":"https://api.github.com/users/bryanchapman9999/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-27T10:41:03Z","updated_at":"2015-12-01T00:57:15Z","closed_at":"2015-12-01T00:57:15Z","body":"Hi,\r\n\r\nNot having much luck using this plugin.\r\nI ran it on the same machine as our flume server initially and could never get it to bind to the port saying it was busy - not a massive surprise. Stopped flume and restarted fluentd and all was well, but of course then flume would not start.\r\n\r\nHave now moved over to a different server but having the same problem.\r\n\r\nThe flume part of my fluentd config:\r\n<source>\r\n    type flume\r\n    bind 172.20.5.220\r\n    port 12345\r\n</source>\r\n\r\nThe relevant part  of my flume config:\r\nlog4jsink.sources.avroSource.bind = 0.0.0.0\r\nlog4jsink.sources.avroSource.channels = log4j2Avro2File log4j2Avro2Nsca syslog2Avro2File tail2Avro2File\r\nlog4jsink.sources.avroSource.port = 12345\r\nlog4jsink.sources.avroSource.selector.type = replicating\r\nlog4jsink.sources.avroSource.type = avro\r\n\r\nAn NMAP from the box I'm running fluent on to the flume server:\r\n[root@huginn ~]# nmap -sS 172.20.5.220\r\n\r\nStarting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2015-01-27 10:32 GMT\r\nInteresting ports on flumeuat15-1.live (172.20.5.220):\r\nNot shown: 1671 closed ports\r\nPORT      STATE SERVICE\r\n22/tcp    open  ssh\r\n25/tcp    open  smtp\r\n111/tcp   open  rpcbind\r\n465/tcp   open  smtps\r\n587/tcp   open  submission\r\n875/tcp   open  unknown\r\n2049/tcp  open  nfs\r\n5999/tcp  open  ncd-conf\r\n12345/tcp open  NetBus\r\n\r\nNmap finished: 1 IP address (1 host up) scanned in 0.314 seconds\r\n\r\nThis is my fluentd log:\r\n[root@huginn td-agent]# cat td-agent.log \r\n2015-01-27 10:39:09 +0000 [info]: shutting down fluentd\r\n2015-01-27 10:39:09 +0000 [info]: process finished code=0\r\n2015-01-27 10:39:11 +0000 [info]: reading config file path=\"/etc/td-agent/td-agent.conf\"\r\n2015-01-27 10:39:11 +0000 [info]: starting fluentd-0.10.58\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-mixin-config-placeholders' version '0.3.0'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-mixin-plaintextformatter' version '0.2.6'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-flume' version '0.1.1'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-influxdb' version '0.1.2'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-mongo' version '0.7.4'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-rewrite-tag-filter' version '1.4.1'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-s3' version '0.5.1'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-scribe' version '0.10.14'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-td' version '0.10.23'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-td-monitoring' version '0.2.0'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluent-plugin-webhdfs' version '0.4.1'\r\n2015-01-27 10:39:11 +0000 [info]: gem 'fluentd' version '0.10.58'\r\n2015-01-27 10:39:11 +0000 [info]: using configuration file: <ROOT>\r\n  <match td.*.*>\r\n    type tdlog\r\n    apikey YOUR_API_KEY\r\n    auto_create_table \r\n    buffer_type file\r\n    buffer_path /var/log/td-agent/buffer/td\r\n  </match>\r\n  <match debug.**>\r\n    type stdout\r\n  </match>\r\n  <source>\r\n    type forward\r\n  </source>\r\n  <source>\r\n    type http\r\n    port 8888\r\n  </source>\r\n  <source>\r\n    type flume\r\n    bind 172.20.5.220\r\n    port 12345\r\n  </source>\r\n</ROOT>\r\n2015-01-27 10:39:11 +0000 [info]: adding source type=\"forward\"\r\n2015-01-27 10:39:11 +0000 [info]: adding source type=\"http\"\r\n2015-01-27 10:39:11 +0000 [info]: adding source type=\"flume\"\r\n2015-01-27 10:39:11 +0000 [info]: adding match pattern=\"td.*.*\" type=\"tdlog\"\r\n2015-01-27 10:39:11 +0000 [info]: adding match pattern=\"debug.**\" type=\"stdout\"\r\n2015-01-27 10:39:11 +0000 [info]: listening fluent socket on 0.0.0.0:24224\r\n2015-01-27 10:39:11 +0000 [error]: unexpected error error=\"Cannot assign requested address - bind(2) for \\\"172.20.5.220\\\" port 12345\"\r\n  2015-01-27 10:39:11 +0000 [error]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/thrift-0.8.0/lib/thrift/transport/server_socket.rb:40:in `initialize'\r\n  2015-01-27 10:39:11 +0000 [error]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/thrift-0.8.0/lib/thrift/transport/server_socket.rb:40:in `new'\r\n  2015-01-27 10:39:11 +0000 [error]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/thrift-0.8.0/lib/thrift/transport/server_socket.rb:40:in `listen'\r\n  2015-01-27 10:39:11 +0000 [error]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/thrift-0.8.0/lib/thrift/server/simple_server.rb:24:in `serve'\r\n  2015-01-27 10:39:11 +0000 [error]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-flume-0.1.1/lib/fluent/plugin/in_flume.rb:101:in `run'\r\n[root@huginn td-agent]# \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fluent/fluent-plugin-flume/issues/comments/160812435","html_url":"https://github.com/fluent/fluent-plugin-flume/issues/4#issuecomment-160812435","issue_url":"https://api.github.com/repos/fluent/fluent-plugin-flume/issues/4","id":160812435,"user":{"login":"repeatedly","id":16928,"avatar_url":"https://avatars.githubusercontent.com/u/16928?v=3","gravatar_id":"","url":"https://api.github.com/users/repeatedly","html_url":"https://github.com/repeatedly","followers_url":"https://api.github.com/users/repeatedly/followers","following_url":"https://api.github.com/users/repeatedly/following{/other_user}","gists_url":"https://api.github.com/users/repeatedly/gists{/gist_id}","starred_url":"https://api.github.com/users/repeatedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repeatedly/subscriptions","organizations_url":"https://api.github.com/users/repeatedly/orgs","repos_url":"https://api.github.com/users/repeatedly/repos","events_url":"https://api.github.com/users/repeatedly/events{/privacy}","received_events_url":"https://api.github.com/users/repeatedly/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T00:57:15Z","updated_at":"2015-12-01T00:57:15Z","body":"issue 3 is fixed. I close this issue too."}}