Koozali.org: home of the SME Server

Question time again

Offline imcintyre

  • *
  • 609
  • +0/-0
Question time again
« on: February 08, 2007, 01:37:06 AM »
I have a SME server 7.0 install production server and a 7.1 test server I just constructed. I read in the announcement that the updates for 7.1 will be made available as updates for 7.0. All good so far.

I have updates on my v7.0 box set to check daily. The main page still reads
Quote
SME Server 7.0
Copyright 1999-2006 Mitel Corporation
All rights reserved.
Copyright 2006 SME Server, Inc.


How do/will I know that the updates are being install. I tried looking in the logs but couldn't discern anything useful. Thanks in advance for your help.

Offline OzMoosis

  • ***
  • 46
  • +0/-0
Question time again
« Reply #1 on: February 08, 2007, 09:30:24 AM »
First of all, updates aren't installed automatically. If there are updates available you will see this on the server-manager Software Installer page. You then have to click the appropriate button to "Install updates now".

Furthermore, you could check which repositories have been enabled in the server-manager/software installer settings. For a basic SME server "SME server - addons", "SME server - OS" and "SME server - updates" should be enabled.

Also check the logs called yum/yum.log. That should tell you which updates have been performed.

Finally, you could run this command:
Code: [Select]

# yum check-update



that will show if any updates are available.

Good luck,

Oz

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Question time again
« Reply #2 on: February 08, 2007, 11:58:54 AM »
Have you checked the admin mailbox for a "you have updates" email?

Code: [Select]
===
=== yum reports available updates:
===

bind-libs.i386                           20:9.2.4-24.EL4        updates
bind-utils.i386                          20:9.2.4-24.EL4        updates
fetchmail.i386                           6.2.5-6.el4.5          updates
gtk2.i386                                2.4.13-22              updates
kernel.i686                              2.6.9-42.0.8.EL        updates
kernel-smp.i686                          2.6.9-42.0.8.EL        updates
rkhunter.noarch                          1.2.8-4.el4.sme        smeupdates
smeserver-mailsorting.noarch             1.2-3                  dungog
sysstat.i386                             5.0.5-11.rhel4         base
texinfo.i386                             4.7-5.el4.2            updates
xorg-x11-Mesa-libGL.i386                 6.8.2-1.EL.13.37.5     updates
xorg-x11-deprecated-libs.i386            6.8.2-1.EL.13.37.5     updates
xorg-x11-libs.i386                       6.8.2-1.EL.13.37.5     updates
Regards,
William

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

Offline imcintyre

  • *
  • 609
  • +0/-0
Question time again
« Reply #3 on: February 08, 2007, 07:18:46 PM »
Ozmoosis: I followed your thread with the following results:

I have never looked at these pages before. My "Software Installer" page looks like this:

Quote
Software installer
   Remove installed software
 


--------------------------------------------------------------------------------

 
Check for updates daily  Enabled
Manage individual packages  Enabled
Change software installer settings

 


Quote
Software installer
   Check for updates daily   DisabledEnabled
The software installer can manage groups of related package or individual packages. By default, only groups of packages are presented. If you wish to manage individual packages, enable this option. This should only be done by experienced administrators.
 
Manage individual packages   DisabledEnabled
The software installer can install software from any of enabled repositories. To enable a repository, select it from the list. To disable a repository, de-select it from the list. By default, only stable, tested software is available for installation.
 
Enabled repositories   SME Server - addonsSME Server - osSME Server - updatesSME Server - updates testing


I noticed that the updates testing is enabled is this ok?

I logged in as root and ran the code suggested with the following results:
Quote
[root@mcserver1 ~]# yum check-update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
Reading repository metadata in from local files
================================================================
No new rpms were installed. No additional commands are required.
================================================================


I would read this as up to date. The server has been up and running for 6 months or more but I have never installed except Vip-ire's Openvpn and MoinMoin wiki. Those installs are a couple of months old also.

Does this seem right?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Question time again
« Reply #4 on: February 08, 2007, 10:36:28 PM »
Quote from: "imcintyre"
I logged in as root and ran the code suggested with the following results:
Quote
[root@mcserver1 ~]# yum check-update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
Reading repository metadata in from local files
================================================================
No new rpms were installed. No additional commands are required.
================================================================


I would read this as up to date. The server has been up and running for 6 months or more but I have never installed except Vip-ire's Openvpn and MoinMoin wiki. Those installs are a couple of months old also.

Does this seem right?
No, you have only enabled the smeaddons repository. No updates will be found there at the moment. You can enable the repositories per the server-manager by Ctrl+clicking the repositories in the list on the Software Installer page.

An easier option (as I know upgrade from stock 7.0 to 7.1 will provide a few issues) is to issue the following command from the server shell (which will temporary enable smeos and smeupdates repositories):
Code: [Select]
yum update --enablerepo=smeupdates --enablerepo=smeos This should list you with a little over 200 packages that will be updated I guess, this will take a while. After the command has completed do not forget to issue the following commands:
Code: [Select]
signal-event post-upgarde
signal-event reboot

After the reboot you should see that your server is version 7.1. At boot time be sure to check that you have the correct kernel (as this was also a bug that after a upgrade the wrong kernel sometimes was selected).

