Unable to install stable 4.0 on CentOS 7 using RPM's due to missing kamailio 4.4.4 dependency

430 views
Skip to first unread message

James_259

unread,
Apr 15, 2017, 10:52:14 AM4/15/17
to 2600hz-users
Hi,

I popped up a couple of times on IRC of late asking related questions and looking through the logs, I see the same has come up a few times over the past weeks and I don't see much on here (1 thread that looks related that I found) so I thought I would start a discussion with what I have and hopefully we can figure out how to update the guide so that it works again.

Basically, following the instructions published here [https://docs.2600hz.com/sysadmin/doc/install/install_via_centos7/] does not appear to currently work.

The problems seem to be focused around the Kamailio component.

As best I can work out, this is pretty much down to the issue that kazoo 4.0 seems dependent on kamailio 4.4.4, but for some reason that version has been removed entirely and replaced with 4.4.5.  With 4.4.4 not being available (anywhere, from what I can see) - the installation breaks at the point of yum install kazoo-kamailio, with a dependency failure.

I have managed to install kazoo-kamailio from the staging repo (which I assume is part of 4.1), which installs happily with kamailio 4.4.5 but then it is unable to start.  The initial error is about sockets support not being compiled in, which is then followed by a long string of other errors.   Thanks to the other discussion on here, I figured out how to downgrade the config to the 4.0 supplied one.  This seemed to clear up a lot of the errors, but still leaves some, including the socket support not being compiled in one at the top.


I am unsure where to go from here to complete a stable installation.
If anyone can provide any pointers that would help me get this running (and hopefully we can update the guide to help anyone else who tries), it would be very much appreciated.

I did wonder if going for the stable v3.x release would be an advisable alternative? (Not sure what kamailio version it depends on)

Many thanks to anyone who spends the time to respond.

James

James_259

unread,
Apr 16, 2017, 12:04:05 AM4/16/17
to 2600hz-users
Hi,

I possibly got a workaround for this.  (How well it works is yet to be seen)
I thought I would post it here in case anyone else finds it useful.

I have no idea why it didn't work the first time I tried, but mixing in the kazoo-kamailio component from staging does actually appear to work - to the point that it lets me complete the installation without any obvious errors. (It worked for me after doing a fresh OS install and trying this method from a clean system.)

In the above linked documentation, in place of the following line...

yum install -y kazoo-kamailio

..I did this...
sed -i 's/\/stable/\/staging/' /etc/yum.repos.d/2600Hz.repo
yum clean all

yum install -y kazoo-kamailio

sed -i 's/\/staging/\/stable/' /etc/yum.repos.d/2600Hz.repo
yum clean all
yum downgrade -y kazoo-configs-kamailio
systemctl daemon-reload

I am not 100% sure that last line is required. (It's in because I got a warning at one point saying it was needed)

From that point I continued as usual with the sed lines for IP/hostname, enable, restart and then the tests.

It seems to work to the point that the services appear to actually start.
Obviously, there may be other repercussions that may crop up later on as a result.

If anyone has a better solution, please do shout up.

Tom Newman

unread,
Apr 16, 2017, 3:00:33 PM4/16/17
to 2600hz-users
I ended up finding an alternative build on the OpenSUSE build service for now to stay on kazoo-stable. I plan on switching back to the official build once kazoo-stable moves past 4.4.4.

James Sefton

unread,
Apr 16, 2017, 5:33:55 PM4/16/17
to 2600hz...@googlegroups.com
Any chance you could link that alternative build?



Sent from my Samsung Galaxy smartphone.
--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

Tom Newman

unread,
Apr 19, 2017, 12:52:12 PM4/19/17
to 2600hz-users

Luis Azedo

unread,
Apr 19, 2017, 12:53:16 PM4/19/17
to 2600hz...@googlegroups.com
2600hz stable and staging repo should be fixed now

To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users+unsubscribe@googlegroups.com.

James Sefton

unread,
Apr 19, 2017, 1:39:00 PM4/19/17
to 2600hz...@googlegroups.com
Really appreciate you guys spending the time to help. :)  I will run a fresh install tomorrow.

fred

unread,
Apr 19, 2017, 5:22:02 PM4/19/17
to 2600hz-users
Directory structure changed.  If you are still having problems check that. I think it will just work with existing config.  They are mirroring kamailio now.

James_259

unread,
Apr 21, 2017, 10:37:46 AM4/21/17
to 2600hz-users
Many thanks for that Tom.  I will give it a go.

Hi Luis,

I still appear to be having the exact same problem.

# yum install -y kazoo-kamailio
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * extras: mirror.vorboss.net
Resolving Dependencies
--> Running transaction check
---> Package kazoo-kamailio.noarch 0:4.0-2.el7.centos will be installed
--> Processing Dependency: kamailio-uuid for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kamailio-websocket for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kamailio-outbound for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kamailio-presence for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kamailio-kazoo for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kazoo-configs-kamailio for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kamailio for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Processing Dependency: kamailio-tls for package: kazoo-kamailio-4.0-2.el7.centos.noarch
--> Running transaction check
---> Package kamailio.x86_64 0:4.4.5-6.1 will be installed
---> Package kamailio-kazoo.x86_64 0:4.4.4-4.1 will be installed
--> Processing Dependency: kamailio = 4.4.4 for package: kamailio-kazoo-4.4.4-4.1.x86_64
--> Processing Dependency: libevent for package: kamailio-kazoo-4.4.4-4.1.x86_64
--> Processing Dependency: librabbitmq for package: kamailio-kazoo-4.4.4-4.1.x86_64
--> Processing Dependency: librabbitmq.so.1()(64bit) for package: kamailio-kazoo-4.4.4-4.1.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: kamailio-kazoo-4.4.4-4.1.x86_64
---> Package kamailio-outbound.x86_64 0:4.4.5-6.1 will be installed
---> Package kamailio-presence.x86_64 0:4.4.5-6.1 will be installed
---> Package kamailio-tls.x86_64 0:4.4.5-6.1 will be installed
---> Package kamailio-uuid.x86_64 0:4.4.5-6.1 will be installed
---> Package kamailio-websocket.x86_64 0:4.4.5-6.1 will be installed
---> Package kazoo-configs-kamailio.noarch 0:4.0-12.el7.centos will be installed
--> Running transaction check
---> Package kamailio-kazoo.x86_64 0:4.4.4-4.1 will be installed
--> Processing Dependency: kamailio = 4.4.4 for package: kamailio-kazoo-4.4.4-4.1.x86_64
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package librabbitmq.x86_64 0:0.5.2-1.el7 will be installed
--> Processing Conflict: kamailio-4.4.5-6.1.x86_64 conflicts kamailio-kazoo < 4.4.5
--> Finished Dependency Resolution
Error: Package: kamailio-kazoo-4.4.4-4.1.x86_64 (2600hz-stable)
           Requires: kamailio = 4.4.4
           Available: kamailio-4.4.4-4.1.x86_64 (2600hz-stable)
               kamailio = 4.4.4-4.1
           Installing: kamailio-4.4.5-6.1.x86_64 (kamailio)
               kamailio = 4.4.5-6.1
Error: kamailio conflicts with kamailio-kazoo-4.4.4-4.1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


I am following the guide here: https://docs.2600hz.com/sysadmin/doc/install/install_via_centos7/.

Am I missing something really silly?
To confirm, I dida clean OS install to ensure there was nothing previous left over before trying this.

Cheers,

James


On Saturday, 15 April 2017 15:52:14 UTC+1, James_259 wrote:

Luis Azedo

unread,
Apr 21, 2017, 11:34:15 AM4/21/17
to 2600hz...@googlegroups.com
try `yum clean all`

--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users+unsubscribe@googlegroups.com.

fred

unread,
Apr 21, 2017, 11:48:39 AM4/21/17
to 2600hz-users
It has changed and you need to check the rpm repo directory structure.

  4.4.4 can be located here.

James Sefton

unread,
Apr 21, 2017, 12:08:31 PM4/21/17
to 2600hz...@googlegroups.com
Hi Fred,

So do the installation instructions need updating or something?  I followed them exactly and it does not appear to be finding this mirror that you linked.

I am sure I can use it myself now you have pointed it out but anyone else who follows those instructions is not going to know that.

I am not sure who is who on here so do we need to find someone who can update the instructions?

Thank you very much for the info though.



Sent from my Samsung Galaxy smartphone.


-------- Original message --------
From: fred <shad...@hotmail.com>
Date: 21/04/2017 16:49 (GMT+00:00)
To: 2600hz-users <2600hz...@googlegroups.com>
Subject: Re: Unable to install stable 4.0 on CentOS 7 using RPM's due to missing kamailio 4.4.4 dependency

--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Darren Schreiber

unread,
Apr 21, 2017, 12:11:19 PM4/21/17
to 2600hz...@googlegroups.com

Hi there,

                We’re working on updating the docs (see http://docs.2600hz.com/) but could use some help. They are all in Github, do you mind adjusting whatever is wrong on the documentation? We will accept your commit if you do.

 

Thanks!

James Sefton

unread,
Apr 21, 2017, 12:13:14 PM4/21/17
to 2600hz...@googlegroups.com

Ooh,  I didn’t realise I could do that.

I would love to help.  Many thanks for the pointer.

James_259

unread,
Apr 21, 2017, 2:00:39 PM4/21/17
to 2600hz-users
Hi Luis,

The server was freshly formatted and OS re-installed prior to trying it again.
I did also do a yum clean all immediately after adding the 2600hz repo and switching it from experimental to stable.
try `yum clean all`

To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.

lucas oketch

unread,
Apr 21, 2017, 2:48:27 PM4/21/17
to 2600hz...@googlegroups.com
Hi,

just FYI, i installed kazoo using https://gist.github.com/jamesaimonetti/1e08a3e7e6cdbb59c6420d7132fafdfa#org950a7a7 and it worked without a problem.

Hope this helps.

thanks,

Lucas.

To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users+unsubscribe@googlegroups.com.

Ruslan

unread,
Apr 30, 2017, 11:41:57 AM4/30/17
to 2600hz-users
Hi James_259, did u resolve this issue? I have same problem.

пятница, 21 апреля 2017 г., 22:00:39 UTC+4 пользователь James_259 написал:

Ruslan

unread,
Apr 30, 2017, 11:41:57 AM4/30/17
to 2600hz-users
Thanks Lukas, I will folow this article, and installed without a problem, previously installation I run yum update, before start to do something,  maybe it's error reson

Regards,
Ruslan Suleymanov

пятница, 21 апреля 2017 г., 22:48:27 UTC+4 пользователь lucas oketch написал:

Steiner

unread,
May 3, 2017, 10:14:13 PM5/3/17
to 2600hz-users
Hi all, I just find out that there is a kamailio repo in the directory /etc/yum.repos.d/ where the yum system is trying to get kamailio rpm, I just move it out and leave the 2600hz repos for the kazoo-kamailio could be installed from there... it works just fine

[root@kazoo ~]# cd /etc/yum.repos.d/
[root@kazoo yum.repos.d]# mv kamailio.repo ../
[root@kazoo yum.repos.d]# yum install -y kazoo-kamailio

Darren Schreiber

unread,
May 3, 2017, 10:14:35 PM5/3/17
to 2600hz...@googlegroups.com

Is that coming from an old upgrade?

 

From: <2600hz...@googlegroups.com> on behalf of Steiner <stein...@gmail.com>
Reply-To: "2600hz...@googlegroups.com" <2600hz...@googlegroups.com>
Date: Wednesday, May 3, 2017 at 7:07 PM
To: 2600hz-users <2600hz...@googlegroups.com>
Subject: Re: Unable to install stable 4.0 on CentOS 7 using RPM's due to missing kamailio 4.4.4 dependency

 

Hi all, I just find out that there is a kamailio repo in the directory /etc/yum.repos.d/ where the yum system is trying to get kamailio rpm, I just move it out and leave the 2600hz repos for the kazoo-kamailio could be installed from there... it works just fine

--

James Sefton

unread,
May 3, 2017, 10:32:47 PM5/3/17
to 2600hz...@googlegroups.com

Oh wow.  Thank You Steiner.

I never thought to try that.  I was getting ready to give up.

 

I will give this a go on Friday.

 

Darren: In my case I did several format and reinstalls but was never able to get it working without doing some messy work-around.  I am pretty sure it is not upgrade related.

 

Really appreciate the help guys. 😊

--
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

--

James_259

unread,
May 15, 2017, 10:33:48 AM5/15/17
to 2600hz-users
I can confirm that on a complete format and fresh install, the suggestion by Steiner appears to work nicely and Kamailio installs straight away.

Maybe the kamailio file could be removed in the first place?

In the meantime, I run the following command at the same time I run the commands to switch from experimental to stable, prior to install.
yum-config-manager --disable kamailio

Darren, I can confirm that this is not something left over from a previous install.  I did a full format before this test.

Thanks for the help everyone.

James

Tomcar

unread,
May 24, 2017, 11:12:54 AM5/24/17
to 2600hz-users
I have the same issue. My solution was to downgrade Kamailio; after disabling the repo, run 'yum remove kamailio kazoo-kamailio' and then 'yum install kamailio kazoo-kamailio' + all dependencies that was uninstalled above.

I wonder what caused this though? If I remember correctly, 2600hz should stop providing repos for Kamailio and Freeswitch, this seems like the opposite...?

Br - Tomas

Darren Schreiber

unread,
May 24, 2017, 11:14:17 AM5/24/17
to 2600hz...@googlegroups.com
We were moving to use the Kamailio repo, that is correct. Unfortunately we have several patches which were critical and they were unable to be included in the public Kamailio builds so we went back to building our own… for now. Hopefully this will not remain the case.

Your fix listed is correct, disable the kamailio repo, remove kazoo-kamailio and kamailio, then re-install kamailio and kazoo-kamailio
Reply all
Reply to author
Forward
0 new messages