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

v2.3.0 boot freeze on NTP sync failure #105

Closed
LouPaloma opened this issue Sep 15, 2019 · 11 comments
Closed

v2.3.0 boot freeze on NTP sync failure #105

LouPaloma opened this issue Sep 15, 2019 · 11 comments
Labels

Comments

@LouPaloma
Copy link

Hooking up to a serial port monitor I see the boot messages:

Konnected firmware 2.3.0 NodeMCU 2.2.0.0 build 20190805 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9) 
Heap: 41744 Initializing Konnected (dc4f2218ef45) 
Heap: 40680 Application Version: 2.3.0 
Heap: 39528 Connecting to Wifi.. > 
Heap: 42248 Wifi connected with IP: 172.16.x.x Gateway: 172.16.x.x
Heap: 40984 Time sync failed! 

There are no further messages and the device does not respond to the status endpoint.

As you can see the WIFI connection is set and the information is verified correct via nmap.

NOTE: MY SECURITY SYSTEM IS ON A PRIVATE NETWORK AND DOES NOT, BY_DESIGN, HAVE INTERNET ACCESS. I do have an NTP server on the network as well, but the device doesn't have that information configured. Time sync failure should not prohibit firmware boot, yes?

Providing Internet access is not an option.

@heythisisnate
Copy link
Contributor

I confirmed that this is an issue. Thanks for reporting this @LouPaloma

In 2.3.0 I added a step to the boot sequence to sync the current time via NTP.
It will first ask the gateway's IP (typically your router) for the current time, and then fall back to time.google.com and pool.ntp.org. If all three of these fail, the device fails to boot.

This is actually a fairly critical bug because if there's a internet outage and the device reboots, it may get stuck in this failed state and never recover.

@heythisisnate
Copy link
Contributor

This is fixed in release 2.3.1

@LouPaloma
Copy link
Author

Confirmed fix is working.

@K-MTG
Copy link

K-MTG commented Sep 21, 2019

Is it possible to preform an OTA update? Or will it be available soon?

@eduardojacr
Copy link

eduardojacr commented Sep 21, 2019 via email

@heythisisnate
Copy link
Contributor

Yes, if you've already manually flashed 2.3.0, you can OTA update to the 2.3.1 update containing this fix via the new Konnected mobile app.

It's available for Android here: https://play.google.com/store/apps/details?id=io.konnected.konnected

An iOS version should be hitting the App Store next week (pending approval by Apple).

@KScottTerry
Copy link

Hi Nate, the OTA update was flawless and easy, (I like easy.) I watched the Nodes blue light blink a few times and after the suggested minute I refreshed. I checked and noticed the software updated to 2.3.1 but no numbers changed in the firmware; 2.3.0 . Please pardon my confusion, but I thought I read [somewhere] this was a firmware update, am I right? Just confirming the update was a success.
Screenshot_20190929-070107_Konnected (3)

@heythisisnate
Copy link
Contributor

heythisisnate commented Sep 29, 2019 via email

@dsaul560
Copy link

dsaul560 commented Oct 4, 2019

I can't find the iOS version of the app. Is that out yet?
When is the MQTT update coming? Can't wait! lol
Thanks!

@Bwiestenberg
Copy link

After flashing to the latest firmware and file system, the nodemcu chip is unresponsive. Instead of a flashing blue LED and the wifi signal showing up when searched for, I now get a blue led that flashes once then is solid on the whole time. I've downloaded the firmware and filesystem over to eliminate errors, and have reflashed the chips multiple times, with the same results. I selected erase all data when re flashing as well.

@heythisisnate
Copy link
Contributor

This is not a support forum. Issues unrelated to the topic of this bug will not be addressed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants