rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.39k stars 600 forks source link

Scanning the library stops at an error #1911

Closed achmetinternet closed 10 years ago

achmetinternet commented 10 years ago

I get the following error and then it does not proceed to scan any other folders:

2014-09-23 16:21:12 ERROR Uncaught exception: Traceback (most recent call last): File "/var/hda/web-apps/headphones/headphones/logger.py", line 204, in new_run old_run(_args, *_kwargs) File "/usr/lib64/python2.7/threading.py", line 764, in run self.*target(_self.__args, _self.kwargs) File "/var/hda/web-apps/headphones/headphones/librarysync.py", line 106, in libraryScan f = MediaFile(song) File "/var/hda/web-apps/headphones/lib/beets/mediafile.py", line 1166, in init self.mgfile = mutagen.File(path) File "/var/hda/web-apps/headphones/lib/mutagen/init**.py", line 247, in File fileobj = open(filename, "rb") IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/mnt/samba/Music/Qbical/Warm Fuzzy Electronics EP/B2 - Iced.mp3'

achmetinternet commented 10 years ago

This also leads to the fact that when I want to "Force Re-scan Library [Comprehensive]" it does not get to the folder where HP puts the processed music into. So I can see in the History tab that certain albums are processed but they do not appear in the artist overview (which they did when they were processed at that time).

AdeHub commented 10 years ago

Does it always fail on this file?

On 24/09/2014, at 2:27 am, achmetinternet notifications@github.com wrote:

I get the following error and then it does not proceed to scan any other folders:

2014-09-23 16:21:12 ERROR Uncaught exception: Traceback (most recent call last): File "/var/hda/web-apps/headphones/headphones/logger.py", line 204, in new_run old_run(_args, _kwargs) File "/usr/lib64/python2.7/threading.py", line 764, in run self.target(_self.__args, _self.kwargs) File "/var/hda/web-apps/headphones/headphones/librarysync.py", line 106, in libraryScan f = MediaFile(song) File "/var/hda/web-apps/headphones/lib/beets/mediafile.py", line 1166, in init self.mgfile = mutagen.File(path) File "/var/hda/web-apps/headphones/lib/mutagen/init.py", line 247, in File fileobj = open(filename, "rb") IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/mnt/samba/Music/Qbical/Warm Fuzzy Electronics EP/B2 - Iced.mp3'

— Reply to this email directly or view it on GitHub.

achmetinternet commented 10 years ago

No, when I delete it, it stops at the next one. And these are not actual files but links. So in my opinion it should not bother with these. In my shell they appear red. Before it just said that it cannot read that file but continued.

AdeHub commented 10 years ago

What type of links are these, I just scanned a symlinked file and it went through ok

basilfx commented 10 years ago

Probably a broken symlink.

I have changed this behaviour, because it was just catching all exceptions without any note. Now it catches Beets exceptions only, but I think it makes sense to add IOError ones too. I'll look into this issue.

achmetinternet commented 10 years ago

Yes, broken symlinks. Thanks for looking into it.

I deleted the broken symlinks via find -L /path/to/check -type l -delete