FTP failure

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

FTP failure Tue Dec 27, 2022 2:48 pm • by matthx
Hello,

I work as a press photographer and use Hazel on my home server to send pictures out to a list of FTP addresses once an image is added to a watched folder.

When a file is added to a watched folder the image is then sent to a list of FTP addresses in the way of a series of upload actions.

This works fine, however, it seems if just one of the FTP servers is down or a login fails then Hazel won’t move on.

Is there a way to have a timeout where if a connection can’t be established within a set time then Hazel will move on to the next in the list of actions?
matthx
 
Posts: 4
Joined: Tue Dec 27, 2022 2:44 pm

Re: FTP failure Wed Dec 28, 2022 10:36 am • by Mr_Noodle
At the moment, no. Actions have to run successfully before the next one does.

Only way around it, short of writing a script is to do something like:
- Have a separate folder for each FTP server
- Have the main folder copy the file to each folder.
- Have each "FTP folder" then do the upload.

Doing it this way will have each upload be independent.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: FTP failure Wed Dec 28, 2022 11:29 am • by matthx
Thanks - that’s a good enough solution for me!
matthx
 
Posts: 4
Joined: Tue Dec 27, 2022 2:44 pm

Re: FTP failure Wed Dec 28, 2022 2:26 pm • by matthx
This is a solution that's almost working for me aside from one niggling little problem that is driving me crazy.

The files are copied to the individual folders but the final step - moving the file to an archive folder - isn't working.

Am I doing something wrong here?

https://imgur.com/a/Xa88Jsi
matthx
 
Posts: 4
Joined: Tue Dec 27, 2022 2:44 pm

Re: FTP failure Thu Dec 29, 2022 10:36 am • by Mr_Noodle
When using the Copy action, subsequent actions operate on the copy, not the original.

You can either start with a Move, then Copies after that. Or you can use the Sync action, which operates differently. Actions after a Sync action will operate on the original.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: FTP failure Sat Dec 31, 2022 8:14 am • by matthx
Mr_Noodle wrote:When using the Copy action, subsequent actions operate on the copy, not the original.

You can either start with a Move, then Copies after that. Or you can use the Sync action, which operates differently. Actions after a Sync action will operate on the original.


Working perfectly!
matthx
 
Posts: 4
Joined: Tue Dec 27, 2022 2:44 pm


Return to Support