PDA

View Full Version : LMS not finding music



pkfox
2014-10-16, 03:52
Hi guys, I've had LMS setup and running on my Raspberry Pi for over a week now without any major problems but yesterday I disconnected the external USB drive which has my music on it to back it up to my file server all went ok, I reconnected it the pi and LMS reports 0 files 0 playlist etc etc..., I've rescanned the library all to no avail, I've tried browsing the music folder from my transporter and it too can't find any files but the drive is mounted ok and obviously in the same place Any ideas ?

castalla
2014-10-16, 04:20
Hi guys, I've had LMS setup and running on my Raspberry Pi for over a week now without any major problems but yesterday I disconnected the external USB drive which has my music on it to back it up to my file server all went ok, I reconnected it the pi and LMS reports 0 files 0 playlist etc etc..., I've rescanned the library all to no avail, I've tried browsing the music folder from my transporter and it too can't find any files but the drive is mounted ok and obviously in the same place Any ideas ?

Did you reboot the Pi?

Man in a van
2014-10-16, 04:21
Hi guys, I've had LMS setup and running on my Raspberry Pi for over a week now without any major problems but yesterday I disconnected the external USB drive which has my music on it to back it up to my file server all went ok, I reconnected it the pi and LMS reports 0 files 0 playlist etc etc..., I've rescanned the library all to no avail, I've tried browsing the music folder from my transporter and it too can't find any files but the drive is mounted ok and obviously in the same place Any ideas ?


Try this, open the LMS webUI, go toLMS settings

>Basic Settings> Browse Media Folders> Media, in the drop down list select the usb folders one by one until you find the files

atb

Ronnie.

was just going to add about restarting LMS/pi but got beaten to it:p

pkfox
2014-10-16, 05:18
Try this, open the LMS webUI, go toLMS settings

>Basic Settings> Browse Media Folders> Media, in the drop down list select the usb folders one by one until you find the files

atb

Ronnie.

was just going to add about restarting LMS/pi but got beaten to it:p

Hi I can't browse the music folders as the pi is headless and without a keyboard, but I'm trying a reboot ( yet another ) and it does appear to be scanning now whereas previously the scan was over in a matter of seconds and found nothing

pkfox
2014-10-16, 05:19
Did you reboot the Pi?

Yes several times, it does appear to be scanning properly now I'll keep you posted

Man in a van
2014-10-16, 08:41
[QUOTE=pkfox;793359]Hi I can't browse the music folders as the pi is headless and without a keyboard, but I'm trying a reboot ( yet another ) and it does appear to be scanning now whereas previously the scan was over in a matter of seconds and found nothing[/QUO

have you tried the pi IP address:9000 in a browser window?

atb

Ronnie

pkfox
2014-10-16, 08:47
[QUOTE=pkfox;793359]Hi I can't browse the music folders as the pi is headless and without a keyboard, but I'm trying a reboot ( yet another ) and it does appear to be scanning now whereas previously the scan was over in a matter of seconds and found nothing[/QUO

have you tried the pi IP address:9000 in a browser window?

atb

Ronnie

Hi, I can access the browser interface without a problem its just the library is empty , but as I said in another post it appears to be scanning properly now I will keep you posted

d6jg
2014-10-16, 09:05
The Pi probably didn't automount the USB drive properly when you plugged it back in. You need to be careful about removing and reinserting USB drives with Linux. They need to be unmounted before removal. If you aren't a *nix person this is best done by powering the Pi off before you pull the USB to do your backup. When you have finished put it back in the same socket and the switch on the Pi.

pkfox
2014-10-17, 01:47
The Pi probably didn't automount the USB drive properly when you plugged it back in. You need to be careful about removing and reinserting USB drives with Linux. They need to be unmounted before removal. If you aren't a *nix person this is best done by powering the Pi off before you pull the USB to do your backup. When you have finished put it back in the same socket and the switch on the Pi.

Well the scan seems to have finished and the same result 0 files found, what I have discovered though is, if I copy some files to the pi's hard disk and point LMS to the location it works, so there is something about my USB drive that is not right - it's mounted ok and I can browse it in file manager but the LMS software can't see it nor can I browse it from my transporter using browse music folder. It's beginning to annoy me now.

Edit

I think I've found the problem, when I removed the drive to perform my backup I used rsync -avh which has removed the execute attribute from the folders which LMS needs to access them ( slaps forehead ) LMS is now scanning merrily and showing progress - thanks to all for your help.

d6jg
2014-10-17, 04:56
Glad that is sorted.

Why do you need to pull the USB to do the backup anyway? Can't you set up an rysnc (without the attribute) over your local network?

pkfox
2014-10-18, 00:34
Glad that is sorted.

Why do you need to pull the USB to do the backup anyway? Can't you set up an rysnc (without the attribute) over your local network?

I have tried rsync over the network but the poor little pi struggles and it's so much faster if I plug it into the server directly, I've definitely found the problem i.e. the missing execute attribute but I don't think it is rsync that removed it because I haven't found any documentation to support my theory.