Sen2Cor v2.11 [ERROR 32] Impossible to access to the file..but no other process running

Hi everyone,

I’m continuing to encounter this error even though I’m not getting any other active processes:

Sen2Cor. Version: 02.11.00, created: 2022.10.20, supporting Level-1C product version 14.2 - 14.9 started ...
Product version: 14.9
Operation mode: TOOLBOX
Processing baseline: 99.99
Progress[%]:  0.00 : Generating datastrip metadata
L2A datastrip successfully generated
No resolution specified, will process 20 and 10 m resolution
Progress[%]: 0.08 : PID-14084, L2A_ProcessTile: processing with resolution 20 m, elapsed time[s]: 2.039, total: 0:00:09.134000
Progress[%]: 0.08 : PID-14084, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.000, total: 0:00:09.134000
Progress[%]: 0.08 : PID-14084, L2A_Tables: start import, elapsed time[s]: 0.065, total: 0:00:09.199000
Progress[%]: 0.11 : PID-14084, L2A_Tables: band B01 imported, elapsed time[s]: 0.801, total: 0:00:10
Progress[%]: 0.27 : PID-14084, L2A_Tables: band B02 imported, elapsed time[s]: 3.885, total: 0:00:13.885000
Progress[%]: 0.42 : PID-14084, L2A_Tables: band B03 imported, elapsed time[s]: 3.834, total: 0:00:17.719000
Progress[%]: 0.57 : PID-14084, L2A_Tables: band B04 imported, elapsed time[s]: 3.880, total: 0:00:21.599000
Progress[%]: 0.65 : PID-14084, L2A_Tables: band B05 imported, elapsed time[s]: 2.164, total: 0:00:23.763000
Progress[%]: 0.74 : PID-14084, L2A_Tables: band B06 imported, elapsed time[s]: 2.190, total: 0:00:25.953000
Progress[%]: 0.82 : PID-14084, L2A_Tables: band B07 imported, elapsed time[s]: 2.141, total: 0:00:28.094000
Progress[%]: 0.91 : PID-14084, L2A_Tables: band B8A imported, elapsed time[s]: 2.173, total: 0:00:30.267000
Progress[%]: 0.94 : PID-14084, L2A_Tables: band B09 imported, elapsed time[s]: 0.841, total: 0:00:31.108000
Progress[%]: 0.97 : PID-14084, L2A_Tables: band B10 imported, elapsed time[s]: 0.819, total: 0:00:31.927000
Progress[%]: 1.06 : PID-14084, L2A_Tables: band B11 imported, elapsed time[s]: 2.109, total: 0:00:34.036000
Progress[%]: 1.14 : PID-14084, L2A_Tables: band B12 imported, elapsed time[s]: 2.164, total: 0:00:36.200000
Progress[%]: 1.14 : PID-14084, L2A_Tables: AUX_CAMS* file found., elapsed time[s]: 0.019, total: 0:00:36.219000
Progress[%]: 1.58 : PID-14084, L2A_Tables: Visibility map from file AUX_CAMSFO prepared, elapsed time[s]: 11.110, total: 0:00:47.329000
Progress[%]: 24.83 : PID-14084, L2A_Tables: band DEM imported, elapsed time[s]: 592.941, total: 0:10:40.270000
[Error 32] Impossibile accedere al file. Il file Þ utilizzato da un altro processo: 'D:\\ABRESO\\PNGP\\Sentinel2\\T32TLR\\Level1\\2023\\temp_L1C\\S2A_MSIL2A_20230705T101601_N9999_R065_T32TLR_20230713T135308.SAFE\\GRANULE\\L2A_T32TLR_A041961_20230705T101730\\tmpcybygx\\srtm_L2A_T32TLR_A041961_20230705T101730_src.tif'
Traceback (most recent call last):
  File "C:\Tools\Sen2Cor-02.11.00-win64\\Lib\site-packages\sen2cor\", line 692, in main
    if tile.process() == True:
  File "C:\Tools\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\", line 117, in process
    if not self.process_resolution(20):
  File "C:\Tools\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\", line 147, in process_resolution
    return self._process()
  File "C:\Tools\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\", line 161, in _process
    if self.preprocess() == False:
  File "C:\Tools\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\", line 256, in preprocess
    if(self.tables.importBandList() == False):
  File "C:\Tools\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\", line 1216, in importBandList
    demfile = self.gdalDEM_srtm()
  File "C:\Tools\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\", line 2592, in gdalDEM_srtm
WindowsError: [Error 32] Impossibile accedere al file. Il file Þ utilizzato da un altro processo: 'D:\\ABRESO\\PNGP\\Sentinel2\\T32TLR\\Level1\\2023\\temp_L1C\\S2A_MSIL2A_20230705T101601_N9999_R065_T32TLR_20230713T135308.SAFE\\GRANULE\\L2A_T32TLR_A041961_20230705T101730\\tmpcybygx\\srtm_L2A_T32TLR_A041961_20230705T101730_src.tif'
Progress[%]: 100.00 : Application terminated with at least one error.

I edited the file L2A_GIPP.xml as instructed by the user guide to atmospherically correct the images with a DEM. The rest is unchanged.

Does anyone have any idea how to fix this?



Dear @chiara,

Thank you for your message.

We noticed that you had the same issue in 2021.
A workaround was proposed in the previous thread Issues with Sen2Cor v2.9 user guide DEM reference - #11 by chiara proposed in Processing Error due to SRTM Data Conflict - #6 by vicencpala .
You could try this and let us know. This problem seems to only happen on Windows machines. Does it happen for every try you make ?

In addition you may want to have a look to Frequently Asked Questions point #2 about the Copernicus DEM support that is more accurate than the former SRTM DEM and check if you experience the same kind of error.


Dear @Sen2cor_dev_team,

Yes, it works now!

Thank you,