Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4666110749 for ; Fri, 9 Aug 2013 17:38:43 +0000 (UTC) Received: (qmail 18173 invoked by uid 500); 9 Aug 2013 17:38:42 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 18080 invoked by uid 500); 9 Aug 2013 17:38:35 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 18072 invoked by uid 99); 9 Aug 2013 17:38:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 17:38:34 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [63.247.135.112] (HELO maro.hmdnsgroup.com) (63.247.135.112) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 17:38:27 +0000 Received: from [50.129.102.91] (port=32425 helo=Viper.hsd1.il.comcast.net) by maro.hmdnsgroup.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1V7qdD-0002Fb-Jw for users@trafficserver.apache.org; Fri, 09 Aug 2013 13:37:43 -0400 Date: Fri, 9 Aug 2013 12:37:44 -0500 From: "Alan M. Carroll" Reply-To: dev@trafficserver.apache.org Organization: Network Geographics, Inc. X-Priority: 3 (Normal) Message-ID: <1653730009.20130809123744@thought-mesh.net> To: Reindl Harald Subject: Re: host database broken In-Reply-To: <5204AF1F.40903@thelounge.net> References: <5204AF1F.40903@thelounge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-HMDNSGroup-MailScanner-Information: Please contact the ISP for more information X-HMDNSGroup-MailScanner-ID: 1V7qdD-0002Fb-Jw X-HMDNSGroup-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-HMDNSGroup-MailScanner-SpamCheck: X-HMDNSGroup-MailScanner-From: amc@network-geographics.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - maro.hmdnsgroup.com X-AntiAbuse: Original Domain - trafficserver.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - network-geographics.com X-Get-Message-Sender-Via: maro.hmdnsgroup.com: authenticated_id: amc+thought-mesh.net/only user confirmed/virtual account not confirmed X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Friday, August 9, 2013, 3:58:07 AM, you wrote: > i am pretty sure that "3.3.5-dev" has the same problem as currently 3.2.5 > and that is the cause for "Unable to locate the server named" I was able to replicate this issue by changing the user ID of the traffic_server process. There is a hidden file that stores some additional HostDB information and if that can't be written the host.db never gets successfully reconfigured. Once I removed the hidden file and made sure the directory permissions matched the ATS user, the host.db was reconfigured successfully. Removing host.db caused a single start to reconfigure and subsequent restarts had no issue. Check the file etc/trafficserver/internal/hostdb.config and the containing directory to see if that is the problem. In particular that both are owned by 'ats' and not 'nobody'. However, when I did this I got a message in diags.log about the permission denied on that file. > -rw-r--r-- 1 ats ats 12M 2013-08-09 10:51 /var/cache/trafficserver/host.db > * if i delete this file and start TS it get's generated > * but it never works > * the errors below are at every restart > * 3.3.5-dev just don't log it > if i pull "/var/cache/trafficserver/host.db" from a working host > with 3.2.x with the same config it works > why can this thing not be disabled at all and normal DNS requests/memory > caching be done like in any other application? > _______________________________________________ > [Aug 9 10:50:09.899] Server {0x2aaaaaeae9c0} NOTE: cache clustering disabled > [Aug 9 10:50:09.910] Server {0x2aaaaaeae9c0} WARNING: header missing/corrupt: [hostdb.config] : reinitializing > database > [Aug 9 10:50:09.910] Server {0x2aaaaaeae9c0} NOTE: reconfiguring host database > [Aug 9 10:50:09.910] Server {0x2aaaaaeae9c0} WARNING: header missing/corrupt: [hostdb.config] : disabling database > You may need to 'reconfigure' your cache manually. Please refer to > the 'Configuration' chapter in the manual