Urgent.News

What's breaking now, across thousands of outlets.

Tech

My Scheduled Job Died With 'Operation not permitted' — The File Was Fine, the Process Wasn't

My Scheduled Job Died With 'Operation not permitted' — The File Was Fine, the Process Wasn't I have a Mac mini in a closet that runs a small Python scanner on a schedule. The code lives on a network volume, the job runs under launchd , and it had been fine for months. Then one morning it was in a loop, restarting every few seconds, spitting this: /bin/bash: /Volumes/turgay/.../start_scanner.sh:…

A scheduled Python scanning job on a Mac mini stopped functioning, repeatedly restarting with an "Operation not permitted" error. The file the job needed was present and accessible, yet the process running the job was denied permission to access it. The initial investigation focused on the file's ownership, permissions, and the NAS, but the issue lay elsewhere.

The root cause was the job running under a process that lacked the necessary Full Disk Access grant from macOS's sandbox extension, despite the user having full access to the files. The error stemmed from macOS's Transparency, Consent, and Control (TCC) mechanism, which denied the process the right to be granted permission. The Node process running the scanner had received Full Disk Access, while the launchd job, which ran bash, did not inherit this permission.

As launchd runs jobs as children of itself, the interpreter that launched the job lacked the necessary grant, causing the job to fail while other processes with different ancestors could access the files. The fix was to grant Full Disk Access to the interpreter that launched the job, in this case, /bin/bash. Once this permission was granted, the job resumed functioning correctly.

This incident highlights the importance of understanding operating system permissions and sandbox extensions, as well as the potential impact of binary updates on granted permissions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Your Custom ESP32 Board Probably Fails on the PCB, Not in the Firmware

The first custom ESP32 board most people make works on the bench and misbehaves everywhere else. The Wi-Fi range is half what the dev board had. The chip resets the moment it tries to connect.

  • 80% of ESP32 board failures result from PCB layout issues, not firmware problems
  • Incorrect strapping pin configuration and USB-C power issues are additional frequent failure causes

"iPhone storage full" but your photos are in iCloud? What's actually going on

It's one of the most confusing iPhone messages: you turned on iCloud Photos, you pay for 200 GB or 2 TB, and your phone still says storage almost full .

  • iPhone storage appears full despite iCloud photos enabled
  • Optimize iPhone Storage keeps full-resolution photos in iCloud
  • SnapClean identifies local storage issues and compresses files

I analyzed [12,347] love letters without opening a single one

I run two letter sites. Digital Letter , where you pick a design, write a note, seal it in a digital envelope, and send it with a link.

  • Author analyzed 12,347 sealed letters and 3,812 open-when envelopes
  • Median letter contains 89 words, with emojis averaging 5.1 per letter
  • Open-when letters often express difficult emotions like apologies

More from Friday 9 October →