Koozali.org: home of the SME Server

Updating not working? (Resolved)

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« on: March 02, 2007, 05:43:30 AM »
I have SME Server 7.0 that I upgraded to 7.1. In the SME Server Panel, under software installer. There are a number of upgrades listed. All are blue in color. I try to install them, all kinds of good things seem to be happening and finally I am asked to reconfigure, the system reboots  and then..... The same upgrades are still listed as available. For some reason the upgrades are not installed or not detected as being installed. I have "installed" them 3 times without success.

I would appreciate any help or insight that can be given.

Thx

Offline pfloor

  • *****
  • 889
  • +1/-0
Updating not working? (Resolved)
« Reply #1 on: March 02, 2007, 06:44:54 AM »
Please take this to the bug tracker.
In life, you must either "Push, Pull or Get out of the way!"

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #2 on: March 02, 2007, 12:32:36 PM »
Will do, just waiting for password to be emailed

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #3 on: March 02, 2007, 10:32:24 PM »
But while I'm waiting..... :?

Does anybody have this problem?

Offline pfloor

  • *****
  • 889
  • +1/-0
Updating not working? (Resolved)
« Reply #4 on: March 02, 2007, 10:45:34 PM »
Quote from: "imcintyre"
Will do, just waiting for password to be emailed

Check your email now!
In life, you must either "Push, Pull or Get out of the way!"

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #5 on: March 03, 2007, 03:02:45 PM »
Quote
Check your email now!


Hmmmm. Checked email and checked and...

I'll try another email account.

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #6 on: March 03, 2007, 04:22:28 PM »
Ok. I have reported to Bug Tracker

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Updating not working? (Resolved)
« Reply #7 on: March 03, 2007, 04:31:17 PM »
Please, try this command:

Code: [Select]
yum clean all

and when finish:

Code: [Select]
yum update

Confirm you have selected these repositories:
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled

I not upgrade properly, please post the errors.

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #8 on: March 04, 2007, 01:33:39 AM »
I ran both your commands and there were no errors reported and no commands required afterward.

Is there anything else I should look at

Thx in advance for your help.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #9 on: March 04, 2007, 01:55:58 AM »
From the command line.
Code: [Select]
db yum_repositories setprop updates Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts
Code: [Select]
db yum_repositories setprop base Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts
Code: [Select]
db yum_repositories setprop centosplus Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts,perl*,httpd,mod_ssl
Code: [Select]
expand-template /etc/yum.conf
Code: [Select]
yum clean all
Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons

If it still fails look in /etc/e-smith/db and clean out the yum directories (except the repositories one although you could if you don't have any custom repositories).

Code: [Select]
rm /home/e-smith/db/yum_available
rm /home/e-smith/db/yum_installed
rm /home/e-smith/db/yum_updates
signal-event post-upgrade
signal-event reboot
Regards,
William

IF I give advise.. It's only if it was me....

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #10 on: March 04, 2007, 08:11:17 PM »
William:

Is this all one command/one line of code?

Quote
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Thx in advance

Ian

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #11 on: March 04, 2007, 08:14:34 PM »
having some problems getting yum updates and files...


Code: [Select]
[root@server71 ~]# yum update \
> --disablerepo=* \
> --enablerepo=base \
> --enablerepo=updates \
> --enablerepo=smeos \
> --enablerepo=smeupdates \
> --enablerepo=smeaddons
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
smeos                     100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  157 B    00:00
Added 0 new packages, deleted 0 old in 0.02 seconds
primary.xml.gz            100% |=========================| 106 kB    00:00
updates   : ################################################## 308/308
Added 308 new packages, deleted 0 old in 14.01 seconds
primary.xml.gz            100% |=========================| 569 kB    00:00
base      : ################################################## 1500/1500
Added 1500 new packages, deleted 0 old in 48.23 seconds
primary.xml.gz            100% |=========================| 257 kB    00:08
smeos     : ################################################## 486/486
Added 486 new packages, deleted 0 old in 21.91 seconds
primary.xml.gz            100% |=========================|  77 kB    00:02
http://mirror.contribs.org/smeserver/releases/7/smeupdates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  77 kB    00:00
http://mirror.contribs.org/smeserver/releases/7/smeupdates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  77 kB    00:00
http://mirror.contribs.org/smeserver/releases/7/smeupdates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz            100% |=========================| 3.1 kB    00:00
smeupdates: ################################################## 2/2
Added 2 new packages, deleted 0 old in 0.23 seconds
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
No Packages marked for Update/Obsoletion


and

signal-event post-upgrade
signal-event reboot

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #12 on: March 04, 2007, 08:26:02 PM »
Also this
Code: [Select]
[root@server71 ~]# yum --enablerepo=* install netpbm
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Install Process
Setting up repositories
smetest                   100% |=========================|  951 B    00:00
smedev                    100% |=========================|  951 B    00:00
http://mirror.centos.org/centos/4/testing/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: testing
failure: repodata/repomd.xml from testing: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from testing: [Errno 256] No more mirrors to try.

Offline byte

  • *
  • 2,183
  • +2/-0
Updating not working? (Resolved)
« Reply #13 on: March 04, 2007, 10:52:26 PM »
As always please report bugs and potential bugs in the bug tracker -  Dont forget to search the bug tracker as your problem may exist. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #14 on: March 04, 2007, 10:53:02 PM »
Byte:

If "file bug" comment is directed at me, see Bug 2610. I wasn't sure if it was a bug or I was just a screw up so I filed here first.

Electroman:

Not sure if this is a question or an answer. Assuming it is a question, should you be updating from the "testing" repository?

Ian

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #15 on: March 05, 2007, 02:24:16 AM »
Ran...

yum --enablerepo=* install netpbm

from the command line and it borked as above but then ran it from servman
and all went well.

Not sure if it is a bug or needed to have testing enabled.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #16 on: March 05, 2007, 08:03:34 AM »
Quote from: "imcintyre"
William:

Is this all one command/one line of code?

Quote
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Thx in advance

Ian


The backslash is used to wrap lines and is handy to keep things neat.

Just cut and paste the whole lot into a terminal window.

If you go back through your console history you will see how it was converted to one line.
Regards,
William

IF I give advise.. It's only if it was me....

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #17 on: March 05, 2007, 08:27:32 AM »
This works

yum --enablerepo=base install netpbm

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #18 on: March 05, 2007, 08:30:53 AM »
Quote from: "electroman00"
This works

yum --enablerepo=base install netpbm


You can search all your repositories and then decide which one to get it from.. if you have a choice.

Code: [Select]
yum whatprovides netpbm --enablerepo=*

Lots of options with yum.
Regards,
William

IF I give advise.. It's only if it was me....

Offline electroman00

  • *****
  • 491
  • +0/-0
Updating not working? (Resolved)
« Reply #19 on: March 05, 2007, 08:38:36 AM »
10-4 William

yum --enablerepo=* install netpbm

Works on 7.1 but not on 7.1.1

Humm...starting to look like a bug in 7.1.1

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #20 on: March 05, 2007, 12:06:37 PM »
William;

See error at end, this still seems screwed up.

Ran this:
Quote
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Results were:
Quote


IMc - some deletions for brevity
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libghttp to pack into transaction set.
libghttp-1.0.9-10.99_2.el 100% |=========================| 4.5 kB    00:00
---> Package libghttp.i386 1:1.0.9-10.99_2.el4.at set to be updated
---> Downloading header for perl-Digest-SHA to pack into transaction set.
perl-Digest-SHA-5.44-1.el 100% |=========================| 3.9 kB    00:00
---> Package perl-Digest-SHA.i386 0:5.44-1.el4.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 DCC                     i386       1.3.50-16.el4.at  smeupdates        1.3 M
 aspell                  i386       12:0.60.3-7.1.el4.sme  smeupdates   1.0 M
 aspell-de               i386       50:0.50-11.2.2.el4.sme  smeupdates  3.5 M
 aspell-en               i386       50:6.0-2.1.el4.sme  smeupdates      1.5 M

IMc - some deletions for brevity
                                                                           
 pam_abl                 i386       0.2.3-2.el4.sme  smeupdates         22 k
 perl-Compress-Zlib      i386       1.42-1.el4.rf    smeos             152 k
 perl-Digest-SHA         i386       5.44-1.el4.rf    smeupdates         78 k
 perl-HTTP-GHTTP         i386       1.07-4.el4.at    smeupdates         30 k
 perl-Mail-DKIM          noarch     0.22-1.el4.sme   smeupdates         70 k
 pv                      i386       0.9.6-1.el4.rf   smeupdates         49 k

Transaction Summary
=============================================================================
Install     11 Package(s)
Update      62 Package(s)
Remove       0 Package(s)
Total download size: 57 M
Is this ok [y/N]: y
Downloading Packages:
(1/73): e-smith-backup-1. 100% |=========================|  67 kB    00:00
(2/73): e-smith-ldap-4.12 100% |=========================|  50 kB    00:00

IMc - some deletions for brevity

(73/73): aspell-en-6.0-2. 100% |=========================| 1.5 MB    00:11
Running Transaction Test
Finished Transaction Test


Transaction Check Error:   package kernel-2.6.9-42.0.10.EL (which is newer than
kernel-2.6.9-42.0.8.EL) is already installed package kernel-smp-2.6.9-42.0.10.EL
(which is newer than kernel-smp-2.6.9-42.0.8.EL) is already installed
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@server /]#

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #21 on: March 05, 2007, 12:26:41 PM »
Bit hard to explain via forums but here goes..

