cvmfs-contrib / cvmfs-servermon

CernVM File System Server Monitoring API
BSD 2-Clause "Simplified" License
3 stars 4 forks source link

using different port with remote server alias #38

Closed rptaylor closed 1 year ago

rptaylor commented 1 year ago

Hi @DrDaveD

With this in api.conf:

serveralias arbutus=cvmfs-s1-arbutus.computecanada.ca:8000

Looks like it should work based on

# Available options are:
#   serveralias <aliasname>=<fully.qualified.domain.name[:port][/subdirectory]>

but http://cvmfs-s1dev-arbutus.computecanada.ca:8000/cvmfsmon/api/v1.0/all&format=details&server=arbutus

http://cvmfs-s1-arbutus.computecanada.ca/cvmfs/info/v1/repositories.json error: <urlopen error timed out>

Instead it should be trying to access http://cvmfs-s1-arbutus.computecanada.ca:8000/cvmfs/info/v1/repositories.json

DrDaveD commented 1 year ago

Changing the port works for me. Maybe you changed the setting? Normally api.conf is only read once every 5 minutes (or more precisely, on demand if it has been at least 5 minutes since last time it was read), so if you make a change and want it to to take effect immediately sometimes you need to restart httpd.

DrDaveD commented 1 year ago

Or maybe it's an el8-only problem, although looking at the code I don't see how it could be.

rptaylor commented 1 year ago

Oh, yes it works after waiting a bit. Thanks.