Koozali.org: home of the SME Server

Problem with mirrors

Offline lc_lol

  • 12
  • +0/-0
Problem with mirrors
« on: October 09, 2021, 11:12:44 AM »
Hello,

Trying to install packages from sme repos, the following error occurs :

Code: [Select]
http://mirror.canada.pialasse.com/10/smeextras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Essai d'un autre miroir.
If I'm not wrong, the correct URI should be http://mirror.canada.pialasse.com/releases/10 ...

yum repoinfo gets the incorrect link for all sme repos, ie :

Code: [Select]
Id du dépôt          : smeos
Nom du dépôt         : SME Server - os
Révision du dépôt    : 1625150898
Mise à jour du dépôt : Thu Jul  1 16:48:24 2021
Paquets du dépôt     : 1 363
Taille du dépôt      : 862 M
Miroirs du dépôt     : https://mirrorlist.koozali.org/mirrorlist/smeos-10
Baseurl du dépôt     : http://mirror.canada.pialasse.com/10/smeos/x86_64/
Expiration du dépôt  : 21 600 secondes (en date du : Sat Oct  9 03:22:15 2021)
  Filter     : read-only:present
Nom du dépôt         : /etc/yum.smerepos.d/sme-base.repo

How can I get things back ?

Thanks :)

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problem with mirrors
« Reply #1 on: October 09, 2021, 11:19:35 AM »
you are trying to install from the smeextras repo, please post the yum commands you are using

and if its just to reset default repos wiki has details - https://wiki.koozali.org/SME_Server:Adding_Software#Restoring_Default_Yum_Repositories

and then add other repos as needed from smeaddon packages
http://mirror.canada.pialasse.com/releases/10/smeaddons/x86_64/RPMS/
« Last Edit: October 09, 2021, 11:23:28 AM by TerryF »
--
qui scribit bis legit

Offline lc_lol

  • 12
  • +0/-0
Re: Problem with mirrors
« Reply #2 on: October 09, 2021, 11:27:15 AM »
you are trying to install from the smeextras repo, please post the yum commands you are using

Hello Terry,

As a matter of fact, my first attempt was to install fail2ban with
Code: [Select]
yum --enablerepo=smecontribs install smeserver-fail2ban
Then I got this full output :

Code: [Select]
Modules complémentaires chargés : fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * base: ftp.pasteur.fr
 * updates: ftp.pasteur.fr
http://mirror.canada.pialasse.com/10/smeaddons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Essai d'un autre miroir.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

http://mirror.canada.pialasse.com/10/smeextras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Essai d'un autre miroir.
http://mirror.canada.pialasse.com/10/smeos/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Essai d'un autre miroir.
http://mirror.canada.pialasse.com/10/smeupdates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Essai d'un autre miroir.
Résolution des dépendances
--> Lancement de la transaction de test
---> Le paquet smeserver-fail2ban.noarch 9:0.1.18-15.el7.sme sera installé
--> Résolution des dépendances terminée

Dépendances résolues

==========================================================================================================================================
 Package                              Architecture             Version                                Dépôt                         Taille
==========================================================================================================================================
Installation :
 smeserver-fail2ban                   noarch                   9:0.1.18-15.el7.sme                    smecontribs                    61 k

Résumé de la transaction
==========================================================================================================================================
Installation   1 Paquet
Taille totale des téléchargements : 61 k
Taille d'installation : 209 k
Is this ok [y/d/N]: y
Downloading packages:
smeserver-fail2ban-0.1.18-15.e FAILED
http://mirror.canada.pialasse.com/10/smecontribs/x86_64/RPMS/smeserver-fail2ban-0.1.18-15.el7.sme.noarch.rpm: [Errno 14] HTTP Error 404 - Not Found
Essai d'un autre miroir.

Then I tried "yum update" and got the error from all sme mirrors.

Some friend I had asked too told me to try "yum clen all", and it has solved the errors from "yum update". But I'm still unable to install fail2ban from smecontribs, the error is still the same as above.

