Koozali.org: home of the SME Server

"cannot find a valid baseurl for repo: smeaddons"

Offline DragonDon

  • *
  • 24
  • +0/-0
"cannot find a valid baseurl for repo: smeaddons"
« on: May 08, 2011, 04:01:02 PM »
Ok, I posted this topic earlier today, it was a rather large one detailing everything I did and it took a decent amount of time to put it all together.  Now it does not even show up at all.  So I'm going to keep this short without any of the steps I did.  You can safely assume that I tried them all, which is the truth.

Error message I get when I try to update yum

 "cannot find a valid baseurl for repo: smeaddons"

I scoured google and the SME wiki as well as the forums and not a single one of the proposed solutions worked.

I tried browsing the ibiblio link listed in the update file and it will not show in my browser.

So, why is the default url not work?  Meaning is there another url to use for updates?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #1 on: May 09, 2011, 12:50:31 AM »
DragonDon

Please DO NOT create new threads on the same topic, it only spreads the information out and makes it difficult for "us" to follow what you have done etc.

Please give a link to the other thread.

You could try
yum clean all
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline DragonDon

  • *
  • 24
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #2 on: May 09, 2011, 02:01:10 AM »
Oh I wouldn't create a second thread thread if the first thread existed.  It somehow did not get posted to the board.  So there is no link.

I have tried that and no change.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #3 on: May 09, 2011, 02:12:40 AM »
DragonDon

Click on the FAQ link at top of forums and read the Yum Updates section. Work through the info provided and report your results.
Please give a db output for that repository in question. Also provide the full command you use and the full error message.

We cannot read your mind to know everything you did, you have to tell us one by one each "fix" that you try, and quote all commands used verbatim please.

What version SME ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline DragonDon

  • *
  • 24
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #4 on: May 09, 2011, 08:05:05 AM »
Hi Mary,

You must be the mother of <insert favourite deity/saint> for the patience that you bring :)

Going with the 'general' section (as this specific error was not listed) I followed the "Yum doesn't seem to be working correctly. What do I do now?" section.

[root@chronias ~]# yum clean metadata
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Cleaning up xml metadata
0 metadata files removed

[root@chronias ~]# yum clean all
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Cleaning up Everything
0 headers removed
0 packages removed
0 metadata files removed
0 cache files removed
0 cache files removed

[root@chronias ~]# yum update
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
Cannot find a valid baseurl for repo: smeaddons
Error: Cannot find a valid baseurl for repo: smeaddon

And the problem persists.

My question is should the 'baseurl' listed be browseable by a web browser?

Follwing said document mentioned earlier, I proceeded to the next listed step:

"To flush the up stream proxies, using wget, run:"


[root@chronias ~]# wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/filelists.xml.gz
--14:44:12--  http://apt.sw.be/fedora/3/en/i386/dag/repodata/filelists.xml.gz
           => `filelists.xml.gz'
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,094,612 (2.0M) [application/x-gzip]

100%[====================================>] 2,094,612    365.23K/s    ETA 00:00

14:44:26 (279.59 KB/s) - `filelists.xml.gz' saved [2094612/2094612]

(to save this from being an overly lengthy quote, the wget commands were successful)

wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/filelists.xml.gz
wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/primary.xml.gz
wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/repomd.xml

I then ran the yum update.

[root@chronias ~]# yum update
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
Cannot find a valid baseurl for repo: smeaddons
Error: Cannot find a valid baseurl for repo: smeaddon

Also, can you be more specific in the request you state.  Saying "Please give a db output for that repository in question" is too generic for me to be able to know exactly what you are asking.  Good thing I know how to use a search.  The problem with stating it the way you did is that it gave me zero clue about how to do exactly what you wanted.  If you has said 'use the show command', THAT is more useful and I can learn how to construct the proper syntax.  This is a classic case of someone who knows a product but automatically assuming that another person understands the slang used when dealing with details of said product.

And yes, I have read the article, but I have a LONG way to go before memorizing such things.

[root@chronias ~]# db yum_repositories show smecontribs
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME Server - contribs
    Visible=no
    status=disabled

My SME version is 7.5.1

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #5 on: May 09, 2011, 08:58:49 AM »
DragonDon

Quote
The problem with stating it the way you did is that it gave me zero clue about how to do exactly what you wanted.  If you has said 'use the show command', THAT is more useful and I can learn how to construct the proper syntax.  This is a classic case of someone who knows a product but automatically assuming that another person understands the slang used when dealing with details of said product.

It was a deliberate choice on my part NOT to quote the exact command syntax, so that you would be prompted to go look for it and learn something in the process. I was sure you would find it in the various documentation available. I steered you in the right direction and made you think for yourself to solve the db command syntax, good !


Quote
chronias
 db yum_repositories show smecontribs
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME Server - contribs
    Visible=no
    status=disabled

OK on my SME 7.5.1 server I get the following, which shows that your db entry is missing the BaseURL, so it is understandable you get the error that you do.

db yum_repositories show smecontribs

smecontribs=repository
    BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smecontribs/$basearch
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME Server - contribs
    Visible=no
    status=disabled

You can manually add it or delete that whole db entry for smecontribs, and then instruct SME to rebuild/recreate the default yum repository database entries. Again I'm sure there are instructions published re how to do that, so no need for me to tell you.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline haliparotin

  • ***
  • 102
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #6 on: May 09, 2011, 09:11:50 AM »
i have same error... please tell me what can i do?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #7 on: May 09, 2011, 09:38:53 AM »
DragonDon & haliparotin

OK, this command will replace the missing entry (this command should be entered all on one line)

db yum_repositories setprop smecontribs BaseURL 'http://mirror.contribs.org/pub/smeserver/releases/7/smecontribs/$basearch'

followed by

signal-event yum-modify

Please review the output of the following command to understand how to use the db command syntax, and also read the various Howtos on the topic (link at top of forum) & the FAQ.

db

(Note - post edited to add single quotes)
« Last Edit: May 11, 2011, 12:23:13 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline DragonDon

  • *
  • 24
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #8 on: May 09, 2011, 11:27:17 AM »

Offline DragonDon

  • *
  • 24
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #9 on: May 09, 2011, 12:28:06 PM »
Hi Mary,

Ok, so I followed your 'here's the answer' instructions and that still did not work.  I checked the smecontribs property and saw something that caught my eye.  Following your instructions, I noticed that the BaseURL showed as

[root@chronias ~]# db yum_repositories show smecontribs
smecontribs=repository
    BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smecontribs/
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME Server - contribs
    Visible=no
    status=disabled

I noted that it was missing the "$basearch"

I decided to try something else.  Yes, dangerous I know but I am enjoying learning so why not experiment a little :O

I redid the setprop command but this time left out the "/$basearch" part.

[root@chronias ~]# db yum_repositories show smecontribs
smecontribs=repository
    BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smecontribs
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
    Name=SME Server - contribs
    Visible=no
    status=disabled

This too failed.

I think that trying your " manually add it or delete that whole db entry for smecontribs, and then instruct SME to rebuild/recreate the default yum repository database entries" is probably a better way to go at this point.

Looking for those instructions now.

Offline haliparotin

  • ***
  • 102
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #10 on: May 09, 2011, 12:36:13 PM »
thank you for help... its that ok im using SME server 8 beta 6? i try to follow the command its still the same error? :( :( :(

Offline DragonDon

  • *
  • 24
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #11 on: May 09, 2011, 01:46:57 PM »
Hi Mary,

Well, I found this previous example of the same thing:

http://forums.contribs.org/index.php?topic=44039.0

Very annoying that it didn't come up in any regular searches but at least it's here now :)

I followed:

To reset all your repos to correct default values do the following:

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases
expand-template /etc/yum.conf
signal-event post-upgrade; signal-event reboo

After I ran /etc/e-smith/events/actions/initialize-default-databases  I got the following response:

[root@chronias db]# /etc/e-smith/events/actions/initialize-default-databases
Migrating existing database yum_available
Migrating existing database accounts
Migrating existing database configuration
Migrating existing database yum_updates
Migrating existing database hosts
Migrating existing database networks
Migrating existing database mailpatterns
Migrating existing database domains
Migrating existing database yum_installed
Migrating existing database yum_repositories
WARNING in /etc/e-smith/db/yum_repositories/migrate//10GPG_and_Groups: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/esmith/config.pm line 263.
WARNING: Template processing succeeded for /: 1 fragment generated warnings
 at /usr/lib/perl5/site_perl/esmith/DB.pm line 459
Migrating existing database backups
Migrating existing database spamassassin

Event after a post-upgrade and reboot, the same error remains.

Wow...just, wow.....this setting is just not taking.  It seems that the "$basearch" will not stay in the config file.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #12 on: May 09, 2011, 02:18:25 PM »
DragonDon

If it is not working as supposed to, even after following recommended procedures, then I suggest you lodge a bug report at bugzilla.
Put all the pertinent information in that bug report rather than just linking to this forum post.
The devs are busy and the least work possible you give them, then the better chance you have of getting this resolved.
Thanks
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #13 on: May 09, 2011, 02:20:02 PM »
haliparotin

Quote
its that ok im using SME server 8 beta 6?
Please refer to the SME 8 pages for specific details re SME 8 beta, linked from the main contribs.org page.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: "cannot find a valid baseurl for repo: smeaddons"
« Reply #14 on: May 09, 2011, 03:58:48 PM »
OK on my SME 7.5.1 server I get the following, which shows that your db entry is missing the BaseURL, so it is understandable you get the error that you do.

No, this is not true. If MirrorList appears, then BaseURL is ignored. "cannot find a valid baseurl' means that the mirror url was not reachable, or did not produce usable output.

Moreover, you are looking at 'smecontribs' settings, when the error message reports an issue with 'smeaddons'.