Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Moode Audio Player for Raspberry Pi
Moode Audio Player for Raspberry Pi
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 26th May 2016, 01:46 PM   #3181
TheOldPresbyope is offline TheOldPresbyope  United States
diyAudio Member
 
Join Date: Dec 2015
Location: Maryland, USA
Quote:
Originally Posted by leicray View Post
Thanks for the follow up. Clearly it's something wrong with my setup, but I cannot figure it out. Just to complicate matters further, one album (out of five) does display the album art correctly. I too am using r26-tr5.

Does anybody have additional ideas? If all else fails, I might just convert the WMAs to FLACs using foobar2000.

Thanks.
I take it you don't have trouble with the identical Moode/NAS lashup displaying cover art for FLAC files, whether it's embedded or a separate cover.jpg?

My immediate reaction is that conversion is an extreme solution but that's just me, especially since you mention one album works ( WMA files or FLAC files?).

I'd be inclined to suspect your NAS configuration, but again that's just me.

Gotta run. Will think more about this tonight.

Regards,
Kent
  Reply With Quote
Old 26th May 2016, 01:48 PM   #3182
TheOldPresbyope is offline TheOldPresbyope  United States
diyAudio Member
 
Join Date: Dec 2015
Location: Maryland, USA
Quote:
Originally Posted by jyeatman View Post
Hi
...

Also Zen FM station just gives quiet white noise but the track title seems to show correctly. This station worked on previous TR releases.

Thanks

Jerry
Zen is playing here as I type. RPi2B, USB audio out, R26-TR5.

Regards,
Kent
  Reply With Quote
Old 26th May 2016, 02:48 PM   #3183
TheOldPresbyope is offline TheOldPresbyope  United States
diyAudio Member
 
Join Date: Dec 2015
Location: Maryland, USA
Tim:

I'm lazy. Sometimes when I'm done listening to my Moode Player I'll just leave it paused for a long time rather than shutting it down. I've noticed the following behavior:

1) RPi3, HiFiBerry DAC+ audio out, internal WiFi connection (host 192.168.1.24). Ran all night in "pause" mode with Chromium browser connected from host 192.168.1.175.

A line like this one is recorded to /var/log/nginx/error.log roughly once an hour
Code:
2016/05/26 03:32:39 [error] 723#0: *281 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.175, server: , request: "GET /engine-mpd.php?state=stop&_=1464244361225 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.24", referrer: "http://192.168.1.24/index.php"
While the player is in "play" mode, these don't appear. Roughly the time I clicked "play" this morning, which happened to be just after the last time-out message at 09:38:52, I got a different message to /var/log/nginx/error.log
Code:
2016/05/26 09:33:07 [error] 723#0: *281 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.175, server: , request: "GET /engine-mpd.php?state=stop&_=1464269583957 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.24", referrer: "http://192.168.1.24/index.php"
What's interesting is that /var/log/moode.log shows the following message with the same time stamp
Code:
20160526 093307 watchdog: PHP restarted, fpm child limit 18 exceeded
I first noticed this yesterday morning but, oops, lost the moode.log info when I restarted the system.

2) RPi2B, USB audio out, Canakit WiFi adapter. Roughly same nginx behavior but I have not seen the child-limit message.

Both systems running R26-TR5. Besides the differences in hardware, the second system is 3 feet away from the Access Point, while the first is perhaps 20 feet away with obstructions. Haven't had time to reverse their positions as a test.

This is nothing urgent, just more forensic information to add to your pile (!) of notes.

Regards,
Kent

PS - I'm experimenting with rsyslog configuration to discard some annoying messages which unnecessarily fill the logs---one is the useless pcm512x module (for the HiFiBerry DAC+) warning there is no SCLK every time I start a selection, the other is the dhclient message set every 4 minutes about DHCP activity on my unconnected eth0 interface. This latter apparently is a result of us using the "allow-hotplug" option and has been complained about in various Debian forums for years. I could simply take the eth0 down by one means or another, but that seems extreme. I might actually need it while the system is up.
  Reply With Quote
Old 26th May 2016, 04:49 PM   #3184
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by TheOldPresbyope View Post
Tim:

I'm lazy. Sometimes when I'm done listening to my Moode Player I'll just leave it paused for a long time rather than shutting it down. I've noticed the following behavior:

