destination socket solaris 10 binding failure
Dear users: my first post, so please let me know if I commit some fo-paw. can you let me know if I am mis-configuring something here -- it's my first attempt at using destination sockets: system: sun solaris 10 (sparc) software: syslog-ng.2.0.5 syslog-ng.2.0.6 (no extra-ordinary compile options) /usr/local/etc/syslog-ng.conf (pertinent lines only) destination poe { unix-dgram("/tmp/poeunixsocket"); }; log { source(s_sys); destination(poe); }; socket file is srwxr-xr-w root root 0 poeunixsocket I figured with no listener, ng would just buffer. starting ng (as root) I get: Error binding socket; addr='AF_UNIX(anonymous)', error='Is a directory (21)' Initiating connection failed, reconnecting; time_reopen='10' I've tried unix-stream as well to no avail. Any assistance would be greatly appreciated. Thanks, Chris _________________________________________________________________ Your smile counts. The more smiles you share, the more we donate. Join in. www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
On Fri, 2007-11-30 at 12:22 -0500, chris cobucci wrote:
Dear users:
my first post, so please let me know if I commit some fo-paw.
can you let me know if I am mis-configuring something here -- it's my first attempt at using destination sockets:
system: sun solaris 10 (sparc) software: syslog-ng.2.0.5 syslog-ng.2.0.6 (no extra-ordinary compile options)
/usr/local/etc/syslog-ng.conf (pertinent lines only)
destination poe { unix-dgram("/tmp/poeunixsocket"); }; log { source(s_sys); destination(poe); };
socket file is srwxr-xr-w root root 0 poeunixsocket
I figured with no listener, ng would just buffer.
starting ng (as root) I get:
Error binding socket; addr='AF_UNIX(anonymous)', error='Is a directory (21)' Initiating connection failed, reconnecting; time_reopen='10'
I don't see why syslog-ng would try to bind to an anonymous UNIX domain socket prior to connecting. Can you run truss on the syslog-ng process while it is doing this? -- Bazsi
Bazsi: Thank you for the prompt reply. hope this is what you were looking for: truss -p 4293 /1: pollsys(0x00048600, 1, 0xFFBFF9C0, 0x00000000) (sleeping...)/1: pollsys(0x00048600, 1, 0xFFBFF9C0, 0x00000000) = 0/1: so_socket(PF_UNIX, SOCK_DGRAM, 0, "", SOV_DEFAULT) = 7/1: fcntl(7, F_GETFL) = 2/1: fcntl(7, F_SETFL, FWRITE|FNONBLOCK) = 0/1: fcntl(7, F_GETFD, 0x00000082) = 0/1: fcntl(7, F_SETFD, 0x00000001) = 0/1: bind(7, 0x0004FA28, 2, SOV_SOCKBSD) Err#21 EISDIR/1: time() = 1196535672/1: getpid() = 4293 [1]/1: time() = 1196535672/1: close(7) = 0/1: time() = 1196535672/1: getpid() = 4293 [1]/1: time() = 1196535672/1: pollsys(0x00048600, 1, 0xFFBFF9C0, 0x00000000) = 0/1: time() = 1196535672/1: time() = 1196535672/1: pollsys(0x00048600, 3, 0xFFBFF9C0, 0x00000000) = 2/1: write(5, " D e c 1 1 4 : 0 1".., 119) = 119/1: write(6, " D e c 1 1 4 : 0 1".., 119) = 119/1: pollsys(0x00048600, 1, 0xFFBFF9C0, 0x00000000) = 0/1: time() = 1196535672/1: time() = 1196535672/1: pollsys(0x00048600, 3, 0xFFBFF9C0, 0x00000000) = 2/1: write(5, " D e c 1 1 4 : 0 1".., 103) = 103/1: write(6, " D e c 1 1 4 : 0 1".., 103) = 103/1: pollsys(0x00048600, 1, 0xFFBFF9C0, 0x00000000) (sleeping...) thanks again, Chris
From: bazsi@balabit.hu> To: syslog-ng@lists.balabit.hu> Date: Sat, 1 Dec 2007 17:16:46 +0100> Subject: Re: [syslog-ng] destination socket solaris 10 binding failure> > > On Fri, 2007-11-30 at 12:22 -0500, chris cobucci wrote:> > Dear users:> > > > my first post, so please let me know if I commit some fo-paw.> > > > can you let me know if I am mis-configuring something here -- it's my> > first attempt at using destination sockets:> > > > system: sun solaris 10 (sparc)> > software: syslog-ng.2.0.5> > syslog-ng.2.0.6> > (no extra-ordinary compile options)> > > > /usr/local/etc/syslog-ng.conf (pertinent lines only)> > > > destination poe { unix-dgram("/tmp/poeunixsocket"); };> > log { source(s_sys); destination(poe); };> > > > socket file is > > srwxr-xr-w root root 0 poeunixsocket> > > > I figured with no listener, ng would just buffer.> > > > starting ng (as root) I get:> > > > Error binding socket; addr='AF_UNIX(anonymous)', error='Is a directory> > (21)'> > Initiating connection failed, reconnecting; time_reopen='10'> > I don't see why syslog-ng would try to bind to an anonymous UNIX domain> socket prior to connecting. Can you run truss on the syslog-ng process> while it is doing this?> > -- > Bazsi> > _______________________________________________> syslog-ng maillist - syslog-ng@lists.balabit.hu> https://lists.balabit.hu/mailman/listinfo/syslog-ng> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html>
Share life as it happens with the new Windows Live.Download today it's FREE! http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007
On Sat, 2007-12-01 at 20:44 -0500, chris cobucci wrote:
Bazsi: Thank you for the prompt reply.
hope this is what you were looking for:
truss -p 4293
I've fixed the issue in this patch: http://git.balabit.hu/?p=bazsi/syslog-ng-2.0.git;a=commit;h=c7a9126b57187899... -- Bazsi
Bazsi: you're a gem. re-compile with patch -- destination sockets work as expected on solaris 10 syslog-ng 2.0.6. thanks, Chris
From: bazsi@balabit.hu> To: syslog-ng@lists.balabit.hu> Date: Mon, 3 Dec 2007 13:34:03 +0000> Subject: Re: [syslog-ng] destination socket solaris 10 binding failure> > > On Sat, 2007-12-01 at 20:44 -0500, chris cobucci wrote:> > Bazsi:> > Thank you for the prompt reply.> > > > hope this is what you were looking for:> > > > truss -p 4293 > > > > I've fixed the issue in this patch:> > http://git.balabit.hu/?p=bazsi/syslog-ng-2.0.git;a=commit;h=c7a9126b57187899cf2fe8e4c39f82fd6e11288f> > -- > Bazsi> > _______________________________________________> syslog-ng maillist - syslog-ng@lists.balabit.hu> https://lists.balabit.hu/mailman/listinfo/syslog-ng> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html>
You keep typing, we keep giving. Download Messenger and join the i’m Initiative now. http://im.live.com/messenger/im/home/?source=TAGLM
participants (2)
-
Balazs Scheidler
-
chris cobucci