Koozali.org: home of the SME Server

Problems updating your server? [Remedial for Version 8]

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Problems updating your server? [Remedial for Version 8]
« on: December 12, 2012, 11:38:37 PM »
In recent times, some users have experienced problems updating their SME server.  Updating with yum from server-manager or command line can be very slow with many errors such as  "[Errno -1] Metadata file does not match checksum Trying other mirror".   This is because our traditional primary mirror site at Ibiblio is experiencing intermittent full hard drive issues. All downstream mirrors from them thus also have issues.

To remedy this situation, we've recently moved our primary mirror to the CA mirror (mirror.canada.pialasse.com). A new smeserver-yum package is available from the update repository.  If you are experiencing issues updating your server, installing this new package from the command line should fix the issue.

From a terminal logged as root, issue the following commands to update yum on SME server Version 8.xx:
Code: [Select]
yum clean all
Followed by (copy and paste the full three lines):
Code: [Select]
rpm -Uhv \
http://mirror.canada.pialasse.com/releases/\
/8.0/smeupdates/i386/RPMS/smeserver-yum-2.2.0-20.el5.sme.noarch.rpm

Followed by:
Code: [Select]
signal-event yum-update
You should then be able to fully update your server in the usual ways.

- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline engdev

  • *
  • 71
  • +0/-0
Re: Problems updating your server? [Remedial for Version 8]
« Reply #1 on: February 14, 2013, 06:19:57 PM »
Chris, I have been unable to update due to the mirror errors so followed your how to below but it also returns an error. Do you have any further advice?
thanks
John

Quote
login as: root
root@192.168.2.6's password:
Last login: Thu Feb 14 17:07:20 2013 from pc-00186.engdev.com
[root@smeserver-3 ~]# yum clean all
Loaded plugins: fastestmirror, protect-packages, smeserver
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@smeserver-3 ~]# rpm -Uhv \
> http://mirror.canada.pialasse.com/releases/\
> /8.0/smeupdates/i386/RPMS/smeserver-yum-2.2.0-20.el5.sme.noarch.rpm
Retrieving http://mirror.canada.pialasse.com/releases//8.0/smeupdates/i386/RPMS/smeserver-yum-2.2.0-20.el5.sme.noarch.rpm
error: skipping http://mirror.canada.pialasse.com/releases//8.0/smeupdates/i386/RPMS/smeserver-yum-2.2.0-20.el5.sme.noarch.rpm - transfer failed - Unknown or unexpected error
[root@smeserver-3 ~]#

Offline Jean-Philippe Pialasse

  • *
  • 2,764
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problems updating your server? [Remedial for Version 8]
« Reply #2 on: February 14, 2013, 08:16:00 PM »
Hi,

indeed this link return a 404 error because the file has been updated since.


best approach in this kind of situation is to :

Code: [Select]
elinks http://mirror.canada.pialasse.com/releases//8.0/smeupdates/i386/RPMS/
then search for smeserver-yum* in the list

then tada you find : smeserver-yum-2.2.0-21.el5.sme.noarch.rpm   


and you replace the revision number -20
 with the new : -21


Code: [Select]
rpm -Uhv \
http://mirror.canada.pialasse.com/releases/\
/8.0/smeupdates/i386/RPMS/smeserver-yum-2.2.0-21.el5.sme.noarch.rpm

et voila
 

Offline engdev

  • *
  • 71
  • +0/-0
Re: Problems updating your server? [Remedial for Version 8]
« Reply #3 on: February 15, 2013, 10:29:22 AM »
Thanks, doing that returns this error:

Quote
error: Failed dependencies:
        python-hashlib is needed by smeserver-yum-2.2.0-21.el5.sme.noarch

so I downloaded the missing file and did:

Code: [Select]
yum install python-hashlib-20081119-4.el5.i386.rpm
yum update now runs fine, updates installed, thanks.

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Problems updating your server? [Remedial for Version 8]
« Reply #4 on: February 17, 2013, 02:21:56 PM »
The following:

Code: [Select]
http://mirrorlist.centos.org/?release=5&arch=i386&repo=os

returns:

Code: [Select]
http://mirrors.hns.net.in/centos/5.9/os/i386/
http://centosmirror.go4hosting.in/centos/5.9/os/i386/
http://centos.aol.in/5.9/os/i386/
http://mirror.nbrc.ac.in/centos/5.9/os/i386/
http://ftp.iitm.ac.in/centos/5.9/os/i386/
http://mirrors.ispros.com.bd/centos/5.9/os/i386/
http://mirror.dhakacom.com/centos/5.9/os/i386/
http://mirrors.vonline.vn/centos/5.9/os/i386/
http://mirrors.fibo.vn/centos/5.9/os/i386/
http://centos-hn.viettelidc.com.vn/5.9/os/i386/


The smeserver-yum-2.2.0-21.el5.sme.noarch.rpm stands installed, upgraded and rebooted.

The URL:
Code: [Select]
http://mirrorlist.contribs.org/mirrorlist/smeos-8shows:

Code: [Select]
# version = 8, repo = smeos
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/8/smeos/$basearch/
http://mirror.canada.pialasse.com/releases/8/smeos/$basearch/
http://mirror.chiropratique.org/releases/8/smeos/$basearch/
http://mirror.pialasse.com/releases/8/smeos/$basearch/
http://smeserver.bhs.mirrors.ovh.net/smeserver/releases/8/smeos/$basearch/

and http://mirror.canada.pialasse.com is only the second priority on the list.

« Last Edit: February 17, 2013, 02:24:30 PM by apmuthu »