<div><div dir="auto">That’s your problem. Make sure the path exists and opensips can create the pid file there.</div><div dir="auto"><br></div><div dir="auto">Other test you can do is start manually, I.e: opensips -DD -E </div><div dir="auto">Providing the proper config file; etc.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 12 Feb 2020 at 05:23, Tekin, Arda <<a href="mailto:arda.tekin@afiniti.com">arda.tekin@afiniti.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_6752865844876676244WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi David<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I just see this log entry when I call “journalctl -xe”<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-- Unit opensips.service has begun starting up.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Feb 12 10:04:24 a3783871a39f opensips[15922]: Starting opensips: [FAILED]<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Feb 12 10:04:24 a3783871a39f systemd[1]: Can't open PID file /var/run/opensips.pid (yet?) after start: No such file or directory<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Feb 12 10:04:24 a3783871a39f systemd[1]: Failed to start LSB: start, stop OpenSIPS.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-- Subject: Unit opensips.service has failed<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-- Defined-By: systemd<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank" style="font-family:Calibri,sans-serif">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">--<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-- Unit opensips.service has failed.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">--<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-- The result is failed.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Feb 12 10:04:24 a3783871a39f systemd[1]: Unit opensips.service entered failed state.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Feb 12 10:04:24 a3783871a39f systemd[1]: opensips.service failed.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<div>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank" style="font-family:Calibri,sans-serif">users-bounces@lists.opensips.org</a>>
<b style="font-family:Calibri,sans-serif">On Behalf Of </b>David Villasmil<br>
<b style="font-family:Calibri,sans-serif">Sent:</b> Wednesday, February 12, 2020 2:22 AM<br>
<b style="font-family:Calibri,sans-serif">To:</b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank" style="font-family:Calibri,sans-serif">users@lists.opensips.org</a>><br>
<b style="font-family:Calibri,sans-serif">Subject:</b> Re: [OpenSIPS-Users] How to start OpenSIPS 3.0 server<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p style="margin:0in 0in 0.0001pt"><em><b><span style="color:blue">Attention:</span></b><span style="color:blue"> This email was sent from someone outside of Afiniti. Always use caution when opening attachments, clicking links from unknown senders
or when receiving unexpected emails.</span></em><u></u><u></u></p></div></div><div lang="EN-US" link="blue" vlink="purple"><div class="m_6752865844876676244WordSection1">
<p style="margin:0in 0in 0.0001pt"> <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">And the output of <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="border:1pt none windowtext;padding:0in;color:rgb(49,49,49)">journalctl -xe</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="border:1pt none windowtext;padding:0in;color:rgb(49,49,49)"><br>
<br>
</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="border:1pt none windowtext;padding:0in;color:rgb(49,49,49)">?</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, 11 Feb 2020 at 17:20, Tekin, Arda <<a href="mailto:arda.tekin@afiniti.com" target="_blank">arda.tekin@afiniti.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt;border-left-color:rgb(204,204,204)">
<div>
<div>
<p class="MsoNormal">How can I run OpenSIPS 3.0?
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Previously we are running `opensipsctl start` command.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">How to set and use db connection configuration before starting OpenSIPS?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have compiled latest source code on CentOS 7 successfully. Copied init script <u></u><u></u></p>
<p class="MsoNormal">cp /root/src/opensips-3.0/packaging/redhat_fedora/opensips.init /etc/rc.d/init.d/.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Edited the init file<u></u><u></u></p>
<p class="MsoNormal">prog=opensips<u></u><u></u></p>
<p class="MsoNormal">opensips=/usr/local/sbin/$prog<u></u><u></u></p>
<p class="MsoNormal">cfgdir="/usr/local/etc/$prog"<u></u><u></u></p>
<p class="MsoNormal">pidfile="/var/run/$prog.pid"<u></u><u></u></p>
<p class="MsoNormal">lockfile="/var/lock/subsys/$prog"<u></u><u></u></p>
<p class="MsoNormal">configfile="$cfgdir/$prog.cfg"<u></u><u></u></p>
<p class="MsoNormal">m4configfile="$cfgdir/$prog.m4"<u></u><u></u></p>
<p class="MsoNormal">m4archivedir="$cfgdir/archive"<u></u><u></u></p>
<p class="MsoNormal">OPTIONS=""<u></u><u></u></p>
<p class="MsoNormal">S_MEMORY=32<u></u><u></u></p>
<p class="MsoNormal">P_MEMORY=32<u></u><u></u></p>
<p class="MsoNormal">RETVAL=0<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">When I run init script I get this error.
<u></u><u></u></p>
<p class="MsoNormal">Starting opensips (via systemctl): Job for opensips.service failed because a configured resource limit was exceeded. See "systemctl status opensips.service" and "journalctl -xe"
for details.<u></u><u></u></p>
<p class="MsoNormal"> [FAILED]<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Where is doc page explaining how OpenSIPS 3 starts?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Kind Regards,<u></u><u></u></p>
<p class="MsoNormal">Arda<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">David Villasmil <u></u><u></u></p>
<div>
<p class="MsoNormal">email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">
david.villasmil.work@gmail.com</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">phone: +34669448337<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>