Koozali.org: home of the SME Server

CentOS Repository error trouble

Offline antoniov5

  • 6
  • +0/-0
CentOS Repository error trouble
« on: August 01, 2024, 11:21:45 PM »
Good evening -

For context, I am using SME to host a Joomla instance. Just trying to update Joomla from 3.10 and get us up into 4.x.x

One of the requirements is a MySql5.7 database, I am trying to use yum to install it, I will set up a new database on MySql 5.7 and migrate mine to it - im using this guide https://wiki.koozali.org/Mysql57

Running into a problem with the repository when I try to run yum install smeserver-extrarepositories-centos-sclo -y

http://vault.centos.org/7.9.2009/centos-sclo-centos/x86_64/sclo/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
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/.



 One of the configured repositories failed (Centos-RH Software collections),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=centos-sclo-centos ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable centos-sclo-centos
        or
            subscription-manager repos --disable=centos-sclo-centos

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=centos-sclo-centos.skip_if_unavailable=true

failure: repodata/repomd.xml from centos-sclo-centos: [Errno 256] No more mirrors to try.
http://vault.centos.org/7.9.2009/centos-sclo-centos/x86_64/sclo/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found




I did try to follow some steps here; https://forums.koozali.org/index.php/topic,55199.0.html

I.e

/etc/e-smith/events/actions/initialize-default-databases

signal-event yum-modify

However It yields no change. I also tried

/etc/e-smith/events/actions/initialize-default-databases
expand-template /etc/yum.smerepos.d/sme-base.repo

and then

yum update

I don't believe I can disable/ignore this repos error as this is where the MySql 5.7 is being downloaded from - any help is  appreciated or material you can point me to.


Offline Jean-Philippe Pialasse

  • *
  • 2,841
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: CentOS Repository error trouble
« Reply #1 on: August 02, 2024, 01:38:43 AM »
you will need two extra steps as the repo has changed url
 see : https://forums.koozali.org/index.php/topic,55199.msg291158.html#msg291158


this will update the url offered by default by the smeserver-extrarepositories-


also for that to work with this particular repo you will also need to update smeserver-yum to release -6

Offline antoniov5

  • 6
  • +0/-0
Re: CentOS Repository error trouble
« Reply #2 on: August 02, 2024, 03:42:41 PM »
you will need two extra steps as the repo has changed url
 see : https://forums.koozali.org/index.php/topic,55199.msg291158.html#msg291158


this will update the url offered by default by the smeserver-extrarepositories-


also for that to work with this particular repo you will also need to update smeserver-yum to release -6

Unfortunately it appears even after doing those I still get error'd
 when trying to run yum update ;
http://vault.centos.org/7.9.2009/centos-sclo-centos/x86_64/sclo/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.


It seems it is still trying to check that repository and not the vault archive

 my smeserver-yum version is currently smeserver-yum-2.6.2-5.el7.sme.noarch     - I believe this is is a different version than the smeserver-yum-2.6.2-1.el7.sme.noarch.rpm posted in https://forums.koozali.org/index.php/topic,55199.msg291158.html#msg291158  - could that be an issue/cause? I tried to install the version they linked but It errors out as I have a newer version that conflicts with it.

Offline Gary Douglas

  • *
  • 79
  • +1/-0
Re: CentOS Repository error trouble
« Reply #3 on: August 03, 2024, 08:58:57 AM »
smeserver-yum.noarch 0:2.6.2-6.el7.sme in smeupdates-testing;  https://bugs.koozali.org/show_bug.cgi?id=12715

Offline antoniov5

  • 6
  • +0/-0
Re: CentOS Repository error trouble
« Reply #4 on: August 05, 2024, 02:03:29 AM »
smeserver-yum.noarch 0:2.6.2-6.el7.sme in smeupdates-testing;  https://bugs.koozali.org/show_bug.cgi?id=12715

Thanks for your response Gary - I read through this bug test and from what I understand you fixed this issue in 2.6.2-6.el7.sme

How can I install 2.6.2-6 ? The only one I can find in https://mirrorlist.contribs.org/releases/10.1/smeos/x86_64/Packages/ is 2.6.2-1 which I am having trouble reverting to - when I try to remove my current package with sudo rpm -e <package> i can't due to dependencies, naturally, and can't force removal using rpm.



