Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: dallas on July 31, 2021, 08:49:29 AM

Title: Error running /sbin/e-smith/audittools/newrpms
Post by: dallas on July 31, 2021, 08:49:29 AM
I'm not sure if this is a transient error or not. I have not run it in the past.

[root@www ~]# /sbin/e-smith/audittools/newrpms
Loaded plugins: fastestmirror, post-transaction-actions, smeserver
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
YumRepo Error: All mirror URLs are not using ftp, http/https or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
[root@www ~]#

Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: ReetP on July 31, 2021, 10:15:27 AM
At a guess that is on v9  - you fail to mention such an important point?
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: dallas on July 31, 2021, 10:41:47 AM
At a guess that is on v9  - you fail to mention such an important point?

Well yes it is. Isn't it a prerequisite to upgrading to v10?
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: TerryF on July 31, 2021, 11:16:27 AM
Well yes it is. Isn't it a prerequisite to upgrading to v10?

Problem being all the sme9 repos have now been archived, hence the yum errors re url etc

However, this may help - https://forums.contribs.org/index.php/topic,54338.0.html

Not sure if it will but worth a read at least
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: dallas on July 31, 2021, 11:42:27 AM
Problem being all the sme9 repos have now been archived, hence the yum errors re url etc

However, this may help - https://forums.contribs.org/index.php/topic,54338.0.html

Not sure if it will but worth a read at least

Thanks Terry,

I'm not looking to update anything, just find any contribs I've added to my system. There's not much but I did add Certificate ssl management which I see is not yet in SME 10 and I installed OpenVPN outside of SME. I can't remember if there are any others.
I also ran /sbin/e-smith/audittools/templates

Looking to get a clean upgrade at the first attempt.
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: Jean-Philippe Pialasse on July 31, 2021, 03:51:17 PM
this tools rely on yum and valid repo existing, so the steps to have it working are the same as trying to have yum working to update. 

and i would strongly advise to update to last version of main repos to have an accurate output for this command
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: TerryF on July 31, 2021, 10:14:30 PM
What he said :-)
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: dallas on August 01, 2021, 12:35:52 AM
this tools rely on yum and valid repo existing, so the steps to have it working are the same as trying to have yum working to update. 

and i would strongly advise to update to last version of main repos to have an accurate output for this command

I'm a little confused... Can you confirm that running this code will not kill my SME 9.2?

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
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: TerryF on August 01, 2021, 03:14:22 AM
Its already dead, do a yum update, it fails with cant find base url etc

This gives it a chance to be prepared prior to move to sme10
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: dallas on August 02, 2021, 07:50:47 AM
Its already dead, do a yum update, it fails with cant find base url etc

This gives it a chance to be prepared prior to move to sme10
This
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


It did update a few packages.

I have run /sbin/e-smith/audittools/newrpms and /sbin/e-smith/audittools/templates.
I assume that the output of these is only need if something goes pear shaped after upgrading to SME 10.
Title: Re: Error running /sbin/e-smith/audittools/newrpms
Post by: TerryF on August 02, 2021, 08:41:25 AM
I have run /sbin/e-smith/audittools/newrpms and /sbin/e-smith/audittools/templates.
I assume that the output of these is only need if something goes pear shaped after upgrading to SME 10.

At best they show if you have installed any odd, not sme9, third party bits and/or custom templates that will blow sme10 up :-)

Have a good read of the forum post by JP https://forums.contribs.org/index.php/topic,54433.0.html  in particular 2, 3 and 6