Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

John Greer

macrumors member
Original poster
Jun 20, 2011
75
1
Wayne, NJ USA
I just noticed that my main LaunchAgent script last worked on January 29th. It runs at midnight and backs-up important stuff to OneDrive.

  • The script lives in /usr/local/bin
  • /bin/bash has full-disk access
  • The script runs fine when I run it standalone
  • It runs, but all of the commands within fail: Operation not permitted
HELP!

P.S. I'm running macOS Monterey v12.3
 

John Greer

macrumors member
Original poster
Jun 20, 2011
75
1
Wayne, NJ USA
I figured it out!

My script backs-up critical data to OneDrive. On the day it stopped working, I enabled a OneDrive feature called "Free Up Space." I did that to minimize my Time Machine backup size. I just read a blurb that said OneDrive on Mac began having trouble with this on, wait for it, Jan 30th.

Once I reversed that, and went back to "Always Keep on This Device," the script works again!
 
  • Like
Reactions: Nermal
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.