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

Failed to download metadata for repo 'pigsty-local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried #518

Open
fi-ecavc opened this issue Feb 25, 2025 · 4 comments
Assignees
Labels
HELP Extra attention is needed

Comments

@fi-ecavc
Copy link

In the rocky Linux 9.5 standard distribution, when installing pigsty on the network, this kind of error is unusually high, and the success of the installation depends on luck, which is not conducive to user research and learning pigsty. As a best practice, pigsty allows for explicit networking or explicit offline package installations, ensuring a successful installation every time ./install.yml is executed. Now the following mistake has become a great problem for research and learning.:
TASK [node : make node local repo cache] *****************************************************************************************************************
fatal: [192.168.0.4]: FAILED! => {"changed": true, "cmd": "yum makecache; \n", "delta": "0:00:00.243006", "end": "2025-02-25 11:49:30.027720", "msg": "non-zero return code", "rc": 1, "start": "2025-02-25 11:49:29.784714", "stderr": "Errors during downloading metadata for repository 'pigsty-local':\n - Status code: 404 for http://192.168.0.4/pigsty/repodata/repomd.xml (IP: 192.168.0.4)\nError: Failed to download metadata for repo 'pigsty-local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "stderr_lines": ["Errors during downloading metadata for repository 'pigsty-local':", " - Status code: 404 for http://192.168.0.4/pigsty/repodata/repomd.xml (IP: 192.168.0.4)", "Error: Failed to download metadata for repo 'pigsty-local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried"], "stdout": "Pigsty Local 9 - x86_64 1.9 kB/s | 19 B 00:00 ", "stdout_lines": ["Pigsty Local 9 - x86_64 1.9 kB/s | 19 B 00:00 "]}

@Vonng
Copy link
Owner

Vonng commented Feb 25, 2025

It looks like you're encountering a 404 error when trying to download metadata for the Pigsty repository, (build on the admin node) which suggests that the repository metadata (repomd.xml) is missing or the URL is incorrect.

Could you please check the following:

  • Exact OS Major Minor Release version

  • Exact Pigsty Version

  • ls /www/pigsty ,Check if any packages exists

  • cat /www/pigsty/repo_complete to see if the mark file exists

  • The exact step you are trying to install

To fix this issue, try:

@Vonng Vonng self-assigned this Feb 25, 2025
@Vonng Vonng added the HELP Extra attention is needed label Feb 25, 2025
@Vonng Vonng added this to Pigsty Feb 25, 2025
@fi-ecavc
Copy link
Author

fi-ecavc commented Feb 25, 2025

$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.5 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.5"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.5 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
VENDOR_NAME="RESF"
VENDOR_URL="https://resf.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.5"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.5"

$ uname -a
Linux h.pigsty 5.14.0-503.26.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 19 16:28:19 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

$ cat pigsty.yml|grep version
version: v3.3.0 # pigsty version string
pg_version: 17 # default postgres version

@fi-ecavc
Copy link
Author

The fix scheme given above does not work, and you must add ./infra.yml -t repo_upstream.

@Vonng
Copy link
Owner

Vonng commented Feb 25, 2025

I just re-run on fresh RockyLinux 9.5 machine and can't repreoduce this.

If you are sure that /www/pigsty/repodata/repomd.xml exists and no other prior errors. Please
Check you firewall, selinux, and security group settings and make sure nothing blocks local Nginx HTTP access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HELP Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

2 participants