Can't connect to Moonraker after a power loss

you should have something like this:

interface eth0
static ip_address=192.168.1.231/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8

But i’m not sure how your wifi interface is called, in my sample it’s eth0, in your setup it should be different, you can try to call ‘ifconfig’ command - it should list all adapters and their addresses, you need to use correct interface name.
Also as you can see i did specify IP address as 192.168.1.231 in this config, i’m not sure that it’s free and available in your network.
You should first try to ping it and see that no device is answering, if some device replay - use other address (increase number to next one like 232, 233, …) until you will find unused.
Also i did specify 192.168.1.1 address as your router address - most probably it’s correct one, you can look up your router ip address in connection info on any network device.

I understand and can control my router’s dhcp.
What is the / at the end of the ip address for?
static ip_address=192.168.1.231/24
/24?
Does that mean either/Or?

it’s short description of a subnet address
192.168.1.231/24 is a equivalent of IP: 192.168.1.231 and SUBNET: 255.255.255.0

Also sems you need to call this command

sudo raspi-config

under the advanced options there is now an option to change the network tool used, you can switch from NetworkManager to dhcpd

So you plan to control IP via your Router DHCP binding ?

I looked into this. It seemed that the network manager is the latest. Not sure which to use.

If you are setting Static IP address in dhcpd.conf file - you need to switch to DHCPD

When everything is ready - reboot and confirm which ip your instance have

P.S. sorry, i must run, so i will stop replaying.

I was using the binding a week or so ago, but I turned it off in an attempt to fix this issue.

I am trying to set OS up for Static IP instead.

Maybe it would work better?

I use ASUS routers. The IP binding seems a bit quirky.

Maybe, but that’s easiest way to bind same ip forever to device, regardless of OS

OKAY:

I have edited my config.json file from…

This:
“instancesDB”: “moonraker”,

to This:
“instancesDB”: “browser”,

I have edited my “dhcpcd.conf” as suggested.

I still can’t connect.

Shall I select a different option in the “sudo raspi-config”?
I can choose either the network manager OR the dhcpcd…

in config.json you should just change “host” attribute to new ip address, that’s all.

Yes, you should switch to dhcpd networking for static ip and reboot.

BTW i assumed that you have single instance of mainsail and multiple moonraker machines, and you are defining static Ip for moonraker machines and editing sigle mainsail config.json file

is this correct ?

I have dedicated hosts for each machine.

Do you mean “hostname”?

I now have this:

Screenshot 2024-05-08 211906

I set up the IP binding for this device on my router for the same IP

“connection failed”… Dang it!

Oh, damn
That change many things …
I assumed you have multi instance setup combined in single mainsail, but basically you have completely independent systems.

In your case then just forget about static ip addresses, just edit each config.json in mainsail and just replace hostnames with this address 127.0.0.1

For example i did see in your screenshot a name “Delta.local” - this name most probably is present in config.json as a hostname, you shoud try to change it to 127.0.0.1

Where does the connection data get stored from previous successful connections?
You were saying that after a power loss, the IP changed so that I could no longer connect due to an inconsistency.
Can I not change that stored IP or data?
Or wipe the network data and start over without completely reinstalling?

LOL

Like this??:

image

I did the changes in the screenshot. Rebooted. Still not connecting. I may sleep on this and start fresh tomorrow.
It’s getting late here, and I’m old.
I truly appreciate all the efforts that you have contributed!

Have a great night!

  • Mat

My statement was correct, your ip addresses are changing - we did see that in log, and this can have impact, but most probably you should have different mainsail setup which is not impacted by dynamic ip.

Before we move forward i need some time to investigate docs.