sballin / alfred-search-notes-app

Use Alfred to quickly open notes in iCloud/Apple Notes.
https://www.alfredforum.com/topic/11716-search-appleicloud-notes/
MIT License
528 stars 24 forks source link

Operation not permitted, Ventura 13.2.1 #68

Closed krasnyt closed 12 months ago

krasnyt commented 1 year ago

Hello, I'm getting the following error pop up window when I try to search for any notes.

Please copy this entire text if submitting an error report. You may need to scroll.

panic: unable to open database file: operation not permitted

goroutine 1 [running]: main.PanicOnErr(...) github.com/sballin/alfred-search-notes-app/main.go:461 main.main() github.com/sballin/alfred-search-notes-app/main.go:474 +0x654

macOS: 13.2.1 Alfred: 5.0.6 Workflow: 3.5.2 CPU: arm64e Binary xattrs: com.apple.provenance Notes DB xattrs: Binary info: 0755 501/tomas 20/staff Notes DB info: 0644 501/tomas 20/staff Query: title '' Accounts: Google, iCloud,

sballin commented 1 year ago

You could try reinstalling the workflow from a fresh download because I've never seen that com.apple.provenance xattr before. Then you can try disabling and re-enabling the required permissions: https://github.com/sballin/alfred-search-notes-app#required-permissions and finally it may be related to the issue that Google notes are not supported: https://github.com/sballin/alfred-search-notes-app#email-notes-are-not-supported

krasnyt commented 1 year ago

Reinstalling with newest version did not help. Also re-enabling the permission you mentioned did not help. Notes I am searching for are Apple notes. Always the same popup.

sballin commented 1 year ago

Ok, then it could be related to com.apple.provenance or the google account even being enabled in Notes.

mpodlodowski commented 1 year ago

Alfred 4, same issue

panic: unable to open database file: operation not permitted

goroutine 1 [running]: main.PanicOnErr(...) github.com/sballin/alfred-search-notes-app/main.go:461 main.main() github.com/sballin/alfred-search-notes-app/main.go:474 +0x654

macOS: 13.2 Alfred: 4.8 Workflow: 3.5.2 CPU: arm64e Binary xattrs: Notes DB xattrs: Binary info: 0755 501/marcin 20/staff Notes DB info: 0644 501/marcin 20/staff Query: title '' Accounts: iCloud

sballin commented 1 year ago

Did this problem suddenly start happening, after doing something like upgrading the OS/Alfred, or is it your first time trying to use the workflow? What is your system language?

wushugene commented 1 year ago

I have the same issue. Just did a fresh install to Ventura 13.2.1 (from 12.4). First time using the workflow as well.

sballin commented 1 year ago

The first time you run it, are you getting automatically prompted to give it the various permissions described in the readme?

mpodlodowski commented 1 year ago

I’m using Ventura for quite a long time already. It was my first time trying to use the workflow. Not sure if I was asked to grant permissions

sballin commented 1 year ago

If you have the Go compiler installed, you can try following the compile instructions here: https://github.com/sballin/alfred-search-notes-app#compile

sballin commented 1 year ago

Also it may be most important to disable/re-enable the full disk access permission for Alfred, as described in the readme.

mpodlodowski commented 1 year ago

Yes! Thank you @sballin, full disk access permission was not granted to my Alfred. Everything's fine now.

wushugene commented 1 year ago

Worked for me as well, thank you!