trafficserver
trafficserver copied to clipboard
Debugging remap.config compile failures
Hi,
I have been facing issues while trying to debug why exactly my remap configurations fail. The error messages are not helpful while doing so, the only thing they mention is : unable to add mapping rule to lookup table
with some line number.
The only way I know of debugging remap failures is to try different permutations and combinations for changing plugins and their pprams to check which exact key value is throwing out errors.
How can I efficiently debug such failures?
Example remap mapping which fails :
map https://something.somehost.com http://127.0.0.1:8000/ \
@plugin=geoip_acl.so @pparam=country @pparam=allow @pparam=AF @pparam=allow @pparam=AX @pparam=html::/var/www/html/index.nginx-debian.html \
@plugin=cachekey.so @pparam=--remove-all-params=true \
@plugin=prefetch.so @pparam=--fetch-policy=simple @pparam=--fetch-path-pattern=/(.*-)(\d+)(.*)/$1{$2+1}$3/ @pparam=--fetch-count=5 @pparam=--metrics-prefix=prefetch @pparam=--front=true @pparam=--log-name=/var/log/trafficserver/prefetch.log
We should do better, but as a stop gap enable the debug tag "url_rewrite". That should provide a lot more data.
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.