Check for existence of required XRootD plugins before use#3026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Check for existence of required Pelican plugins
Check for existence of required XRootD plugins before use
Jan 23, 2026
28264d9 to
2ef074c
Compare
Collaborator
2804e93 to
fd9511e
Compare
jhiemstrawisc
requested changes
Mar 5, 2026
fd9511e to
ee07838
Compare
c587b89 to
d2810d4
Compare
Collaborator
|
@jhiemstrawisc - I think this one is ready for re-review! |
jhiemstrawisc
requested changes
Mar 31, 2026
Look at common system locations (and env var-based locations) to make sure the necessary plugins exist _before_ starting up XRootD.
This also tweaks the existing version detection code to make sure it is only run once by the binary: seems safe to assume XRootD versions won't change.
Add additional checks for plugins that can depend on configuration.
e3054d2 to
cfae7bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Missing Pelican-specific XRootD plugins (
libXrdHttpPelican,libXrdS3,libXrdClPelican) cause XRootD startup failures or runtime errors with cryptic messages. Detection happens too late to provide actionable guidance.Changes
New
xrootd/plugin_check.go:ConfigXrootd()before config file generationXRD_PLUGINPATH/LD_LIBRARY_PATH/DYLD_LIBRARY_PATHlibXrdHttpPelican-5.sofor v5.x)libXrdHttpPelican.so: whenServer.DropPrivilegesenabled (cache/origin)libXrdS3.so: whenOrigin.StorageTypeis "s3"libXrdClPelican.so: all caches (pelican:// URL support)Error message format:
Platform support: Linux (
.so), macOS (.dylib), with environment variable precedence.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cilogon.org/tmp/go-build3516977188/b001/xrootd.test /tmp/go-build3516977188/b001/xrootd.test -test.testlogfile=/tmp/go-build3516977188/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true nIaJ7UXlI e_pubkey.go ux-amd64/pkg/tool/linux_amd64/vet -p github.com/press--norc mpile ux-amd64/pkg/tool/linux_amd64/vet -W olang.org/grpc@v1.67.3/encoding/-errorsas fg 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet . theus/prometheus--64 mpile 0.1-go1.25.0.lin/tmp/ccVgu5b3.o(dns block)/tmp/go-build3252025759/b001/xrootd.test /tmp/go-build3252025759/b001/xrootd.test -test.testlogfile=/tmp/go-build3252025759/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true -test.run=TestHttpOriginConfig fg 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet ists theus/prometheus--64 m 0.1-go1.25.0.lin/tmp/ccVgu5b3.o -o 36021/b779/_pkg_.a m 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet _crypt.go g/grpc/credentia--64 mpile 0.1-go1.25.0.lin/tmp/cc6DDlAE.o(dns block)topology.opensciencegrid.org/tmp/go-build134467915/b001/xrootd.test /tmp/go-build134467915/b001/xrootd.test -test.testlogfile=/tmp/go-build134467915/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true .a -trimpath ux-amd64/pkg/tool/linux_amd64/vet -p rat-go/jwx/v2/jw-V=full mpile ux-amd64/pkg/tool/linux_amd64/vet -w 5qlY-QRxK fg 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet -c /azure-sdk-for-g--64 mpile 0.1-go1.25.0.lin/tmp/ccxPwJdI.o(dns block)/tmp/go-build3516977188/b001/xrootd.test /tmp/go-build3516977188/b001/xrootd.test -test.testlogfile=/tmp/go-build3516977188/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true nIaJ7UXlI e_pubkey.go ux-amd64/pkg/tool/linux_amd64/vet -p github.com/press--norc mpile ux-amd64/pkg/tool/linux_amd64/vet -W olang.org/grpc@v1.67.3/encoding/-errorsas fg 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet . theus/prometheus--64 mpile 0.1-go1.25.0.lin/tmp/ccVgu5b3.o(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.