Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: Michail Pappas on December 03, 2020, 08:31:49 AM

Title: yum update error: Cannot find a valid baseurl for repo: base
Post by: Michail Pappas on December 03, 2020, 08:31:49 AM
Tried to do an update, got this on my 9.2 production box:
Code: [Select]
# yum update
Loaded plugins: fastestmirror, post-transaction-actions, smeserver
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

Seems similar to https://forums.contribs.org/index.php?topic=48424.0 ie possibly related to 9.2 gone EOL.
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: TerryF on December 03, 2020, 08:59:16 AM
It is..

yum --disablerepo=base --disablerepo=updates update 

will pull any updates from us and remi, an updated package similar to the one you highlighted back in the sme7 to sme8 days needs preparing
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: Michail Pappas on December 03, 2020, 09:26:19 AM
Thanks Terry, much appreciated.
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: Jean-Philippe Pialasse on December 04, 2020, 12:36:35 AM
Code: [Select]
yum clean all --enablerepo=smeupdates-testing,smetest
yum update smeserver-yum --disablerepo=base,updates -y
expand-template /etc/yum.smerepos.d/sme-base.repo
yum update

as per https://bugs.contribs.org/show_bug.cgi?id=10250

please allow 2 hours to have this last update sent to your favourite mirror
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: TerryF on December 06, 2020, 08:40:17 AM
Everyone can cross me off their Xmas list, I did the original verification of the change, over a year ago, that was supposed to allow a move to EOL and the vault repos almost without anyone noticing..repo URLS were changed OK, BUT, failed to delete the mirrol list if it was popuklated, they all are :-(  Mea culpa and I ran away for a gfew days to the beachside..no comms :-) heaven
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: ldkeen on December 13, 2020, 02:06:59 AM
Hi,
While following the procedure described here on line 2, I get the error below:


[root@server ~]# yum update smeserver-yum --disablerepo=base,updates -y
Loaded plugins: fastestmirror, smeserver
Setting up Update Process
Loading mirror speeds from cached hostfile
 * smeaddons: sme-mirror.tw.co.nz
 * smeextras: sme-mirror.tw.co.nz
 * smeos: sme-mirror.tw.co.nz
 * smeupdates: sme-mirror.tw.co.nz
Resolving Dependencies
--> Running transaction check
---> Package smeserver-yum.noarch 0:2.4.0-15.el6.sme will be updated
---> Package smeserver-yum.noarch 0:2.4.0-30.el6.sme will be an update
--> Processing Dependency: yum-plugin-post-transaction-actions for package: smeserver-yum-2.4.0-30.el6.sme.noarch
--> Processing Dependency: perl(File::Slurp) for package: smeserver-yum-2.4.0-30.el6.sme.noarch
--> Running transaction check
---> Package perl-File-Slurp.noarch 0:9999.13-7.el6 will be installed
---> Package smeserver-yum.noarch 0:2.4.0-30.el6.sme will be an update
--> Processing Dependency: yum-plugin-post-transaction-actions for package: smeserver-yum-2.4.0-30.el6.sme.noarch
--> Finished Dependency Resolution
Error: Package: smeserver-yum-2.4.0-30.el6.sme.noarch (smeupdates)
           Requires: yum-plugin-post-transaction-actions
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


I've tried searching for "yum-plugin-post-transaction-actions" but can't find it anywhere. I've tried the following:

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases

But seem to be stuck at this point.
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: ldkeen on December 13, 2020, 08:52:31 AM
All good, I found a link to the missing rpm:

http://centos.mirror.cdnetworks.com/6/updates/x86_64/Packages/yum-plugin-post-transaction-actions-1.1.30-42.el6_10.noarch.rpm

Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: ericcar on December 13, 2020, 05:09:23 PM
After "yum update" I have a dependency error, any idea?

Erreur : Paquet : openssl-perl-1.0.1e-57.el6.x86_64 (@base)
             Requiert : openssl = 1.0.1e-57.el6
             Suppression : openssl-1.0.1e-57.el6.x86_64 (@anaconda-base-201704272247.x86_64/9.2)
                 openssl = 1.0.1e-57.el6
             Mis à jour par : openssl-1.0.1e-58.el6_10.x86_64 (smeupdates)
                 openssl = 1.0.1e-58.el6_10
             Disponible : openssl-1.0.1e-30.el6.i686 (base)
                 openssl = 1.0.1e-30.el6
             Disponible : openssl-1.0.1e-30.el6_6.2.i686 (updates)
                 openssl = 1.0.1e-30.el6_6.2
             Disponible : openssl-1.0.1e-30.el6_6.4.i686 (updates)
                 openssl = 1.0.1e-30.el6_6.4
             Disponible : openssl-1.0.1e-30.el6_6.5.i686 (updates)
                 openssl = 1.0.1e-30.el6_6.5
             Disponible : openssl-1.0.1e-30.el6_6.7.i686 (updates)
                 openssl = 1.0.1e-30.el6_6.7
             Disponible : openssl-1.0.1e-30.el6.8.i686 (updates)
                 openssl = 1.0.1e-30.el6.8
             Disponible : openssl-1.0.1e-30.el6.9.i686 (updates)
                 openssl = 1.0.1e-30.el6.9
             Disponible : openssl-1.0.1e-30.el6.11.i686 (updates)
                 openssl = 1.0.1e-30.el6.11
