Koozali.org: home of the SME Server

error getting repository data...repository not found.

Offline ber

  • ****
  • 239
  • +0/-0
error getting repository data...repository not found.
« on: May 03, 2013, 02:53:46 PM »
Linux SME 7.6 server/gateway mode- all updates installed.

Initial problem was I couldnt install any contribs (SME7admin or sysmon). I tried checking and updating the repository data by running yum clean all- may have messed up some configs??

can anyone shed some light.

here is the output when running a localinstall of a system-monitor software and also when running a check for repository list of contribs...

login as: root
root@219.88.131.228's password:
Last login: Sat May  4 00:39:18 2013 from 119-224-106-1.callplus.net.nz
[root@server ~]# yum localinstall smeserver-system_monitor-1.1-1.noarch.rpm
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Setting up Local Package Process
Examining smeserver-system_monitor-1.1-1.noarch.rpm: smeserver-system_monitor - 1.1-1.noarch
Marking smeserver-system_monitor-1.1-1.noarch.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-system_monitor.noarch 0:1.1-1 set to be updated
--> Running transaction check
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
--> Processing Dependency: rrdtool < 1.3 for package: smeserver-system_monitor
--> Processing Dependency: perl-rrdtool >= 1 for package: smeserver-system_monitor
--> Processing Dependency: rrdtool >= 1.0 for package: smeserver-system_monitor
--> Processing Dependency: sysstat >= 5 for package: smeserver-system_monitor
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package sysstat.i386 0:5.0.5-27.el4 set to be updated
---> Package perl-rrdtool.i386 0:1.2.30-1.el4.rf set to be updated
---> Package rrdtool.i386 0:1.2.30-1.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: libart_lgpl_2.so.2 for package: rrdtool
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libart_lgpl to pack into transaction set.
libart_lgpl-2.3.16-3.i386 100% |=========================|  69 kB    00:00
http://vault.centos.org/4.9/os/i386/CentOS/RPMS/libart_lgpl-2.3.16-3.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
Error: failure: CentOS/RPMS/libart_lgpl-2.3.16-3.i386.rpm from base: [Errno 256] No more mirrors to try.
[root@server ~]# yum --enablerepo=sme7contribs --enablerepo=smecontribs list smeserver-*
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin


Error getting repository data for sme7contribs, repository not found
[root@server ~]#

i tried,

 yum clean metadata
yum clean all
yum update

still same problem....cant find the repository.

Thanks.



« Last Edit: May 03, 2013, 03:09:59 PM by ber »

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: error getting repository data...repository not found.
« Reply #1 on: May 04, 2013, 03:41:32 AM »
Have you setup the SME7 smecontribs repo to point to a repo named sme7contribs?

See here for details HERE
--
qui scribit bis legit

Offline ber

  • ****
  • 239
  • +0/-0
Re: error getting repository data...repository not found.
« Reply #2 on: May 04, 2013, 04:01:31 AM »
Hi Terry,  :-)

Ive run the script then tried to do local install of some software- error.

Then tried to run a contrib install (sme7admin)- error.

Does my config show that the repository location is correct?

here is the output...unsure why it keeps having issues. Thanks for the feedback.

login as: root
root@219.88.131.228's password:
Last login: Sat May  4 01:01:32 2013 from 119-224-106-1.callplus.net.nz
[root@server ~]# db yum_repositories set sme7contribs repository \
> GPGCheck yes \
> MirrorList http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7 \
> Name 'SME 7 - contribs' \
> Visible no \
> status disabled

signal-event yum-modify
yum clean all[root@server ~]#
[root@server ~]# signal-event yum-modify
[root@server ~]# yum clean all
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
[root@server ~]# yum clean all
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Cleaning up Everything
3 headers removed
0 packages removed
18 metadata files removed
0 cache files removed
6 cache files removed
[root@server ~]# db yum_repositories show sme7contribs
sme7contribs=repository
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME 7 - contribs
    Visible=no
    status=disabled
[root@server ~]# ls
anaconda-ks.cfg  install.log.syslog
install.log      smeserver-system_monitor-1.1-1.noarch.rpm
[root@server ~]# yum localinstall smeserver-system_monitor-1.1-1.noarch.rpm
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Setting up Local Package Process
Examining smeserver-system_monitor-1.1-1.noarch.rpm: smeserver-system_monitor - 1.1-1.noarch
Marking smeserver-system_monitor-1.1-1.noarch.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-system_monitor.noarch 0:1.1-1 set to be updated
--> Running transaction check
Setting up repositories
smeaddons                 100% |=========================| 2.3 kB    00:00
smeextras                 100% |=========================| 2.3 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
smeos                     100% |=========================| 2.3 kB    00:00
smeupdates                100% |=========================| 2.5 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  84 kB    00:01
smeaddons : ################################################## 171/171
primary.xml.gz            100% |=========================|  18 kB    00:00
smeextras : ################################################## 55/55
primary.xml.gz            100% |=========================| 408 kB    00:32
http://vault.centos.org/4.9/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.
[root@server ~]# yum install smeserver-sme7admin --enablerepo=smecontribs
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin


Cannot find a valid baseurl for repo: smecontribs
[root@server ~]#


Thanks again... :-)


Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: error getting repository data...repository not found.
« Reply #3 on: May 04, 2013, 09:53:28 AM »
As far as the contrib insitall goes, the "yum install smeserver-sme7admin --enablerepo=smecontribs"

Should be yum install smeserver-sme7admin --enablerepo=sme7contribs

The smeserver-sme7admin is in the SME 7 repository which you have now called sme7contribs.

Looks to be issues with the CenTos repo

This will list all repos you have configured
db yum_repositories show

In your first post you
yum --enablerepo=sme7contribs --enablerepo=smecontribs list smeserver-*
if you had not set the sme7contrib repo then it woulkd fail, hence my original question and suggestion.
« Last Edit: May 04, 2013, 09:58:57 AM by TerryF »
--
qui scribit bis legit

Offline ber

  • ****
  • 239
  • +0/-0
Re: error getting repository data...repository not found.
« Reply #4 on: May 04, 2013, 12:33:20 PM »
I followed the script as requested and this is what i got.

login as: root
root@219.88.131.228's password:
Last login: Sat May  4 22:23:26 2013 from 119-224-106-1.callplus.net.nz
[root@server ~]# db yum_repositories show sme7contribs
sme7contribs=repository
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME 7 - contribs
    Visible=no
    status=disabled
[root@server ~]#

seems the config is correct??

I ran the install command for a system monitoring contrib and this is what i got:

[root@server ~]# yum --enablerepo=sme7contribs --enablerepo=smecontribs install smeserver-sme7admin
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Setting up Install Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-sme7admin.noarch 0:1.1.1-16.el4.sme set to be updated
--> Running transaction check
warning: only V3 signatures can be verified, skipping V4 signature
--> Processing Dependency: hddtemp for package: smeserver-sme7admin
--> Processing Dependency: sysstat < 5.1 for package: smeserver-sme7admin
--> Processing Dependency: rrdtool-perl for package: smeserver-sme7admin
--> Processing Dependency: rrdtool for package: smeserver-sme7admin
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package hddtemp.i386 0:0.3-0.beta15.1.el4.rf set to be updated
---> Package perl-rrdtool.i386 0:1.2.30-1.el4.rf set to be updated
---> Package sysstat.i386 0:5.0.5-27.el4 set to be updated
---> Package rrdtool.i386 0:1.2.30-1.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: libart_lgpl_2.so.2 for package: rrdtool
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libart_lgpl to pack into transaction set.
libart_lgpl-2.3.16-3.i386 100% |=========================|  69 kB    00:00
http://vault.centos.org/4.9/os/i386/CentOS/RPMS/libart_lgpl-2.3.16-3.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
Error: failure: CentOS/RPMS/libart_lgpl-2.3.16-3.i386.rpm from base: [Errno 256] No more mirrors to try.
[root@server ~]#

still no joy??

John

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: error getting repository data...repository not found.
« Reply #5 on: May 04, 2013, 11:48:42 PM »
I get same error from here (Oz) when attempting an install of that contrib on a 7.6 setup.

Looks like there is an issue outside of your direct control ie upstream, proxies etc etc .

You could  try and wget the other dependency rpms as well (to the same folder), and then do yum local install.

If this continues it will be better to lodge a bug report, better minds than mine there.
--
qui scribit bis legit

Offline ber

  • ****
  • 239
  • +0/-0
Re: error getting repository data...repository not found.
« Reply #6 on: May 05, 2013, 12:00:19 AM »
appreciate your help Terry, I've set-up three of these boxes for clients and friends over the last three weeks for web-filter purposes using "dansguardian" All the systems act as server/gateway mode.
All work well.
I seem to be getting problems with "localinstall" as well. - this when trying to install "sysmon" :-?

[root@server ~]# yum localinstall smeserver-system_monitor-1.1-1.noarch.rpm
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Setting up Local Package Process
Examining smeserver-system_monitor-1.1-1.noarch.rpm: smeserver-system_monitor - 1.1-1.noarch
Marking smeserver-system_monitor-1.1-1.noarch.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-system_monitor.noarch 0:1.1-1 set to be updated
--> Running transaction check
Setting up repositories
smeaddons                 100% |=========================| 2.3 kB    00:00
smeextras                 100% |=========================| 2.3 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
smeos                     100% |=========================| 2.3 kB    00:00
smeupdates                100% |=========================| 2.5 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  84 kB    00:01
smeaddons : ################################################## 171/171
primary.xml.gz            100% |=========================|  18 kB    00:00
smeextras : ################################################## 55/55
primary.xml.gz            100% |=========================| 408 kB    00:32
http://vault.centos.org/4.9/os/i386/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.


This particular site which isn't different from the others seems to be problematic??
I want to install sme7admin for monitoring purposes- doesn't seem to like it??

Ill work away at it and if no joy will post a bug. Thanks John (NZL)
« Last Edit: May 05, 2013, 12:03:05 AM by ber »

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: error getting repository data...repository not found.
« Reply #7 on: May 05, 2013, 12:32:03 AM »
This particular site which isn't different from the others seems to be problematic??
I want to install sme7admin for monitoring purposes- doesn't seem to like it??
Ill work away at it and if no joy will post a bug. Thanks John (NZL)

No worries, but, does that site use same provider etc, same hardware etc for outside connections, you can see where I am going.

Theres something on that route between the box and the relevant files. Firewall?, Proxy? Other hardware configs?

If it was urgent and withinn your power I would maybe try, just to confirm, move that box to a network that is known to be OK and confirm it updates etc.

A search on the forums here coughs up a few of the same scenarios, some with definet answers, some with no conclusive answers and problem disappears after a few days.

Good Luck
--
qui scribit bis legit