Steps to reproduce
When the latest version is installed, the antivirus typically protects files against external programs that write to them. Therefore, Obsidian may not be able to access the files and overwrite them.
For some users, the error will occur following these steps:
- Update Obsidian with the latest installer.
- Open the program.
- Write on any note.
- The error appears (Error saving the file. EBADF: bad file descriptor, write.).
Did you follow the troubleshooting guide? [Y/N]
N
Expected result
The error appears where it cannot overwrite the file.
Actual result
Error saving the file. EBADF: bad file descriptor, write.
Environment
Windows 11
Additional information
To solve this problem, we need to follow these steps:
- Open the Windows settings.
- Search for “Ransomware protection.”
- Then, select “Allow an app through Controlled folder access.”
- Look for the option “Recently blocked apps,” you’ll find obsidian.exe there. (This indicates that Obsidian didn’t have access to the folders due to the antivirus.)
- Add “Obsidian.exe” to the allowed apps.
This should be enough to fix the error. If the error persists, it could be due to these reasons:
- The file is damaged or corrupted.
- The file lacks write permissions. (Navigate to the folder containing all files, then go to Security, and grant all permissions for Obsidian to access.)
- The file system is full.