Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: dave simmons on May 10, 2009, 04:25:26 PM

Title: Phpmyadmin Contrib problem
Post by: dave simmons on May 10, 2009, 04:25:26 PM
Very basic problem - I'm trying to install the phpmyadmin contrib using the instructions in the Contribs area.

The command "yum --enablerepo=smecontribs install smeserver-phpmyadmin" doesn't seem to find the file to download?

I get the message

"No package smeserver-phpmyadmin available
Nothing to do"

Is the file missing, or am I doing something wrong
Title: Re: Phpmyadmin Contrib problem
Post by: cactus on May 10, 2009, 05:44:33 PM
Is the file missing, or am I doing something wrong
I guess you are doing something wrong as it will install on my test server. Are you sure you do not already have it installed? Does this output anything?
Code: [Select]
rpm -q smeserver-phpmyadmin
Title: Re: Phpmyadmin Contrib problem
Post by: aussierob on September 22, 2009, 07:51:50 AM
I guess you are doing something

I have a problem loading this too per below,
and
Code: [Select]
rpm -q smeserver-phpmyadmin says it is notinstalled

# yum --enablerepo=smecontribs install smeserver-phpmyadmin
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Loading "protect-packages" plugin


Cannot find a valid baseurl for repo: smecontribs

================================================================
No new rpms were installed. No additional commands are required.
================================================================
Title: Re: Phpmyadmin Contrib problem
Post by: cactus on September 22, 2009, 09:44:44 AM
Code: [Select]
Cannot find a valid baseurl for repo: smecontribs
================================================================
No new rpms were installed. No additional commands are required.
================================================================
Which seems to indicate that your configuration for the smecontribs repository is incorrect. What is the output of:

Code: [Select]
db yum_repositories show smecontribs
Title: Re: Phpmyadmin Contrib problem
Post by: aussierob on September 22, 2009, 02:40:53 PM
Which seems to indicate that your configuration for the smecontribs repository is incorrect. What is the output of:

Code: [Select]
db yum_repositories show smecontribs
Thanks for that cactus!
Info below, so I assume the 'disable' is an issue,
but I do not know
TIA Robert
 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
Title: Re: Phpmyadmin Contrib problem
Post by: cactus on September 22, 2009, 03:15:58 PM
Thanks for that cactus!
Info below, so I assume the 'disable' is an issue,
but I do not know
No as you seem to have disabled it using the --enablerepo option otherwise you would not even see this error as it should be ignored.

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
Judging from above and the error you are receiving there might be a invalid configuration file written in your case.

What is the output of:

Code: [Select]
grep 'smecontribs' -A 7 /etc/yum.smerepos.d/sme-base.repo
Did you also make sure you have a working internet connection from your server using http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter6#Option_3:_Test_internet_access
Title: Re: Phpmyadmin Contrib problem
Post by: aussierob on September 22, 2009, 03:40:34 PM
the result of the test you recommend is below.
I did not test the internet, but I had performed a wget joomla,
so I know that is ok (also the previous error was only after some fetch for
Code: [Select]
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Loading "protect-packages" plugin
(like the code marks bloke!)
and bugga me! retrying it to get the 'loading's for you - it WORKED.
and I am not aware of anything different!
Ce La Guerre!
And as said before Cactus - thanks for help!

Code: [Select]
[smecontribs]
enabled=0
mirrorlist=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
name=SME Server - contribs
gpgcheck=1
enablegroups=1

[smedev]
enabled=0
mirrorlist=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smedev-7
Title: Re: Phpmyadmin Contrib problem
Post by: janet on September 22, 2009, 04:28:23 PM
aussierob

That db entry is wrong.
It should read

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 fix yours by doing

db yum_repositories setprop smecontribs BaseURL http://mirror.contribs.org/pub/smeserver/releases/7/smecontribs/$basearch
(above is all on one line)
signal-event yum-modify

Title: Re: Phpmyadmin Contrib problem
Post by: aussierob on September 22, 2009, 04:45:52 PM
aussierob

That db entry is wrong.
Will do - many thanks Mary,

although I have NO idea how - Ce La Guerre eh
(the other thing I cannot explain, is it failed 3 or 4 times, although wget's worked. And then - when checking to report the 'Loading's - it worked: strange but move on - could the repository been down/over-busy?)

Thanks to ALL for help - SME Community rocks
Robert
Title: Re: Phpmyadmin Contrib problem
Post by: janet on September 22, 2009, 05:19:44 PM
aussierob

The error was clear:
"Cannot find a valid baseurl for repo: smecontribs"
That was the line that was missing from your repo configuration.
How it happened I don't know, and more importantly are any other repos incorrect ?

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 reboot