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 load the web interface with 3.6.5_dev_17 #1656

Closed
2 tasks
sosnek1 opened this issue Mar 11, 2024 · 8 comments
Closed
2 tasks

Can't load the web interface with 3.6.5_dev_17 #1656

sosnek1 opened this issue Mar 11, 2024 · 8 comments
Labels
bug Something isn't working
Milestone

Comments

@sosnek1
Copy link

sosnek1 commented Mar 11, 2024

PROBLEM DESCRIPTION

Can't load the web interface after upgrading to 3.6.5_dev_17 - page http://ems-esp/ is returning empty result - so have no options to downgrade the firmware.

Integration with HA via MQTT is working properly

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  System information output here:

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

@proddy
Copy link
Contributor

proddy commented Mar 11, 2024

Thanks for reporting; I'll take a look. probably the redirect to index.html in that last update I did

@K3vb3rt
Copy link

K3vb3rt commented Mar 12, 2024

Same problem on my side. Not able to load the interface, but MQTT works as expected.

Any manual possibility to get to the interface to do a downgrade?

@MichaelDvP
Copy link
Contributor

I can confirm that the web navigation is broken. API/mqtt still working. @proddy You should remove the bin, otherwise more people run into this issue.

@K3vb3rt :For uploading firmware see https://emsesp.github.io/docs/Getting-Started/#uploading-the-firmware
If OTA is enabled, (you can check with http://ems-esp.local/api/system) you can use espota. otherwise you'll need usb flashing.

@proddy For such a case it would be nice to go back to old version by booting to other partition (if not empty). We can add a option to telnet restart command restart and restart old and/or use button long-pressed. But i think telnet is ok, we can use serial console if wifi is also broken.

@proddy
Copy link
Contributor

proddy commented Mar 12, 2024

I already removed the release and will fix the broken build this week when I'm home. A fallback to the previous build on the other partition is good - how could we easily add this? Perhaps a script?

@MichaelDvP
Copy link
Contributor

I thought of a simple extension to the restart command, like:

void System::system_restart(const bool other_partition) {
    if (other_partition) {
        LOG_INFO("Restarting EMS-ESP to other partition...");
    } else {
        LOG_INFO("Restarting EMS-ESP...");
    }
    Shell::loop_all();
    delay(1000); // wait a second
#ifndef EMSESP_STANDALONE
    if (other_partition) {
        const esp_partition_t * partition = esp_ota_get_next_update_partition(NULL);
        if (partition) {
            uint64_t buffer;
            esp_partition_read(partition, 0, &buffer, 8);
            if (buffer != 0xFFFFFFFFFFFFFFFF) { // partition not empty
                esp_ota_set_boot_partition(partition);
            }
        }
    }
    ESP.restart();
#endif
}

Works already in restart_service for the boot to loader (with find of factory partiton)
I'll make a PR.

@K3vb3rt
Copy link

K3vb3rt commented Mar 12, 2024

I can confirm that the web navigation is broken. API/mqtt still working. @proddy You should remove the bin, otherwise more people run into this issue.

@K3vb3rt :For uploading firmware see https://emsesp.github.io/docs/Getting-Started/#uploading-the-firmware If OTA is enabled, (you can check with http://ems-esp.local/api/system) you can use espota. otherwise you'll need usb flashing.

I can confirm that the web navigation is broken. API/mqtt still working. @proddy You should remove the bin, otherwise more people run into this issue.

@K3vb3rt :For uploading firmware see https://emsesp.github.io/docs/Getting-Started/#uploading-the-firmware If OTA is enabled, (you can check with http://ems-esp.local/api/system) you can use espota. otherwise you'll need usb flashing.

@proddy For such a case it would be nice to go back to old version by booting to other partition (if not empty). We can add a option to telnet restart command restart and restart old and/or use button long-pressed. But i think telnet is ok, we can use serial console if wifi is also broken.

Thank you so much! Downgraded via USB with ESP-Tool to latest official.

proddy added a commit to proddy/EMS-ESP32 that referenced this issue Mar 12, 2024
@proddy
Copy link
Contributor

proddy commented Mar 12, 2024

should be fixed now, sorry about that. I should have tested better. Good job you had an older version of the firmware. I'll create a new issue for the fall-back partition.

@proddy proddy added the bug Something isn't working label Mar 12, 2024
@proddy proddy added this to the v3.6.5 milestone Mar 12, 2024
proddy added a commit that referenced this issue Mar 12, 2024
@proddy proddy closed this as completed Mar 12, 2024
@proddy
Copy link
Contributor

proddy commented Mar 13, 2024

IMPORTANT

If you were unlucky enough to grab the 3.6.5-dev17 build in the last 24hrs, it had a horrible bug preventing the Web UI from loading in the browser. Luckily it's now been fixed., but you're left with a version of EMS-ESP you can't easily upgrade.

These are the options to get it back operational:

following any of these two options above will not erase your settings.

My sincere apologies for any pain caused. It was a rush job on my side and I should be taken more time to thoroughly test.

Paul

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

4 participants