InstituteforDiseaseModeling / malaria-model_validation

1 stars 2 forks source link

re-running snakemake workflow in Windows may cause issue due to Metadata can't be created #51

Closed YeChen-IDM closed 1 year ago

YeChen-IDM commented 1 year ago

there is a known issue with re-running snakemake workflow in Windows: https://github.com/snakemake/snakemake/issues/1882. Error message looks like:

WorkflowError:
Error recording metadata for finished job ([WinError 183] Cannot create a file when that file already exists: 'C:\\Github\\Malaria\\malaria-model_validation\\simulations\\.snakemake\\metadata\\tmpwrp0wtv2.Q09NUFNf' -> 'C:\\Github\\Malaria\\malaria-model_validation\\simulations\\.snakemake\\metadata\\Q
09NUFNfSUQvcmVwb3J0X2NvbXBsZXRlZA=='). Please ensure write permissions for the directory C:\Github\Malaria\malaria-model_validation\simulations\.snakemake
Removing output files of failed job report since they might be corrupted:
COMPS_ID/report_completed

Workaround is to delete the /.snakemake/metadata from where you run snakemake.

YeChen-IDM commented 1 year ago

based on the information from snakemake, this issue should be fixed in release 7.19