Honestpuck / scriptorium

A utility for managing the scripts in Jamf Pro
MIT License
52 stars 6 forks source link

Scriptorium fails to make dir /usr/local/var/log #7

Closed WardsParadox closed 2 years ago

WardsParadox commented 2 years ago
./scriptorium
Traceback (most recent call last):
  File "./scriptorium", line 782, in <module>
    Scripts.main()
  File "./scriptorium", line 745, in main
    Scripts.setup_logging()
  File "./scriptorium", line 293, in setup_logging
    Path.mkdir(log_dir)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/pathlib.py", line 1287, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/var/log'

Could be alleviated potentially using ~/Library/Logs

WardsParadox commented 2 years ago

Looks like a permissions issue. Running the manual mkdir command as a user results in perm denied.

After manually making the dir's it fails with inability to make the log file.

Honestpuck commented 2 years ago

Zack,

What OS are you running? I last ran a full test on Catalina.

// Tony

On Fri, Nov 5, 2021 at 8:48 AM Zack McCauley @.***> wrote:

Looks like a permissions issue. Running the manual mkdir command as a user results in perm denied.

After manually making the dir's it fails with inability to make the log file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Honestpuck/scriptorium/issues/7#issuecomment-961456637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZIRBJN6AKEMVBGAKP3L23UKMETNANCNFSM5HMOZW3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

WardsParadox commented 2 years ago

Monterey

Honestpuck commented 2 years ago

I've now got a Monterey test box so I will test a fix over the next day or so.

Thanks for raising the issue.

// Tony

On Fri, Nov 5, 2021 at 10:23 AM Zack McCauley @.***> wrote:

Monterey

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Honestpuck/scriptorium/issues/7#issuecomment-961505929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZIRBMUTSDFWNPPYVLZXKDUKMPZRANCNFSM5HMOZW3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Honestpuck commented 2 years ago

Changed the log directory to ~/Library/Logs. Closing the issue.