What version kernel modules do you have ?

Code: [Select]
rpm -qa kmod*

I'll assume there _42.0.8.EL

Which version kernel are you running?

Code: [Select]
uname -r

I'll assume it's 2.6.9-42.0.10.EL

I'll also assume it's a production machine so we will downgrade the kernel.

If you can sit in front of the machine, reboot it and select a 2.6.9-42.0.8.EL kernel at boot time.

Or edit /boot/grub/grub.conf and change the 'default' line to be your required kernel. The list of kernels start at 0 and count down the list. Save your edits and reboot.

Repeat the above commands and make sure your kmods equal your kernel.

Now, remove the 'newer' kernels.

Code: [Select]
yum remove kernel-2.6.9-42.0.10.EL
yum remove kernel-smp-2.6.9-42.0.10.EL


If it wants to remove anything else come back here with a list.

Now try the update process again.
Regards,
William

IF I give advise.. It's only if it was me....

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #22 on: March 05, 2007, 01:05:03 PM »
Thx for quick response. It's a "production" machine I use at home. I'm about to go to work so I will do this evening.

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #23 on: March 06, 2007, 03:26:35 AM »
William:

Quote
Code: rpm -qa kmod*


Result:
Quote
[root@server /]# rpm -qa kmod*
kmod-appletalk-smp-1.0-1.2.6.9_42.0.3.EL
kmod-slip-1.0-1.2.6.9_42.0.3.EL
kmod-slip-smp-1.0-1.2.6.9_42.0.3.EL
kmod-ppp-smp-1.0.2-1.2.6.9_42.0.3.EL
kmod-ppp-1.0.2-1.2.6.9_42.0.3.EL
kmod-appletalk-1.0-1.2.6.9_42.0.3.EL


Quote
Code: uname -r


Result:
Quote
[root@server /]# uname -r
2.6.9-42.0.10.ELsmp


Following your idea of editing grub.conf:
Quote
login as: root
root@192.168.7.1's password:
Last login: Mon Mar  5 20:41:59 2007 from pc-00050.mydomain.ca
[root@myserver ~]# cd ..
[root@myserver /]# cd /boot/grub/

[root@myserver grub]# pico grub.conf
   UW PICO(tm) 4.10                                                      File: grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/main/root
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title SME Server (2.6.9-42.0.10.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.10.EL ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.10.EL.img
title SME Server (2.6.9-42.0.10.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.10.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.10.ELsmp.img
title CentOS (2.6.9-42.0.3.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.EL ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.3.EL.img
title CentOS (2.6.9-42.0.3.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-42.0.3.ELsmp.img
title CentOS (2.6.9-34.0.2.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.0.2.EL ro root=/dev/main/root
        initrd /initrd-2.6.9-34.0.2.EL.img
title CentOS (2.6.9-34.0.2.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.0.2.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-34.0.2.ELsmp.img
title SME Server (2.6.9-34.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/main/root
        initrd /initrd-2.6.9-34.ELsmp.img

^G Get Help               ^O WriteOut               ^R Read File              ^Y Prev Pg                ^K Cut Text               ^C Cur Pos
^X Exit                   ^J Justify                ^W Where is               ^V Next Pg                ^U UnCut Text             ^T To Spell


I should change detail = 3, however seeing that the prefix changed from SME Server to Centos made me uncertain about changing.

Is this right? Thx in advance for your help.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Updating not working? (Resolved)
« Reply #24 on: March 06, 2007, 06:50:06 AM »
Yes. Default = 3

Don't worry about the change of title. The developers don't alter the kernels between SME and CentOS.

In fact, with the 7.1.2 update now available, try updating per my original post again prior to making any changes.
Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons
Regards,
William

IF I give advise.. It's only if it was me....

Offline imcintyre

  • *
  • 609
  • +0/-0
Updating not working? (Resolved)
« Reply #25 on: March 06, 2007, 12:30:32 PM »
William;

I followed your "previous" instructions and got the following:

Quote
root@server ~]# uname -r
2.6.9-42.0.10.ELsmp

[root@server ~]# rpm -qa kmod*
kmod-ppp-smp-1.0.2-1.2.6.9_42.0.10.EL
kmod-appletalk-1.0-1.2.6.9_42.0.10.EL
kmod-slip-smp-1.0-1.2.6.9_42.0.10.EL
kmod-slip-1.0-1.2.6.9_42.0.10.EL
kmod-ppp-1.0.2-1.2.6.9_42.0.10.EL
kmod-appletalk-smp-1.0-1.2.6.9_42.0.10.EL
[root@server ~]#


and from the SME Server panel;

Quote
SME Server 7.1.2
Copyright 1999-2006 Mitel Corporation
All rights reserved.
Copyright 2006 SME Server, Inc.


It appears as though everything is consistent. Thx for you help and patience

Ian