Koozali.org: home of the SME Server

sme 5.5 server update

Ron Moxham

sme 5.5 server update
« on: April 26, 2003, 07:37:18 AM »
Hi all
I am new to SME. I am running version 5.5 and I want to apply the
Update 6-02.
On DEVINFO it says the following

"The packages are available on our download sites. To install the
update packages manually, please copy all of the files from the RPMS
subirectory into a new directory on the server and then apply them as a
group. Finally, initiate a post-upgrade event followed by a system reboot"

rpm -Uvh --replacepkgs *.rpm
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

I am not sure how to " apply the RPM's as a group" Can anyone steer me to
where I can  can find a Howto or step by step to do this correctly?

Regards

geoff

Re: sme 5.5 server update
« Reply #1 on: April 26, 2003, 08:32:50 AM »
Do you have/know how to use Putty? If not go here:

http://www.carrollweb.net/putty/putty-howto.html

Once you have putty up and running:

1. Access your SME server from a Workstation using putty and login as 'root' using the 'admin' password.

2. You will see this command prompt:
[root@yourserver root]#


3. Using 'Server Manager' create an ibay (directory) on your SME server called 'techdrive'.
Copy or download the RPMS directory from the Update into 'techdrive'

4. Copy the following line, change to the putty screen and rightclick at the command prompt (or type in the following text):
 
cd /home/e-smith/files/ibays/techdrive/files/RPMS



You should see this:
[root@yourserver RPMS]#

5. Type:
 ls

which will show you the list of files in Update4. If they are not there go back and check from 3. above.

6. Copy the following line, change to the putty screen and rightclick at the command prompt (or type in the following text):

rpm -Uvh --replacepkgs *.rpm



7. That will take some time, but will keep you informed of what is happening and the percentage completed, and once back at the command prompt, repeat the above process using this line:

/sbin/e-smith/signal-event post-upgrade



which will take a while, then follow using this line:

/sbin/e-smith/signal-event reboot



Your server will reboot, and you can reach over your shoulder and pat yourself on the back.  : )

I hope this helps ...

Geoff

Ray Mitchell

Re: sme 5.5 server update
« Reply #2 on: April 26, 2003, 11:59:20 AM »
Good HOWTO Geoff

To add a little more, the reference to "as a group" means simply to instal all the rpms at the same time rather than one by one, and this is achieved using the command
rpm -Uvh --replacepkgs *.rpm

Note the rpm command sorts out the correct installation order of each rpm and therefore overcomes problems that some users have when they manually install the rpms in the wrong order ie dependency errors.

In another situation where you want to instal say 3 rpms to load some particular package, you would copy the 3 rpms to a folder with a unique name, and then cd to that folder and issue
rpm -Uvh *
or
rpm -Uvh *.rpm

It is a good idea to copy all installed rpms to an ibay on your server, but put them into seperate sub folders which makes them easier to instal using the above commands ie no need to type each individual rpm's long name.
It also gives you a good record of all additional rpms and updates that you have installed on your server. If you backup this ibay as well, you also have the rpms available to reinstal in the event you need to reinstal the operating system after a major failure. No searching for or trying to remember which rpms and which versions you installed, they are all there in your "techdrive" ibay backup.

Regards
Ray Mitchell

randy

Re: sme 5.5 server update
« Reply #3 on: April 26, 2003, 12:35:59 PM »
save your self some hassel and some hard drive space.

rpm -Uvh --replacepkgs ftp://ftp.e-smith.com/pub/e-smith/updates/5.6/Update4/RPMS/*.rpm



    /sbin/e-smith/signal-event post-upgrade
    /sbin/e-smith/signal-event reboot


randy

randy

Re: sme 5.5 server update
« Reply #4 on: April 26, 2003, 12:37:03 PM »
with putty or securecrt you can cut and past your commands... makes things even easer

Ron Moxham

Re: sme 5.5 server update
« Reply #5 on: April 26, 2003, 10:04:13 PM »
Thanks Geoff ,Ray and Randy for your help.

I followed your instructions anf got this error in Putty

failed dependencies

e-smith -mailfront >=0.3.7-02 dmc is needed by dmc-mitel-
mailrules-0.0.1-6

So I used this command

rpm -Uvh --nodeps *.rpm

SME went through the motions and I got 16 rpms out of the 24 I downloaded
saying  the this RPM is already installed.
Then SME went back to the command prompt.

Does that meant he rest were updated?
There was no mention on the screen about the rest of the downloaded rpms.

Anyway once I was back to the command prompt I ran the
/sbin/e-smith/signal-event post-upgrade
Followed by
/sbin/e-smith/signal-event reboot

The server rebooted fine.
One last question How do I check to see if I am now upgraded? :-)

Cheers
Ron

Ray Mitchell

Re: sme 5.5 server update
« Reply #6 on: April 26, 2003, 10:34:15 PM »
Ron
Do rpm -qa "rpmname" to see what is installed and compare with the files at the download site
eg
rpm -qa SMEServer*
rpm -qa samba*
rpm -qa e-smith*
rpm -qa openssh*
rpm -qa openssl*
rpm -qa xinetd*
rpm -qa pptpd*
rpm -qa initscripts*
rpm -qa apache*

should cover all the rpms in 5.5update6

I just did (ie 30 minutes ago) a 5.5U6 update myself and this is what I got on screen.

[root@server root]# rpm -Uvh --replacepkgs ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/*.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/SMEServer-5.5_Update6-02.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/apache-1.3.22-6es1.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-base-4.10.16-02.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-blades-1.4.8-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-email-4.10.4-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-horde-1.4.13-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-locale-fr_CA-1.2.8-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-mailfront-0.2.3-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-manager-1.6.1-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-named-1.8.1-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-packetfilter-1.8.1-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-samba-1.6.3-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-turba-0.20.2-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-viewlogfiles-1.0.6-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/initscripts-5.83-1es6.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssh-3.1p1-2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssh-clients-3.1p1-2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssh-server-3.1p1-2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssl-0.9.6b-28.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/pptpd-1.1.2-4es.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/samba-2.2.7-3.7.2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/samba-client-2.2.7-3.7.2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/samba-common-2.2.7-3.7.2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/xinetd-2.3.7-4.7x.i386.rpm
Preparing...                ########################################### [100%]
   1:initscripts            ########################################### [  4%]
   2:openssl                ########################################### [  8%]
   3:openssh                ########################################### [ 12%]
   4:samba-common           warning: /etc/samba/smb.conf created as /etc/samba/smb.conf.rpmnew
########################################### [ 16%]
   5:xinetd                 ########################################### [ 20%]
   6:e-smith-samba          ########################################### [ 25%]
   7:e-smith-manager        ########################################### [ 29%]
   8:e-smith-base           ########################################### [ 33%]
   9:e-smith-horde          ########################################### [ 37%]
  10:e-smith-locale-fr_CA   ########################################### [ 41%]
  11:e-smith-named          ########################################### [ 45%]
  12:e-smith-packetfilter   ########################################### [ 50%]
  13:e-smith-turba          ########################################### [ 54%]
  14:e-smith-viewlogfiles   ########################################### [ 58%]
  15:samba                  warning: /etc/logrotate.d/samba created as /etc/logrotate.d/samba.rpmnew
########################################### [ 62%]
  16:samba-client           ########################################### [ 66%]
  17:openssh-clients        ########################################### [ 70%]
  18:openssh-server         ########################################### [ 75%]
  19:pptpd                  ########################################### [ 79%]
  20:e-smith-blades         ########################################### [ 83%]
  21:apache                 ########################################### [ 87%]
  22:e-smith-mailfront      ########################################### [ 91%]
  23:e-smith-email          ########################################### [ 95%]
[root@server root]#


Hope this helps
Regards
Ray

Ron Moxham

Re: sme 5.5 server update
« Reply #7 on: April 26, 2003, 11:57:40 PM »
Ok I tried it your way and this is what I got for output.

[root@server root]# rpm -Uvh --nodeps ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/*.rpm

 As you can see I replaced  "replacepkgs"  with "nodeps" otherwise
It would not run
 
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/SMEServer-5.5_Update6-02.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/apache-1.3.22-6es1.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-base-4.10.16-02.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-blades-1.4.8-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-email-4.10.4-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-horde-1.4.13-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-locale-fr_CA-1.2.8-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-mailfront-0.2.3-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-manager-1.6.1-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-named-1.8.1-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-packetfilter-1.8.1-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-samba-1.6.3-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-turba-0.20.2-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/e-smith-viewlogfiles-1.0.6-01.noarch.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/initscripts-5.83-1es6.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssh-3.1p1-2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssh-clients-3.1p1-2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssh-server-3.1p1-2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/openssl-0.9.6b-28.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/pptpd-1.1.2-4es.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/samba-2.2.7-3.7.2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/samba-client-2.2.7-3.7.2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/samba-common-2.2.7-3.7.2es2.i386.rpm
Retrieving ftp://ftp.e-smith.com/pub/e-smith/updates/5.5/Update6/RPMS/xinetd-2.3.7-4.7x.i386.rpm
Preparing...                ########################################### [100%]
package apache-1.3.22-6es1 is already installed
package e-smith-blades-1.4.8-01 is already installed
package e-smith-email-4.10.4-01 is already installed
package e-smith-horde-1.4.13-01 is already installed
package e-smith-locale-fr_CA-1.2.8-01 is already installed
package e-smith-mailfront-0.3.7-02dmc (which is newer than e-smith-mailfront-0.2.3-01) is already installed
package e-smith-manager-1.6.1-01 is already installed
package e-smith-named-1.8.1-01 is already installed
package e-smith-packetfilter-1.8.1-01 is already installed
package e-smith-samba-1.6.3-01 is already installed
package e-smith-turba-0.20.2-01 is already installed
package e-smith-viewlogfiles-1.1.2-02dmc (which is newer than e-smith-viewlogfiles-1.0.6-01) is already installed
package openssh-3.1p1-2es2 is already installed
package openssh-clients-3.1p1-2es2 is already installed
package openssh-server-3.1p1-2es2 is already installed
package openssl-0.9.6b-28 is already installed
[root@sme files]#
[root@sme files]#


When I check with rpm -qa I get this output so I guess it is not upgraded.