When I run
 yum --disablerepo=* --enablerepo=smeupdates-testing install smeserver-yum

 it does not run a transaction check and prompt me to install those packages - it just says nothing to do , am I missing a step here?

[root@dpweb ~]# yum --disablerepo=* --enablerepo=smeupdates-testing install smeserver-yum
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * smeupdates-testing: mirror.canada.pialasse.com
smeupdates-testing                                       | 2.9 kB     00:00
smeupdates-testing/primary_db                              | 7.3 kB   00:00
Nothing to do


Offline ReetP

  • *
  • 3,854
  • +5/-0
Re: CentOS Repository error trouble
« Reply #5 on: August 05, 2024, 10:02:00 AM »
I think it has been released.

Just do

Code: [Select]
yum update
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline antoniov5

  • 6
  • +0/-0
Re: CentOS Repository error trouble
« Reply #6 on: August 05, 2024, 04:33:28 PM »
I think it has been released.

Just do

Code: [Select]
yum update





[root@dpweb ~]# yum update
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * smeaddons: mirror.canada.pialasse.com
 * smeextras: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
 * smeupdates-testing: mirror.canada.pialasse.com
base                                                     | 3.6 kB     00:00
http://vault.centos.org/7.9.2009/centos-sclo-centos/x86_64/sclo/repodata/repomd.                                                                                                                             xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
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.cent                                                                                                                             os.org/.



 One of the configured repositories failed (Centos-RH Software collections),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=centos-sclo-centos ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable centos-sclo-centos
        or
            subscription-manager repos --disable=centos-sclo-centos

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=centos-sclo-centos.skip_if_unavai                                                                                                                             lable=true

failure: repodata/repomd.xml from centos-sclo-centos: [Errno 256] No more mirror                                                                                                                             s to try.
http://vault.centos.org/7.9.2009/centos-sclo-centos/x86_64/sclo/repodata/repomd.                                                                                                                             xml: [Errno 14] HTTPS Error 404 - Not Found
[root@dpweb ~]#

Offline ReetP

  • *
  • 3,854
  • +5/-0
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,841
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: CentOS Repository error trouble
« Reply #8 on: August 05, 2024, 07:38:53 PM »
 
Code: [Select]
yum clean all
yum update --disablerepo=* --enablerepo=smeupdates

Offline antoniov5

  • 6
  • +0/-0
Re: CentOS Repository error trouble
« Reply #9 on: August 06, 2024, 05:20:31 PM »
Thank you for all your help - I was able to get it installed;

cd /root
wget https://mirrorlist.contribs.org/releases/10.1/smeupdates/x86_64/RPMS/smeserver-yum-2.6.2-6.el7.sme.noarch.rpm

rpm -ivh -force smeserver-yum-2.6.2-1.el7.sme.noarch.rpm

then I ran

/etc/e-smith/events/actions/initialize-default-databases
expand-template /etc/yum.smerepos.d/sme-base.repo

yum update

Offline ReetP

  • *
  • 3,854
  • +5/-0
Re: CentOS Repository error trouble
« Reply #10 on: August 06, 2024, 05:30:50 PM »
A bit fugly - JPs solution should have worked?

Code: [Select]
rpm -ivh -force smeserver-yum-2.6.2-1.el7.sme.noarch.rpm
Don't do that. Really.

This would have been fine:

Code: [Select]
yum localinstall smeserver-yum-2.6.2-1.el7.sme.noarch.rpm
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline antoniov5

  • 6
  • +0/-0
Re: CentOS Repository error trouble
« Reply #11 on: August 06, 2024, 05:39:50 PM »
A bit fugly - JPs solution should have worked?

Code: [Select]
rpm -ivh -force smeserver-yum-2.6.2-1.el7.sme.noarch.rpm
Don't do that. Really.

This would have been fine:

Code: [Select]
yum localinstall smeserver-yum-2.6.2-1.el7.sme.noarch.rpm

Just posting what I did. It's in a test environment - will use the one you shared on dev/live.

It was posted after the fact.

Offline ReetP

  • *
  • 3,854
  • +5/-0
Re: CentOS Repository error trouble
« Reply #12 on: August 06, 2024, 05:46:58 PM »
Just posting what I did. It's in a test environment - will use the one you shared on dev/live.

OK - let us know these things!!

If at all possible please use the correct method as JP described

Code: [Select]
yum clean all
yum update --disablerepo=* --enablerepo=smeupdates

That will work - I have done a few with it.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation