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

Bullet M5 - Bad Gateway #1162

Closed
1 task done
VA2XJM opened this issue Apr 16, 2024 · 14 comments
Closed
1 task done

Bullet M5 - Bad Gateway #1162

VA2XJM opened this issue Apr 16, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@VA2XJM
Copy link
Contributor

VA2XJM commented Apr 16, 2024

Describe the bug

Bullet M5 return bad gateway when trying to access the setup page. However other pages can be accessed through direct URL.

Current Version: 20240411-8627104 Hardware Type: (ath79/tiny) ubnt (bullet-m-ar7241)

  • Does this issue still occur on the latest version? (Required)

Expected behavior

Access the setup page without error.

Screenshot

image

supportdata-VA2XJM-BulletM5-202404161123.tar.gz

@VA2XJM VA2XJM added the bug Something isn't working label Apr 16, 2024
@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

Unfortunately the log file which I really need to debug this is empty. Can you reboot, generate the Bad Gateway, and then dump the support data with as few other steps as possible? Probably the logger crashed.

@VA2XJM
Copy link
Contributor Author

VA2XJM commented Apr 16, 2024

Reboot, Login + error, Support Data.

Please note the version to latest stable (I am downgrading the unit to see if a working version is available.

supportdata-VA2XJM-BulletM5-202404161152.gz

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

Thanks.
So looks like the value "dmz_dhcp_end" is blank in /etc/config.mesh/_setup. I've seen this once before and we dont know the root cause. You'll also notice dmz_dhcp_limit is -105 which isn't correct. You can fix them by hand so they make sense - dmz_dhcp_limit = 5 and dmz_dhcp_end = 110 - and that should fix it.

@VA2XJM
Copy link
Contributor Author

VA2XJM commented Apr 16, 2024

It fixed the thing for the Bullet. Once fixed, I made an update on a GL.Inet ARM300 and faced the same problem and the solution also fixed the problem.

It would be interesting to have a check on the value and a coded "reset" to restore proper values when meeting null or negative value.

I keep that in my notes. I'll let you close the ticket if you wish to keep it for dev purpose or not.

Thank you for this rapid response.

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

Unless there's something you can tell me about what those nodes were running and how they were configured before the update, then I'lll close this. If you have others and want to do a data support dump before the upgrade just in case they have the same problem that would be good to have.

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

Reopen if we get some before and after data support info.

@aanon4 aanon4 closed this as completed Apr 16, 2024
@VA2XJM
Copy link
Contributor Author

VA2XJM commented Apr 16, 2024

Here you go, with a Bullet M2. Pre-update, first leg of the update (to 3.23.4.0), hit the error + FIX and then latest nightly.
supportdata-VA2XJM-BulletM2-202404161643.gz
supportdata-VA2XJM-BulletM2-202404161643.gz
supportdata-VA2XJM-BulletM2-202404161639.tgz.gz
supportdata-VE2ATU-Operation-BulletM2-202404161347.tar.gz

The M2 is the same setup as the M5 so node with AP activated in NAT mode.

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

Nat mode .. that seems important .. as almost no one uses it. Let me see.

@aanon4 aanon4 reopened this Apr 16, 2024
@VA2XJM
Copy link
Contributor Author

VA2XJM commented Apr 16, 2024

Since those 2 bullets are used as Wi-Fi AP for mobile devices, I went with NAT mode for the practical side of not having to think about how many devices are connected and bust the maximum number of IP available.

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

#1163

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

If you have a way to test this fix tomorrow once's it in the build, that'd be lovely.

@VA2XJM
Copy link
Contributor Author

VA2XJM commented Apr 16, 2024

Just need to know the time of the nightly build and I'll see to make tests when I am back from work.

@aanon4
Copy link
Contributor

aanon4 commented Apr 16, 2024

The nightly build completes about 1pm UTC. The next one with start with the build number 20240417-

@VA2XJM
Copy link
Contributor Author

VA2XJM commented Apr 19, 2024

Sorry for late reply. I made the tests tonight and it now works properly. Flashed the latest release, configured as NAT and then upgrade toward latest nightly. All good so far, will do the other unit and the ARM300 when off. Closing as fixed.

@VA2XJM VA2XJM closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants