You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While generating Debian/CentOS packages, I have intermittently encountered errors when vcpkg attempts to download certain dependencies. The issue seems to occur sporadically, potentially affecting different packages, but it has been repeatedly observed with the following dependency:
[DEBUG] 1000: execute_process(curl --fail -L https://gitlab.gnome.org//GNOME/libxml2/-/archive/v2.11.7/libxml2-v2.11.7.tar.gz --create-dirs --output /build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/downloads/GNOME-libxml2-v2.11.7.tar.gz.34390.part)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 22 after 4244993 us
error: Missing GNOME-libxml2-v2.11.7.tar.gz and downloads are blocked by x-block-origin.
error: https://gitlab.gnome.org//GNOME/libxml2/-/archive/v2.11.7/libxml2-v2.11.7.tar.gz: curl failed to download with exit code 22
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
curl: (22) The requested URL returned error: 503
[DEBUG] /source/src/vcpkg/base/downloads.cpp(1030):
[DEBUG] Time in subprocesses: 4244993us
[DEBUG] Time in parsing JSON: 2us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 749us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 4.2 s (4245307us)
The error indicates a 503 Service Unavailable response, which suggests temporary unavailability of the server hosting the dependency.
Observed Behavior
After encountering this issue, retrying the build after a few hours resolves the problem, and the packages generate successfully.
This behavior points to temporary server outages affecting certain vcpkg dependencies, rendering download links temporarily invalid.
Mitigation Strategy
As a workaround, the cached dependencies available in GitHub can be used by passing the --vcpkg-binary-caching-key parameter with the appropriate GitHub token to the package generation script.
Note: The token must have write:package permissions.
This issue has been observed multiple times, causing confusion and delays. Centralizing this information in an issue will help clarify that temporary server outages cause this behavior and provide clear steps for mitigation.
The text was updated successfully, but these errors were encountered:
vikman90
changed the title
Informative Issue: Intermittent Download Failures for Vcpkg Dependencies
Intermittent Download Failures for Vcpkg Dependencies
Dec 10, 2024
Description
While generating Debian/CentOS packages, I have intermittently encountered errors when vcpkg attempts to download certain dependencies. The issue seems to occur sporadically, potentially affecting different packages, but it has been repeatedly observed with the following dependency:
Below is a sample error output:
The error indicates a 503 Service Unavailable response, which suggests temporary unavailability of the server hosting the dependency.
Observed Behavior
Mitigation Strategy
As a workaround, the cached dependencies available in GitHub can be used by passing the
--vcpkg-binary-caching-key
parameter with the appropriate GitHub token to the package generation script.Note: The token must have write:package permissions.
This issue has been observed multiple times, causing confusion and delays. Centralizing this information in an issue will help clarify that temporary server outages cause this behavior and provide clear steps for mitigation.
The text was updated successfully, but these errors were encountered: