Oct 12, 2012

fluentd unexpected error error="Address already in use - bind(2)"

When I started fluentd, I got the error message like the following.

2012-10-12 14:52:07 +0900: unexpected error error="Address already in use - bind(2)"

I searched which program was using this port. Yes, as you see it was td-agent(fluentd).
td-agent is supposed to use 24224 port. It's natural behavior.
[xxx]# sudo /usr/sbin/lsof -i:24224
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
ruby 22248 td-agent 14u IPv4 46635887 TCP *:24224 (LISTEN)
ruby 22248 td-agent 15u IPv4 46635888 UDP *:24224
view raw gistfile1.sh hosted with ❤ by GitHub


But I forgot that I booted it by /usr/sbin/td-agent command before.
Yes it's absolutely my mistake. I killed this process and restart fluentd.

No comments: