我在Kaltura管理控制台内Uploading any Content
(或)访问[ Content ] Tab
时遇到错误。我是管理员角色。
显示如下:
在kaltura_api_v3.log
文件中:
2012-07-10 19:35:52 [127.0.0.1] [2090136132] [API] [KalturaFrontController->errorHandler] NOTICE: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect(): Server example.mydomain.com (tcp 11211, udp 0) failed with: Connection refused (111)
2012-07-10 19:35:52 [127.0.0.1] [2090136132] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect(): Can't connect to example.mydomain.com:11211, Connection refused (111)
2012-07-10 19:35:52 [127.0.0.1] [2090136132] [API] [myCache->myCache] NOTICE: ERROR: Error while trying to connect to memcache. Make sure it is properly running on example.mydomain.com:11211
2012-07-10 19:35:52 [127.0.0.1] [2090136132] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [571] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]
2012-07-10 19:35:52 [127.0.0.1] [2090136132] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [633] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]
2012-07-10 19:35:52 [127.0.0.1] [48976061] [API] [KalturaFrontController->errorHandler] NOTICE: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect(): Server example.mydomain.com (tcp 11211, udp 0) failed with: Connection refused (111)
2012-07-10 19:35:52 [127.0.0.1] [48976061] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect(): Can't connect to example.mydomain.com:11211, Connection refused (111)
2012-07-10 19:35:52 [127.0.0.1] [48976061] [API] [myCache->myCache] NOTICE: ERROR: Error while trying to connect to memcache. Make sure it is properly running on example.mydomain.com:11211
2012-07-10 19:35:53 [127.0.0.1] [48976061] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [571] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]
2012-07-10 19:35:53 [127.0.0.1] [48976061] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [633] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] NOTICE: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect(): Server example.mydomain.com (tcp 11211, udp 0) failed with: Connection refused (111)
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect(): Can't connect to example.mydomain.com:11211, Connection refused (111)
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [myCache->myCache] NOTICE: ERROR: Error while trying to connect to memcache. Make sure it is properly running on example.mydomain.com:11211
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:02 [81.152.216.67] [1659128380] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/KAutoloader.php line 52 - require_once(): Unable to allocate memory for pool.
2012-07-10 19:36:03 [81.152.216.67] [1659128380] [API] [KalturaFrontController->getExceptionObject] CRIT: exception 'Exception' with message 'Failed to connect to any Sphinx config' in /opt/kaltura/app/infra/db/DbManager.php:157
Stack trace:
#0 /opt/kaltura/app/plugins/sphinx_search/lib/SphinxCriteria.php(169): DbManager::getSphinxConnection()
#1 /opt/kaltura/app/plugins/sphinx_search/lib/SphinxCriteria.php(359): SphinxCriteria->executeSphinx('kaltura_entry', 'WHERE display_i...', 'ORDER BY create...', 50, 1000, true, '')
#2 /opt/kaltura/app/alpha/lib/model/entryPeer.php(449): SphinxCriteria->applyFilters()
#3 /opt/kaltura/app/api_v3/lib/KalturaEntryService.php(883): entryPeer::doSelect(Object(SphinxEntryCriteria))
#4 /opt/kaltura/app/api_v3/services/BaseEntryService.php(441): KalturaEntryService->listEntriesByFilter(Object(KalturaMediaEntryFilter), Object(KalturaFilterPager))
#5 [internal function]: BaseEntryService->listAction(Object(KalturaMediaEntryFilter), Object(KalturaFilterPager))
#6 /opt/kaltura/app/api_v3/lib/KalturaServiceReflector.php(293): call_user_func_array(Array, Array)
#7 /opt/kaltura/app/api_v3/lib/KalturaDispatcher.php(85): KalturaServiceReflector->invoke('list', Array)
#8 /opt/kaltura/app/api_v3/lib/KalturaFrontController.php(246): KalturaDispatcher->dispatch('baseentry', 'list', Array)
#9 /opt/kaltura/app/api_v3/lib/KalturaFrontController.php(90): KalturaFrontController->handleMultiRequest()
#10 /opt/kaltura/app/api_v3/web/index.php(19): KalturaFrontController->run()
#11 {main}
那我该怎么办? :(
答案 0 :(得分:1)
该异常表明系统无法连接到sphinx。 检查'searchd'进程是否正在运行,如果没有则运行它(/ opt / kaltura / app / scripts下应该有一个脚本)
Memcache应该是可选的,但绝对建议性能。 您可以从Linux发行版的存储库中安装它。
答案 1 :(得分:0)
我看到两个问题。你的PHP没有足够的内存,或者你的盒子似乎没有内存。
对于php,您可以在 /etc/php.ini 中增加* memory_limit *值(需要重启Web服务器)
另一件事是memcached服务器似乎不可用。如果它在不同的盒子上运行,您可能需要检查防火墙设置。
希望这有帮助。
答案 2 :(得分:0)
删除/ opt / kaltura / log / sphinx / data /中的所有文件,然后重新启动sphinx。