[root@sme root]# rpm -qa SMEServer*
SMEServer-5.5_Update2-10
[root@sme root]# rpm -qa samba*
[root@sme root]# rpm -qa e-smith*
e-smith-release-5.5-03
e-smith-boot-image-1.6.3-01
e-smith-devtools-1.8.0-01
e-smith-formmagick-0.2.0-01
e-smith-lib-1.10.2-01
e-smith-backup-1.8.2-01
e-smith-dynamicdns-dyndns-1.2.3-01
e-smith-dynamicdns-tzo-1.2.0-04
e-smith-flexbackup-1.4.0-01
e-smith-imp-1.6.9-01
e-smith-ntp-1.8.0-01
e-smith-ipmasq-1.6.0-01
e-smith-php-1.6.0-01
e-smith-proftpd-1.6.0-01
e-smith-qmail-1.4.0-01
e-smith-quota-1.4.0-01
e-smith-telnet-1.2.0-05
e-smith-hosts-1.8.6-01
e-smith-rpm-0.0.24-01
e-smith-manager-1.6.1-01
e-smith-horde-1.4.13-01
e-smith-named-1.8.1-01
e-smith-turba-0.20.2-01
e-smith-blades-1.4.8-01
e-smith-userpanel-1.0-9
e-smith-mailfront-0.3.7-02dmc
e-smith-keys-1.2.0-02
e-smith-4.2.0-06
e-smith-reinstall-floppy-1.8.0-01
e-smith-support-1.3.12-01
e-smith-lilo-1.8.0-01
e-smith-apache-proxy-0.0.4-01
e-smith-daemontools-1.2.0-03
e-smith-dynamicdns-dyndns.org-1.2.3-01
e-smith-dynamicdns-yi-1.2.3-01
e-smith-ldap-4.6.0-01
e-smith-LPRng-1.6.7-01
e-smith-netatalk-1.8.1-01
e-smith-mysql-1.6.0-01
e-smith-pptpd-1.4.5-01
e-smith-proxypass-1.0.0-01
e-smith-qmailanalog-1.6.0-01
e-smith-rp-pppoe-1.6.0-01
e-smith-test-0.2.0-01
e-smith-openssh-1.6.0-01
e-smith-wu-imap-1.4.0-01
e-smith-proxy-4.8.0-01
e-smith-qmHandle-1.0.0-7
e-smith-samba-1.6.3-01
e-smith-base-4.10.16-01
e-smith-locale-fr_CA-1.2.8-01
e-smith-packetfilter-1.8.1-01
e-smith-email-4.10.4-01
e-smith-userpanel-pkg-0.0.1-1
e-smith-viewlogfiles-1.1.2-02dmc
[root@sme root]# rpm -qa openssh*
openssh-3.1p1-2es2
openssh-clients-3.1p1-2es2
openssh-server-3.1p1-2es2
[root@sme root]# rpm -qa openssl*
openssl-0.9.6b-28
[root@sme root]# rpm -qa xinetd*
xinetd-2.3.3-1
[root@sme root]# rpm -qa pptpd*
pptpd-1.1.2-2
[root@sme root]# rpm -qa initscripts*
initscripts-5.83-1es5
[root@sme root]# rpm -qa apache*
apache-1.3.22-6es1
[root@sme root]#

I thought that upgrade 6 included all previous upgrades?

Any Ideas?

Charlie Brady

Re: sme 5.5 server update
« Reply #8 on: April 27, 2003, 03:56:15 AM »
Ron Moxham wrote:

> I thought that upgrade 6 included all previous upgrades?

It does. It doesn't, however, include third party add-on or replacement packages.

The problems you are experiencing are due to the "dmc" version of a few packages, e-smith-mailfront and e-smith-viewlogfiles. You'll need to either remove those from the list of packages (and use --replacepkgs) or force the replacement of Darrell's version, even thought they seen newer, by using "--force". You can re-install Darrell's versions after the update is applied.

Regards

Charlie

Ron Moxham

Re: sme 5.5 server update
« Reply #9 on: April 27, 2003, 05:05:07 AM »
Thanks Charlie and also to Geoff Ray and Randy

I opted for  removing e-smith-mailfront and e-smith-viewlogfiles from the list of packages (and using --replacepkgs)

So do I still have to reinstall the dmc packages or am I ok with what I have now?

Cheers

Glen

Re: sme 5.5 server update
« Reply #10 on: April 29, 2003, 02:28:51 PM »
Hi,  
reviewing this forum thread, I would just like to poinnt out what probably went wrong with your initial upgrade...
In Randy's first post he has pointed to sme 5.6 update4  NOT sme 5.5 update6,
if you cut and paste the command to download and install exactly as was posted you upgraded with the wrong updates, I would expect this is why the upgrade failed eventually.
Later you have tried with the correct link to the 5.5 update 6 and that install failed due to later packes already installed.

just an observation while reading thru the forum to learn !!

  thank you to all participants this is a great source of info.

  Glen

Pete Menchetti

Re: Webmail problems after update6 to sme 5.5
« Reply #11 on: August 16, 2003, 11:49:11 PM »
After applying update6 to my SME server 5.5, I am no longer able to log into or even load webmail. I get the following error when I try to go to my server's webmail address (https://www.702records.com/webmail):

"www.702records.com received a message with incorrect Message Authentication code. If the error occurs frequently, contact the website administrator."

And then, nothing.

Any ideas!? Thanks in advance.
Pete Menchetti