runeaudio freezes when updating usb drive

Raspberry Pi related support

runeaudio freezes when updating usb drive

Postby mattra » 22 Apr 2016, 13:41

Hi,

I just bought a Raspberry PI 3 with Pi-Dac+ and am very happy with it. But when I attach my WD MyPassport drive (3T) to it, it starts updating the database (which I admit is huge), this works fine, but after a while Runeaudio freezes. Updating continues forever, and the music only plays a couple of notes now and then.

I was wondering, is this a MPD database problem. Is there a limit to the database. Or a setting I should change?

Or is it a power problem and is the usb drive drawing to much power from the Raspberry? And should I connect it via a powered hub?

Anybody any ideas or experiences with large usb collections?
mattra
 
Posts: 37
Joined: 22 Apr 2016, 13:32

Re: runeaudio freezes when updating usb drive

Postby hondagx35 » 22 Apr 2016, 14:11

Hi mattra,

please try this

- disable "auto rebuild" on the sources page
- wait until your music is scanned (do not play music before)
- change log-level on the mpd page and check the log files for errors (/var/log/runeaudio/mpd.log)

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: runeaudio freezes when updating usb drive

Postby rikardo1979 » 22 Apr 2016, 15:51

you may draw too much power of the RPi. Is always highly recommended to use USB device with its own PSU or go through powered USB Hub.
>>>Please always follow rules and read before you post<<<
User avatar
rikardo1979
 
Posts: 197
Joined: 10 Apr 2016, 14:34

Re: runeaudio freezes when updating usb drive

Postby rastus » 22 Apr 2016, 22:16

My WD MyPassport drive would not run for very long connected to the USB on my Raspberry Pi 2B, it kept disconnecting and reconnecting... I had to use a good quality powered USB hub. One of 5V 4A at least, I tried cheaper ones (5V 1A) that would not work.

rikardo1979 is correct, the USB hub must have it's own power supply.
User avatar
rastus
 
Posts: 353
Joined: 21 Aug 2015, 10:29

Re: runeaudio freezes when updating usb drive

Postby mattra » 23 Apr 2016, 09:19

Hi Frank,
I tried your suggestions and let the database update, but after more then three hours runeaudio was still hanging, so I pulled the plug.

Hi ricardo1979 and rastus,
I'll try a powered hub.
Any suggestions for a cheap one?
I will only be using it for this purpose. So I have no need for a hub that costs more then my Raspberry Pi ;)
mattra
 
Posts: 37
Joined: 22 Apr 2016, 13:32

Re: runeaudio freezes when updating usb drive

Postby rastus » 23 Apr 2016, 09:26

User avatar
rastus
 
Posts: 353
Joined: 21 Aug 2015, 10:29

Re: runeaudio freezes when updating usb drive

Postby PeteB » 24 Apr 2016, 16:20

I think I would try that better 5V 4A supply like Rastus suggested, just by itself, no USB hub, first.

You might need an adapter to go from a typical barrel plug to micro-USB, or a supply with both. Cheap USB hubs can be troublesome too, and good ones are not cheap, by a longshot. Look at the cable Western Digital is selling with their Pi drives (not my favorite, but as an example of what it takes to get an older HDD to work, if that is what you have).

My Western Digital WD10JMVW 1 TB drive works fine using either one of the two "stronger" 5v 2A power supplies I have (same drive as in a Passport). So does the WD5000LPVX with a SATA-USB adapter. They may technically exceed the spec on start, although my measurements show it is WELL below the 1.2A max USB current for a Pi 2 or 3, even with two USB dongles.

So I assume they would work with the new 2.5V supplies, and definitely with a 4A supply.

@rastus: you commented on my setup in the DIY section, here:

stack-case-for-raspberry-pi-and-hdd-with-a-hat-dac-or-digi-t3478.html#p13600

You can see it is just a Pi 2, the HDD, and a hat DAC. Nothing complicated, no extra effort to get it to work. No magic Western Digital cables, either... :D

An older drive, or an older Passport, may not work because the startup current is too high.

Since the original post is about the Pi hanging AFTER it started to work, so I assume well AFTER startup, I would guess it may not be just the supply. Since you have a similar setup, have you noticed this yourself? I have not, if it fails due to supply limitations, it fails on start.

edit:

I think it is hanging because of something that happens during the process of updating the library. I would throw a few music tracks on the drive, reboot and play them, repeat a few times, see if it works with a small library. I think you may not be able to play music while updating due to USB limitations. Looks like that is what Frank was getting at (maybe).

P.
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: runeaudio freezes when updating usb drive

Postby mattra » 25 Apr 2016, 18:14

Hi everybody,

I bought a powered usb hub, but only 5V/2A, which was all I could find at the store. It didn't make any difference. MPD updated the library and runeaudio froze again after about half an hour. I also don't think the power is the problem, as I read somewhere that the MyPassport uses 500mA to 600mA, and the usb max power for the Raspberry Pi3 is already set to 1.2A. The plug for the Raspberry is 2.5A.

So I took another road. There is lots of stuff on the disk (movies, picture, etc...) that needn't be indexed by mpd. So I put .mpdignore in each of those folders. Et voilà, the Music folder is updated, took about 5-10 minutes and no freezes. So probably there was something in one of those other files that caused the freeze...

Fingers crossed!
mattra
 
Posts: 37
Joined: 22 Apr 2016, 13:32

Re: runeaudio freezes when updating usb drive

Postby hondagx35 » 25 Apr 2016, 20:31

Hi mattra,

thank you for your report and the hint to use ".mpdignore".

I think we should mention this on the sources page.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 20 guests