TrixBox 2.6 Updates failing – libevent and memcached – can you fix them? Should you? NO – leave them the heck alone!!

Last updated on May 14th, 2020 at 01:00 pm

Running yum on an old trixbox yielded problems – it just couldn’t get past a dependency error…

Setting up Update Process
 Resolving Dependencies
 --> Running transaction check
 --> Processing Dependency: libevent-1.1a.so.1 for package: memcached
 ---> Package libevent.i386 0:1.4.13-1 set to be updated
 --> Finished Dependency Resolution
 memcached-1.2.2-2.rf.i386 from installed has depsolving problems
 --> Missing Dependency: libevent-1.1a.so.1 is needed by package memcached-1.2.2-2.rf.i386 (installed)
 Error: Missing Dependency: libevent-1.1a.so.1 is needed by package memcached-1.2.2-2.rf.i386 (installed)

Can you say “anNOYYYYiiiing…”??


I can – and did – quite a few times – plus some other things I can’t put in print for family consumption… so it was stuck because there was a package dependency loop I think.. hmm…

I decided it would be a good idea to “FORCE” these – and I found a solution – I am putting it here – but before I do – DO NOT DO AS I DID – the “fix” is a flipping NIGHTMARE – unless you don’t use Voicemail – which we do – because it breaks voicemail COMPLETELY… do NOT ATTEMPT TO FORCE the yum/RPM updates of libevent and memcached on a trixbox 2.6 machine – you have been WARNED.

How to get past this (assuming you don’t care that I told you it was going to break the blasted voicemail? <<<<---- SERIOUSLY - do NOT DO THIS!!!

Well – they think you must trick it for the TWO commands that are stuck… and I found the answer in this thread on the Trixbox forum:

rpm -e --nodeps libevent memcached
yum -y update

If you use the first command, you tell it to FORCE REMOVE the items regardless of dependencies… then you resume a regular yum update and it gets past the dependency issue – YAY, right? NO-SIRREE-BOB – read on intrepid phone user…

DO NOT DO THIS – this will BREAK your voicemail – it is a really, REALLY, REALLY bad idea!! If you aren’t running the correct memcached, it won’t start, and your VM won’t work – either from the phone, or the web interface – trying to download the voicemail yields 404 – and you can’t play them using the embedded player on the web-page either – you basically MESS UP VOICEMAIL.

So – if you do this… how to recover?… wow… it’s not easy…

You have to find these two RPMS:

libevent-1.1a-1.0.el2.rf.i386.rpm

and

memcached-1.2.2-2.rf.i386.rpm

You *should* find them if you google them – if you cannot find them – please do not ask me… I don’t have them for you…. anyway – if you find them… save them using:

wget http://pathto…/libevent-1.1a-1.0.el2.rf.i386.rpm

and

wget http://pathto…/memcached-1.2.2-2.rf.i386.rpm

Then – remove the existing memcached and libeventd

yum remove memcached
and
yum remove libevent

It will also remove nfs-utils as a dependency – if you use nfs – oops – I hope you read this far first – I don’t know what nfs-utils you have – or I have – and I don’t use NFS on the phone box – so if the NFS utilities aren’t on my box, I don’t care – if you do – then you have extra work to find those to reinstall them as well…

Finally –

rpm -ivh libevent-1.1a-1.0.el2.rf.i386.rpm
and
rpm -ivh memcached-1.2.2-2.rf.i386.rpm

/sbin/service memcached on
chkconfig –levels 2345 memcached on

now – restart the box – there is probably a couple of commands you use to restart the phone and web-gui to make it work, but I am freaked at this point to see if I have fixed the phone (because I leave town in 36 hours for 5 days and I do NOT need to have to rebuild our entire phone system on a new box – recovering the VM is my preferred option – and a reboot seems good.

Great – phone up – VM up – leave the damned memcached alone – Trixbox 2.6 does NOT have an upgrade path for libevent or memcached – do NOT try to force it, or you *WILL* break stuff!

Thank me for putting this together with a coffee via: