luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
762 stars 305 forks source link

[BUG] Unable to connect after loading incorrect "index.tar.gz" #107

Closed marciot closed 4 years ago

marciot commented 4 years ago

Describe the bug I upgraded ESP3D to version 3.0, but accidentally uploaded the "index.tar.gz" for 2.1. Now when I try to connect, I get a dialog box saying:

"Connection failed! Is your FW correct?"

It seems like this dialog box should have an option to re-upload the "index.tar.gz" in the case in which it gets corrupted.

I tried to reflash the FW, hoping that it would blow away the file system, but this seems to not have happened. Until I can find a way to erase the filesystem, I do not know how to fix this problem.

To Reproduce Steps to reproduce the behavior:

  1. Install 3.0 ESP 3D
  2. Install "index.tar.gz" for 2.1
  3. Try to connect

Expected behavior It should give you an option to re-upload the "index.html.gz"

Screenshots If applicable, add screenshots to help explain your problem.

ESP3D Firmware: (please complete the following information)

Target Firmware: (please complete the following information)

Board used (please complete the following information):

Browser used (please complete the following information):

luc-github commented 4 years ago

WebUI and FW need to match they are not compatible accross version 2.X vs 3.X use the maintenance page : http://<yourIP>?forcefallback=yes

image

marciot commented 4 years ago

WebUI and FW need to match they are not compatible accross version 2.X vs 3.X use the maintenance page : http://<yourIP>?forcefallback=yes

@luc-github: This fallback mode is perfect, but it won't help unless you know about it. May I suggest a simple hyperlink on the "Connection failed!" dialog box? Something like:

<a href="?forcefallback=yes">Failsafe mode</a>

luc-github commented 4 years ago

well it is documented - it is in readme and the only screenshot of 2.1 : https://github.com/luc-github/ESP3D but no one read I know that.... so adding such link may also be confusing to user as they won't understand the purpose of it ... because connection failed can be caused by other reason than invalid index.html.gz

I prefer to keep UI simple for the moment - but it may change in future

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.