
Exensio Support (Customer) asked a question.
Can a task auto-stop if its been running for too long?
I encountered an issue where sometimes a file that is being transferred to a destination folder through renaming or copying, it would just hang halfway (perhaps the source connection got disconnected for a moment), then the task is stuck in a limbo forever unless i kill the task.
even after i kill the task, the last file it was copying/renaming suddenly becomes stuck or lock, and i can no longer transfer that file again even if i rerun the task again. Any solution for this?
For the first part, that could depend on the host that you are transferring to. for example on FTPS, have you looked at data timeouts on the host definition? Might help.
For the second part, you'll need to remove the file from the task transfer exceptions list.
Hi Richard,
I did check beforehand for any timeouts settings
Transfer rescan time : 20sec
Retry count : 2
Retry Timeout: 30secs .. etc
But it seems like when it is stuck during the copying/renaming stage, these settings do not apply. Perhaps at that stage it is not tied to them.
And yes i did check the task transfer exceptions, even after i remove them, it still have some kind of lock state on the file, where when i rerun the task again with nothing but that file in the source folder, it will say that it is "copying <file>" ,and it is just stuck there until i kill the task.
i am wondering if there is something locking the file or maybe the same file name in the cache is not being cleared , something i havent tried clearing yet.
Clearing the cache might help, otherwise maybe look at the state files?
It's strange that it isn't copying the file though, is there any chance this is related to the destination server?
The problem is that i am not sure where is this cache that i need to clear.
Yea at first i thought it might be the destination, but it wasn't the case. Let's say i have 3 files in the source folder. If file1 is the issue that causes it to be stuck forever, once i remove it from the source , leaving file2 and file3. It is able to process them like normal. So it points back to something that happened to that file which i may need help figuring out with.
The cache location is configured in the Automation config. A new random name will be assigned to the file in the cache (unless you say otherwise), so I'm not sure that this is the cause.
Can you try recreating the task from scratch (not cloning) and seeing if the new version copies the file?
So i experimented some things
1) It seems that its not a file issue, at least when i took the file and did a separate copy/delete task in a separate source folder location, it works just fine.
2) I tried your suggestion to use the newly created task in 1) (which is not the original) and point it to the original source folder that encountered this issue. The file became stuck when copying. So it appears that the issue is situated in that original source folder itself.
3) I tried using the original task again with the original source folder and as expected the whole task is stuck.
I am trying to figure out why this specific file just can't process in this folder anymore. Its like MOVEIT recognize the file , and doesnt want to do anything so its just left hanging. And i found the cache folder location and deleted all of the folders that is tied to this , still didnt fix the issue. Something is missing still.
On a side note, i found out there is a way to email me whenever a task is running indefinitely , which at least will help inform me if this happens again.
Incase it may help anyone, this is the method to get notified when a task runs for too long:
How can long running tasks be monitored? - Progress Community
Interesting!
Does it hang during the download or upload? If the upload, can you see if you can copy that file to a different destination?
From what i see, its always during the download period, because my flow consist of copy the file from source to a destination folder, and if successfull, delete the original file from the source folder.
I noticed at times when this kind of scenerio occur, at times it can successfully copy the file over to the destination folder, but it gets stuck at the deleting the file, or renaming the file (some of my task uses the renaming step to move it to another folder).
So i don't think its ever an uploading issue, its merely the downloading the file and renaming/deleting the file that gets it stuck. It might be due to 2 different issues, as in if its stuck during copy at the very first step of the task, then thats one issue, then during the delete/rename sequence that could be due to another issue. I hope all of them are tied to a single root cause, but its still challenging to narrow down exactly.
Is the source a UNC path or something else? Any chance that the file is in use by something else, or changing during the time that MOVEit is downloading it?
You mentioned renaming, have you tried copying the file without a rename to follow?
The source is a UNC path, and i did some additional experimentation.
So i placed the same file in the same folder that was always stuck, and i renamed the file and removed some characters, then i kick off a simple task to just move the file to another destination. It works.
Then i redid the whole thing again with the same exact file in the same folder , this time i dont rename the file, so it kept the same filename as it did before when it was stuck, and i ran the task and it became stuck as it has always been.
So now im wondering, what could possibly remember the exact filename in this exact folder name that will prevent moveit to process properly a simple file moving task.