Bugzilla – Bug 15971
Scans forever on previously ejected SD card
Last modified: 2019-01-25 10:11:33 UTC
I'm just upgraded to r8672. Touch previously had two devices attached -- SD card with photos, and USB drive. I attached the SD card first to view photos, so Squeezebox Server recognizes that drive as the one with the music library. But it has only photos -- no music. After the firmware upgraded, I selected Eject SD Card and removed the SD card. Then I manually restarted Squeezebox Server by going to Settings->Advanced->Squeezebox Server. The progress screen turned into "Scanning media for music files, please wait..." Two hours later, the same message is on the Squeezebox Server status screen. I think it's scanning on the non-existent SD card. Was able to stop Squeezebox Server manually OK.
you started SBS without any media attached?
Yes, that's right. TinySC knew that the SD card was the library device. Ejecting the SD card should have made it forget that, and when I restarted Sb Server it should have looked again for the library device.
Mickey - I can't reproduce this. When I try to start SBS with no media inserted, I get a message telling me to insert one. It wouldn't start. "Squeezebox Touch detects no attached storage device. Please attach either a USB device or SD card and try again."
Heh... but wipe & rescan would be allowed, getting stuck on the "Removing existing database" spinny. Mickey - I'm not sure about your configuration. In the original report you say you had plugged in USB and SD, then removed SD only. Is USB still plugged in when you see this? In your last comment you confirmed that you had no media attached.
reading an inexistent folder using lfs.dir() in squeezeboxDirPresent(): Mar 31 09:08:14 squeezeplay: ERROR squeezeplay.task - Task.lua:75 task error wipeRescan: ...e/jive/applets/SqueezeCenter/SqueezeCenterApplet.lua:1076: cannot open /media/mmcblk0p1: No such file or directory wipe/rescan must test for available media too.
IMHO SBS/sharing etc. shouldn't exist as their own menu items (there are too many of them anyway), but should be part of a service menu which is provided by the Media menu item only: if a media is plugged in, it provides a sub menu in the home of Touch, offering theses services.
Michael notes he has some ideas for a best-case solution for this problem in a Google doc. For a short-term solution, he proposes that we consider a change in 7.5.1 where we check to see if any drives are mounted, and if not, don't start the scanner (or even kill it).
TinySC will not be updated any more.