Skip to content

Commit

Permalink
Merge pull request #922 from haoming29/fix-xrootd-prod-container
Browse files Browse the repository at this point in the history
Fix production cache container failure at start up due to outdated xrootd
  • Loading branch information
matyasselmeci authored Mar 8, 2024
2 parents f9b098d + 42abe37 commit cce8db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ RUN useradd -o -u 10940 -g 10940 -s /bin/sh xrootd

# Install dependencies
RUN yum -y update \
&& yum -y install https://repo.opensciencegrid.org/osg/23-main/osg-23-main-el8-release-latest.rpm\
&& yum -y install tini xrootd xrootd-client xrdcl-http xrootd-server xrootd-scitokens xrootd-voms curl java-17-openjdk-headless \
&& yum clean all \
&& rm -rf /var/cache/yum/
Expand Down
4 changes: 2 additions & 2 deletions launchers/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func LaunchModules(ctx context.Context, modules config.ServerType) (context.Canc
if err = server_ui.Advertise(ctx, servers); err != nil {
return shutdownCancel, err
}
desiredURL := param.Server_ExternalWebUrl.GetString() + "/api/v1.0/director/origin" + param.Origin_NamespacePrefix.GetString()
desiredURL := param.Federation_DirectorUrl.GetString() + "/api/v1.0/director/origin" + param.Origin_NamespacePrefix.GetString()
if err = server_utils.WaitUntilWorking(ctx, "GET", desiredURL, "director", 307); err != nil {
log.Errorln("Origin does not seem to have advertised correctly:", err)
return shutdownCancel, err
Expand All @@ -220,7 +220,7 @@ func LaunchModules(ctx context.Context, modules config.ServerType) (context.Canc

if modules.IsEnabled(config.CacheType) {
// Give five seconds for the origin to finish advertising to the director
desiredURL := param.Server_ExternalWebUrl.GetString() + "/.well-known/openid-configuration"
desiredURL := param.Federation_DirectorUrl.GetString() + "/.well-known/openid-configuration"
if err = server_utils.WaitUntilWorking(ctx, "GET", desiredURL, "director", 200); err != nil {
log.Errorln("Director does not seem to be working:", err)
return shutdownCancel, err
Expand Down

0 comments on commit cce8db7

Please sign in to comment.