Erreur : Paquet : libsmbclient-3.6.23-51.el6.x86_64 (@base)
             Requiert : samba-winbind-clients = 3.6.23-51.el6
             Suppression : samba-winbind-clients-3.6.23-51.el6.x86_64 (@base)
                 samba-winbind-clients = 3.6.23-51.el6
             Mis à jour par : samba-winbind-clients-3.6.23-53.el6_10.x86_64 (smeupdates)
                 samba-winbind-clients = 3.6.23-53.el6_10
             Disponible : samba-winbind-clients-3.6.23-12.el6.i686 (base)
                 samba-winbind-clients = 3.6.23-12.el6
             Disponible : samba-winbind-clients-3.6.23-14.el6_6.i686 (updates)
                 samba-winbind-clients = 3.6.23-14.el6_6
             Disponible : samba-winbind-clients-3.6.23-42.el6_9.x86_64 (smeos)
                 samba-winbind-clients = 3.6.23-42.el6_9



Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: ReetP on December 13, 2020, 05:48:14 PM
No idea, but what's i686 doing in there?
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: david000 on December 15, 2020, 05:52:33 PM
Just for clarification - I see the same error in the server manager. 

So I should run the command:

yum --disablerepo=base --disablerepo=updates update 

to fix ?

I noticed just before the system went EOL there were a couple of updates to install and I never got to them. Presumably they will be available after running the above?
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: ReetP on December 15, 2020, 07:28:43 PM
Just for clarification - I see the same error in the server manager. 

You will. The server-manager just sees what the command line shows.

Quote
So I should run the command:

yum --disablerepo=base --disablerepo=updates update 

to fix ?

Why? Please read JPs comment AND THE BUG above:

https://forums.contribs.org/index.php/topic,54338.msg284308.html#msg284308

That will fix the repos for you.

Quote
I noticed just before the system went EOL there were a couple of updates to install and I never got to them. Presumably they will be available after running the above?

Not sure - probably they are in 'vault' which is what your v9 will point to.

None of that will likely resolve your issue with i686 though. You need to have a look and find out why that is happening - it didn't happen by itself.
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: david000 on December 16, 2020, 10:12:32 AM
Thanks ReetP.

I'm seeing the error in the Server Manager which truncates the command line error to:

"Yum Repro Error - All"
"removing mirror list - with"

I did read the bug report notes but confess I didn't understand the implications. I've not yet tried the command line fix so don't know if I'll get the i686 issue or not. 

I'll try the fix and see how I get on.
Title: [SPAM]
Post by: adgroups on December 16, 2020, 12:56:11 PM
[SPAM - deleted]
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: RedBeard on December 17, 2020, 04:18:01 AM
 I did a fresh install of 9.2 a few days ago. Tried applying fix and had the same error as ldkeen.
 
  "Error: Package: smeserver-yum-2.4.0-30.el6.sme.noarch (smeupdates)
           Requires: yum-plugin-post-transaction-actions"
         
Downloaded yum-plugin-post-transaction-actions and tried to install using "yum localinstall", but this failed. I had to use "rpm -i"  I don't know why "yum localinstall" failed, but "rpm -i" worked .

All good, I found a link to the missing rpm:

http://centos.mirror.cdnetworks.com/6/updates/x86_64/Packages/yum-plugin-post-transaction-actions-1.1.30-42.el6_10.noarch.rpm
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: david000 on December 18, 2020, 05:45:03 PM
Fix done via the command line and I think it's all worked without error.

When I log back into the server manager I still see 'updates available' and then the error. 

Is it the case that I need to PuTTY in now and again and run yum update ?
Title: Re: yum update error: Cannot find a valid baseurl for repo: base
Post by: Jean-Philippe Pialasse on December 22, 2020, 04:43:53 AM
I did a fresh install of 9.2 a few days ago. Tried applying fix and had the same error as ldkeen.
 
  "Error: Package: smeserver-yum-2.4.0-30.el6.sme.noarch (smeupdates)
           Requires: yum-plugin-post-transaction-actions"

added to smeupdates so it should not block anymore
give it a few hours to sync to your local mirror