[WinError 32] The process cannot access the file because it is being used by another process

13 views
Skip to first unread message

Aslam

unread,
Mar 5, 2026, 2:39:06 AM (10 days ago) Mar 5
to OpenQuake Users

Hello everyone,

I hope this email gets your attention. I want to perform PSHA with a shallow background source that has used the HMTK smooth seismicity grid. Here are some of the files used and the errors that appear repeatedly.

I would greatly appreciate any corrections to what has been written.

Thank you.

The error:
2026-03-05T07:29:30.57,CRITICAL,before starting,Traceback (most recent call last):
  File "C:\Users\iklab\AppData\Local\Programs\OpenQuake Engine\python3\Lib\shutil.py", line 825, in move
    os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\iklab\\AppData\\Local\\Temp\\_o1kbw_5.upload' -> 'C:\\Users\\iklab\\oqdata\\calc_17\\tmp4ybcw_7d'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\iklab\AppData\Roaming\Python\Python311\site-packages\openquake\server\views.py", line 1483, in submit_job
    job_ini = store(request_files, ini, job.calc_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\iklab\AppData\Roaming\Python\Python311\site-packages\openquake\server\views.py", line 224, in store
    shutil.move(input_file.temporary_file_path(), new_path)
  File "C:\Users\iklab\AppData\Local\Programs\OpenQuake Engine\python3\Lib\shutil.py", line 846, in move
    os.unlink(src)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\iklab\\AppData\\Local\\Temp\\_o1kbw_5.upload'

source_model_logic_tree.xml
gmpe_logic_tree.xml
source_model.xml
job.ini

Michele Simionato

unread,
Mar 5, 2026, 5:06:13 AM (10 days ago) Mar 5
to OpenQuake Users
Are you using engine version 3.25?
Reply all
Reply to author
Forward
0 new messages