FS_ENCODE does not work with non root user
Hello, FS encode does not work using non root user.Any idea why ? or how to fix it ? sudo -H -u nginx bash -c '/usr/local/freeswitch/bin/fs_encode -v /tmp/k1.wav /tmp/k1.PCMA' Cannot init core [Cannot Open log directory or XML Root!] 2019-04-10 15:01:20.230883 [WARNING] switch_core_codec.c:920 Codec is not initialized! 2019-04-10 15:01:20.231005 [WARNING] switch_core_codec.c:920 Codec is not initialized! -- Thanks, Sagar
Hey Sagar - Does your nginx user have read access your installation's freeswitch.xml configuration file, and write access to the freeswitch log directory? It would appear these two are the most likely culprits -------------------------------- Troy Denton, P. Eng. Senior Telecom Analyst 24-7 Intouch 24-7intouch.com | tdenton@24-7intouch.com 240 Kennedy St | Winnipeg, Manitoba, Canada R3C 1T1 Confidentiality Note: This e-mail message and any attachments to it are intended only for the named recipients and may contain legally privileged and/or confidential information. If you are not one of the intended recipients, please do not duplicate or forward this e-mail message and immediately delete it from your computer. On Wed, Apr 10, 2019 at 10:36 AM sagar malam <sagarmalam@gmail.com> wrote:
Hello,
FS encode does not work using non root user.Any idea why ? or how to fix it ? sudo -H -u nginx bash -c '/usr/local/freeswitch/bin/fs_encode -v /tmp/k1.wav /tmp/k1.PCMA' Cannot init core [Cannot Open log directory or XML Root!] 2019-04-10 15:01:20.230883 [WARNING] switch_core_codec.c:920 Codec is not initialized! 2019-04-10 15:01:20.231005 [WARNING] switch_core_codec.c:920 Codec is not initialized!
-- Thanks,
Sagar _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
It was permission issue. Thanks for help On Thu, Apr 11, 2019 at 3:05 AM Troy Denton <tdenton@24-7intouch.com> wrote:
Hey Sagar - Does your nginx user have read access your installation's freeswitch.xml configuration file, and write access to the freeswitch log directory? It would appear these two are the most likely culprits
--------------------------------
Troy Denton, P. Eng.
Senior Telecom Analyst
24-7 Intouch
24-7intouch.com | tdenton@24-7intouch.com
240 Kennedy St | Winnipeg, Manitoba, Canada R3C 1T1
Confidentiality Note: This e-mail message and any attachments to it are intended only for the named recipients and may contain legally privileged and/or confidential information. If you are not one of the intended recipients, please do not duplicate or forward this e-mail message and immediately delete it from your computer.
On Wed, Apr 10, 2019 at 10:36 AM sagar malam <sagarmalam@gmail.com> wrote:
Hello,
FS encode does not work using non root user.Any idea why ? or how to fix it ? sudo -H -u nginx bash -c '/usr/local/freeswitch/bin/fs_encode -v /tmp/k1.wav /tmp/k1.PCMA' Cannot init core [Cannot Open log directory or XML Root!] 2019-04-10 15:01:20.230883 [WARNING] switch_core_codec.c:920 Codec is not initialized! 2019-04-10 15:01:20.231005 [WARNING] switch_core_codec.c:920 Codec is not initialized!
-- Thanks,
Sagar _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Thanks, Sagar
it tries to access directories probably owned by root or by freeswitch user. Check who owns /usr/local/freeswitch/conf or /etc/freeswitch On Wed, Apr 10, 2019 at 5:16 PM sagar malam <sagarmalam@gmail.com> wrote:
Hello,
FS encode does not work using non root user.Any idea why ? or how to fix it ? sudo -H -u nginx bash -c '/usr/local/freeswitch/bin/fs_encode -v /tmp/k1.wav /tmp/k1.PCMA' Cannot init core [Cannot Open log directory or XML Root!] 2019-04-10 15:01:20.230883 [WARNING] switch_core_codec.c:920 Codec is not initialized! 2019-04-10 15:01:20.231005 [WARNING] switch_core_codec.c:920 Codec is not initialized!
-- Thanks,
Sagar _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Sincerely, Giovanni Maruzzelli OpenTelecom.IT cell: +39 347 266 56 18
You can strace application start and locate accessed directory/file. After it need check directory/file permissions. ср, 10 апр. 2019 г., 18:15 sagar malam <sagarmalam@gmail.com>:
Hello,
FS encode does not work using non root user.Any idea why ? or how to fix it ? sudo -H -u nginx bash -c '/usr/local/freeswitch/bin/fs_encode -v /tmp/k1.wav /tmp/k1.PCMA' Cannot init core [Cannot Open log directory or XML Root!] 2019-04-10 15:01:20.230883 [WARNING] switch_core_codec.c:920 Codec is not initialized! 2019-04-10 15:01:20.231005 [WARNING] switch_core_codec.c:920 Codec is not initialized!
-- Thanks,
Sagar _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (4)
-
Giovanni Maruzzelli
-
sagar malam
-
Sergey Safarov
-
Troy Denton