1) RPi3, HiFiBerry DAC+ audio out, internal WiFi connection (host 192.168.1.24). Ran all night in "pause" mode with Chromium browser connected from host 192.168.1.175.

A line like this one is recorded to /var/log/nginx/error.log roughly once an hour
Code:
2016/05/26 03:32:39 [error] 723#0: *281 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.175, server: , request: "GET /engine-mpd.php?state=stop&_=1464244361225 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.24", referrer: "http://192.168.1.24/index.php"
While the player is in "play" mode, these don't appear. Roughly the time I clicked "play" this morning, which happened to be just after the last time-out message at 09:38:52, I got a different message to /var/log/nginx/error.log
Code:
2016/05/26 09:33:07 [error] 723#0: *281 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.175, server: , request: "GET /engine-mpd.php?state=stop&_=1464269583957 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.24", referrer: "http://192.168.1.24/index.php"
What's interesting is that /var/log/moode.log shows the following message with the same time stamp
Code:
20160526 093307 watchdog: PHP restarted, fpm child limit 18 exceeded
I first noticed this yesterday morning but, oops, lost the moode.log info when I restarted the system.

2) RPi2B, USB audio out, Canakit WiFi adapter. Roughly same nginx behavior but I have not seen the child-limit message.

Both systems running R26-TR5. Besides the differences in hardware, the second system is 3 feet away from the Access Point, while the first is perhaps 20 feet away with obstructions. Haven't had time to reverse their positions as a test.

This is nothing urgent, just more forensic information to add to your pile (!) of notes.

Regards,
Kent

PS - I'm experimenting with rsyslog configuration to discard some annoying messages which unnecessarily fill the logs---one is the useless pcm512x module (for the HiFiBerry DAC+) warning there is no SCLK every time I start a selection, the other is the dhclient message set every 4 minutes about DHCP activity on my unconnected eth0 interface. This latter apparently is a result of us using the "allow-hotplug" option and has been complained about in various Debian forums for years. I could simply take the eth0 down by one means or another, but that seems extreme. I might actually need it while the system is up.
Hi Kent,

Nice log analysis. There are various timeouts in the system.

- NGINX configured for 1 hour connection timeout
- PHP configured for 30 sec execution timeout and 60 sec connection timeout.
- MPD idle state suspends connection timeouts

Note that in engine-mpd.php when PHP makes the specific connection to MPD for entering idle state the socket timeout is set to 600000 secs (7 days) so PHP does not time out the socket at the default 60 sec mark and thus from a practical perspective allows MPD to remain in idle state "forever".

The condition "fpm child limit 18 exceeded" is somewhat rare but can happen when there are multiple clients running the UI. The condition can also be forced by rapidly refreshing Browser so that the number of instances of engine-mpd.php stays ahead of PHP killing off the idle ones every 10 secs.

The pcm512x messages I think come from the device driver so probably not much that can be done. You will also see red messages in DMESG from i2s and wlan drivers. From what I understand these are debug messages left in by the dev's and probably should be removed in newer releases.

And as for unconfigured eth0 asking for DHCP at regular intervals, it could be avoided by automatically downing the adapter during startup in worker.php if worker determined that eth0 was not being used, or alternatively providing a System config setting to manually down the adapter.

I think its better to have eth0 always available since the periodic DHCP requests have no real impact on performance. Maybe there is a way to increase the period.

Regards,
Tim
  Reply With Quote
Old 26th May 2016, 05:13 PM   #3185
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Hi,

Below is final bugfix/update list for the TR's up to and including TR5. There is one unresolved issue with samba in the 2016-05-10 Jessie-Lite release that TR5 is based on that causes connections to the Moode samba shares to fail when using newer versions of Windows or Mac OS X. WIndows 7 connections to the shares works ok. I'm not planning to regress the samba version to the earlier one but rather release 2.6 with the issue and wait for next J-Lite release which should have issue fixed and then use this for Moode 2.7

1) FIX: etc/dhcpcd.conf static wlan0 address not commented out on fresh image
2) FIX: incorrect worker log message when eth0 does not exist
3) FIX: cfg_radio missing 1st record
4) FIX: lib/systemd/system/mpd.service and .socket have +x 0755 and should be 0644
5) FIX: WiFi "No security" setting causing connection to fail

1) UPD: MPD socket connection handling
2) UPD: USB audio hot-plug management

NOTES:

Update #1 uses some of AndiG's nice socket handling code from Moode 3 prototype and will probably fix a few issues including the rare php-cpu-hog condition.

Update #2 is a greatly simplified handler for USB audio hot-plug made possible by upd #5.

Regards,
Tim
  Reply With Quote
Old 26th May 2016, 06:15 PM   #3186
jonners is offline jonners  United Kingdom
diyAudio Member
 
jonners's Avatar
 
Join Date: Jan 2007
Location: Gloucestershire
Quote:
Originally Posted by jyeatman View Post
Also Zen FM station just gives quiet white noise but the track title seems to show correctly.
Very zen.
  Reply With Quote
Old 26th May 2016, 06:24 PM   #3187
philrandal is offline philrandal  United Kingdom
diyAudio Member
 
Join Date: Jan 2016
Location: Hereford, UK
Quote:
Originally Posted by TimCurtis View Post
Hi,
There is one unresolved issue with samba in the 2016-05-10 Jessie-Lite release that TR5 is based on that causes connections to the Moode samba shares to fail when using newer versions of Windows or Mac OS X. WIndows 7 connections to the shares works ok.
Odd one. I've had no problems connecting to my Moodey Pi from from Windows 10.

Phil
__________________
Pi Zero W + Pimoroni pHAT DAC / Pro-ject Elemental / Marantz CD6004 / Marantz PM6004 / Monitor Audio Bronze 2
  Reply With Quote
Old 26th May 2016, 06:48 PM   #3188
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by philrandal View Post
Odd one. I've had no problems connecting to my Moodey Pi from from Windows 10.

Phil
Hi Phil,

It just affects the samba shares and not the UI. But in any case if u are able to connect to the shares from Win 10 then goodness!

Goal is to release 2.6 around end of May :-)

-Tim
  Reply With Quote
Old 26th May 2016, 06:57 PM   #3189
philrandal is offline philrandal  United Kingdom
diyAudio Member
 
Join Date: Jan 2016
Location: Hereford, UK
Quote:
Originally Posted by TimCurtis View Post
Hi Phil,

It just affects the samba shares and not the UI. But in any case if u are able to connect to the shares from Win 10 then goodness!

Goal is to release 2.6 around end of May :-)

-Tim
Hi Tim,

Was happily copying files from my Win 10 laptop to Moode 2.6 TR5's SMB shares the other day.

Phil
__________________
Pi Zero W + Pimoroni pHAT DAC / Pro-ject Elemental / Marantz CD6004 / Marantz PM6004 / Monitor Audio Bronze 2

Last edited by philrandal; 26th May 2016 at 07:10 PM.
  Reply With Quote
Old 27th May 2016, 06:54 PM   #3190
leicray is offline leicray  United Kingdom
diyAudio Member
 
Join Date: Mar 2016
Location: Leicester, UK
Quote:
Originally Posted by TheOldPresbyope View Post
I'd be inclined to suspect your NAS configuration, but again that's just me.

Regards,
Kent
It's clearly something to do with my NAS configuration. If I copy all of the misbehaving albums to a USB drive and mount that directly on the Pi then all of album art displays correctly. I cannot figure out the basis of the problem when the files are served from the NAS which is a Netgear ReadyNAS Duo v2 in case that helps with prompting suggestions.

Many thanks,

Raymond
  Reply With Quote

Reply


Moode Audio Player for Raspberry PiHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My DAC for the Raspberry Pi usul27 Digital Line Level 156 29th April 2017 11:10 PM
DSP for the Raspberry Pi usul27 Digital Line Level 39 30th August 2016 07:29 AM
Raspberry Pi + CirrusLogic Audio Card = FAIL solderhead PC Based 31 26th January 2016 06:48 PM
RaspyFi/Volumio - Turn raspberry Pi into Audiophile audio Player mikelangeloz PC Based 295 14th June 2014 05:32 PM
miniAMP and raspberry pi kp93300 miniDSP 0 3rd March 2014 03:38 AM


New To Site? Need Help?

All times are GMT. The time now is 03:03 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki