erikng / Cacher

A python script for extracting macOS Caching Server data
Apache License 2.0
134 stars 40 forks source link

Error creating alert when not run as root/sudo #6

Closed fraserhess closed 7 years ago

fraserhess commented 9 years ago

I get this error at the end of the script when it tries to create an alert. 2015-06-29 11:28:53.107 server[76024:507] Error Domain=AlertsDaemon Code=150 "Error: Insufficient entitlements." UserInfo=0x7ff268d01c60 {NSLocalizedDescription=Error: Insufficient entitlements.}

erikng commented 9 years ago

This is expected behavior as the server command needs root.

fraserhess commented 9 years ago

I think you should catch that it's not running as root and either error, don't try to send an alert or indicate that alert won't be sent.

erikng commented 7 years ago

This is fixed with the latest version of Cacher (not currently published).