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

Can't save settings. #530

Open
mpisek opened this issue Sep 25, 2019 · 17 comments
Open

Can't save settings. #530

mpisek opened this issue Sep 25, 2019 · 17 comments

Comments

@mpisek
Copy link

mpisek commented Sep 25, 2019

So, I'm using NodeMCU for more than 1 year now. But in last month it stopped working. I re-flashed it with 1.10.3 but now I can't save settings. When I refresh my browser or reboot the device the settings are gone. Wrote-Over all 4MB with blank 4x1MB file and re-flashed with 1.10.0 still the same story. It saves the initial wifi config (SSID and password) but that's about all. After reboot I can open the WebGUI but settings can't be saved. What am I missing?

Oh yea. I can controll the lights without any problem in the UI itself.

@sidoh
Copy link
Owner

sidoh commented Sep 25, 2019

Hi, please check serial output when saving settings. What version were you using when it stopped working?

@mpisek
Copy link
Author

mpisek commented Sep 25, 2019

Last working for me was 1.10.0-rc.3 (nodemcuv2).
When I open the web GUI I get serial output:
Unhandled websocket event: 10
Opening settings file failed

@sidoh
Copy link
Owner

sidoh commented Sep 26, 2019

If you revert back to 1.10.0-rc.3, everything works? Given the changelog, that could basically only mean something in the toolchain silently changed.

@mpisek
Copy link
Author

mpisek commented Sep 28, 2019

No. Same thing. Nothing works even on 1.10.0-rc.3 not even on earlier versions. I ordered a new NodeMCU but I have the same problem on the new hardware. Now I'm extra confuzed.

@sidoh
Copy link
Owner

sidoh commented Sep 28, 2019

can you paste the output of /about?

@sidoh
Copy link
Owner

sidoh commented Sep 28, 2019

i'm confused too, that makes no sense to me :S

@sidoh
Copy link
Owner

sidoh commented Sep 28, 2019

definitely try running esptool.py erase_flash before flashing the firmware.

@mpisek
Copy link
Author

mpisek commented Sep 28, 2019

Just did that.

@mpisek
Copy link
Author

mpisek commented Sep 28, 2019

▒▒5▒▒▒Opening settings file failed
*WM: Adding parameter
*WM: staticIP
*WM: Adding parameter
*WM: netmask
*WM: Adding parameter
*WM: gateway
*WM:
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Connection result:
*WM: 3
*WM: IP Address:
*WM: 192.168.125.107
Wifi connected succesfully

Setup complete (version 1.10.3)

@mpisek
Copy link
Author

mpisek commented Sep 28, 2019

Let me try with https://www.espressif.com/en/support/download/other-tools , different USB cable etc.

@mpisek
Copy link
Author

mpisek commented Sep 28, 2019

Hmm, it didn't work with expressif - Flash Download Tools (ESP8266 & ESP32) either. What did work was nodemcu-flasher. I don't get it. But hey it works :)

@sidoh
Copy link
Owner

sidoh commented Oct 5, 2019

That's really confusing. There are other users reporting similar problems, so I'm pretty sure there's something funky going on. This is helpful.

Can you paste a screenshot of the settings you used to flash with nodemcu-flasher? Did you flash it with a pre-compiled binary?

@mpisek
Copy link
Author

mpisek commented Oct 7, 2019

I used precompiled library yes. Well with (Flash Download Tools (ESP8266 & ESP32)) I tryed allkind of settings and nothing worked really. With nodemcu-flasher default settings worked.

@jkhunter
Copy link

Pleas try another browser. I have same issue with Waterfox 56.2.14 (64-bit) on linux. I open the webui in chrome Version 77.0.3865.90 (Official Build) (64-bit) and saving worked for me.

@jflemieux
Copy link

Same workaround for me. Restoring does not work on Firefox.

On Chrome after the Restore, I have to re-access /settings to complete the restore.

@jellewie
Copy link

jellewie commented Jan 7, 2020

@mpisek you could try one of the 3 options I mentioned in #584 as I did also get the "Opening settings file failed" error when using bin uploaders if the Flash size was not set properly. But managed to get it working in the end.

Also use "Shift+F5" on the ESP webpage, this is a force clean reload (it won't use old bad stuff from the browser memory), but this cant be the cause of the error since "Opening settings file failed" is an internal ESP error that it could not get the data from flash

@didi-home
Copy link

I've just assembled my hub this evening and also experienced the issue that settings could not be saved.
However, for me the PUT request for saving always returned "success" but the GET /settings ran into connection reset.

I tried flashing 2x with Tasmotizer (been using that a lot lately for ES8266 devices without any problems) and I had this issue both times. Finally decided to download nodemcu-flasher (https://raw.githubusercontent.com/nodemcu/nodemcu-flasher/master/Win64/Release/ESP8266Flasher.exe) and now everything works!

So, yes, there is something fishy in the flash process - @sidoh maybe you can put nodemcu-flasher into the README.md as recommended tool?

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

No branches or pull requests

6 participants