Shell script failed eror

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

Moderator: Mr_Noodle

Shell script failed eror Wed Dec 15, 2021 10:02 pm • by aussiemartin
Well this has all been working for years but my Monterey upgrade seems to bork things now

Code: Select all
2021-12-16 8:42:39.428 AM hazelworker[23194] 2021-12-16 08.26.26.jpg: Rule Sort into months matched.
2021-12-16 8:42:39.429 AM hazelworker[23194] Exception caught while executing shell script: launch path not accessible
2021-12-16 8:42:39.429 AM hazelworker[23194] [Error] Shell script failed: Error processing shell script on file /Volumes/SSD2/Users/martin/Dropbox/Photos/2021/2021-12-16 08.26.26.jpg.
2021-12-16 8:42:39.429 AM hazelworker[23194] Shellscript exited with non-successful status code: -900
2021-12-16 8:42:39.431 AM hazelworker[23194] Done processing folder 2021


The embedded script is-

Code: Select all
<?php

date_default_timezone_set("Asia/Bangkok");

$date = exif_read_data($argv[1],"EXIF");

$date = $date["DateTimeOriginal"];

$time = date_parse_from_format("Y:m:d H:i:s",$date);

$time = mktime($time["hour"],$time["minute"],$time["second"],$time["month"],$time["day"],$time["year"]);

touch($argv[1],$time,$time);

?>


Can anyone help me with a solution?
It's part of my photos management. Needs to sort photos into a month's folder which isn't getting created now, for some reason.

Thank all
Martin
aussiemartin
 
Posts: 3
Joined: Wed Dec 15, 2021 9:32 pm

Re: Shell script failed eror Thu Dec 16, 2021 10:28 am • by Mr_Noodle
This is an external script? If so, where is it located?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell script failed eror Thu Dec 16, 2021 8:28 pm • by aussiemartin
No, I noted it was embedded script per screenshot

Image
aussiemartin
 
Posts: 3
Joined: Wed Dec 15, 2021 9:32 pm

Re: Shell script failed eror Fri Dec 17, 2021 9:31 am • by Mr_Noodle
Can you check if Hazel has full disk access?

- Launch System Preferences
- Go to Security & Privacy
- Go to Privacy
- Select Full Disk Access
- See if Hazel is in the list and whether it is checked or not.

Also, what version of macOS are you running?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell script failed eror Fri Dec 17, 2021 1:54 pm • by aussiemartin
Yes, Hazel does have Full Disk Access on Monterey 12.1
aussiemartin
 
Posts: 3
Joined: Wed Dec 15, 2021 9:32 pm

Re: Shell script failed eror Mon Dec 20, 2021 9:33 am • by Mr_Noodle
Can you try enabling debug mode as described here? https://www.noodlesoft.com/kb/hazel-debug-mode/

After that, send updated logs which should hopefully have extra data.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support