NotADirectoryError in the Extract zipped transfer stage
If you have to retry a transfer, you may see a "not a directory" error in the "Extract zipped transfer stage", for example:
[Errno 20] Not a directory: '/var/archivematica/sharedDirectory/currentlyProcessing/WT_C_6_2_9_3.zip'Traceback (most recent call last):
File "/src/src/MCPClient/lib/job.py", line 103, in JobContext
yield
File "/src/src/MCPClient/lib/clientScripts/failed_transfer_cleanup.py", line 70, in call
main(job, args.fail_type, args.transfer_uuid, args.transfer_path)
File "/src/src/MCPClient/lib/clientScripts/failed_transfer_cleanup.py", line 33, in main
for item in os.listdir(mets_dir):
NotADirectoryError: [Errno 20] Not a directory: '/var/archivematica/sharedDirectory/currentlyProcessing/WT_C_6_2_9_3.zip'
If this is the case, it means there's an old version of the transfer package lying around somewhere on the Archivematica disk. The way to fix this is to SSH into the Archivematica container host, and remove any versions of the transfer package from the currentlyProcessing folder.