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

Flashapp and OTA Update fails #359

Open
gluap opened this issue Apr 24, 2024 · 1 comment
Open

Flashapp and OTA Update fails #359

gluap opened this issue Apr 24, 2024 · 1 comment

Comments

@gluap
Copy link
Contributor

gluap commented Apr 24, 2024

Github has changed their certificate change and because of that Firmwares up to and including 19.x cannot update via internet (also the flashapp can't be updated via internet).

Potential workarounds:

Log from failed attempt using firmware 19.x

[461704][E][configServer.cpp:2055] extractParameters(): Extracting parameters
[461706][E][configServer.cpp:2069] extractParameters(): Http Parameter downloadUrl = https://github.com/openbikesensor/OpenBikeSensorFlash/releases/download/v0.1.22/flash.bin
[461716][E][configServer.cpp:2069] extractParameters(): Http Parameter version = Update to v0.1.22
[461724][E][configServer.cpp:2069] extractParameters(): Http Parameter upload = 
[461731][I][configServer.cpp:1678] handleFlashUpdateUrlAction(): Flash App Url is 'https://github.com/openbikesensor/OpenBikeSensorFlash/releases/download/v0.1.22/flash.bin'
[463782][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():278]: (-9984) X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
[463785][E][WiFiClientSecure.cpp:135] connect(): start_ssl_client: -9984
[463796][W][HTTPClient.cpp:1469] returnError(): error(-1): connection refused
[463799][I][Firmware.cpp:71] downloadToFlash(): Opening https://github.com/openbikesensor/OpenBikeSensorFlash/releases/download/v0.1.22/flash.bin got -1.
[463812][I][Firmware.cpp:73] downloadToFlash(): http size: -1. 
[463818][I][Firmware.cpp:74] downloadToFlash(): Will access Stream:, free heap 128kb
[463825][E][Firmware.cpp:91] downloadToFlash(): Got http status: -1
[HTTPS:I] New connection. Socket FID=51
[HTTPS:I] Connection closed. Socket FID=50
[HTTPS:I] Request: GET /about (FID=51)
[464113][W][gps.cpp:356] sendAndWaitForAck(): Retry to send 0x2406 after 200ms.
[464314][W][gps.cpp:356] sendAndWaitForAck(): Retry to send 0x2406 after 200ms.
[464314][E][gps.cpp:361] sendAndWaitForAck(): Failed to send cfg. 0x2406 NAK: 0 after 401ms
[464518][W][gps.cpp:356] sendAndWaitForAck(): Retry to send 0x3406 after 200ms.
[464718][W][gps.cpp:356] sendAndWaitForAck(): Retry to send 0x3406 after 200ms.
[464718][E][gps.cpp:361] sendAndWaitForAck(): Failed to send cfg. 0x3406 NAK: 0 after 400ms
[HTTPS:I] Connection closed. Socket FID=51
@amandel
Copy link
Member

amandel commented Sep 14, 2024

#365 should fix this once and forever. There is also room for improvement within the error reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants