trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

traffic_cache_tool unsupport the default cache.db?

Open hankai17 opened this issue 5 years ago • 1 comments

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.

hankai17 avatar Mar 14 '19 06:03 hankai17

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:

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

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

jeredfloyd avatar Sep 20 '22 14:09 jeredfloyd