When saving tags I occasionally get an error message "File cannot be opened for writing". If I'm saving a whole CD's worth of files, for example, it will only happen with a few files. Some will write perfectly well.
The problem appears to be worse when trying to save folder art. Sometimes trying a second time it works OK, sometimes not. I'm using v3.08 but it has been happening with previous versions. Files are .flac. Any thoughts?
Do you save your files on your local internal harddrive or SSD?
Do you save it to a remote NAS over your network?
Maybe this topics can help you:
Summary:
Thanks. I'm saving to an internal hard drive (not SSD). What's strange is that it only applies to some files in the relevant folder. Access permissions, ownership etc are the same for all files so I can't understand why it is only some that get flagged up as "cannot open file for writing" and only when I try and save the folder art - all the other tags are OK. The file plays OK so I assume it is not corrupted and I've checked and it's not open in any other programme. Furthermore sometimes (not always) if I close mp3tag and try again it works. Very frustrating!
Much more an indication that some other program (e.g. the ondrive synchronizer) tries to access the files at the same time. Esp. if you add covers then probably the padding isn't large enough, so the file has to be re-written. MP3tag copies the old an new data to a temporary file and when that file is to be moved ot the old file and the old file is now opened by an indexer or something then it could be that this causes the error message.
BTW:
is no real reassurance. Check the files with one of the linked programs:
https://community.mp3tag.de/t/how-to-check-files-for-errors/44633/3
Often background processes keep files locked.
I had some expeerience with AlbumArtDownloader, which sometimes locks 1 file in a directory. Since I found this reason for my problems in MP3Tag, I added a process kill in one of my defined tools in MP3tag for AlbumArtDownloader.
https://community.mp3tag.de/t/locked-files/17915
https://community.mp3tag.de/t/locked-files-durch-aufruf-des-albumartdownloaders/17916
Since you mention Flac files:
Some latest versions of the Spotify player lock Flac files. Spotify, funnily enough, does not declare this to be a bug, but rather a necessary evil to quickly include local music files.
https://community.spotify.com/t5/Desktop-Windows/FLAC-files-in-Downloads-directory-opened-accessed-and-locked-by/m-p/5204410
I use LockHunter to have a quick look at such files with a right-mouse-click and a selection in the content menue. LockHunter tells you which process locks the file.
https://lockhunter.com/