EOX GitLab Instance

Skip to content

Registrar swift token does not refresh sometimes after expiring

  • registrar sometimes fails to find a file after running for a long time without restart (probably auth token expired and is not refreshed for some reason) - restart of registrar fixes this, Logs: ...file.tif not recognized as a supported file format.

The reason is probably expiring of the auth token and in some cases not refreshing for some reason.

full trace:

Sep 16, 2021 @ 07:11:37.234	RuntimeError: `/vsiswift/emg-data/data26/0000571902/PH1A_PHR_FUS__3_20210129T093100_20210129T093102_TOU_1234_a568.DIMA.tar/IMG_PHR1A_PMS_202101290931008_ORT_5928860101_R1C1.tif' not recognized as a supported file format.	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.234	    return _gdal.Open(*args)	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.234	  File "/usr/lib/python3/dist-packages/osgeo/gdal.py", line 2978, in Open	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	    ds = gdal.Open(vsi_path)	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	  File "/usr/local/lib/python3.8/dist-packages/registrar-1.4.7-py3.8.egg/registrar/backend.py", line 215, in _register_with_registrator	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	    product = self._register_with_registrator(source, item, replace, storage, mapping)	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	  File "/usr/local/lib/python3.8/dist-packages/registrar-1.4.7-py3.8.egg/registrar/backend.py", line 377, in register	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	    return func(*args, **kwds)	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	  File "/usr/lib/python3.8/contextlib.py", line 75, in inner	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	    backend.register(source, context, replace=False)	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	  File "/usr/local/lib/python3.8/dist-packages/registrar-1.4.7-py3.8.egg/registrar/registrar.py", line 59, in register_file	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	    register_file(config, value, replace)	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	  File "/usr/local/lib/python3.8/dist-packages/registrar-1.4.7-py3.8.egg/registrar/daemon.py", line 56, in run_daemon	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	Traceback (most recent call last):	/csea-emg-pdas_registrar.1.wsydxbtuqxzex8ejroynlzb2z
Sep 16, 2021 @ 07:11:37.233	ERROR registrar.daemon: `/vsiswift/emg-data/data26/0000571902/PH1A_PHR_FUS__3_20210129T093100_20210129T093102_TOU_1234_a568.DIMA.tar/IMG_PHR1A_PMS_202101290931008_ORT_5928860101_R1C1.tif' not recognized as a supported file format.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information