apache / trafficserver

Apache Traffic Server™ is a fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server.
https://trafficserver.apache.org/
Apache License 2.0
1.8k stars 793 forks source link

trafficserver 9.1.1 traffic_server ERROR: plugin 'regex_remap.so' failed to load: #9750

Open volgaleoking opened 1 year ago

volgaleoking commented 1 year ago

After migrating the configuration from the 8.0 server, the error module error appears at startup regex_remap.so , with the following lines from the log file:

[May 26 15:59:28.658] traffic_server ERROR: plugin 'regex_remap.so' failed to load: /run/trafficserver/d176adad-6a1c-4ec6-85cc-86b9696f7129/usr/lib/trafficserver/modules/regex_remap.so: failed to map segment from shared object [May 26 15:59:28.658] traffic_server ERROR: [ReverseProxy] failed to add remap rule at /etc/trafficserver/remap.config line 202: /run/trafficserver/d176adad-6a1c-4ec6-85cc-86b9696f7129/usr/lib/trafficserver/modules/regex_remap.so: failed to map segment from shared objectfailed to remove runtime copy: Success [May 26 15:59:28.658] traffic_server WARNING: something failed during BuildTable() -- check your remap plugins! [May 26 15:59:28.658] traffic_server FATAL: remap.config failed to load

remap.config: map http://static.noname.com/v/vh/vod_hds/definst/amlst http://192.168.25.3:1935/ibms3/definst/amlst @plugin=regex_remap.so @pparam=maps.reg

maps.reg: ^/v/vh/vod_hds/definst/amlst(.).(.)$ http://192.168.25.3:1935/ibms3/definst/amlst$1.$2

how to solve this problem, despite the fact that there were no such problems in either version 6 or 8.

randall commented 1 year ago

Try adding

CONFIG proxy.config.plugin.dynamic_reload_mode INT 0

to records.config

volgaleoking commented 1 year ago

Thank you so much for your help, I spent several hours not understanding what the problem is. The only thing that is not clear is why in the new configuration this parameter is not 0 by default, since the plugins cannot be dynamically reloaded? After all, it is logical to set the default settings to working states, or I don’t understand something!

randall commented 1 year ago

I agree, this is a feature that should've been disabled by default.

bryancall commented 1 year ago

@randall Do you know why this is happening?

github-actions[bot] commented 3 months ago

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.