Debugging question - silent intialization errors
This is probably a dumb question but (surprisingly) I really hadn't run across this problem before and want to make sure I'm prepared to quickly deal with it in the future as I'm certain that it will happen again. I was making some edits to the XML dialplan and screwed up the syntax a bit. Fortunately I had done a reloadxml and saw the "error near line xxxx" message, so I knew where to look in the .fsxml file to find the error and fixed it. Problem is, when you do a 'service freeswitch start' in Linux you don't get this message, FS never finishes starting up so you can't get into the CLI to see what's going on, and it doesn't show anything in the log file. The only feedback you get is with a 'service freeswitch status' which gives the 'freeswitch dead but subsys locked' message. Is there a startup option to get it to show initialization errors? Can I do something like ./freeswitch in the bin directory and get it to send any initialization errors to stdout or some other file that way? As always, many grateful thanks for the info. Cheers, Phil Quesinberry Q Systems Engineering, Inc. Electronic Controls and Embedded Systems Development (410) 969-8002 http://www.qsystemsengineering.com
Start freeswitch without -nc you should be able to see all debug. As soon as you Ctrl-C however, freeswitch is no longer running. Take a look at your bin folder, from there ./freeswitch with the correct permissions. Sent from my iPhone On Jan 12, 2013, at 12:02 PM, "Phil Quesinberry" <philq@qsystemsengineering.com> wrote:
This is probably a dumb question but (surprisingly) I really hadn’t run across this problem before and want to make sure I’m prepared to quickly deal with it in the future as I’m certain that it will happen again.
I was making some edits to the XML dialplan and screwed up the syntax a bit. Fortunately I had done a reloadxml and saw the “error near line xxxx” message, so I knew where to look in the .fsxml file to find the error and fixed it. Problem is, when you do a ‘service freeswitch start’ in Linux you don’t get this message, FS never finishes starting up so you can’t get into the CLI to see what’s going on, and it doesn’t show anything in the log file. The only feedback you get is with a ‘service freeswitch status’ which gives the ‘freeswitch dead but subsys locked’ message.
Is there a startup option to get it to show initialization errors? Can I do something like ./freeswitch in the bin directory and get it to send any initialization errors to stdout or some other file that way?
As always, many grateful thanks for the info.
Cheers,
Phil Quesinberry
Q Systems Engineering, Inc.
Electronic Controls and Embedded Systems Development
(410) 969-8002
http://www.qsystemsengineering.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
participants (2)
-
Brian Foster
-
Phil Quesinberry