rhel7 rpm mirror failed
- Dominant language
- PowerShell
- Stars
- 22k
- Forks
- 4.9k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 29
Description
### Description
We try to mirror the rpm repository: https://packages.microsoft.com/rhel/7/prod/, but it fails.
Our company's security does not allow to contact an rpm mirror directly, we need to mirror the full repo internally.
Reproduce by:
1. Use a rhel7 or centos7 system
or just run
```
docker run --rm -it centos:7 bash
```
2. Configure the reposync:
```
cat /etc/reposync/rhel7_reposync.conf
[main]
retries=3
debuglevel=10
rpmverbosity=debug
cachedir=/var/cache/yum/$basearch/$releasever
gpgcheck=1
reposdir=/data/meta/
```
```
cat /data/meta/microsoft.repo
[rhel-7-microsoft]
name=packages-microsoft-com-prod
baseurl=http://packages.microsoft.com/rhel/7/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
```
3. Start the sync of the repository with reposync:
```
reposync -d -a x86_64 -p /data/repo -c /etc/reposync/rhel7_reposync.conf --downloadcomps --download-metadata --allow-path-traversal -r rhel-7-microsoft
[...]
omi-1.6.4-0.ssl_100.ulinux.x64 FAILED
dotnet-runtime-2.1.23-x64.rpm FAILED ] 0.0 B/s | 0 B --:--:-- ETA
scx-1.6.4-7.universal.x64.rpm FAILED ] 0.0 B/s | 0 B --:--:-- ETA
scx-1.6.4-7.x86_64: [Errno 256] No more mirrors to try. 0% [ ] 0.0 B/s | 0 B --:--:-- ETA
dotnet-runtime-2.1-2.1.23-1.x86_64: [Errno 256] No more mirrors to try.
omi-1.6.4-0.x86_64: [Errno 256] No more mirrors to try.
```
### Configuration
* What OS and version, and for Linux, what distro?
RHEL7 or CentOS7
* What is the architecture (x64, x86, ARM, ARM64)?
x86_64
### Correct project?
I hope this is the correct project for such an issue - I found similar issues like #2608 pointing to an generic packages.microsoft.com issue
Contributor guide
Assessment
This issue has not been assessed yet.