blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.39k forks source link

Failed to flash the board through the OTA using a local server. #362

Closed Refenz closed 6 years ago

Refenz commented 7 years ago

https://github.com/blynkkk/blynk-server/issues/719 Last version of the server and library. 1)Run local server: java -jar server.jar -dataFolder /path 2)Connect SF Blynk Board 3)Use dynamic provisioning to connect board 4)Change sketch and create binary file 5)Use: curl -v -F file=@Template_ESP82662.ino.nodemcu.bin --insecure -u admin@blynk.cc:admin https://localhost:9443/admin/ota/start AR: After reboot, the board tries to use the new firmware. After the error, it reboots and the process repeats. A binary file is available for downloading via the browser.

[5467] RUNNING => OTA_UPGRADE
[5968] Firmware update URL: http://192.168.113.2:8080/static/ota/FUp_6165330441115044621_upload.bin
[12049] Firmware update failed (error -1): HTTP error: connection refused
[12050] OTA_UPGRADE => ERROR
[22057] Restarting after error.

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
[863] 
[863] Hardware v1.0.0

P.S. the same flow works on a QA server

doom369 commented 7 years ago

@vshymanskyy does library supports :8080 port part of request uri?

vshymanskyy commented 7 years ago

it should support specifying port - but to verify it, we need to test a case with local server, with default port.

vshymanskyy commented 7 years ago

Basically, back that time when it was not supported by the server, i was performing OTA from local machine (and non-default port), and it worked perfectly. Most probably it's not a bug.

vshymanskyy commented 7 years ago

@Refenz what is IP address of the device itself?

vshymanskyy commented 7 years ago

@Refenz is issue resolved?

Refenz commented 6 years ago

@vshymanskyy Yes. All is fine. Thanks!