Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x => Topic started by: antoniov5 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.
-
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
-
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.
-
smeserver-yum.noarch 0:2.6.2-6.el7.sme in smeupdates-testing; https://bugs.koozali.org/show_bug.cgi?id=12715
-
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
-
I think it has been released.
Just do
yum update
-
I think it has been released.
Just do
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 ~]#
-
See if you can browse the repo:
https://mirrorlist.contribs.org/releases/10.1/smeupdates/x86_64/RPMS
It's here:
https://mirrorlist.contribs.org/releases/10.1/smeupdates/x86_64/RPMS/smeserver-yum-2.6.2-6.el7.sme.noarch.rpm
Might want do a something like:
yum clean all
-
yum clean all
yum update --disablerepo=* --enablerepo=smeupdates
-
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
-
A bit fugly - JPs solution should have worked?
rpm -ivh -force smeserver-yum-2.6.2-1.el7.sme.noarch.rpm
Don't do that. Really.
This would have been fine:
yum localinstall smeserver-yum-2.6.2-1.el7.sme.noarch.rpm
-
A bit fugly - JPs solution should have worked?
rpm -ivh -force smeserver-yum-2.6.2-1.el7.sme.noarch.rpm
Don't do that. Really.
This would have been fine:
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.
-
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
yum clean all
yum update --disablerepo=* --enablerepo=smeupdates
That will work - I have done a few with it.