trafficserver
trafficserver copied to clipboard
traffic_cache_tool unsupport the default cache.db?
Command such as: traffic_cache_tool --spans=/usr/local/etc/trafficserver/storage.config list
It will say that 0 [1]: 'var/trafficserver' is not readable.
As we all know that storage.config only one line "var/trafficserver 256M".
Command such as: traffic_cache_tool --span=/usr/local/var/trafficserver/cache.db list It will say that 0 [1]: 'y$ק is not readable.
In the first instance, your storage.config should have a leading "/" to create a fully-qualified path.
In the second instance, there are two issues:
-
traffic_cache_tool does not support directory caches. If a directory is specified, a message is printed to this effect. There should be an RFE to implement this support.
-
If a cache.db is provided, traffic_cache_tool will attempt to parse it as a config file(!) This leads to confusing and unexpected errors and assertions. The fix for this is not immediately obvious to me.
This has also been reported against the Fedora packaging of 9.1.3: https://bugzilla.redhat.com/show_bug.cgi?id=2126377