PelicanPlatform / pelican

The Pelican Platform for creating data federations
https://pelicanplatform.org/
Apache License 2.0
10 stars 19 forks source link

Regression in `pelican origin serve` #597

Closed haoming29 closed 8 months ago

haoming29 commented 8 months ago

With #570 merged in, when running pelican origin serve the following error is reported, although afterwards xrootd was still running and self-tests as well as director tests succeeded:

INFO[2024-01-03T20:50:43Z] Plugin loaded xrdhttp v5.6.3 from protocol libXrdHttp-5.so  daemon=xrootd
INFO[2024-01-03T20:50:43Z] 240103 20:50:43 82995 XrdOpen: Unable to bind socket to port 8443; address already in use  daemon=xrootd
INFO[2024-01-03T20:50:43Z] ------ xrootd anon@f435d3c44cc9:8443 initialization failed.  daemon=xrootd
ERROR[2024-01-03T20:50:43Z] xrootd process failed unexpectedly: exit status 1 

The command to run:

./pelican origin serve -v /tmp/stash/:/haoming/testorigin1

Pelican.yaml:

Origin:
  EnableMacaroons: false
Federation:
  DirectorUrl: "https://f435d3c44cc9:8888"
  NamespaceUrl: "https://f435d3c44cc9:9999"
  TopologyNamespaceUrl: "https://topology.opensciencegrid.org/stashcache/namespaces.json"
TLSSkipVerify: true
Logging:
  Level: "Debug"
Cache:
  Port: 8447

xrootd config and starting script output is as follows:

WARNING[2024-01-03T20:50:42Z] Federation.NamespaceUrl is deprecated and will be removed in future release. Please migrate to use Federation.RegistryUrl instead 
DEBUG[2024-01-03T20:50:42Z] Will shutdown process on signal              
DEBUG[2024-01-03T20:50:42Z] Federation URL: https://f435d3c44cc9:8888    
DEBUG[2024-01-03T20:50:42Z] Performing federation service discovery against endpoint https://f435d3c44cc9:8888 
DEBUG[2024-01-03T20:50:42Z] Federation service discovery resulted in JWKS URL https://f435d3c44cc9:8888/.well-known/issuer.jwks 
DEBUG[2024-01-03T20:50:42Z] No manager host specified for the cmsd process in origin; assuming no xrootd protocol support 
DEBUG[2024-01-03T20:50:42Z] Location of input authfile: /etc/pelican/xrootd/authfile 
DEBUG[2024-01-03T20:50:42Z] Parsing the input authfile                   
DEBUG[2024-01-03T20:50:42Z] A total of 427 CA certificates were written  
DEBUG[2024-01-03T20:50:42Z] XRootD configuration file contents:
 #
# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License.  You may
# obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

all.role server
if exec xrootd
  xrd.port 8443
  xrd.protocol http:8443 libXrdHttp.so
fi
xrd.tls /run/pelican/xrootd/origin/copied-tls-creds.crt /run/pelican/xrootd/origin/copied-tls-creds.crt

xrd.tlsca certfile /run/pelican/xrootd/origin/ca-bundle.crt

http.listingdeny true

http.header2cgi Authorization authz

http.secxtractor /usr/lib64/libXrdVoms.so

http.staticpreload http://static/robots.txt /run/pelican/xrootd/origin/robots.txt

all.sitename f435d3c44cc9

xrootd.monitor all auth flush 30s window 5s fstat 60 lfn ops xfr 5  dest redir fstat info files user pfc tcpmon ccm 127.0.0.1:9930
all.adminpath /run/pelican/xrootd/origin
all.pidpath /run/pelican/xrootd/origin

oss.localroot /run/pelican/xrootd/origin/export

xrootd.seclib libXrdSec.so
sec.protocol ztn
ofs.authorize 1
acc.audit deny grant
acc.authdb /run/pelican/xrootd/origin/authfile-origin-generated
ofs.authlib ++ libXrdAccSciTokens.so config=/run/pelican/xrootd/origin/scitokens-origin-generated.cfg
all.export /haoming/testorigin1

# Note we don't want to export this via cmsd; only for self-test
xrootd.export /pelican/monitoring
xrootd.export /.well-known

xrootd.chksum max 2 md5 adler32 crc32
xrootd.trace emsg login stall redirect
pfc.trace info
pss.setopt DebugLevel 1
xrootd.tls all
scitokens.trace all 
haoming29 commented 8 months ago

Seem likes just my local setup issue. Mark it as closed for now.