Thanks again for your help

[Edit : I've just seen your additions, I'm going to try them and I'll come back to tell]

Offline lc_lol

  • 12
  • +0/-0
Re: Problem with mirrors
« Reply #3 on: October 09, 2021, 11:36:07 AM »
Ok, reinitializing database didn't work, but I has lead me to the answear

I got it working with the following commands :
Code: [Select]
yum --enablerepo=smecontribs clean all
yum --enablerepo=smecontribs update

Everything is fine now :)

Thanks again for your help :)
« Last Edit: October 09, 2021, 11:38:08 AM by lc_lol »

Offline lc_lol

  • 12
  • +0/-0
[Solved]Problem with mirrors
« Reply #4 on: October 09, 2021, 11:37:03 AM »
(edited - bad manipulation)

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problem with mirrors
« Reply #5 on: October 09, 2021, 11:46:51 AM »
no worries, I wasn't quick enough with the adds :-) and yes a yum clean all often does the deed..
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problem with mirrors
« Reply #6 on: October 09, 2021, 03:13:44 PM »
the path http://mirror.canada.pialasse.com/10/smeaddons/x86_64/repodata/repomd.xml is wrong


should be

http://mirror.canada.pialasse.com/releases/10/smeaddons/x86_64/repodata/repomd.xml

have you mess up with  repos on your server ?

normal should be
db yum_repositories show smeaddons
smeaddons=repository          sacrum.pialasse.com
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://mirrorlist.koozali.org/mirrorlist/smeaddons-10
    Name=SME Server - addons
    Visible=yes
    status=enabled


with mirrorlist actually giving what i said above

Offline lc_lol

  • 12
  • +0/-0
Re: Problem with mirrors
« Reply #7 on: October 11, 2021, 09:05:33 PM »
the path http://mirror.canada.pialasse.com/10/smeaddons/x86_64/repodata/repomd.xml is wrong


Hello Jean-Philippe,

I don't know what had broken it, I hadn't messed up anything with the original yum configuration before the problem occured. Maybe something linked to the infrastructure maintenance on friday.

But everything is fine now, after the "clean all" commands I mentioned above  :-)

Offline Sparkey

  • *
  • 24
  • +0/-0
Re: Problem with mirrors
« Reply #8 on: May 03, 2023, 07:56:27 PM »
I am having the same issue on  a fresh install of 10 on my test server.

running:

[root@srv04 ~]# db yum_repositories show smecontribs
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=https://mirrorlist.koozali.org/mirrorlist/smecontribs-10
    Name=SME Server - contribs
    Visible=yes
    status=disabled
[root@srv04 ~]# https://mirrorlist.koozali.org/mirrorlist/smecontribs-10

when I enter https://mirrorlist.koozali.org/mirrorlist/smecontribs-10 in a browser it shows

# version = 10, repo = smecontribs
http://mirror.canada.pialasse.com/10/smecontribs/$basearch/

I have ran :
yum --enablerepo=smecontribs clean all
yum --enablerepo=smecontribs update

But still the same error.  It is almost as if the mirror is point to an incorrect url ?

BTW, I thought something might be wrong when after the fresh install, software installer panel told me I was all up to date.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problem with mirrors
« Reply #9 on: May 04, 2023, 01:08:57 AM »
The intra was down for a period last night/early this morn... might need a little time to hook and sync up fully
--
qui scribit bis legit

Offline Sparkey

  • *
  • 24
  • +0/-0
Re: Problem with mirrors
« Reply #10 on: May 04, 2023, 03:02:23 PM »
A few hours after your reply and everything was functioning again.  :smile:

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problem with mirrors
« Reply #11 on: May 05, 2023, 12:33:49 AM »
Although not the cause lot of work currently on validating all packages on cvs in preperation for moving the lot to Gitea and associated setups for repo and build system..boys are busy in the back room :-)
--
qui scribit bis legit