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 85597100D4 for ; Fri, 9 Aug 2013 21:32:50 +0000 (UTC) Received: (qmail 64420 invoked by uid 500); 9 Aug 2013 21:32:50 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 64382 invoked by uid 500); 9 Aug 2013 21:32:50 -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 64374 invoked by uid 99); 9 Aug 2013 21:32:50 -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 21:32:50 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [17.151.62.51] (HELO mail-out.apple.com) (17.151.62.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 21:32:42 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from relay6.apple.com ([17.128.113.90]) by mail-out.apple.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTP id <0MRA00JQL958FG50@mail-out.apple.com> for users@trafficserver.apache.org; Fri, 09 Aug 2013 14:32:00 -0700 (PDT) X-AuditID: 1180715a-b7f326d0000062bf-7a-52055fd0ab60 Received: from spicerack.apple.com (spicerack.apple.com [17.128.115.40]) (using TLS with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by relay6.apple.com (Apple SCV relay) with SMTP id 3A.29.25279.0DF55025; Fri, 09 Aug 2013 14:32:00 -0700 (PDT) Received: from [17.198.37.252] by spicerack.apple.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPSA id <0MRA00B5V95CBB20@spicerack.apple.com> for users@trafficserver.apache.org; Fri, 09 Aug 2013 14:32:00 -0700 (PDT) Subject: Re: host database broken From: James Peach In-reply-to: <520554AC.9080604@thelounge.net> Date: Fri, 09 Aug 2013 14:32:00 -0700 Message-id: <35D99FE5-ACB7-4F18-884D-331B2F295490@apache.org> References: <5204AF1F.40903@thelounge.net> <1653730009.20130809123744@thought-mesh.net> <520554AC.9080604@thelounge.net> To: users@trafficserver.apache.org X-Mailer: Apple Mail (2.1508) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsUi2FCsoXshnjXIYOMPY4v1mw6yOTB6PN/6 jy2AMYrLJiU1J7MstUjfLoEr40bXfcaClyIVmz/lNTA+E+hi5OSQEDCRmLZyCwuELSZx4d56 ti5GLg4hgclMEneefYVypjJJnJh+jBGkillAR6L3+zdmEJtXQE9i84wX7CC2sICixKFlV8Am sQmoSuzedwSsnlNAV+LokalMIDYLUHztk43MEHO0JZ68u8AKMcdW4lDTM7C4kECVxLaeB2wg toiAksSXjduB5nMAXScrsfN30gRG/llIrpiF5IpZSKYuYGRexShQlJqTWGmml1hQkJOql5yf u4kRHF6FUTsYG5ZbHWIU4GBU4uGd8IslSIg1say4MvcQowQHs5IIb3cka5AQb0piZVVqUX58 UWlOavEhRmkOFiVx3ntfgaoF0hNLUrNTUwtSi2CyTBycUg2ME2ZxBservnB3E2Zs9Go42NOS pBZiIHnAQMO8uGXPnNePbx/tPbO/MG/5zO9xmzQCri5bF8f0RVbqRU8y87/Sz3nfVUWyS7Sz ubZ+Nvge4bbq/7Rv1y+4z7RYUn+41lvurXZRP9/Cv99PtZ54GvbBZd7hFTMsj8Q+F9J8tyFx 40MnDaWcILn3SizFGYmGWsxFxYkANZSgnCsCAAA= X-Virus-Checked: Checked by ClamAV on apache.org On Aug 9, 2013, at 1:44 PM, Reindl Harald wrote: > > > Am 09.08.2013 19:37, schrieb Alan M. Carroll: >> 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. > > /etc/ is *readonly* > *period* > > yes, i know that TS complains about read-only filesystem > that is a bug and should be fixed > > *any* service which *writes* in /etc is broken > *period* > > services has to store their dynamic data in /var/lib/servicename > and/or /varcache/servicename and not elsewhere Yes, I agree that this behaviour can be undesirable. Maybe it's better for your environment to configure trafficserver with --sysconfdir=/var/lib/trafficserver. If you file a bug, we can look into altering the default behaviour but it's likely to be a difficult task. > >>> -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? I believe that the reason ATS does not use the system DNS API is that it is a synchronous API and does not support additional records types (eg. SRV records). We would like to clean up (and possibly remove) the HostDB implementation, but currently there is no-one volunteering to do that work, https://cwiki.apache.org/confluence/display/TS/HostDBandDNS. J