Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL-AR300M seemingly dead #804

Closed
rustyb78 opened this issue Apr 24, 2023 · 13 comments
Closed

GL-AR300M seemingly dead #804

rustyb78 opened this issue Apr 24, 2023 · 13 comments

Comments

@rustyb78
Copy link

Yesterday, I logged into my nodes and updated them to the newest firmware.

I updated two AR300M devices and both are no longer able to aquire a DHCP lease from the DHCP server (which is my pfsense router).

I do have one AR300M that I did not upgrade and it works perfectly.

@rustyb78
Copy link
Author

Update:

I am able to connect a computer to the LAN side of my AR300M and can communicate with the device.

After trying Static and DHCP WAN settings, I've determined that, for some reason, there is no connection on the WAN side. This is preventing the AR300M from communicating with the internet which also means it will not connect to any tunnel servers that it previously could connect to.

I've changed the VLAN from 1, to anything else and then back to 1 (default). That doesn't work or clear the problem.

So far, this node is basically dead and is no longer useful if it will not connect on the WAN side.

@aanon4
Copy link
Contributor

aanon4 commented Apr 24, 2023

If you are able can you try the following:

  1. Log into the node.
  2. Type rm /etc/local/mesh-firewall/03-dhcp-wan-block
  3. Reboot
    And see if there's an improvement. This rule is to block the wan port acting as a DHCP WAM server (which it isnt - its a client) but I wonder if its behaving incorrectly on this device.

@aanon4
Copy link
Contributor

aanon4 commented Apr 24, 2023

Another thing to check, as noted #802, the MAC address on the WAN port may have changed with this release. Please check your pfsense configuration in case a new mac address is problematic.

@gerner
Copy link

gerner commented Apr 25, 2023

I'm also having trouble getting my GL-AR300M16 to connect to my home router via the WAN port. I can connect to my laptop via the LAN port, I can see it on another mesh node via RF. I've gotten it to connect to my home wifi by disabling mesh RF. But the WAN port does not seem to request an ip address via DHCP. I've also checked this by running dnsmasq on my laptop and connecting my laptop via the WAN port and observing nothing in the logs, no DHCP in a wireshark capture.

I tried adding a static ip address in the same range my router would assign, with the router as gateway, no connectivity.

I tried the latest nightly build, no difference.

I tried the suggested workaround of removing the /etc/local/mesh-firewall/03-dhcp-wan-block and that did not seem to make any difference. I'm happy to provide any more debug info or try any other workaround.

@aanon4
Copy link
Contributor

aanon4 commented Apr 25, 2023

Finally found the bug:
#806

@gerner
Copy link

gerner commented Apr 25, 2023

I did notice that discover messages were going out on the LAN port with all the options from udhcpc. Hope we get this in a nightly build soon :)

Thanks!

@aanon4
Copy link
Contributor

aanon4 commented Apr 25, 2023

It'll go in tonight.

@gerner
Copy link

gerner commented Apr 26, 2023

I picked up build aredn-2596-deeacc2-ath79-generic-glinet_gl-ar300m16-squashfs-sysupgrade.bin which I think is last night's build. It didn't come up on the download AREDN firmware form, but I got it by messing with the firmware download url.

When I flash my node it fails to come up completely. If I do connect to it (which seemingly I can, it grabs 192.168.1.1 on the LAN port and gives my computer an ip address), it looks like it's stuck on the initial setup, trying to apply saved settings. I can get to the setup screen, but if I try to save them I get the following error message:

/usr/bin/lua: /usr/local/bin/node-setup:405: attempt to concatenate field '?' (a nil value) stack traceback: /usr/local/bin/node-setup:405: in main chunk [C]: ?

It looks like yesterday there might have been a fairly substantial reorganization of the code. Is it possible there's an unrelated bug that blocks this build?

@aanon4
Copy link
Contributor

aanon4 commented Apr 26, 2023

Unfortunately there was a syntax error in the build last night. We're re-fixing and testing at the moment.

@gerner
Copy link

gerner commented Apr 26, 2023

I'm happy to test :) thanks for the response (and all the hard work to maintain AREDN!)

@aanon4
Copy link
Contributor

aanon4 commented Apr 26, 2023

Let's try that again:
#808

@gerner
Copy link

gerner commented Apr 27, 2023

I just loaded the new firmware aredn-2603-e148f10-ath79-generic-glinet_gl-ar300m16-squashfs-sysupgrade.bin to my ar300m16 and it appears to work! I'm not connected to my local mesh (just one other node) and to my home wifi. And I'm able to connect directly to the node from my computer via the LAN port.

It's pretty amazing that my config survived all this process too. Thanks a million.

Now it's time to work on connecting to the rest of the mesh in my neighborhood!

@aanon4
Copy link
Contributor

aanon4 commented May 30, 2023

Appears to be fixed.

@aanon4 aanon4 closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants