<HTML><BODY>When User and Group = kamailio I can't start kamailio.service at all. I get errors () <br><br><blockquote><p>июн 04 15:00:52 p534507.kvmvps kamailio[23502]: 0(23502) ERROR: <core> [core/tcp_main.c:2855]: tcp_init(): bind(9, 0x7fb6ef026f84, 16) on <a href="http://37.143.9.210:443/" rel="noopener noreferrer" data-mce-href="http://37.143.9.210:443/">37.143.9.210:443</a> : Permission denied</p></blockquote><br>The question is why? If am using User and Group = root it works.<br><br>Group Kamailio exist and user too.<br><br class="Apple-interchange-newline"><span style="color: #202124; font-family: arial, sans-serif; font-size: 16px; white-space: pre-wrap; background-color: #f8f9fa;" data-mce-style="color: #202124; font-family: arial, sans-serif; font-size: 16px; white-space: pre-wrap; background-color: #f8f9fa;">I suppose Linux does not allow kamailio to bind to 443 port.</span><br><br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
Среда, 5 июня 2019, 12:42 +03:00 от Denys Pozniak <denys.pozniak@gmail.com>:<br>
<br>
<div id="">
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div>
<div id="style_15597277411542564031_BODY"><div class="class_1559745353"><div dir="ltr">Hello!<div>Try to set in the service file: <br><div>User=kamailio<br>Group=daemon<br></div></div></div><br><div class="gmail_quote_mailru_css_attribute_postfix"><div class="gmail_attr_mailru_css_attribute_postfix" dir="ltr">ср, 5 июн. 2019 г. в 08:25, Karsten Horsmann <<a rel="noopener noreferrer" href="//e.mail.ru/compose/?mailto=mailto%3akhorsmann@gmail.com">khorsmann@gmail.com</a>>:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote_mailru_css_attribute_postfix"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">Check if group or user Kamailio is still available.</div><div dir="auto"><br></div><div dir="auto">I had the same issue on upgrade from 5.0.x to 5.2.3.</div><div dir="auto"><br></div><div dir="auto">In my case group Kamailio was gone. </div><div dir="auto"><br></div></div><br><div class="gmail_quote_mailru_css_attribute_postfix"><div class="gmail_attr_mailru_css_attribute_postfix" dir="ltr">Олег Подгуйко <<a rel="noopener noreferrer" href="//e.mail.ru/compose/?mailto=mailto%3apodguiko@mail.ru">podguiko@mail.ru</a>> schrieb am Di., 4. Juni 2019, 21:22:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote_mailru_css_attribute_postfix">
<div>Hi,<br><br>I'm using Centos7<br><br><br>I checked the kamailio.servirse file<br><br>It looks like<br><br><p>[root@p534507 ~]# cat /usr/lib/systemd/system/kamailio.service<br>[Unit]<br>Description=Kamailio (OpenSER) - the Open Source SIP Server<br>Wants=network-online.target<br>After=network-online.target</p><p>ange[Service]<br>Type=simple<br>User=kamailio<br>Group=kamailio<br>Environment='CFGFILE=/etc/kamailio/kamailio.cfg'<br>Environment='SHM_MEMORY=64'<br>Environment='PKG_MEMORY=4'<br>EnvironmentFile=-/etc/sysconfig/kamailio<br>ExecStart=/usr/sbin/kamailio -DD -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY<br>Restart=on-failure</p><p>[Install]<br>WantedBy=multi-user.target<br>[root@p534507 ~]#</p><br><br>I changed<br>User and Group....... to root..... and kamailio.service is working now. But it looks like strange for me. Why dint't it work with kamailio user?<br><br><br><br><br><blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 10px">
Вторник, 4 июня 2019, 18:20 +03:00 от Karsten Horsmann <<a rel="noopener noreferrer" href="//e.mail.ru/compose/?mailto=mailto%3akhorsmann@gmail.com">khorsmann@gmail.com</a>>:<br>
<br>
<div id="gmail-m_1107196297079251086m_-6643857170605106767_mailru_css_attribute_postfix">
<div class="gmail-m_1107196297079251086m_-6643857170605106767js-helper_mailru_css_attribute_postfix gmail-m_1107196297079251086m_-6643857170605106767js-readmsg-msg_mailru_css_attribute_postfix">
<div>
<div id="gmail-m_1107196297079251086m_-6643857170605106767style_15596616500074003471_BODY_mailru_css_attribute_postfix"><div class="gmail-m_1107196297079251086m_-6643857170605106767class_1559694099_mailru_css_attribute_postfix"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">Starting via cli works and via systemctl not. That's an sign for some permissions that systemctl what's to set (group for example or user) are not there. </div><div dir="auto"><br></div><div dir="auto">Also included files like tls.cfg and certificates are not readable for the user:group systemctl what's to start Kamailio. </div><div dir="auto"><br></div><div dir="auto">Cheers </div><div dir="auto">Karsten </div></div><br><div class="gmail-m_1107196297079251086m_-6643857170605106767gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><div dir="ltr" class="gmail-m_1107196297079251086m_-6643857170605106767gmail_attr_mailru_css_attribute_postfix_mailru_css_attribute_postfix">Daniel-Constantin Mierla <<a rel="noopener noreferrer" href="http://e.mail.ru/compose/?mailto=mailto%3amiconda@gmail.com" target="_blank">miconda@gmail.com</a>> schrieb am Di., 4. Juni 2019, 15:16:<br></div><blockquote class="gmail-m_1107196297079251086m_-6643857170605106767gmail_quote_mailru_css_attribute_postfix_mailru_css_attribute_postfix" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">Hello,</div>
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
</div>
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">what is the operating system you are
using?</div>
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
</div>
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">Cheers,<br>
Daniel</div>
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
</div>
<div class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On 04.06.19 14:21, Олег Подгуйко wrote:<br>
</div>
<blockquote type="cite">
Im trying to use kamailio with websocket and tls. It will be use
as registrar for websocket clients.<br>
I'm using default config with additional websocket, https and tls
modules. I created some certs for it and everething looks like
good.<br>
But when I started kamailio via (systemctl start kamailio) I get
some errors<br>
<br>
<p>июн 04 15:00:52 p534507.kvmvps kamailio[23502]: 0(23502) INFO:
<core> [core/udp_server.c:205]:
probe_max_receive_buffer(): SO_RCVBUF is finally 425984<br>
июн 04 15:00:52 p534507.kvmvps kamailio[23502]: 0(23502) DEBUG:
<core> [core/tcp_main.c:2753]: tcp_init(): added
<a rel="noopener noreferrer" href="http://37.143.9.210:443">37.143.9.210:443</a><br>
июн 04 15:00:52 p534507.kvmvps kamailio[23502]: 0(23502) ERROR:
<core> [core/tcp_main.c:2855]: tcp_init(): bind(9,
0x7fb6ef026f84, 16) on <a rel="noopener noreferrer" href="http://37.143.9.210:443">37.143.9.210:443</a> : Permission denied<br>
июн 04 15:00:52 p534507.kvmvps kamailio[23502]: 0(23502) ERROR:
tls [tls_init.c:342]: tls_h_init_si(): Error while initializing
TCP part of TLS socket <a rel="noopener noreferrer" href="http://37.143.9.210:443">37.143.9.210:443</a><br>
июн 04 15:00:52 p534507.kvmvps kamailio[23502]: 0(23502) DEBUG:
rtpengine [rtpengine.c:1986]: mod_destroy():
rtpengine_hash_table_destroy() success!<br>
<br>
<br>
If I start it via /usr/sbin/kamailio - all work.<br>
<br>
What I do wrong?</p>
<br>
<br>
<br>
<br>
-- <br>
Олег Подгуйко
<br>
<fieldset class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961mimeAttachmentHeader_mailru_css_attribute_postfix_mailru_css_attribute_postfix"></fieldset>
<pre class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-quote-pre_mailru_css_attribute_postfix_mailru_css_attribute_postfix">_______________________________________________
Kamailio (SER) - Users Mailing List
<a rel="noopener noreferrer" class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a rel="noopener noreferrer" class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<p><br>
</p>
<pre class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-signature_mailru_css_attribute_postfix_mailru_css_attribute_postfix" cols="72">--
Daniel-Constantin Mierla -- <a rel="noopener noreferrer" class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a rel="noopener noreferrer" class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a rel="noopener noreferrer" class="gmail-m_1107196297079251086m_-6643857170605106767m_-8496881999468984961moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a></pre>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a rel="noopener noreferrer" href="http://e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a rel="noopener noreferrer" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</div></div>
</div>
</div>
</div>
</blockquote>
<br>
<br>-- <br>Олег Подгуйко<br></div>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a rel="noopener noreferrer" href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a rel="noopener noreferrer" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature_mailru_css_attribute_postfix" dir="ltr"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>
</div></div>
</div>
</div>
</div>
</blockquote>
<br>
<br>-- <br>Олег Подгуйко<br></BODY></HTML>