Fix Type
Fix issue that can't get port number from para

1. Fix issue that can't get port number from para
2. Print trackback at exception
3. Set socket between primary and secondary alive
Trunk secondary server info into one line