Azure Webjobs System.UnauthorizedAccessException when accessing certain files inside WEBJOBS_DATA_PATH folder -
a file created through webjob in webjobs_data_path folder (resides under "d:\home\data\jobs\continuous\webjob_name\cannot_delete.file") can't deleted giving various errors based on method try access it:
trying download kudu file explorer: system.unauthorizedaccessexception
trying delete via ftp: 550 access denied.
trying delete via powershell console: cannot remove item d:\home\data\jobs\continuous\webjob_name\cannot_delete.file: access path 'd:\home\data\jobs\continuous\webjob_name\cannot_delete.file' denied.
searching process explorer, no handles turn if searching file.
it happens randomly, files written , deleted often.
stopping website , webjobs doesn't help.
any idea on how remove locked file (or @ least find process holding lock)?
Comments
Post a Comment