Thank you for your donation!


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


Solved: Moode 9.0.1 no streaming radio if static address
#11
(06-05-2024, 11:02 PM)Tim Curtis Wrote: I think I see that if ipv4 is set to static, ipv6 method=auto could prolly create some sort of weird conflict.

[ipv6]
addr-gen-mode=default
method=auto

According to the spec for nmconnect files "disabled" is an option for method.

Code:
IP configuration method. NMSettingIP4Config and NMSettingIP6Config both support "disabled", "auto", "manual", and "link-local". See the subclass-specific documentation for other values. In general, for the "auto" method, properties such as "dns" and "routes" specify information that is added on to the information returned from automatic configuration. The "ignore-auto-routes" and "ignore-auto-dns" properties modify this behavior. For methods that imply no upstream network, such as "shared" or "link-local", these properties must be empty. For IPv4 method "shared", the IP subnet can be configured by adding one manual IPv4 address or otherwise 10.42.x.0/24 is chosen. Note that the shared method must be configured on the interface which shares the internet to a subnet, not on the uplink which is shared.

Precisely what I did using nmcli but somehow the method got reset to "enabled" during shutdown/reboot. I'll look into it.

When I configure a player with DHCP addressing, I get

Code:
xxx@m901pi3bp:~ $ cat /etc/resolv.conf
# Generated by NetworkManager
search hsd1.md.comcast.net
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 2001:558:feed::2
nameserver 2601:147:4380:e0d0:aa70:5dff:fe49:74b8

Those are the Comcast IPv4 and IPv6 DNS server addresses as provided by the router's DHCP service..

I installed the bind9-dnsutils package and ran


Code:
dig ice1.somafm.com


The response shows the IPv4 DNS server 75.75.75.75 is queried.

OTOH, if I configure a player with static addressing (including the 8.8.8.8 and 1.1.1.1 external DNS servers) I get


Code:
xxx@m901pi5b:~ $ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
nameserver 2601:147:4380:e0d0:aa70:5dff:fe49:74b8

When I repeat the dig command the response shows the first IPv6 DNS server is queried.

Regards,
Kent
Reply
#12
Pull the latest inc/network.php
https://github.com/moode-player/moode/co...0895e6e42d

No issues on my end. The disabled setting was preserved after reboot.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
(06-06-2024, 10:40 AM)Tim Curtis Wrote: Pull the latest inc/network.php
https://github.com/moode-player/moode/co...0895e6e42d

No issues on my end. The disabled setting was preserved after reboot.

They say there is no "I" in "team", but there certainly is in "mistake", and I probably made one trying to disable IPv6.

The good news: the network.php I just pulled does disable the IPv6 interface when static addressing is chosen.

The not so good news: choosing static addressing leaves /etc/resolv.conf empty.


Code:
xxx@m901pi5b:~ $ sudo cat /etc/NetworkManager/system-connections/Krypton.nmconnection
#########################################
# This file is managed by moOde          
# Wireless: Configured SSID              
#########################################

[connection]
id=Krypton
uuid=0cdedb87-4b1a-46b6-833d-c109dd11a795
type=wifi
interface-name=wlan0
autoconnect=true
autoconnect-priority=100
[wifi]
mode=infrastructure
ssid=Krypton
hidden=false
[wifi-security]
key-mgmt=wpa-psk
psk=<redacted>
[ipv4]
method=manual
address1=10.0.0.251/24
gateway=10.0.0.1
dns=8.8.8.8,1.1.1.1
[ipv6]
addr-gen-mode=default
method=disabled
xxx@m901pi5b:~ $ cat /etc/resolv.conf
# Generated by NetworkManager
xxx@m901pi5b:~ $

Regards,
Kent
Reply
#14
In its always something.

I'll revert that commit.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#15
I came to the forum to report this problem and saw the latest thread was already talking about it... 
I have the same problem since updating to 9.0.1, with the exact same static configuration I had at v8
Reply
#16
(06-06-2024, 04:53 PM)07lema Wrote: I came to the forum to report this problem and saw the latest thread was already talking about it... 
I have the same problem since updating to 9.0.1, with the exact same static configuration I had at v8

What are the entries?
Address
Netmask
Gateway
PriDNS
SecDNS
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#17
(06-06-2024, 09:53 PM)Tim Curtis Wrote:
(06-06-2024, 04:53 PM)07lema Wrote: I came to the forum to report this problem and saw the latest thread was already talking about it... 
I have the same problem since updating to 9.0.1, with the exact same static configuration I had at v8

What are the entries?
Address
Netmask
Gateway
PriDNS
SecDNS

192.168.0.70
255.255.255.0
192.168.0.1
Blank
Blank

Reply
#18
(06-07-2024, 12:19 AM)07lema Wrote:
(06-06-2024, 09:53 PM)Tim Curtis Wrote:
(06-06-2024, 04:53 PM)07lema Wrote: I came to the forum to report this problem and saw the latest thread was already talking about it... 
I have the same problem since updating to 9.0.1, with the exact same static configuration I had at v8

What are the entries?
Address
Netmask
Gateway
PriDNS
SecDNS

192.168.0.70
255.255.255.0
192.168.0.1
Blank
Blank


blank DNSs means the Pi won't be able to resolve ANY address... try settings them to the same address of your router/gateway: 192.168.0.1
Reply
#19
Try manually set DNS in nmtui. It helps me, there was issue in 9.0.0 when i set dns in web interface, DNS won't enters in network manager.
Reply
#20
I can confirm that as of 9.0.4 64-bit Curl fails for radio station lookup when static ip used, but succeeds with dhcp. pi 3b+

    John
Reply


Forum Jump: