trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Debugging remap.config compile failures

Open amoghyermalkar123 opened this issue 3 years ago • 1 comments

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

amoghyermalkar123 avatar Dec 27 '21 08:12 amoghyermalkar123

We should do better, but as a stop gap enable the debug tag "url_rewrite". That should provide a lot more data.

SolidWallOfCode avatar May 09 '22 23:05 SolidWallOfCode

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.

github-actions[bot] avatar May 10 '23 01:05 github-actions[bot]