Skip to content

[ESP32] Unable to upgrade from 0.14.4 to any 0.15.x releases #4369

Closed

Description

@jsloyer

What happened?

I am unable to update to any 15.x releases for one of my ESP32’s. I tried rc1, b3, and b7. All fail.

IMG_2982
IMG_2985
IMG_2986
IMG_2981

To Reproduce Bug

I’ve only had this on a single ESP32. All of my other ESP’s upgraded fine.

Expected Behavior

To be able to upgrade to 15.x.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.14.4 (build 2405180)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. DedeHai commented on Dec 9, 2024

    @DedeHai
    Collaborator

    maybe related to tasmota bootloader: #4241

  2. netmindz commented on Dec 9, 2024

    @netmindz
    Member

    Please confirm @jsloyer exactly how and where you did your initial install of WLED onto this device from (not how you installed any previous updates)

  3. jsloyer commented on Dec 9, 2024

    @jsloyer
    ContributorAuthor

    I'm actually not sure. The ESP32 came from quindoor, https://quinled.info/quinled-esp32/.

    I have used home assistant to do updates though.

  4. blazoncek commented on Dec 10, 2024

    @blazoncek
    Contributor

    This is related to inadequate application partitions. Your file system should read 983kB when correct partitions are in place.
    You will need to flash using USB connection but doing so will erase all file system content (configuration and presets) so back up before flashing.

  5. added
    hardware
    configuration
    and removed on Dec 10, 2024
  6. misosec commented on Dec 11, 2024

    @misosec

    I have the same problem with Quinled ESP32 updated via Homeassistant. My file system size is the same: 20/1707 kB.
    HA doesn't update is either - updating just stops.

  7. chrisella commented on Dec 11, 2024

    @chrisella

    I'm experiencing the same problem +1
    I've tried updating directly with the various downloaded binaries AND through HA, neither works.

  8. DedeHai commented on Dec 11, 2024

    @DedeHai
    Collaborator

    @misosec @chrisella the answer was already given by blazoncek. your file system MUST BE 983kB (see info tab in WLED) or you will not be able to do over the air update.

  9. chrisella commented on Dec 11, 2024

    @chrisella

    Ah thanks for the heads up, though that's awkward then, particularly for several of my units that are "deployed" in positions that make that not easily possible.
    Guess this is the end of the road for me with WLED then until I possibly get a chance to physically pull them out 😢

  10. blazoncek commented on Dec 11, 2024

    @blazoncek
    Contributor

    @chrisella you can always try to custom compile and exclude certain features that you do not need. This may make binary smaller and it will fit into existing partitions.

  11. added
    workaround
    on Dec 11, 2024
  12. softhack007 commented on Dec 11, 2024

    @softhack007
    Member

    I have the same problem with Quinled ESP32 updated via Homeassistant. My file system size is the same: 20/1707 kB.
    HA doesn't update is either - updating just stops.

    @intermittech (Quindor) Can you check if quinled boards still ship with the (very old) 1.5MB LittleFS partition scheme? Or is this user having a possibly very old install?

    FYI, we have changed to a new partition scheme - 1MB LitleFS - already 3 years ago (WLED 0.13.0).

  13. 8 remaining items

  14. intermittech commented on Dec 12, 2024

    @intermittech
    Contributor

    I have the same problem with Quinled ESP32 updated via Homeassistant. My file system size is the same: 20/1707 kB.
    HA doesn't update is either - updating just stops.

    @intermittech (Quindor) Can you check if quinled boards still ship with the (very old) 1.5MB LittleFS partition scheme? Or is this user having a possibly very old install?

    FYI, we have changed to a new partition scheme - 1MB LitleFS - already 3 years ago (WLED 0.13.0).

    We've been flashing WLED v0.14.x for quite a while now so that should be fine in regards to partition size. We also offer https://install.quinled.info which has also had that version for quite a while.

    It is however possible people have had these boards since the v0.13.x days and never updated other then doing OTA. My boards all come with USB-C partly because of this reason, although I get it's sometimes inconvenient when it's part of a show right now!

    I will doublecheck though to make sure boards aren't going out with a too old firmware, maybe update the pre-installed version to v0.15 now that it's been released.

  15. softplus commented on Dec 13, 2024

    @softplus

    Is there a way to change the partition without a USB connection? I set up 2 ESP32 modules a few years ago, updates until 14.4 worked fine, they're installed in pretty inaccessible places. The generic "update failed" was a bit annoying to figure out, but I realize "back-updating" 14.4 to check for an incompatible setup required for the next release is ~impossible :).

  16. blazoncek commented on Dec 13, 2024

    @blazoncek
    Contributor

    Short answer: No.

    Long one: Technically possible but will require specially crafted software that would copy itself out of regular application partitions. Then update partition table, format partitions and start OTA download process.

  17. chiefymuc commented on Dec 13, 2024

    @chiefymuc

    Someone apparently figured it out here:
    https://www.reddit.com/r/esp32/comments/18dtwip/changing_the_partitiontable_over_the_air/

    But I am not smart enough to understand without a step-by-step guide... But would be highly interested as my DigUno is also hidden.

  18. blazoncek commented on Dec 13, 2024

    @blazoncek
    Contributor

    @chiefymuc I wrote it is technically possible. But it is not for the faint-hearted.

  19. softhack007 commented on Dec 15, 2024

    @softhack007
    Member

    @chiefymuc I just found the same reddit post.

    If you cannot access the esp32 to update via USB, I would not recommend trying the hack described by the linked articles. If anything goes wrong, your device will be in a bootloop (not able to start wled) and you must take it down from the roof to your desk, in order to attach it to a computer by USB, and perform a fresh re-install (settings, presets and wifi password will be overwritten / lost).

    https://gist.github.com/floitsch/ed2530caa613581057d8998dee0a911f

    The author of the hack says "it's like replacing the jet engine while you are flying it". I think that's a serious warning.

  20. softplus commented on Dec 15, 2024

    @softplus

    I created a firmware to fix this for me. You basically OTA to this, have the partition table updated (and hope, I guess), then you can OTA to WLED 0.15.0. https://github.com/softplus/Esp32Repartition

    I've tried this with a test device, and my two WLED devices that were stuck because of the partition table sizes, but I can't promise that it'll work everywhere, obviously. Also, if something goes weird with your device at the wrong time (there's a really short window), it can leave the partition table broken.

  21. rhinodavid commented on Dec 16, 2024

    @rhinodavid

    I created a firmware to fix this for me. You basically OTA to this, have the partition table updated (and hope, I guess), then you can OTA to WLED 0.15.0. https://github.com/softplus/Esp32Repartition

    Works for me on a DigUno that initially had v13 installed. Legend.

  22. chrisella commented on Dec 16, 2024

    @chrisella

    I created a firmware to fix this for me. You basically OTA to this, have the partition table updated (and hope, I guess), then you can OTA to WLED 0.15.0. softplus/Esp32Repartition

    As a warning, this unfortunately didn't work for me, luckily I tried it first on one of my "easier to access (still PITA)" units, so now that it's unresponsive I'll have to go about the harder route. This could in all likelihood be due to my board or config or something else, but just be warned that path is still full of possible nastiness.

    Update
    That unit was recoverable by using https://install.wled.me/ after just pulling it out and connecting via USB.

  23. blazoncek commented on Dec 16, 2024

    @blazoncek
    Contributor

    One (possibly crucial) note when updating partitions from previous version using OTA:
    When an ESP device was 1st flashed (or last time it was flashed using serial connection) it was flashed with bootloader and app0 binary. Bootloaders change! What was originally flashed may no longer work (well) with recent WLED firmware as some features may require newer bootloader features.
    I just want you to be aware of the possibilities.

  24. nmbgeek commented on Dec 22, 2024

    @nmbgeek

    I created a firmware to fix this for me. You basically OTA to this, have the partition table updated (and hope, I guess), then you can OTA to WLED 0.15.0. https://github.com/softplus/Esp32Repartition

    I've tried this with a test device, and my two WLED devices that were stuck because of the partition table sizes, but I can't promise that it'll work everywhere, obviously. Also, if something goes weird with your device at the wrong time (there's a really short window), it can leave the partition table broken.

    This worked for me! Thank you @softplus

  25. netmindz commented on Dec 23, 2024

    @netmindz
    Member

    Thanks for sharing that @softplus

    Both the WLED (AC) and WLED-MM teams have both been struggling with image size Vs the current partition table out in the wild that allocates quite a large amount of space for the file system that only has the config and presets files in most cases.

    We have wanted to reduce the size of the filesystem to give more space to the app, perhaps your approach of using an intermediate specialist bin might be something we can use for that

  26. chatziko commented on Apr 15, 2025

    @chatziko

    @softplus : just wanted to say a big thanks for your Esp32Repartition tool, it worked like a charm.

    Fun story: after running the tool and flashing WLED 0.15 I was waiting for WLED-AP to appear to restore my config. But it didn't, so I got dissapointed and started preparing ladders for USB flashing. Only to realize that my WLED configuration was actually preserved by the partition upgrade for some reason, so the upgraded WLED just happily connected to my wifi and I was ready to go 😄

  27. vaderag commented on Nov 5, 2025

    @vaderag

    Okay - so landed here as (now it's winter) my WLED is starting to be used again...
    I am on 14.4 and similarly to those here I cannot update to 0.15

    My questions are

    1. If the WLED is not accessible is the repartition tool above safe?
    2. Failing that, it seems reflashing and re-setting up via USB... which is definitely not going to be easy for me so...
    3. Is there any reason not to stay on 14.4?

    I guess the other question is why all this faff - what's the advantage of changing the file system?! (saw this above)

  28. JHarding86 commented on Jan 19, 2026

    @JHarding86

    @softplus You're a hero. Worked like a charm on my Quinled board. Configuration preserved throughout the update process. Wonderful! Thank you.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationhardwareworkaround

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions