Koozali.org: home of the SME Server

Error running /sbin/e-smith/audittools/newrpms

Offline dallas

  • *
  • 32
  • +0/-0
Error running /sbin/e-smith/audittools/newrpms
« 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 ~]#

« Last Edit: July 31, 2021, 08:51:17 AM by dallas »

Offline ReetP

  • *
  • 3,869
  • +5/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #1 on: July 31, 2021, 10:15:27 AM »
At a guess that is on v9  - you fail to mention such an important point?
...
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 dallas

  • *
  • 32
  • +0/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #2 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?

Offline TerryF

  • grumpy old man
  • *
  • 1,836
  • +6/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #3 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
--
qui scribit bis legit

Offline dallas

  • *
  • 32
  • +0/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #4 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.
« Last Edit: July 31, 2021, 11:44:48 AM by dallas »

Offline Jean-Philippe Pialasse

  • *
  • 2,844
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #5 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

Offline TerryF

  • grumpy old man
  • *
  • 1,836
  • +6/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #6 on: July 31, 2021, 10:14:30 PM »
What he said :-)
--
qui scribit bis legit

Offline dallas

  • *
  • 32
  • +0/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #7 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

Offline TerryF

  • grumpy old man
  • *
  • 1,836
  • +6/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #8 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
--
qui scribit bis legit

Offline dallas

  • *
  • 32
  • +0/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #9 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.

Offline TerryF

  • grumpy old man
  • *
  • 1,836
  • +6/-0
Re: Error running /sbin/e-smith/audittools/newrpms
« Reply #10 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
--
qui scribit bis legit