Version
Cobbler 2.8.5
source: ?, ?
build time: Tue Oct 15 01:59:43 2019
Question
I would like Using cobbler for On-Premise Ubuntu Server Repo , ie on-premise server will sync internet repo on a schedule & then it will act as a On-premise repo.
I have Centos 7 server on which cobbler is installed. Here is the error i am getting
#######################################
Commands
cobbler repo add --mirror=http://mirror.enzu.com/ubuntu/dists/bionic/ --name=bionic-all
cobbler reposync --only="bionic-all"
#######################################
Error is :
http://mirror.enzu.com/ubuntu/dists/bionic/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
#######################################
Details
task started: 2020-10-17_202120_reposync
task started (id=Reposync, time=Sat Oct 17 20:21:20 2020)
hello, reposync
run, reposync, run!
creating: /var/www/cobbler/repo_mirror/bionic-all/config.repo
creating: /var/www/cobbler/repo_mirror/bionic-all/.origin/bionic-all.repo
running: /usr/bin/reposync -l -n -d --config=/var/www/cobbler/repo_mirror/bionic-all/.origin/bionic-all.repo --repoid=bionic-all --download_path=/var/www/cobbler/repo_mirror
received on stdout:
received on stderr: Error setting up repositories: failure: repodata/repomd.xml from bionic-all: [Errno 256] No more mirrors to try.
http://mirror.enzu.com/ubuntu/dists/bionic/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 106, in die
raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 120, in run
self.sync(repo)
File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 164, in sync
return self.yum_sync(repo)
File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 432, in yum_sync
utils.die(self.logger,"cobbler reposync failed")
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 114, in die
raise CX(msg)
reposync failed, tries left: 0
reposync failed, retry limit reached, skipping
running: chown -R root:apache /var/www/cobbler/repo_mirror/bionic-all
received on stdout:
received on stderr:
running: chmod -R 755 /var/www/cobbler/repo_mirror/bionic-all
received on stdout:
received on stderr:
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 106, in die
raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 82, in run
rc = self._run(self)
File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 243, in runner
3), name=name, nofail=nofail, logger=self.logger)
File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 804, in reposync
return reposync.run(name)
File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 149, in run
utils.die(self.logger,"overall reposync failed, at least one repo failed to synchronize")
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 114, in die
raise CX(msg)
!!! TASK FAILED !!!
#######################################
Any suggestion Please
Thanks
2.8.5