After the reboot check in the server manager that at least the following repositories are selected for updates:
  • CentOS - os
  • CentOS - updates
  • SME Server - addons
  • SME Server - os
  • SME Server - updates
Good luck!
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 OzMoosis

  • ***
  • 46
  • +0/-0
Question time again
« Reply #5 on: February 09, 2007, 09:44:14 AM »
Thanks for your help, Cactus. However, I disagree with having the Centos repositories  enabled in the update settings.
As a matter of fact, you yourself told me not enable them in an answer to a question I posted about updates last december !!! ;-)

Oz

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Question time again
« Reply #6 on: February 09, 2007, 09:48:16 AM »
Quote from: "OzMoosis"
Thanks for your help, Cactus. However, I disagree with having the Centos repositories  enabled in the update settings.
As a matter of fact, you yourself told me not enable them in an answer to a question I posted about updates last december !!! ;-)

Oz


Policy changed.

Check the bug tracker.
Regards,
William

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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Question time again
« Reply #7 on: February 09, 2007, 05:16:13 PM »
Quote from: "OzMoosis"
As a matter of fact, you yourself told me not enable them in an answer to a question I posted about updates last december !!! ;-)
I know I adviced against it at that time, that was because at that time it was advised (by the development team) not to do so, like william_syd already explained:
Quote from: "william_syd"
Policy changed.

Check the bug tracker.
The policies of the development team have changed: new installs will have the base and updates repository enabled by default, upgrades from older version will have them visible but not enabled by default. The latter is done so not to surprise people...
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 imcintyre

  • *
  • 609
  • +0/-0
Question time again
« Reply #8 on: February 10, 2007, 04:54:31 PM »
Cactus:
I'm a complete "tard" with respect to your advice. I have two concerns:

1)
Quote
An easier option (as I know upgrade from stock 7.0 to 7.1 will provide a few issues) is to issue the following command from the server shell (which will temporary enable smeos and smeupdates repositories):

This is my home "production" server/gateway so I would like to avoid "issues". Nothing like people sulking cause chat rooms and you tube are not accessible. I will follow your 2nd advice and putty into the server as root and run the code you specified. You mentioned that the update will take "some time". The server is also my gateway. Will my network have access during that time or should I run overnight. Does the update require my input, e.g. selecting yes/no?

2)
Quote
After the reboot you should see that your server is version 7.1. At boot time be sure to check that you have the correct kernel (as this was also a bug that after a upgrade the wrong kernel sometimes was selected).


Where/how will I check for version?

Thanks in advance for your patience and help.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Question time again
« Reply #9 on: February 11, 2007, 12:36:18 PM »
1. You server will act like normal when you're upgrading. Then it wil reboot and that'll take a few minutes more than usual.

2. The simplest way to do this is to look at the server-manager console. You should see SME server 7.1 on the first page.

3. You shouldn't have issues with updating trough server-manager.
"It should just work" if it doesn't report it. Thanks!

Offline imcintyre

  • *
  • 609
  • +0/-0
Question time again
« Reply #10 on: February 11, 2007, 04:15:27 PM »
Thx all, it appeared to work perfectly. There were 263 packages installed/modified as I recall.

I checked the software installer page and have the following repositories enabled
Quote
CentOS - os
CentOS - updates
SME Server - addons
SME Server - os
SME Server - updates
SME Server - updates testing


Two questions:
1) What is "updates testing" repository and should it be enabled?

2) Is the procedure I just followed the one I will have to do all the time?

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Question time again
« Reply #11 on: February 11, 2007, 05:52:57 PM »
Disable updates-testing. You can do this torugh server-manager pannel. Under software installer/change settings.

The proces is managed trough the server-manager pannel. So no you won't have to undergo the same proces. You'll be notified of new updates trough admin mail and then you'll be able to update trough pannel. (software installer/update)

You wanted to update trough ssh and this is fine but the update under server-manager software would do the same and just as well.
The only difference between the two was in 7.0 when you couldn't see what the server was doing. You can see what the server is doing in 7.1 so i use the pannel a lot more for updates now that i can see if the server works or if it had an error or something similar.
"It should just work" if it doesn't report it. Thanks!

Offline imcintyre

  • *
  • 609
  • +0/-0
Question time again
« Reply #12 on: February 12, 2007, 12:52:17 AM »
Thanks again. I did have a problem in that several hours after update and using signal event commands with reboot, the server seemed to freeze. I could not putty into it and the keyboard/monitor on the computer itself would not respond. I powered it down and restarted and everything seems back to normal. I'll keep an eye on it.

Offline imcintyre

  • *
  • 609
  • +0/-0
Question time again
« Reply #13 on: February 12, 2007, 12:57:19 AM »
I went into the Software Installer to remove "SME Server - updates testing" but could not find a way to select or deselect from the menu, even though it says you can. Any advice?

Offline OzMoosis

  • ***
  • 46
  • +0/-0
Question time again
« Reply #14 on: February 12, 2007, 09:53:05 AM »
To deselect a repository:

Hold down the CTRL-key and click on the repo you want to deselect. The line you click should turn white, the others should stay what they were (blue or white). Release CTRL and click the Save button.

If you make a mistake, then don't click the Save button, just go back and start again,

Oz