Skip to content

2.1.0-rc1: OTA error 4 when uploading SPIFFS on busy device #1450

Closed
@andig

Description

@andig

I've got a neat little sketch that does data collection and pushing to iot server. User interface is served from embedded webserver, loads of ajax calls from browser to device.

I'm using OTA via IP triggered from IDE. I've seen that OTA update reproducibly fails if the UI is open in the browser (i.e. connecting to esp via HTTP calls):

[webserver] uri: /api/plugins args: 0
[begin] Update SPIFFS.
sleep disable
[begin] _startAddress:     0x00300000 (3145728)
[begin] _currentAddress:   0x00300000 (3145728)
[begin] _size:             0x000FB000 (1028096)
[core] OTA Start
pm open,type:0 0
LmacRxBlk:1
... more of these
LmacRxBlk:1
state: 5 -> 2 (2c0)
rm 0
pm close 7
premature end: res:0, pos:946176/1028096
[core] OTA Error [4]
ERROR[0]: No Error
LmacRxBlk:1
reconnect
state: 2 -> 0 (0)
f r-1, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt 
LmacRxBlk:1
LmacRxBlk:1
LmacRxBlk:1
[webserver] uri: /api/status args: 0

It seems as if the network stack (?) does have problems with multiple connections. Any ideas? Free heap is >30k when OTA starts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions