Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Radio Stations do not play - Error = Could not resolve host (all stations do this)
#1
Hi, 

Running Moode 8.3.9 on a RPi 3B+ 1GB. 
When I attempt to play a radio station I get an error "Failed to decode <URL>. CURL failed: Could not resolve host <curl>"
No audio plays. 

I'm connected through wifi to my home network, using a static IP address for the RPi. 

Music files connected through USB thumb drives to USB ports on the RPi play fine. It's just radio stations that won't play. 
The behavior is the same connecting to Moode from a Windows PC or Android phone. 

I restarted the RPi and behavior is unchanged. 

Connected DAC is a Topping D10 (USB). 

I'm happy to post any logs, screenshots, anything that might help understand what's happening, but I'm a networking a Linux noob. I'm likely to not understand some things. I apologize in advance for that. 

Any guidance would be much appreciated. Thank you.
Reply
#2
Best bet for getting support is to be on the latest version (9.1.3 as of today).

Having said that, is it all radio stations or just one/a few? If just a few, which stations? Can you get to the stations from other devices on the network?
----------------
Robert
Reply
#3
Photo 
Thanks for the instant reply. 

It's all radio stations that will not play. I tested with several I know play fine on my other RPi4 that I use with my stereo. 
The RPi 3B+ with the issue is in another location but is connected through wifi to the home network. 

Example of error message says (for all stations, all URLs, all CURLs): 

MPD error
Failed to decode
https://iheart.4zzz.org.au;
CURL failed: Could not resolve host: 
https://iheart.4zzz.org.au

The error is the same for all stations, only the URLs change. 

Is there a log I can post that might help point to what's happening here? 

Thanks.


Attached Files Thumbnail(s)
   
Reply
#4
Hi,
I checked on my side.

a ping of iheart.4zzz.org.au is working as expected, meaning it is pinging :-)
and the message you wrote " CURL failed: Could not resolve host <curl>"" indicates that the DNS don't do the job. something to check on your side?

going to the webpage https://iheart.4zzz.org.au shows
[Image: gPXKLWD]

found the radio in moode "4ZZZ FM 102.1 - Alternative"
It is playing fine

My 2cts : version 8.3.9 ... may be upgrade to 9.1.3 is something to plan and do.

kind regards
Phil
FYI: using a Raspberry Pi 3 Model B Rev 1.2 with OS 12 (bookworm) aarch64 and 1GB of memory
Reply
#5
(10-17-2024, 12:58 PM)rongon Wrote: Hi, 

Running Moode 8.3.9 on a RPi 3B+ 1GB. 
When I attempt to play a radio station I get an error "Failed to decode <URL>. CURL failed: Could not resolve host <curl>"
No audio plays. 

I'm connected through wifi to my home network, using a static IP address for the RPi. 

Music files connected through USB thumb drives to USB ports on the RPi play fine. It's just radio stations that won't play. 
The behavior is the same connecting to Moode from a Windows PC or Android phone. 

I restarted the RPi and behavior is unchanged. 

Connected DAC is a Topping D10 (USB). 

I'm happy to post any logs, screenshots, anything that might help understand what's happening, but I'm a networking a Linux noob. I'm likely to not understand some things. I apologize in advance for that. 

Any guidance would be much appreciated. Thank you.

Hi rongon,
Ì have experiencing the same problem: would you please try to configure the same static DNS address in the Ethernet section, even if the interface is not used?
Please let us know.
Best regards,
Francesco
Reply
#6
if not yet correctly running, please try to edit the file: /etc/resolv.conf.

Code:
sudo nano /etc/resolv.conf

to edit the file, 
then insert the address

Code:
nameserver 1.1.1.1
nameserver 8.8.8.8

for example,
then "ctrl O" to save and "ctrl X" to exit.
Best regards,
Francesco
Reply
#7
(10-17-2024, 12:58 PM)rongon Wrote: Hi, 

Running Moode 8.3.9 on a RPi 3B+ 1GB. 
When I attempt to play a radio station I get an error "Failed to decode <URL>. CURL failed: Could not resolve host <curl>"
No audio plays. 

I'm connected through wifi to my home network, using a static IP address for the RPi. 

...

-----
ETA - I just tried using a static IP address on a moOde 9.1.4 player connected to a WiFi access point. It's working fine. Doing this reminded me that when you choose STATIC address method, five values have to be entered: the static IP address, a network mask (the default 255.255.255.0 works in most home networks), the gateway address (depends on your router), and the primary and secondary DNS addresses. I hope you filled them all with valid entries. Francesco's suggestion to edit the file /etc/resolv.conf is the equivalent of entering the two DNS addresses in the webUI. The addresses he suggests are well-known DNS which are very reliable.
-----

My original post: Why do you need to use a static IP address? As a check, what happens if you reset moOde to use DHCP and reboot? Can you now access the radio stations?

If you really need to use a static IP address (hint, almost nobody does these days), the normal procedure in a home network situation is to set the client (e.g., moOde) to use DHCP and to reserve the IP address for the client's MAC address on the home router. (Details on how to do that depend on the router; you'll have to look it up.)

As an aside, do your ISP and your router offer IPv6 as well as IPv4 services?

Regards,
Kent
Reply
#8
@Tim Curtis
Hi Tim,
it happens if you have a pi 3A (without Ethernet port): if you try to use the STATIC configuration for the WiFi port it does not save the DNS parameters.
Best regards and thanks,
Francesco
Reply
#9
Hi Kent,
excuse me it was for you.
the very best regards,
Francesco
Reply
#10
(10-31-2024, 10:25 PM)fdealexa Wrote: @Tim Curtis
Hi Tim,
it happens if you have a pi 3A (without Ethernet port): if you try to use the STATIC configuration for the WiFi port it does not save the DNS parameters.
Best regards and thanks,
Francesco

Wow, I didn't know that, thanks. I did my test on a 3B+ that was at hand.

Will investigate.

Regards,
Kent
Reply


Forum Jump: