Posts: 30
Threads: 3
Joined: Jul 2024
Reputation:
0
08-18-2024, 12:29 PM
(This post was last modified: 08-19-2024, 07:33 AM by robkyf.)
I’m still relatively new to the Pi/moOde world so I think this might be a more general Pi device management question than a moOde specific one.
I’ve been leaving my Pi Zero 2 W running moOde 9.0.4 switched on all the time, but am finding that when I try to use it after a few days of inactivity, moode.local is non-responsive and I have to do a hard reboot.
My local network seems ok - I can access wifi on other devices.
Any suggestions? Should I be turning off the Pi if I don’t plan to use it for awhile?
Many thanks!
Posts: 1,871
Threads: 43
Joined: Mar 2020
Reputation:
85
Is the wifi to the zero on the weak side? I find that the poor signal to my Pi3 inside an old radio can make the mDNS a bit hit and miss. I reserve the IP on my router, and address the player using that instead, which bypasses the mDNS and therefore the instability.
If you can access via IP in the non-responsive state, that could be your answer too.
----------------
Robert
Posts: 1,288
Threads: 24
Joined: Jun 2022
Reputation:
42
Couldn't it be also a router lease issue...?
Posts: 1,871
Threads: 43
Joined: Mar 2020
Reputation:
85
I can only speculate as to the cause, and even then only from my devices and network. However, in my case it is only ever my Android phone that loses the ability to access moOde via mDNS, and even then it is clearly a DNS resolution failure, rather than any unresponsiveness. I can only conclude that some "event" occurs that makes the mDNS records on the phone forget the moOde address, and the the only thing that brings them back is either forcing a refresh my asking for the address when not connected, then asking again after reconnecting; or rebooting the moOde player. I these circumstances, the phone seems to get a fresh broadcast of the moOde address and it start working again.
Much simpler to reserve an IP and remove mDNS from the equation.
I know there are plenty of folk who never have these issues with mDNS, so it will be some secret combination of Android version, phone hardware, router features, wifi congestion, turpentine and egg white that triggers it.
----------------
Robert
Posts: 30
Threads: 3
Joined: Jul 2024
Reputation:
0
Pointing to 192.xx rather than ‘moode.local’ on whatever device you’re using to control the Pi/moOde over wifi resolved the problem for me.
Posts: 6,030
Threads: 177
Joined: Apr 2018
Reputation:
235
You've got a working solution so this is just random information.
I have no DNS service running on my LAN so I resolve all my hosts by mDNS, e.g., with <bletch>.local names. There's more than a dozen hosts on the LAN, ranging from moOde players and Linux boxes, to my partner's Windows laptop and smart TV, etc.
I've noticed occasionally that I'll try, for example, to ping or ssh from one host to another only to have the process time out with a "Could not resolve..." message. If I immediately try again, the connection completes. I haven't bothered to figure out why this happens. Apart from it, communication on my LAN is robust.
Of course using the IP address works without fail, assuming my router is healthy. In the good old days before DNS we Unix-ers had to exchange lengthy /etc/hosts files relating IP addresses to hostnames so we could find each other easily.
Regards,
Kent