Bug 17724 - If NAS is shut down during 'scan for new', then next scan considers media files as deleted
: If NAS is shut down during 'scan for new', then next scan considers media fil...
Status: UNCONFIRMED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 7.7.0
: PC Windows 7
: -- normal with 1 vote (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-03 11:26 UTC by lambrouctravels
Modified: 2011-11-03 22:19 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lambrouctravels 2011-11-03 11:26:26 UTC
I have not tried to reproduce.
Media files are on a NAS.
Run 'scan for new and changed media files'.
Not due to SBS, the NAS shuts itself down during that scan.
Bug: I see in Media Server Control panel TAB Status,
in the progress bar,
that it is '10. removing deleted files'.
Comment: an absent drive should not be confused with 'deleted files'.
Comment 1 Jim McAtee 2011-11-03 15:28:05 UTC
(In reply to comment #0)
> Comment: an absent drive should not be confused with 'deleted files'.

Squeezebox Server has always worked this way. If a drive goes offline, the content  on it will be removed from the library during a scan.
Comment 2 Mikael Nyberg 2011-11-03 21:54:07 UTC
It does not have to be scan, all specified folders must be avaible to the server all the time, when it is running.
If drive is absent during startup, the dB may be wiped too, I'm unsure of which exact circumstance,
It can be if the root folder for your library is absent, then you get the " no muisc folder specified " error and the dB is wiped.

I have no idea on whats the design rationale behind it, I'm convinced that it is designed this way for a good reason .

There is probably duplicate bugs for this in bugzilla.

Sugestion, don't consider a specified music folder gone untill user erases it from the settings.
Throw an error message if user tries to play such file or add them to playlists. If a playlist already contains such file , show error message and move on to next file.
I'll give the bug vote mostly to have this explained, maybe the server gets completely dysfunctional with a stale dB .
Comment 3 Mikael Nyberg 2011-11-03 22:19:52 UTC
Now i've figured one reason to why it has to be this way during a scan , if a storage is mounted somewhere deeper in the file structure, there is no way for sbs/lms to actually know if it's just absent or gone forever.
Only the top level case may be possible to fix, all other ways a user may mount storage is unpredicable. And the only safe way is to consider unreachable locations gone.
Or simply remove shortcuts or subfolders, that would have the same effect, the dB would turn out a complete mess.