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
#2 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from POST request to https://auth.docker.io/token: 502 Bad Gateway
...
Dockerfile:4
--------------------
2 |
3 | RUN mkdir -p /tmp
4 | >>> FROM centos
5 | ARG PACKAGE
6 | RUN cd /etc/yum.repos.d/
--------------------
ERROR: failed to solve: centos: failed to resolve source metadata for docker.io/library/centos:latest: failed to authorize: failed to fetch oauth token: unexpected status from POST request to https://auth.docker.io/token: 502 Bad Gateway
Unable to find image 'wazuh-dashboard:latest' locally
docker: Error response from daemon: pull access denied for wazuh-dashboard, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
Error response from daemon: No such container: wazuh-dashboard
Error response from daemon: No such container: wazuh-dashboard
metadata version is correct:
metadata package is correct:
ERROR: /etc/wazuh-dashboard/opensearch_dashboards.yml does not exist
Error response from daemon: No such container: wazuh-dashboard
Error response from daemon: No such image: wazuh-dashboard:latest
Error: Process completed with exit code 1.
Apparently, the error is produced by Docker, as not all builds fail, we should improve the failed workflow stage with a retry in case we have a 502 code
I could see the actions do not have an option to retry, I found this action that can be used, duplicate the step and put a conditional that is for failure and error, or see if you can do something else.
I was testing commands to retry when it fails, and I came up with a loop that when it passes it finishes but when it fails it tries again, but the script if it fails closes the execution.
for i in 1 2 3 4 5; do \ bash ./build-packages.sh \ -v 5.0.0 \ -r 1 --rpm \ -a file://<path> \ -s file://<path> \ -b file://<path> \ -rp file://<path> \ && break || sleep 15; done;
Describe the bug
The RPM package generation workflow fails with the following error, this error did not occur 3h ago
Failed: https://github.com/wazuh/wazuh-dashboard/actions/runs/11332275609/job/31514595189
Success: https://github.com/wazuh/wazuh-dashboard/actions/runs/11329940903
Apparently, the error is produced by Docker, as not all builds fail, we should improve the failed workflow stage with a retry in case we have a 502 code
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The package is created and uploaded successfully
OpenSearch Version
Related to v4.10.0-alpha2
Dashboards Version
v4.10.0-alpha2
Plugins
Default
Screenshots
Not applicable
Host/Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: