From nobody@FreeBSD.org Fri Aug 27 06:30:50 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C955510656D8 for ; Fri, 27 Aug 2010 06:30:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 46C948FC22 for ; Fri, 27 Aug 2010 06:30:50 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7R6Uo8w087479 for ; Fri, 27 Aug 2010 06:30:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7R6Uob2087478; Fri, 27 Aug 2010 06:30:50 GMT (envelope-from nobody) Message-Id: <201008270630.o7R6Uob2087478@www.freebsd.org> Date: Fri, 27 Aug 2010 06:30:50 GMT From: ilgiz To: freebsd-gnats-submit@FreeBSD.org Subject: spmd is not start X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 150034 >Category: ports >Synopsis: security/racoon2: spmd is not start >Confidential: no >Severity: non-critical >Priority: low >Responsible: sumikawa >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 27 06:40:06 UTC 2010 >Closed-Date: Wed Jan 05 18:46:48 JST 2011 >Last-Modified: Wed Jan 05 18:46:48 JST 2011 >Originator: ilgiz >Release: 8.1-STABLE >Organization: reid >Environment: FreeBSD kegf-it.office.reid.ru 8.1-STABLE FreeBSD 8.1-STABLE #0 r211089: Mon Aug 9 10:27:04 YEKST 2010 root@kegf-it.office.reid.ru:/usr/obj/usr/src/sys/BSD8 i386 >Description: After install racoon2 from security/racoon2 /usr/local/sbin/spmd is not start. # /usr/local/sbin/spmd -V Version: 20100526a >How-To-Repeat: install security/racoon2 port, use .sample configs (uncomment local-test.conf in racoon2.conf), try start spmd / /usr/local/sbin/spmd >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-ports-bugs->sumikawa Responsible-Changed-By: linimon Responsible-Changed-When: Fri Aug 27 07:20:12 UTC 2010 Responsible-Changed-Why: Fix synopsis and assign. http://www.freebsd.org/cgi/query-pr.cgi?pr=150034 From: ilgiz yanuzakov To: bug-followup@freebsd.org Cc: Subject: Re: ports/150034: spmd is not start Date: Fri, 27 Aug 2010 13:25:04 +0600 --0016e64983ae7283c7048ec903f7 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Now I'm find the problem: spmd/cache.c in sources cannot read new freebsd /etc/hosts file if it include ipv6 localhost address "::1 localhost localhost.my.domain" --=20 =F1=CE=D5=DA=C1=CB=CF=D7 =E9=CC=D8=C7=C9=DA, =D3=C9=D3=D4=C5=CD=CE=D9=CA =C1=C4=CD=C9=CE=C9=D3=D4=D2=C1=D4=CF=D2 =EF=EF= =EF "=F2=C5=CA=C4" =C7. =F5=C6=C1, =E9=CE=C4=D5=D3=D4=D2=C9=C1=CC=D8=CE=CF=C5 =DB=CF=D3=D3=C5 = 44/1 E-mail: ilgiz@reid.ru http://www.freebsd-ufa.org/ ----------------------------- FreeBSD - The Power to Serve! --0016e64983ae7283c7048ec903f7 Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable
Now I'm find the problem:
spmd/cache.c= in sources cannot read new freebsd /etc/hosts file if it include ipv6 loca= lhost address "::1 localhost localhost.my.domain"

