From nobody@FreeBSD.org  Fri Mar 27 16:46:27 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BC9051065694
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Mar 2009 16:46:27 +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 AA46E8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Mar 2009 16:46:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2RGkQKO036533
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Mar 2009 16:46:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2RGkQp8036532;
	Fri, 27 Mar 2009 16:46:26 GMT
	(envelope-from nobody)
Message-Id: <200903271646.n2RGkQp8036532@www.freebsd.org>
Date: Fri, 27 Mar 2009 16:46:26 GMT
From: Erwan David <erwan@rail.eu.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: unbound : does not start during boot
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         133130
>Category:       ports
>Synopsis:       dns/unbound : does not start during boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sem
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 27 16:50:04 UTC 2009
>Closed-Date:    Mon Jun 15 11:54:51 UTC 2009
>Last-Modified:  Mon Jun 15 11:54:51 UTC 2009
>Originator:     Erwan David
>Release:        7.1-RELEASE-p4
>Organization:
>Environment:
FreeBSD nez-casse.depot.rail.eu.org 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
At boot, unbound fails to start with the following error messages

Mar 26 22:31:01 nez-casse unbound: [653:0] notice: init module 0: validator
Mar 26 22:31:01 nez-casse unbound: [653:0] notice: init module 1: iterator
Mar 26 22:31:01 nez-casse unbound: [653:0] notice: openssl has no entropy, seeding with time and pid
Mar 26 22:31:01 nez-casse unbound: [653:0] error: Error for server-cert-file: /unbound_server.pem
Mar 26 22:31:01 nez-casse unbound: [653:0] error: Error in SSL_CTX use_certificate_file crypto error:0200100D:system
library:fopen:Permission denied
Mar 26 22:31:01 nez-casse unbound: [653:0] error: and additionally crypto error:20074002:BIO routines:FILE_CTRL:system lib
Mar 26 22:31:01 nez-casse unbound: [653:0] error: and additionally crypto error:140AD002:SSL
routines:SSL_CTX_use_certificate_file:system lib
Mar 26 22:31:01 nez-casse unbound: [653:0] error: util/alloc.c at 131 could not pthread_spin_destroy(&alloc->lock): Invalid
argument
Mar 26 22:31:01 nez-casse unbound: [653:0] fatal error: Could not initialize main thread

/unbound_server.pem is not mentionned in /usr/local/etc/unbound/unbound.conf

However after boot /usr/local/etc/rc.d/unbound start works without any
problem.

Except one must restart all daemons which relies on a working DNS
(apache, etc) at start time.

This beahvious was seen under 7.1-Release-p2 also

>How-To-Repeat:
Install unbound, reboot
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sem 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 28 03:32:14 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133130 
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Mon Jun 15 11:54:50 UTC 2009 
State-Changed-Why:  
Fixed with the last commit 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133130 
>Unformatted:
