Koozali.org: home of the SME Server

Software-install/update from wrong repos - Webmail only works for admin

Offline 7eis

  • *
  • 47
  • +0/-0
Hi! I 'recently' moved to a place closer to highscool, leaving my sme-box at home. I introduced my father to the updating and handed over the log on information. At my lastest visit i enabled all repos to have a look at the packages available. Of cause I forgot to disable the ones that isn't enabled by default. Next thing I know, my dad calls me telling that he is only able to log-in to horde/imp (sme/webmail) using the adminstrator-account. I quickly realise that its my fault because I'm the one who enable all the repos.

I tried to disable the webmail, reboot, enable it again, but I'm still only able to log-in as admin - and i have no idea what packages he installed from the repos (he said that the box acted very weird when updating, so he stopped after a bunch of tries).

My only hope is that you can tell, from the yum.log, which packages I should remove/replace - AND which repos is enabled by default.

The box is a coppermine with 256mb of ram and a singel 80gb PATA-drive, but I think Its running with a SMP-enabled kernel which may be critical from what I can tell.


Following is the yum.log (fetched from the server-manager)
The message exceeds the maximum allowed length (20000 characters), so I uploaded the log on a familiar host.
http://peecee.dk/uploads/0807/yum.log

I hope some of you guys can handle this, to me, complicated situation.

Best regards
Teis Dreijer
« Last Edit: August 18, 2007, 12:45:17 PM by 7eis »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #1 on: August 18, 2007, 02:06:17 PM »
Hopefully you just installed from the 7.1 iso (or earlier) and have not yet reset your default yum repositories.

Run through the 7.2 yum update instructions here: http://wiki.contribs.org/Updating_to_SME_7.2#Yum_Update and keep your fingers crossed!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #2 on: August 18, 2007, 09:41:37 PM »
Hi! I 'recently' moved to a place closer to highscool, leaving my sme-box at home. I introduced my father to the updating and handed over the log on information. At my lastest visit i enabled all repos to have a look at the packages available. Of cause I forgot to disable the ones that isn't enabled by default.
Next time when you try to do such a thing access a SME Server shell and issue the following command, which won't install anything and will only list all updates:
Code: [Select]
yum list updates --enablerepo=*
I tried to disable the webmail, reboot, enable it again, but I'm still only able to log-in as admin - and i have no idea what packages he installed from the repos (he said that the box acted very weird when updating, so he stopped after a bunch of tries).

My only hope is that you can tell, from the yum.log, which packages I should remove/replace - AND which repos is enabled by default.
The list of default repositories is listed in the wiki. Perhaps you can also have a look in the log file if the server did it's reconfigure event after installing all the RPMS listed in the yum.log, the /var/log/messages file should give a lot of database modifications and events being fired, followed by a reboot.

Following is the yum.log (fetched from the server-manager)
The message exceeds the maximum allowed length (20000 characters), so I uploaded the log on a familiar host.
http://peecee.dk/uploads/0807/yum.log

I hope some of you guys can handle this, to me, complicated situation.
As far as I can see (after only a quick look) it seems that the last thing the server did is pull in and install SME Server 7.2 RPMS. The only thing you/your father forgot is reading the upgrade instructions. Like mmccarn said following them might resolve your problem.

A few notes of advice:
  • Do not update without looking at the forums for update instructions in the topics that announce a new release
  • Configure your server so you have remote access so you can administrate it for/with your father. Think about setting up VPN or configuring remote access to server-manager and perhaps also to the server shell using SSH and private/public keys
« Last Edit: August 18, 2007, 09:43:31 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline 7eis

  • *
  • 47
  • +0/-0
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #3 on: August 18, 2007, 09:52:34 PM »
Hopefully you just installed from the 7.1 iso (or earlier) and have not yet reset your default yum repositories.

Run through the 7.2 yum update instructions here: http://wiki.contribs.org/Updating_to_SME_7.2#Yum_Update and keep your fingers crossed!

Thanks for your reply. I dont recall what the original version were.

Something appears to be wrong (I cant tell if the 'could not update' is because the packages are already present, or not). Any advice on this, or should I just proceed?

Code: [Select]
root@box ~]# yum update smeserver-support smeserver-yum yum yum-plugin-fastest-mirror python-sqlite
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00     
smeupdates                100% |=========================|  951 B    00:00     
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Could not find update match for python-sqlite
Could not find update match for yum
Could not find update match for smeserver-yum
Could not find update match for yum-plugin-fastest-mirror
Could not find update match for smeserver-support
No Packages marked for Update/Obsoletion
================================================================
No new rpms were installed. No additional commands are required.
================================================================

Edit:
..Wisom..

Thanks for sharing your knowledge. I will try to adopt your advice and add to my personal SME-notes. Concerning remote adminstration, I already do have a VNP-tunnel set up.

I guess I will think it over twice next time I want to 'outsource' :?

Edit2: Ok, the server-manager claims the server to be  SME Server 7.1.3, so I'll try and proceed upgrading to 7.2 and she will hopefully be back up and running like a charm again.

Edit3: Updated specified packages, cleaned yum repos + set default repos, updated all default (103 packages or so). Now my only doubts is if I should proceed with the 'Generic Instructions' (if I will have to completely reconfigure my server or not),  I still have a SMP kernel tho, but webmail works as intended :-)
« Last Edit: August 19, 2007, 02:00:58 PM by 7eis »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #4 on: August 19, 2007, 11:03:43 PM »
Code: [Select]
root@box ~]# yum update smeserver-support smeserver-yum yum yum-plugin-fastest-mirror python-sqlite
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00     
smeupdates                100% |=========================|  951 B    00:00     
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Could not find update match for python-sqlite
Could not find update match for yum
Could not find update match for smeserver-yum
Could not find update match for yum-plugin-fastest-mirror
Could not find update match for smeserver-support
No Packages marked for Update/Obsoletion
================================================================
No new rpms were installed. No additional commands are required.
================================================================
Am I mistaken or do you only have two repositories enabled? You need all five mentioned in this wiki FAQ entry. If you do not have all five you are probably missing some important updates needed for SME Server 7.2...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline 7eis

  • *
  • 47
  • +0/-0
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #5 on: August 20, 2007, 03:03:26 PM »
Am I mistaken or do you only have two repositories enabled? You need all five mentioned in this wiki FAQ entry. If you do not have all five you are probably missing some important updates needed for SME Server 7.2...
I'm unsure if I had all needed repos enabled at the time, but they sure are now. My best guess is that only those two repos was needed for the packages requested.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #6 on: August 20, 2007, 03:07:48 PM »
I'm unsure if I had all needed repos enabled at the time, but they sure are now. My best guess is that only those two repos was needed for the packages requested.
AFAIK yum lists all enabled repositories at that time and not the one required, that si a step that is done later on in the preocess. What does it report at the moment with all required repositories enabled? Additional updates or no updates at all? (it might be necessary to wait for 24h or you should manually run the yum-updatedb event from the command line as I am not sure if it will run automatically after changing repository parameters.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline 7eis

  • *
  • 47
  • +0/-0
Re: Software-install/update from wrong repos - Webmail only works for admin
« Reply #7 on: August 20, 2007, 05:59:18 PM »
AFAIK yum lists all enabled repositories at that time and not the one required, that si a step that is done later on in the preocess. What does it report at the moment with all required repositories enabled? Additional updates or no updates at all? (it might be necessary to wait for 24h or you should manually run the yum-updatedb event from the command line as I am not sure if it will run automatically after changing repository parameters.
I'm fine, thank you.