trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject Re: host database broken
Date Fri, 09 Aug 2013 20:44:28 GMT


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

>> -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

-- 

Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofm├╝hlgasse 17
CTO / CISO / Software-Development
m: +43 (676) 40 221 40, p: +43 (1) 595 3999 33
icq: 154546673, http://www.thelounge.net/

http://www.thelounge.net/signature.asc.what.htm


Mime
View raw message