当前 6.5:当前媒体服务器不是 运行
Kurento 6.5 : kurento media server is not running
我已经在 ubuntu 14.04 LTS(64 位)机器上安装了 KMS 6.5 的最新稳定版本,但不幸的是 kurento 媒体服务器无法 运行。它卡在加载模块配置中。
KMS 版本:
Version: 6.5.0
Found modules:
Module: 'core' version '6.5.1~20.gbbd29c0'
Module: 'elements' version '6.5.0'
Module: 'filters' version '6.5.0'
日志:
2016-06-07 13:32:57,802641 4667 [0x00007f7cfba9c8c0] debug KurentoMediaServer main.cpp:194 main() Dumping logs to /var/log/kurento-media-server
2016-06-07 13:32:57,802899 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:156 loadModules() Looking for modules in /usr/lib/x86_64-linux-gnu/kurento/modules
2016-06-07 13:32:57,803569 4667 [0x00007f7cfba9c8c0] debug KurentoModuleManager ModuleManager.cpp:89 loadModule() Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmsfiltersmodule.so
2016-06-07 13:32:57,803615 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:135 loadModule() Loaded filters version 6.5.0 generated at May 30 2016 15:55:46
2016-06-07 13:32:57,806695 4667 [0x00007f7cfba9c8c0] debug KurentoModuleManager ModuleManager.cpp:89 loadModule() Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmselementsmodule.so
2016-06-07 13:32:57,806765 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:135 loadModule() Loaded elements version 6.5.0 generated at May 30 2016 15:46:36
2016-06-07 13:32:57,807081 4667 [0x00007f7cfba9c8c0] debug KurentoModuleManager ModuleManager.cpp:89 loadModule() Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmscoremodule.so
2016-06-07 13:32:57,807119 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:135 loadModule() Loaded core version 6.5.1~20.gbbd29c0 generated at Jun 3 2016 15:31:39
2016-06-07 13:32:57,807164 4667 [0x00007f7cfba9c8c0] info KurentoMediaServer main.cpp:238 main() Kmsc version: 6.5.0
2016-06-07 13:32:57,807187 4667 [0x00007f7cfba9c8c0] info KurentoMediaServer main.cpp:239 main() Compiled at: May 30 2016 17:27:03
2016-06-07 13:32:57,807209 4667 [0x00007f7cfba9c8c0] info KurentoLoadConfig loadConfig.cpp:229 loadConfig() Reading configuration from: /etc/kurento/kurento.conf.json
2016-06-07 13:32:57,807363 4667 [0x00007f7cfba9c8c0] info KurentoLoadConfig loadConfig.cpp:166 loadModulesConfigFromDir() Looking for config files in /etc/kurento/modules
2016-06-07 13:32:57,807411 4667 [0x00007f7cfba9c8c0] info KurentoLoadConfig loadConfig.cpp:166 loadModulesConfigFromDir() Looking for config files in /etc/kurento/modules/kurento
媒体服务器错误日志:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> >'
what(): /etc/kurento/modules/kurento/SdpEndpoint.conf.json(23): expected value
[31;1mAborted[0m (thread [33;1m140174774880448[0m, pid [33;1m4667[0m)
Stack trace:
[34;1m[__GI_raise][0m
nptl/sysdeps/unix/sysv/linux/raise.c[32;1m:56[0m
[34;1m[__GI_abort][0m
/build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c[32;1m:91[0m
[34;1m[__gnu_cxx::__verbose_terminate_handler()][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x60535[0m
[34;1m[std::rethrow_exception(std::__exception_ptr::exception_ptr)][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x5E6D6[0m
[34;1m[std::terminate()][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x5E703[0m
[34;1m[__cxa_throw][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x5E922[0m
[34;1m[void boost::throw_exception<boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> >(boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> const&)][0m
/usr/bin/kurento-media-server[32;1m:0x5038C9[0m
[34;1m[void boost::exception_detail::throw_exception_<boost::property_tree::json_parser::json_parser_error>(boost::property_tree::json_parser::json_parser_error const&, char const*, char const*, int)][0m
/usr/bin/kurento-media-server[32;1m:0x50399D[0m
[34;1m[void boost::property_tree::json_parser::read_json_internal<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > >(std::basic_istream<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >::key_type::value_type, std::char_traits<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >::key_type::value_type> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, std::string const&)][0m
/usr/bin/kurento-media-server[32;1m:0x516954[0m
[34;1m[void boost::property_tree::json_parser::read_json<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > >(std::string const&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, std::locale const&)][0m
/usr/bin/kurento-media-server[32;1m:0x516C07[0m
[34;1m[kurento::mergePropertyTrees(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, int)][0m
/usr/bin/kurento-media-server[32;1m:0x4FEAF5[0m
[34;1m[kurento::mergePropertyTrees(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, int)][0m
/usr/bin/kurento-media-server[32;1m:0x4FF073[0m
[34;1m[kurento::mergePropertyTrees(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, int)][0m
/usr/bin/kurento-media-server[32;1m:0x4FF598[0m
[34;1m[kurento::loadConfig(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, std::string const&, std::string const&)][0m
/usr/bin/kurento-media-server[32;1m:0x4FFD94[0m
[34;1m[main][0m
/usr/bin/kurento-media-server[32;1m:0x4D476C[0m
[34;1m[__libc_start_main][0m
/build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c[32;1m:321[0m
编辑 1
根据@santoscadenas,这里是SdpEndpoint.conf.json
的内容
{
"numAudioMedias" : 1,
"numVideoMedias" : 1,
"audioCodecs" : [
{
"name" : "opus/48000/2"
// Next is an example about how a codec can be configured.
// WARNING: Usage of properties is not yet supported
// "properties" : {
// "maxcodedaudiobandwidth" : "16000",
// "maxaveragebitrate" : "20000",
// "stereo": "1",
// "useinbandfec" : "1",
// "usedtx" : "0"
// }
// },
{
"name" : "PCMU/8000"
},
{
"name" : "AMR/8000"
}
],
"videoCodecs" : [
{
"name" : "VP8/90000"
},
{
"name" : "H264/90000"
}
]
}
看来你的配置文件SdpEndpoint.conf.json
有问题,检查一下格式是否正确。
通过这个更改您当前的配置:
{
"numAudioMedias" : 1,
"numVideoMedias" : 1,
"audioCodecs" : [
{
"name" : "opus/48000/2"
// Next is an example about how a codec can be configured.
// WARNING: Usage of properties is not yet supported
// "properties" : {
// "maxcodedaudiobandwidth" : "16000",
// "maxaveragebitrate" : "20000",
// "stereo": "1",
// "useinbandfec" : "1",
// "usedtx" : "0"
// }
},
{
"name" : "PCMU/8000"
},
{
"name" : "AMR/8000"
}
],
"videoCodecs" : [
{
"name" : "VP8/90000"
},
{
"name" : "H264/90000"
}
]
}
如您所见,作品条目上有一条额外的评论。
我已经在 ubuntu 14.04 LTS(64 位)机器上安装了 KMS 6.5 的最新稳定版本,但不幸的是 kurento 媒体服务器无法 运行。它卡在加载模块配置中。
KMS 版本:
Version: 6.5.0
Found modules:
Module: 'core' version '6.5.1~20.gbbd29c0'
Module: 'elements' version '6.5.0'
Module: 'filters' version '6.5.0'
日志:
2016-06-07 13:32:57,802641 4667 [0x00007f7cfba9c8c0] debug KurentoMediaServer main.cpp:194 main() Dumping logs to /var/log/kurento-media-server
2016-06-07 13:32:57,802899 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:156 loadModules() Looking for modules in /usr/lib/x86_64-linux-gnu/kurento/modules
2016-06-07 13:32:57,803569 4667 [0x00007f7cfba9c8c0] debug KurentoModuleManager ModuleManager.cpp:89 loadModule() Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmsfiltersmodule.so
2016-06-07 13:32:57,803615 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:135 loadModule() Loaded filters version 6.5.0 generated at May 30 2016 15:55:46
2016-06-07 13:32:57,806695 4667 [0x00007f7cfba9c8c0] debug KurentoModuleManager ModuleManager.cpp:89 loadModule() Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmselementsmodule.so
2016-06-07 13:32:57,806765 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:135 loadModule() Loaded elements version 6.5.0 generated at May 30 2016 15:46:36
2016-06-07 13:32:57,807081 4667 [0x00007f7cfba9c8c0] debug KurentoModuleManager ModuleManager.cpp:89 loadModule() Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmscoremodule.so
2016-06-07 13:32:57,807119 4667 [0x00007f7cfba9c8c0] info KurentoModuleManager ModuleManager.cpp:135 loadModule() Loaded core version 6.5.1~20.gbbd29c0 generated at Jun 3 2016 15:31:39
2016-06-07 13:32:57,807164 4667 [0x00007f7cfba9c8c0] info KurentoMediaServer main.cpp:238 main() Kmsc version: 6.5.0
2016-06-07 13:32:57,807187 4667 [0x00007f7cfba9c8c0] info KurentoMediaServer main.cpp:239 main() Compiled at: May 30 2016 17:27:03
2016-06-07 13:32:57,807209 4667 [0x00007f7cfba9c8c0] info KurentoLoadConfig loadConfig.cpp:229 loadConfig() Reading configuration from: /etc/kurento/kurento.conf.json
2016-06-07 13:32:57,807363 4667 [0x00007f7cfba9c8c0] info KurentoLoadConfig loadConfig.cpp:166 loadModulesConfigFromDir() Looking for config files in /etc/kurento/modules
2016-06-07 13:32:57,807411 4667 [0x00007f7cfba9c8c0] info KurentoLoadConfig loadConfig.cpp:166 loadModulesConfigFromDir() Looking for config files in /etc/kurento/modules/kurento
媒体服务器错误日志:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> >'
what(): /etc/kurento/modules/kurento/SdpEndpoint.conf.json(23): expected value
[31;1mAborted[0m (thread [33;1m140174774880448[0m, pid [33;1m4667[0m)
Stack trace:
[34;1m[__GI_raise][0m
nptl/sysdeps/unix/sysv/linux/raise.c[32;1m:56[0m
[34;1m[__GI_abort][0m
/build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c[32;1m:91[0m
[34;1m[__gnu_cxx::__verbose_terminate_handler()][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x60535[0m
[34;1m[std::rethrow_exception(std::__exception_ptr::exception_ptr)][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x5E6D6[0m
[34;1m[std::terminate()][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x5E703[0m
[34;1m[__cxa_throw][0m
/usr/lib/x86_64-linux-gnu/libstdc++.so.6[32;1m:0x5E922[0m
[34;1m[void boost::throw_exception<boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> >(boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> const&)][0m
/usr/bin/kurento-media-server[32;1m:0x5038C9[0m
[34;1m[void boost::exception_detail::throw_exception_<boost::property_tree::json_parser::json_parser_error>(boost::property_tree::json_parser::json_parser_error const&, char const*, char const*, int)][0m
/usr/bin/kurento-media-server[32;1m:0x50399D[0m
[34;1m[void boost::property_tree::json_parser::read_json_internal<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > >(std::basic_istream<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >::key_type::value_type, std::char_traits<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >::key_type::value_type> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, std::string const&)][0m
/usr/bin/kurento-media-server[32;1m:0x516954[0m
[34;1m[void boost::property_tree::json_parser::read_json<boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > >(std::string const&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, std::locale const&)][0m
/usr/bin/kurento-media-server[32;1m:0x516C07[0m
[34;1m[kurento::mergePropertyTrees(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, int)][0m
/usr/bin/kurento-media-server[32;1m:0x4FEAF5[0m
[34;1m[kurento::mergePropertyTrees(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, int)][0m
/usr/bin/kurento-media-server[32;1m:0x4FF073[0m
[34;1m[kurento::mergePropertyTrees(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, int)][0m
/usr/bin/kurento-media-server[32;1m:0x4FF598[0m
[34;1m[kurento::loadConfig(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >&, std::string const&, std::string const&)][0m
/usr/bin/kurento-media-server[32;1m:0x4FFD94[0m
[34;1m[main][0m
/usr/bin/kurento-media-server[32;1m:0x4D476C[0m
[34;1m[__libc_start_main][0m
/build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c[32;1m:321[0m
编辑 1
根据@santoscadenas,这里是SdpEndpoint.conf.json
{
"numAudioMedias" : 1,
"numVideoMedias" : 1,
"audioCodecs" : [
{
"name" : "opus/48000/2"
// Next is an example about how a codec can be configured.
// WARNING: Usage of properties is not yet supported
// "properties" : {
// "maxcodedaudiobandwidth" : "16000",
// "maxaveragebitrate" : "20000",
// "stereo": "1",
// "useinbandfec" : "1",
// "usedtx" : "0"
// }
// },
{
"name" : "PCMU/8000"
},
{
"name" : "AMR/8000"
}
],
"videoCodecs" : [
{
"name" : "VP8/90000"
},
{
"name" : "H264/90000"
}
]
}
看来你的配置文件SdpEndpoint.conf.json
有问题,检查一下格式是否正确。
通过这个更改您当前的配置:
{
"numAudioMedias" : 1,
"numVideoMedias" : 1,
"audioCodecs" : [
{
"name" : "opus/48000/2"
// Next is an example about how a codec can be configured.
// WARNING: Usage of properties is not yet supported
// "properties" : {
// "maxcodedaudiobandwidth" : "16000",
// "maxaveragebitrate" : "20000",
// "stereo": "1",
// "useinbandfec" : "1",
// "usedtx" : "0"
// }
},
{
"name" : "PCMU/8000"
},
{
"name" : "AMR/8000"
}
],
"videoCodecs" : [
{
"name" : "VP8/90000"
},
{
"name" : "H264/90000"
}
]
}
如您所见,作品条目上有一条额外的评论。