(Edit:) Ah, hubris. I thought I’d found a solution to this, but it’s unfortunately an ongoing issue with Proton Drive, not unique to Obsidian. I’ve edited the thread to reflect that and moved it to “Help”.
Nothing I’ve found prevents the problem, if I find something I’ll reply in this thread.
What does help is setting the vault folder to Download a local copy, and then as soon as the error pops up, I remove the local download of the affected folder/file, and then reenable the local download, all through the right click menu. That refreshes the file, and reverts the stuck permission to read/write.
I imagine it remains good practice to set your cloud based files to always download a local copy: Windows :: MacOS.
Background: I’ve had sporadic frustrating ‘EACCES’ ‘permission denied’ errors over 6 months, due to note files getting read-only file permissions. I had moved a vault into Proton Drive, and I used their cloud app on MacOS to access it through Obsidian which I think caused the problem. Searching here, discord and reddit, I found people with similar problems, but I didn’t find a solution that worked for me searching keywords above
I’m posting this here to hopefully to join the dots for anyone else having similar problems.
(Edit: feel free to propose solutions)
- Obsidian is “local first” - when accessing a cloud-based vault it can cause problems if the whole vault is not stored locally.
Obsidian’s bug listing troubleshooting message says to update Obsidian and ensure all files are local:
If you are using a third-party sync system, like iCloud or OneDrive, you need make sure that they are configured so that they keep a complete local copy of your vault.
- Proton Drive’s app on MacOS and Windows defaults to save storage space on the local drive by only downloading files as the user accesses them. Files that are not local have a little cloud icon to indicate this.
The solution (edit: it’s not) seems to be to set the vault folder to download:
- Windows - right-click > “Always keep on this device”
- MacOS - right-click > “Download”
Their docs say these files will remain downloaded, but still sync changes with the cloud. I’ve not been trying this long enough to see if that persists with Drive app updates, or if the container is refreshed.
Other cloud services (I’ve seen iCloud, Nextcloud, OneDrive) mentioned have similar settings.