<div dir="ltr"><div>it tries to access directories probably owned by root or by freeswitch user. Check who owns /usr/local/freeswitch/conf or /etc/freeswitch</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 5:16 PM sagar malam <<a href="mailto:sagarmalam@gmail.com">sagarmalam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>FS encode does not work using non root user.Any idea why ?  or how to fix it ? </div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">sudo -H -u nginx bash -c '/usr/local/freeswitch/bin/fs_encode -v /tmp/k1.wav /tmp/k1.PCMA'        </span><br>Cannot init core [Cannot Open log directory or XML Root!]
<br>2019-04-10 15:01:20.230883 [WARNING] switch_core_codec.c:920 Codec is not initialized!
<br>2019-04-10 15:01:20.231005 [WARNING] switch_core_codec.c:920 Codec is not initialized!<br>
<br></span><div><br></div>-- <br><div dir="ltr" class="gmail-m_-4948176077413126783m_7193451358938295216gmail_signature"><div dir="ltr">Thanks,<div><br></div><div>Sagar</div></div></div></div></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div>