Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trafficserver fails to load plugin on Debian #11253

Closed
jbfavre opened this issue Apr 13, 2024 · 1 comment
Closed

Trafficserver fails to load plugin on Debian #11253

jbfavre opened this issue Apr 13, 2024 · 1 comment
Assignees
Labels

Comments

@jbfavre
Copy link
Contributor

jbfavre commented Apr 13, 2024

As explained here, none of the remap plugins can be loaded by trafficserver running on Debian.

Trafficserver copies the plugins from /usr/lib to /run and tries to dlopen them from there. This is doomed to fail because, exactly as the OP said, /run is mounted with the noexec option. Upstream logic behind this is to dynamically reload plugins that are changed while the server is running. I guess it makes sense with custom plugins and some other scenarios but there's no way for this to work on Debian systems.

Do you have any insights or advice to workaround this?
My understanding is that mounting /run without the noexec option is not an option for Debian.

The bug report also proposes a patch.
However, before integrating it either in the Debian package or upstream, it'll need to be carefully reviewed.

Best

@bryancall bryancall self-assigned this Apr 15, 2024
@bryancall
Copy link
Contributor

bryancall commented Apr 15, 2024

You might want to change this option to disable reloadable remap plugins without restarting ATS: proxy.config.plugin.dynamic_reload_mode. This option will copy and rename the plugin into the run directory.

https://docs.trafficserver.apache.org/admin-guide/files/records.config.en.html#proxy-config-plugin-dynamic-reload-mode

@jbfavre jbfavre closed this as completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants