MPD getting stuck

Raspberry Pi related support

MPD getting stuck

Postby XploD » 17 May 2015, 10:20

It happened a few times before but now it's happening everytime I reboot the device and the only way to avoid this is to disconnect my external HDD and boot without it and then connect it. But like this, I have to wait every time for it to scan the whole HDD which takes a lot time. If I start the Pi with HDD connected, RuneUI shows volume at 100, and I can't change it, it keeps returning back to 100 and MPD doesn't react on buttons. I can create playlists and navigate through RuneUI but pressing Play won't do anything. I tried to run "mpc status" and it gives me Updating DB #2 status and it says Volume: n/a.

Before it always worked, after each start, there was a small updating but it worked while updating. Is it possible that I broke it somehow because I was installing a lot packages to enable LIRC and WiringPi? How to fix it?
Music taste:
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi:
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: MPD getting stuck

Postby hondagx35 » 17 May 2015, 11:15

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

Re: MPD getting stuck

Postby XploD » 17 May 2015, 11:23

Music taste:
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi:
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: MPD getting stuck

Postby hondagx35 » 17 May 2015, 12:27

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

Re: MPD getting stuck

Postby XploD » 17 May 2015, 14:25

Yes, but the weird thing is that this wasn't happening before. When I plug in the HDD for the first time, rescan took some time but after that, when I rebooted the device, it would rescan but only for a short and all files were available instantly on boot. Also, before, MPD wasn't stuck while it was rescaning. So I was able to play music immediatelly after the device booted, even though there was a Scanning... label in RuneUI. I don't get it why this started happening now.
Music taste:
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi:
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: MPD getting stuck

Postby hondagx35 » 17 May 2015, 14:35

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

Re: MPD getting stuck

Postby XploD » 17 May 2015, 15:01

I'm sorry if this sounded wrong, I wasn't expecting nothing and I wasn't complaining :) I just wanted to ask if maybe somebody had same problem or if there's some way to reset/reinstall MPD or something. Problems are meant to be solved, not to be avoided :D I can't just rollback everything because I will probably mess it again when I do all this again, and I just want to have that LCD display, buttons and IR remote. But I'll definitely try everything again on a clean install of RuneAudio. Otherwise, I'll try to disable rescaning, this would be a decent solution since I don't update music very often. Also, to update it, I must unplug the disk and plug it into my laptop. When I plug it back to RPi it will update anyway.

From one side, Arch Linux is great because it's lightweight and fast, in contrary to Raspbian who takes ages to boot. But from other side, Arch doesn't have almost anything preinstalled and it's very unfriendly for us Linux newbies to do anything. But hey, we can't have booth, can we? :)

Yes I updated it with pacman -Syu (I had to) and I installed "sudo", "make", "wiringPi", "gcc" and all other packages needed for this to work. And I also installed LIRC and needed packages for it to work. I will also have to install Java since coding in C, especially working with strings, is a pain in the a** :mrgreen: I spent around 20 hours just to make buttons work and display song and artist info on LCD display and another 2-3 hours for little script which contacts my website with "curl" requests when playing a few choosen radio stations, so I can scrobble to last.fm from that radio stations. This would take maybe 2-3 hours in total with Java. Or maybe I should consider using PHP since I have some knowledge and it's already there and supported.
Music taste:
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi:
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: MPD getting stuck

Postby hondagx35 » 17 May 2015, 21:52

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

Re: MPD getting stuck

Postby XploD » 18 May 2015, 00:08

That would be great! I'm not familiar with python but I guess is not that hard to learn it, I done once some programs in it but it was long time ago.
In fact, I'm looking now at it and I should take it from the beggining, it looks so clean and simple and the LCD library is great, it also supports custom characters.

There's one possible problem with getting song info from MPD. "mpc status" is a mess somehow. It gives song info in one line in ARTIST - TITLE format. To separate artist and title, I can split it by " - " but if there are artists or songs with " - " in its name, it will split it wrong. Is it possible to get all that informations (including current source etc) from RuneUI for example in JSON or XML format?

If not, I'm planning to get familiar with all RuneAudio code written in PHP and then modify t a little bit to be able to get all possible information and also to interact with it from Python so I can implement changing sources and folders with buttons/remote via LCD display, maybe even use some graphic (gLCD) display. But this needs a lot of work and I wouldn't probably have time for this till summer.
Last edited by XploD on 18 May 2015, 06:48, edited 1 time in total.
Music taste:
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi:
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: MPD getting stuck

Postby ACX » 18 May 2015, 00:42

User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 29 guests