--=
=F1=CE=D5=DA=C1=CB=CF=D7 =E9=CC=D8=C7=C9=DA,
=D3=C9=D3=D4=C5=CD=CE=D9= =CA =C1=C4=CD=C9=CE=C9=D3=D4=D2=C1=D4=CF=D2 =EF=EF=EF "=F2=C5=CA=C4&qu= ot;
=C7. =F5=C6=C1, =E9=CE=C4=D5=D3=D4=D2=C9=C1=CC=D8=CE=CF=C5 =DB=CF=D3= =D3=C5 44/1
E-mail: ilgiz@reid.ruhttp://www.freebsd-ufa.org/ -----------------------------
FreeBSD - The Power to Serve!
--0016e64983ae7283c7048ec903f7-- From: ilgiz yanuzakov To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/150034: spmd is not start Date: Fri, 27 Aug 2010 13:13:41 +0600 --0016e64c19cebf550a048ec8dae6 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable I try use flag -F and found bug: [root@kegf-it /usr/ports/security/racoon2-devel]# /usr/local/sbin/spmd [root@kegf-it /usr/ports/security/racoon2-devel]# /usr/local/sbin/spmd -F 2010-08-27 13:07:05 [INFO]: main.c:171: Racoon Spmd - Security Policy Management Daemon - Started 2010-08-27 13:07:05 [INFO]: main.c:172: Spmd Version: repository 2010-08-27 13:07:05 [INFO]: main.c:450: 'files' found in nsswitch.conf host= s line, we will read hosts file 2010-08-27 13:07:05 [INFO]: main.c:459: 'dns' found in nsswitch.conf hosts line, we will start dns proxy service 2010-08-27 13:07:05 [INTERNAL_ERR]: cache.c:621: Failed to convert into canonical address:hostname nor servname provided, or not known 2010-08-27 13:07:05 [INFO]: main.c:358: Exit When I use "hosts: dns" in /etc/nsswitch.conf it start normally. --=20 =F1=CE=D5=DA=C1=CB=CF=D7 =E9=CC=D8=C7=C9=DA, =D3=C9=D3=D4=C5=CD=CE=D9=CA =C1=C4=CD=C9=CE=C9=D3=D4=D2=C1=D4=CF=D2 =EF=EF= =EF "=F2=C5=CA=C4" =C7. =F5=C6=C1, =E9=CE=C4=D5=D3=D4=D2=C9=C1=CC=D8=CE=CF=C5 =DB=CF=D3=D3=C5 = 44/1 E-mail: ilgiz@reid.ru http://www.freebsd-ufa.org/ ----------------------------- FreeBSD - The Power to Serve! --0016e64c19cebf550a048ec8dae6 Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable
I try use flag -F and found bug:

[root@kegf-it /usr/ports/security/racoon2-devel]# /usr/local/sbin/spm= d
[root@kegf-it /usr/ports/security/racoon2-devel]# /usr/local/sbin/spmd= -F
2010-08-27 13:07:05 [INFO]: main.c:171: Racoon Spmd - Security Policy Manag= ement Daemon - Started
2010-08-27 13:07:05 [INFO]: main.c:172: Spmd Vers= ion: repository
2010-08-27 13:07:05 [INFO]: main.c:450: 'files' = found in nsswitch.conf hosts line, we will read hosts file
2010-08-27 13:07:05 [INFO]: main.c:459: 'dns' found in nsswitch.con= f hosts line, we will start dns proxy service
2010-08-27 13:07:05 [INTER= NAL_ERR]: cache.c:621: Failed to convert into canonical address:hostname no= r servname provided, or not known
2010-08-27 13:07:05 [INFO]: main.c:358: Exit

W= hen I use "hosts: dns" in /etc/nsswitch.conf it start normally.
--
=F1=CE=D5=DA=C1=CB=CF=D7 =E9=CC=D8=C7=C9=DA,
=D3=C9=D3= =D4=C5=CD=CE=D9=CA =C1=C4=CD=C9=CE=C9=D3=D4=D2=C1=D4=CF=D2 =EF=EF=EF "= =F2=C5=CA=C4"
=C7. =F5=C6=C1, =E9=CE=C4=D5=D3=D4=D2=C9=C1=CC=D8=CE=CF=C5 =DB=CF=D3=D3=C5 = 44/1
E-mail: ilgiz@reid.ru
http://www.freebsd-ufa.org/
-----= ------------------------
FreeBSD - The Power to Serve!
--0016e64c19cebf550a048ec8dae6-- State-Changed-From-To: open->closed State-Changed-By: sumikawa State-Changed-When: Wed Jan 5 18:44:22 JST 2011 State-Changed-Why: Submitter's encvironment problem, not bug. I will send a trouble report to racoon2 developers just in case. http://www.freebsd.org/cgi/query-pr.cgi?pr=150034 >Unformatted: