Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperationalError: attempt to write a readonly database after the latest OSX 10.12 update (Beta) #48

Open
ikorin opened this issue Sep 6, 2016 · 4 comments

Comments

@ikorin
Copy link

ikorin commented Sep 6, 2016

privacy_services_manager.py add accessibility /Applications/myApp.app
INFO: ################################################################################
Privacy Services Manager, version 1.6.10

service:  accessibility
action:   add
app(s):   ['/Applications/myApp.app']
user:     N/A
template: False
language: N/A

INFO: Set to modify global permissions for all users at '/Library/Application Support/com.apple.TCC/TCC.db'.
INFO: Inserting 'com.myApp.myApp' in service 'accessibility'...
ERROR: OperationalError: attempt to write a readonly database

@uurazzle
Copy link

Hello Igor:

Sorry for the late response, thanks for the email. We will investigate the issue and get back to you on status.

On Sep 6, 2016, at 2:22 PM, Igor Korin [email protected] wrote:

privacy_services_manager.py add accessibility /Applications/myApp.app
INFO: ################################################################################
Privacy Services Manager, version 1.6.10

service: accessibility
action: add
app(s): ['/Applications/myApp.app']
user: N/A
template: False
language: N/A

INFO: Set to modify global permissions for all users at '/Library/Application Support/com.apple.TCC/TCC.db'.
INFO: Inserting 'com.myApp.myApp' in service 'accessibility'...
ERROR: OperationalError: attempt to write a readonly database


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks:

Richard Glaser
University of Utah, Marriott Library ITS
[email protected]

@sousaphonic
Copy link

Has a fix for this been found?

@SamBaRufus
Copy link

Not necessarily a fix, so much as a work-around:
Since macOS 10.12, /Library/Application Support/com.apple.TCC/TCC.db is protected by SIP, so no modifications can be made to the file using privacy_services_manger unless 1 of 2 things occur:

  1. Disable SIP
  2. Boot to the Recovery Partition and run rm -rf /Volumes/Macintosh\ HD/Library/Application\ Support/com.apple.TCC

After performing one of these 2 steps, privacy_services_manager.py will continue to work normally (although if you follow step 2, it will be reverted back to SIP protection after an OS upgrade)

I've been trying to get some documentation in place as well as a workflow that will make this more explicit, but other tasks have stalled my progress on this.

@sousaphonic
Copy link

sousaphonic commented Nov 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants