-
-
Notifications
You must be signed in to change notification settings - Fork 456
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftopic: package-managementRelated to the packaging and managing of the platform/librariesRelated to the packaging and managing of the platform/librariestype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the problem
Installing a platform that requires the download of large files fails:
SiliconLabs:silabs@3.0.0 context deadline exceeded
Error during install: context deadline exceeded
The failure no longer occurs after I increase the value of the network.connection_timeout configuration key from its default of 60s:
arduino-cli config set network.connection_timeout 240s
To reproduce
Install the SiliconLabs:silabs platform on a machine with a slower Internet connection:
arduino-cli core install SiliconLabs:silabs
or:
arduino-cli core install esp32:esp32 --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
Expected behavior
The network.connection_timeout configuration key has a default value that does not result in spurious cancellations of downloads.
Reasons:
- CI/CD systems work by default configs and
- out of the box usability for beginners
Arduino CLI version
1.3.1
Operating system
Linux
Operating system version
Ubuntu WSL
Additional context
For Arduino IDE users, the error message has a slightly different format from the one printed by the arduino-cli core install command:
Failed to install platform: 'SiliconLabs:silabs@3.0.0'.
Error: 4 DEADLINE_EXCEEDED: net/http: request canceled (Client.Timeout or context cancellation while reading body)
Additional reports
- Consistent
Client.Timeout or context cancellation while reading bodyerror when installing a core with1.2.2#2899 - Consistent
Client.Timeout or context cancellation while reading bodyerror when installing a core with1.2.2#2899 (comment) - Consistent
Client.Timeout or context cancellation while reading bodyerror when installing a core with1.2.2#2899 (comment) - Consistent
Client.Timeout or context cancellation while reading bodyerror when installing a core with1.2.2#2899 (comment) - Consistent
Client.Timeout or context cancellation while reading bodyerror when installing a core with1.2.2#2899 (comment) - Consistent
Client.Timeout or context cancellation while reading bodyerror when installing a core with1.2.2#2899 (comment) - Error: 4 DEADLINE_EXCEEDED when trying to install board software #2944
- Error: 4 DEADLINE_EXCEEDED when trying to install board software #2944 (comment)
- Default value for
network.connection_timeoutcauses spurious failures #3013 (comment) - Default value for
network.connection_timeoutcauses spurious failures #3013 (comment) - Arduino IDE 2.3.7 is aborting on ESP32 board update arduino-ide#2845
- Arduino IDE 2.3.7 no permite instalar el core ESP32 desde cero (ESP8266 funciona correctamente) arduino-ide#2847
- Cannot intall board packages: Error 4 DEADLINE_EXCEEDED: net/http: request canceled. arduino-ide#2849
- Arduino IDE 2.3.7 fails to install ESP32 Board Manager arduino-ide#2852
- Increase default IDE board package download timeout to reduce user installation headache arduino-ide#2854 (comment)
- Serial Monitor tab open prevents 5.4.4 from being installed earlephilhower/arduino-pico#3284
- The new release falls in install in Arduino IDE version 2.3.7 espressif/arduino-esp32#12179
- The new release falls in install in Arduino IDE version 2.3.7 espressif/arduino-esp32#12179 (comment)
- Unable to Install or Upgrade 3.3.5 via Arduino IDE espressif/arduino-esp32#12161
- Unable to Install or Upgrade 3.3.5 via Arduino IDE espressif/arduino-esp32#12161 (comment)
- Unable to Install or Upgrade 3.3.5 via Arduino IDE espressif/arduino-esp32#12161 (comment)
- Unable to Install or Upgrade 3.3.5 via Arduino IDE espressif/arduino-esp32#12161 (comment)
- Unable to Install or Upgrade 3.3.5 via Arduino IDE espressif/arduino-esp32#12161 (comment)
- Unable to Install or Upgrade 3.3.5 via Arduino IDE espressif/arduino-esp32#12161 (comment)
- Downloading Core Lib for ESP32 issue (IDFGH-17054) espressif/arduino-esp32#12212
- Failed to install platform: 'WCH:ch32v:25.12.23'. Error: 4 DEADLINE_EXCEEDED openwch/arduino_core_ch32#236
- Timeout fires too quickly while downloading esp32-arduino-libs thelastoutpostworkshop/arduino-maker-workshop#94
- https://forum.arduino.cc/t/error-during-install-context-deadline-exceeded/1384509
- https://forum.arduino.cc/t/trouble-updating-lvgl/1386928/1
- https://forum.arduino.cc/t/trouble-updating-lvgl/1386928/5
- https://forum.arduino.cc/t/installation-fail/1420673
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/1
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/11
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/14
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/15
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/18
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/25
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/27
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/28
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/30
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/32
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/34
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/37
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/39
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/41
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/42
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/50
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/56
- https://forum.arduino.cc/t/downloading-esp32-3-3-5-fails/1420739/57
- https://forum.arduino.cc/t/esp32-board-software/1421113/6
- https://forum.arduino.cc/t/esp32-board-software/1421113/7
- https://forum.arduino.cc/t/arduino-ide-2-3-7/1421189
- https://forum.arduino.cc/t/esp32-devkit1-library-not-downloading/1422002
- https://forum.arduino.cc/t/failed-to-install-platform-arduino1-5-1/1422087
- https://forum.arduino.cc/t/installing-arduino-ide-and-getting-arduino-avr1-8-6-to-install/1421920
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/1
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/19
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/20
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/21
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/22
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/23
- https://forum.arduino.cc/t/ide-2-3-7-now-gives-error-4-deadline-exceeded/1422321/24
- https://forum.arduino.cc/t/unable-to-find-network-to-edit-timeout/1422504/1
- https://forum.arduino.cc/t/unable-to-find-network-to-edit-timeout/1422504/6
- https://forum.arduino.cc/t/issue-in-installing-esp32-espressif/1422682
- https://forum.arduino.cc/t/cant-update-esp-boards/1422777
- https://forum.arduino.cc/t/my-arduino-ide-software-isnt-working-correctly/1422998
- https://forum.arduino.cc/t/failed-uploading-uploading-error-to-uno-r4-wifi-board/1423393/4
- https://forum.arduino.cc/t/unable-to-download-the-3-0-0-package-from-siliconlabs/1425804
- https://forum.arduino.cc/t/errore-aggiornamento-board-esp32-su-ide-2-3-7/1423220/1
- https://forum.arduino.cc/t/errore-aggiornamento-board-esp32-su-ide-2-3-7/1423220/7
- https://forum.arduino.cc/t/errore-aggiornamento-board-esp32-su-ide-2-3-7/1423220/15
- https://forum.arduino.cc/t/errors-while-updating-boards/1426480
- https://forum.arduino.cc/t/problem-updating-boards-library/1426657
- https://forum.arduino.cc/t/esp32-core-download-failure/1427081
- https://forum.arduino.cc/t/esp32-lasst-sich-nicht-in-avr-board-einbinden/1427390
Related
- settings: add
network.connection_timeoutandnetwork.cloud_api.skip_board_detection_calls#2770 - Fix user network config being ignored in package manger operations #2889
- [request] Optimize library size (arduino-cli fails install with default timeout) SiliconLabs/arduino#151
Issue checklist
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the nightly build
- My request contains all necessary details
zfb132, lucasssvaz and bartslinger
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftopic: package-managementRelated to the packaging and managing of the platform/librariesRelated to the packaging and managing of the platform/librariestype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project