You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running EVHR's EvhrToA with celery enabled, at times EvhrToA's mapproject system call does not always output <filename>-ortho-temp.tif. This leads to image_calc to error out as such:
GdalIO: "<filename>-ortho-temp.tif" does not exist in the file system,
and is not recognized as a supported dataset name. (code = 4)
This seems to be somewhat random in which file this occurs and only occurs when celery is enabled which makes it seem like some sort of problem on the multi-processing back-end to where mapproject does not throw and error when not all outputs are made.
Stack trace:
[2022-11-21 15:43:31,332: ERROR/ForkPoolWorker-8] evhr.model.EvhrToaCelery._runOneStrip[7a3e6e6f-4a54-46f4-9867-8b7e0f359595]: Encountered exception executing image_calc: A system command error occurred. b"\t--> Setting number of processing threads to: 1\nError: GdalIO: `output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif' does not exist in the file system, and is not recognised as a supported dataset name. (code = 4)\nGDAL: Failed to open output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif.\n"b''In ILProcessController.__exit__() 16460[2022-11-21 15:43:31,449: ERROR/ForkPoolWorker-8] Task evhr.model.EvhrToaCelery._runOneStrip[7a3e6e6f-4a54-46f4-9867-8b7e0f359595] raised unexpected: RuntimeError('Encountered exception executing image_calc: A system command error occurred. b"\\t--> Setting number of processing threads to: 1\\nError: GdalIO: `output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif\' does not exist in the file system, and is not recognised as a supported dataset name. (code = 4)\\nGDAL: Failed to open output/4-orthos/<wv_file>_BAND_B.r100-ortho-temp.tif.\\n"b\'\'')Traceback (most recent call last): File "<FILE_SYSTEM_PATH_REDACTED>evhr/model/EvhrToA.py", line 647, in _orthoOne SystemCommand(cmd, logger, True) File "<FILE_SYSTEM_PATH_REDACTED>core/model/SystemCommand.py", line 70, in __init__ raise RuntimeError(msg)RuntimeError: A system command error occurred. b"\t--> Setting number of processing threads to: 1\nError: GdalIO: `output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif' does not exist in the file system, and is not recognised as a supported dataset name. (code = 4)\nGDAL: Failed to open output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif.\n"b''During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 451, in trace_task R = retval = fun(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 734, in __protected_call__return self.run(*args, **kwargs) File "<FILE_SYSTEM_PATH_REDACTED>evhr/model/EvhrToaCelery.py", line 83, in _runOneStrip EvhrToA._stripToToa(imageForEachBandInStrip, File "<FILE_SYSTEM_PATH_REDACTED>evhr/model/EvhrToA.py", line 1099, in _stripToToa orthoBandDg = EvhrToA._orthoOne(stripBand, File "<FILE_SYSTEM_PATH_REDACTED>evhr/model/EvhrToA.py", line 656, in _orthoOne raise RuntimeError(msg)RuntimeError: Encountered exception executing image_calc: A system command error occurred. b"\t--> Setting number of processing threads to: 1\nError: GdalIO: `output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif' does not exist in the file system, and is not recognised as a supported dataset name. (code = 4)\nGDAL: Failed to open output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif.\n"b''Traceback (most recent call last): File "evhr/view/evhrToaCLV.py", line 150, in <module> sys.exit(main()) File "evhr/view/evhrToaCLV.py", line 138, in main toa.run(env, dgScenes) File "<FILE_SYSTEM_PATH_REDACTED>evhr/model/EvhrToA.py", line 838, in run self.processStrips(stripsWithDgScenes, File "<FILE_SYSTEM_PATH_REDACTED>evhr/model/EvhrToaCelery.py", line 57, in processStrips result.get() # Waits for wpi to finish. File "/usr/local/lib/python3.8/dist-packages/celery/result.py", line 677, in get return (self.join_native if self.supports_native_join else self.join)( File "/usr/local/lib/python3.8/dist-packages/celery/result.py", line 808, in join_native raise valueRuntimeError: Encountered exception executing image_calc: A system command error occurred. b"\t--> Setting number of processing threads to: 1\nError: GdalIO: `output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif' does not exist in the file system, and is not recognised as a supported dataset name. (code = 4)\nGDAL: Failed to open output/4-orthos/<FILE_NAME_REDACTED>_BAND_B.r100-ortho-temp.tif.\n"b''
Issue:
image_calc
throwsGdalIO: File does not exist
error on celery enabled EVHR runEnvironment:
Description:
When running EVHR's EvhrToA with celery enabled, at times
EvhrToA
'smapproject
system call does not always output<filename>-ortho-temp.tif
. This leads toimage_calc
to error out as such:This seems to be somewhat random in which file this occurs and only occurs when celery is enabled which makes it seem like some sort of problem on the multi-processing back-end to where
mapproject
does not throw and error when not all outputs are made.Stack trace:
Reconstruction:
The text was updated successfully, but these errors were encountered: