Deleteing files from webdav

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

Moderator: Mr_Noodle

Deleteing files from webdav Tue Apr 18, 2023 7:33 am • by MichaelTzu
From Finder and Forklift I can delete files from mounted webdav.

I have created rules that are matching OK but getting error in logs.

Error moving file from /Volumes/54.72.94.59/inputs/DavidPhillips/processing/7 Lomond Avenue.DP.eps to /Users/michaelgilbert/.Trash/7 Lomond Avenue.DP.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"


Assume this is a firewall permissions error. The webdav is running on AWS and OS is MS Server 2003 R2.

Any pointers as to how to resolve much appreciated.
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Tue Apr 18, 2023 2:16 pm • by Mr_Noodle
Is that the whole error or are there other lines before or after this with more info?
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleteing files from webdav Mon Apr 24, 2023 8:22 am • by MichaelTzu
Sorry for delay.

Overview. Input/ouput directories on mounted webdav.
Files added as eps files the saved to output folder.
Just want to delete files older than today or (set period) as clogging up webdav server.

Viewing in Hazel all green so thought it was security issues.

[2023-04-24 13:20:02.578 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/(A Document Being Saved By hazelworker)/2 Cavendish Road.KT_H.eps to /Users/michaelgilbert/.Trash/2 Cavendish Road.KT_H.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:02.590 hazelworker[9820] [Error] Move failed: Could not move file 2 Cavendish Road.KT_H.eps from folder /Volumes/54.72.94.59/inputs/(A Document Being Saved By hazelworker) to folder /Users/michaelgilbert/.Trash/2 Cavendish Road.KT_H.eps.
2023-04-24 13:20:03.546 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/AMP/processing/27115 33a Fiery Hill Road.AMP.eps to /Users/michaelgilbert/.Trash/27115 33a Fiery Hill Road.AMP.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:03.546 hazelworker[9820] [Error] Move failed: Could not move file 27115 33a Fiery Hill Road.AMP.eps from folder /Volumes/54.72.94.59/inputs/AMP/processing to folder /Users/michaelgilbert/.Trash/27115 33a Fiery Hill Road.AMP.eps.
2023-04-24 13:20:03.629 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/AMP/processing/27116 6 St Richards Rd.AMP.eps to /Users/michaelgilbert/.Trash/27116 6 St Richards Rd.AMP.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:03.629 hazelworker[9820] [Error] Move failed: Could not move file 27116 6 St Richards Rd.AMP.eps from folder /Volumes/54.72.94.59/inputs/AMP/processing to folder /Users/michaelgilbert/.Trash/27116 6 St Richards Rd.AMP.eps.
2023-04-24 13:20:04.259 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/Chestetons_Humberts/processing/The White House.CH.eps to /Users/michaelgilbert/.Trash/The White House.CH.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:04.260 hazelworker[9820] [Error] Move failed: Could not move file The White House.CH.eps from folder /Volumes/54.72.94.59/inputs/Chestetons_Humberts/processing to folder /Users/michaelgilbert/.Trash/The White House.CH.eps.
2023-04-24 13:20:04.614 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/DavidPhillips/processing/Crag Cottage.DP.eps to /Users/michaelgilbert/.Trash/Crag Cottage.DP.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:04.615 hazelworker[9820] [Error] Move failed: Could not move file Crag Cottage.DP.eps from folder /Volumes/54.72.94.59/inputs/DavidPhillips/processing to folder /Users/michaelgilbert/.Trash/Crag Cottage.DP.eps.
2023-04-24 13:20:04.843 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/DSHnew/processing/16 Dale View.DSHil.eps to /Users/michaelgilbert/.Trash/16 Dale View.DSHil.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:04.843 hazelworker[9820] [Error] Move failed: Could not move file 16 Dale View.DSHil.eps from folder /Volumes/54.72.94.59/inputs/DSHnew/processing to folder /Users/michaelgilbert/.Trash/16 Dale View.DSHil.eps.
2023-04-24 13:20:04.920 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/DSHnew/processing/19 Florence Avenue.DSHbi.eps to /Users/michaelgilbert/.Trash/19 Florence Avenue.DSHbi.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:04.920 hazelworker[9820] [Error] Move failed: Could not move file 19 Florence Avenue.DSHbi.eps from folder /Volumes/54.72.94.59/inputs/DSHnew/processing to folder /Users/michaelgilbert/.Trash/19 Florence Avenue.DSHbi.eps.
2023-04-24 13:20:05.018 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/DSHnew/processing/42 The Willows.DSHse.eps to /Users/michaelgilbert/.Trash/42 The Willows.DSHse.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:05.018 hazelworker[9820] [Error] Move failed: Could not move file 42 The Willows.DSHse.eps from folder /Volumes/54.72.94.59/inputs/DSHnew/processing to folder /Users/michaelgilbert/.Trash/42 The Willows.DSHse.eps.
2023-04-24 13:20:05.094 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/DSHnew/processing/5 St Nicholas Place.DSHha.eps to /Users/michaelgilbert/.Trash/5 St Nicholas Place.DSHha.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:05.094 hazelworker[9820] [Error] Move failed: Could not move file 5 St Nicholas Place.DSHha.eps from folder /Volumes/54.72.94.59/inputs/DSHnew/processing to folder /Users/michaelgilbert/.Trash/5 St Nicholas Place.DSHha.eps.
2023-04-24 13:20:05.167 hazelworker[9820] Error moving file from /Volumes/54.72.94.59/inputs/DSHnew/processing/6 Rydal Crescent.DSHmo.eps to /Users/michaelgilbert/.Trash/6 Rydal Crescent.DSHmo.eps: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"
2023-04-24 13:20:05.167 hazelworker[9820] [Error] Move failed: Could not move file 6 Rydal Crescent.DSHmo.eps from folder /Volumes/54.72.94.59/inputs/DSHnew/processing to folder /Users/michaelgilbert/.Trash/6 Rydal Crescent.DSHmo.eps.
]

Thanks
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Mon Apr 24, 2023 9:10 am • by Mr_Noodle
The problem is moving files to the trash. Are you able to trash files in Finder from that drive?
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleteing files from webdav Mon Apr 24, 2023 10:36 am • by MichaelTzu
I can trash (delete) files locally or remotely by logging on to server using RDS or Jump.

Local machine on OS X 10.13.6 and remote running MS server 2003 R3 on AWS.
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Tue Apr 25, 2023 8:28 am • by Mr_Noodle
Just to be clear, even though it's WebDAV, the drive is mounted in Finder as a normal drive? Does Hazel have Full Disk Access?
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleteing files from webdav Thu Apr 27, 2023 3:59 am • by MichaelTzu
Just to be clear, even though it's WebDAV, the drive is mounted in Finder as a normal drive? Does Hazel have Full Disk Access?

Yes mounted in Finder.
How can I check Hazel has full access? No restrictions I am aware of/ Just selected folders on webdav same as I would if on local machine.
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Thu Apr 27, 2023 9:21 am • by Mr_Noodle
Full Disk Access is in System Preferences/Settings under Security & Privacy.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleteing files from webdav Thu Apr 27, 2023 9:47 am • by MichaelTzu
Under Security & Privacy Hazel is already showing as enabled under Privacy. No where else I can see access settings.
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Thu Apr 27, 2023 9:49 am • by MichaelTzu
But just noticed System Events not enabled. Could that be cause?
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Fri Apr 28, 2023 9:28 am • by Mr_Noodle
That would only be an issue if you were using AppleScript from Hazel.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleteing files from webdav Thu Aug 17, 2023 8:21 pm • by MichaelTzu
Still never resolved this issue of deleting files. Also, now trying to sync a folder from webdav mounted folder to local folder.

Log: [2023-08-18 00:45:34.020 hazelworker[3901] [Error] Copy failed: Could not copy file 10 Park Crescent.DSHsk_A3.gif from folder /Volumes/54.72.94.59/outputs/DSHnew to folder /Users/michaelgilbert/Documents/Commander Test Folder/DSHnew/10 Park Crescent.DSHsk_A3.gif
2023-08-18 00:45:34.051 hazelworker[3901] 10 Park Crescent.DSHsk_A4.gif: Rule Copy of DSH Outputs matched.
2023-08-18 00:45:34.054 hazelworker[3901] Error copying file from /Volumes/54.72.94.59/outputs/DSHnew/10 Park Crescent.DSHsk_A4.gif to /Users/michaelgilbert/Documents/Commander Test Folder/DSHnew/10 Park Crescent.DSHsk_A4.gif: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"]2023-08-18 00:45:34.020 hazelworker[3901] [Error] Copy failed: Could not copy file 10 Park Crescent.DSHsk_A3.gif from folder /Volumes/54.72.94.59/outputs/DSHnew to folder /Users/michaelgilbert/Documents/Commander Test Folder/DSHnew/10 Park Crescent.DSHsk_A3.gif
2023-08-18 00:45:34.051 hazelworker[3901] 10 Park Crescent.DSHsk_A4.gif: Rule Copy of DSH Outputs matched.
2023-08-18 00:45:34.054 hazelworker[3901] Error copying file from /Volumes/54.72.94.59/outputs/DSHnew/10 Park Crescent.DSHsk_A4.gif to /Users/michaelgilbert/Documents/Commander Test Folder/DSHnew/10 Park Crescent.DSHsk_A4.gif: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

All green for rule matches.
Webdav mounted folder has permissions set to 700, user as owner and group is staff
and local folder has permissions set to 777, user as owner and group is staff.

Have looked up "Error Domain=NSPOSIXErrorDomain Code=5" but no techie so not much help to me.

Did get this from Poe (but not terminal savvy enough to use):

An example of how you can use try-catch blocks in Swift to handle NSPOSIXErrorDomain errors:
let filePath = "/path/to/file.txt"

do {
// Attempt to perform a file operation, such as reading or writing
let fileContents = try String(contentsOfFile: filePath, encoding: .utf8)
print("File contents: \(fileContents)")
} catch let error as NSError {
if error.domain == NSPOSIXErrorDomain {
// Handle POSIX error
let posixErrorCode = POSIXErrorCode(rawValue: error.code)
if let posixError = posixErrorCode {
switch posixError {
case .EIO:
print("Input/Output error occurred.")
// Handle other POSIX error codes as needed
default:
print("Unknown POSIX error occurred.")
}
}
} else {
// Handle other types of errors
print("An error occurred: \(error)")
}
}
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Fri Aug 18, 2023 8:54 am • by Mr_Noodle
Not sure why you posted that code sample; it's irrelevant to this issue.

Unfortunately, that input/output error is a bit generic but many times indicates a hardware issue. Are you able to copy the file manually in Finder from the same source to the same destination?
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleteing files from webdav Fri Aug 18, 2023 9:35 am • by MichaelTzu
Manually:
Yes no problem copying files from webdav mounted to local.
Or deleting from webdav mount.

Just cannot figure out the issue.
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Deleteing files from webdav Mon Aug 21, 2023 8:38 am • by Mr_Noodle
Try different combinations of source and destination (like destination on same volume as source and vice versa) and see if there's a pattern there.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron