UniMRCP Server as daemon won't connect RTSP
I've been playing around with IVONA's new unimrcp plugin with unimrcp 1.0.0 (r1725) on OpenSuse 11.4 Anyway, when I start it up with the following, it stays in the foreground of my SSH w/ the following command: ./unimrcpserver That works! However, since it's in the foreground when I close the SSH window, it kills the process. If I use the so-called daemon mode (-d or --daemon) it says it is going into daemon mode, but FS will immediately return that it "Failed to Connect to RTSP Server..." at the IP:port I specified. The unimrcpserver process is running, but doesn't seem to respond to anything. ./unimrcpserver -d ./unimrcpserver --daemon If I attempt to background it by either using "&" or ctrl-z it says [1]+ Stopped ./unimrcpserver and FS will successfully make the RTSP connection but then nothing will happen. Mod_unimrcp will spit out a warning about "MRCP session has not opened after 5000 ms" ./unimrcpserver & Those are hard to kill. But when I kill -9 it then FS will finally remove the MRCP handle and tell me that it couldn't allocate the speech engine. Lastly, I can nohup it, but then unimrcpserver eats up 95%+ of the CPU (instead of 1-3% as it does when I have it in the foreground), which it does not do when it runs in any other modes. It also makes a very, very large nohup.out file that keeps on growing. Even if I tell it to not log. nohup ./unimrcpserver & nohup ./unimrcpserver -o 0 & Ideas?? Thanks, Jason Moran
How about running unimrcpserver inside of GNU screen? It may not be a perfect solution but it might let you keep working until you figure out why the daemon isn't working. -MC On Mon, Jun 27, 2011 at 2:52 PM, Jason Moran <jmoran@secureachsystems.com>wrote:
I’ve been playing around with IVONA’s new unimrcp plugin with unimrcp 1.0.0 (r1725) on OpenSuse 11.4****
** **
Anyway, when I start it up with the following, it stays in the foreground of my SSH w/ the following command:****
./unimrcpserver****
That works! However, since it’s in the foreground when I close the SSH window, it kills the process.****
** **
If I use the so-called daemon mode (-d or --daemon) it says it is going into daemon mode, but FS will immediately return that it “Failed to Connect to RTSP Server...” at the IP:port I specified. The unimrcpserver process is running, but doesn’t seem to respond to anything.****
./unimrcpserver –d****
./unimrcpserver --daemon****
** **
If I attempt to background it by either using “&” or ctrl-z it says [1]+ Stopped ./unimrcpserver and FS will successfully make the RTSP connection but then nothing will happen. Mod_unimrcp will spit out a warning about “MRCP session has not opened after 5000 ms”****
./unimrcpserver &****
Those are hard to kill. But when I kill -9 it then FS will finally remove the MRCP handle and tell me that it couldn’t allocate the speech engine.** **
** **
Lastly, I can nohup it, but then unimrcpserver eats up 95%+ of the CPU (instead of 1-3% as it does when I have it in the foreground), which it does not do when it runs in any other modes. It also makes a very, very large nohup.out file that keeps on growing. Even if I tell it to not log.****
nohup ./unimrcpserver &****
nohup ./unimrcpserver –o 0 &****
** **
Ideas?? Thanks,****
Jason Moran****
** **
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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 http://www.freeswitch.org
That will technically work, but it is not a good solution. Since SSH is our only allowed remoting option (other methods have been shut down by our security guy), I need to find a way for unimrcp daemon mode to be stable with freeswitch. Can other people successfully connect in daemon mode? -Jason From: Michael Collins [mailto:msc@freeswitch.org] Sent: Tuesday, June 28, 2011 11:00 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] UniMRCP Server as daemon won't connect RTSP How about running unimrcpserver inside of GNU screen? It may not be a perfect solution but it might let you keep working until you figure out why the daemon isn't working. -MC On Mon, Jun 27, 2011 at 2:52 PM, Jason Moran <jmoran@secureachsystems.com> wrote: I've been playing around with IVONA's new unimrcp plugin with unimrcp 1.0.0 (r1725) on OpenSuse 11.4 Anyway, when I start it up with the following, it stays in the foreground of my SSH w/ the following command: ./unimrcpserver That works! However, since it's in the foreground when I close the SSH window, it kills the process. If I use the so-called daemon mode (-d or --daemon) it says it is going into daemon mode, but FS will immediately return that it "Failed to Connect to RTSP Server..." at the IP:port I specified. The unimrcpserver process is running, but doesn't seem to respond to anything. ./unimrcpserver -d ./unimrcpserver --daemon If I attempt to background it by either using "&" or ctrl-z it says [1]+ Stopped ./unimrcpserver and FS will successfully make the RTSP connection but then nothing will happen. Mod_unimrcp will spit out a warning about "MRCP session has not opened after 5000 ms" ./unimrcpserver & Those are hard to kill. But when I kill -9 it then FS will finally remove the MRCP handle and tell me that it couldn't allocate the speech engine. Lastly, I can nohup it, but then unimrcpserver eats up 95%+ of the CPU (instead of 1-3% as it does when I have it in the foreground), which it does not do when it runs in any other modes. It also makes a very, very large nohup.out file that keeps on growing. Even if I tell it to not log. nohup ./unimrcpserver & nohup ./unimrcpserver -o 0 & Ideas?? Thanks, Jason Moran _______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE 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 http://www.freeswitch.org
Have you tried doing a strace or gcore of it when it's running with --daemon? If it's running but not listening/responding it could be sonething like a locking problem. Tracing might show you what it is (or isnt) doing. Pid file could be one culprit. Steve on iPhone On 27 Jun 2011, at 22:52, "Jason Moran" <jmoran@secureachsystems.com> wrote:
I’ve been playing around with IVONA’s new unimrcp plugin with unimrcp 1.0.0 (r1725) on OpenSuse 11.4
Anyway, when I start it up with the following, it stays in the foreground of my SSH w/ the following command: ./unimrcpserver That works! However, since it’s in the foreground when I close the SSH window, it kills the process.
If I use the so-called daemon mode (-d or --daemon) it says it is going into daemon mode, but FS will immediately return that it “Failed to Connect to RTSP Server...” at the IP:port I specified. The unimrcpserver process is running, but doesn’t seem to respond to anything. ./unimrcpserver –d ./unimrcpserver --daemon
If I attempt to background it by either using “&” or ctrl-z it says [1]+ Stopped ./unimrcpserver and FS will successfully make the RTSP connection but then nothing will happen. Mod_unimrcp will spit out a warning about “MRCP session has not opened after 5000 ms” ./unimrcpserver & Those are hard to kill. But when I kill -9 it then FS will finally remove the MRCP handle and tell me that it couldn’t allocate the speech engine.
Lastly, I can nohup it, but then unimrcpserver eats up 95%+ of the CPU (instead of 1-3% as it does when I have it in the foreground), which it does not do when it runs in any other modes. It also makes a very, very large nohup.out file that keeps on growing. Even if I tell it to not log. nohup ./unimrcpserver & nohup ./unimrcpserver –o 0 &
Ideas?? Thanks, Jason Moran
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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 http://www.freeswitch.org
I have a solution to the unimrcpserver daemon mode! strace helped me narrow it down (also turning on unimrcp’s logger.xml settings to full DEBUG). Final solution was to execute with: ./unimrcpserver –r /usr/local/unimrcp/ -d Why? I noticed that unimrcpserver failed whenever I started it from elsewhere when using the full path (/usr/local/unimrcp/bin/unimrcpserver ). It couldn’t find various relative config files. So I downloaded the unimrcp source to see where it was looking (“../”). It turns out there is a startup switch called –r which allows you to put the full path to the default starting directory. It always worked in SSH because I was always starting it from in the bin directory with ./unimrcpserver. The “../” that it defaults with found the correct directories. However, by starting it in daemon mode it was not able to reach the same directory structure from the same starting point. The fully qualified path made it work. -Jason Moran From: Steven Ayre [mailto:steveayre@gmail.com] Sent: Tuesday, June 28, 2011 2:47 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] UniMRCP Server as daemon won't connect RTSP Have you tried doing a strace or gcore of it when it's running with --daemon? If it's running but not listening/responding it could be sonething like a locking problem. Tracing might show you what it is (or isnt) doing. Pid file could be one culprit. Steve on iPhone On 27 Jun 2011, at 22:52, "Jason Moran" <jmoran@secureachsystems.com> wrote: I’ve been playing around with IVONA’s new unimrcp plugin with unimrcp 1.0.0 (r1725) on OpenSuse 11.4 Anyway, when I start it up with the following, it stays in the foreground of my SSH w/ the following command: ./unimrcpserver That works! However, since it’s in the foreground when I close the SSH window, it kills the process. If I use the so-called daemon mode (-d or --daemon) it says it is going into daemon mode, but FS will immediately return that it “Failed to Connect to RTSP Server...” at the IP:port I specified. The unimrcpserver process is running, but doesn’t seem to respond to anything. ./unimrcpserver –d ./unimrcpserver --daemon If I attempt to background it by either using “&” or ctrl-z it says [1]+ Stopped ./unimrcpserver and FS will successfully make the RTSP connection but then nothing will happen. Mod_unimrcp will spit out a warning about “MRCP session has not opened after 5000 ms” ./unimrcpserver & Those are hard to kill. But when I kill -9 it then FS will finally remove the MRCP handle and tell me that it couldn’t allocate the speech engine. Lastly, I can nohup it, but then unimrcpserver eats up 95%+ of the CPU (instead of 1-3% as it does when I have it in the foreground), which it does not do when it runs in any other modes. It also makes a very, very large nohup.out file that keeps on growing. Even if I tell it to not log. nohup ./unimrcpserver & nohup ./unimrcpserver –o 0 & Ideas?? Thanks, Jason Moran _______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE 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 http://www.freeswitch.org
participants (3)
-
Jason Moran
-
Michael Collins
-
Steven Ayre