3
我的隊列工作不斷拋出下面的錯誤:Elasticsearch運行時異常curl_multi_exec()函數需要客戶端
[Elasticsearch\Common\Exceptions\RuntimeException]
curl_multi_exec() function is required for the client.
在laravel日誌中的堆棧跟蹤是:
[2015-11-02 01:52:35] local.ERROR: exception 'Elasticsearch\Common\Exceptions\RuntimeException' with message 'curl_multi_exec() function is required for the client.' in /opt/bitnami/frameworks/laravel/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php:89
Stack trace:
#0 /opt/bitnami/frameworks/laravel/app/Services/ElasticSearchClient.php(35): Elasticsearch\Client->__construct(Array)
#1 /opt/bitnami/frameworks/laravel/app/Providers/ElasticSearchServiceProvider.php(29): App\Services\ElasticSearchClient->__construct()
#2 [internal function]: App\Providers\ElasticSearchServiceProvider->boot()
#3 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(503): call_user_func_array(Array, Array)
#4 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->call(Array)
#5 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(717): Illuminate\Foundation\Application->bootProvider(Object(App\Providers\ElasticSearchServiceProvider))
#6 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(App\Providers\ElasticSearchServiceProvider), 19)
#7 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(718): array_walk(Array, Object(Closure))
#8 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
#9 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(203): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#10 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(208): Illuminate\Foundation\Application->bootstrapWith(Array)
#11 /opt/bitnami/frameworks/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(105): Illuminate\Foundation\Console\Kernel->bootstrap()
#12 /opt/bitnami/frameworks/laravel/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 {main}
我沒有線索如何解決它。
我使用bitnami燈棧來運行laravel應用程序。
我也使用https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
在php.ini文件,我需要添加以下行?:
extension=php_curl.dll
或做我需要做一些額外的?
試試這個'echo function_exists('curl_multi_select');'如果它不打印'「1」',那麼你沒有啓用這個函數。然後解決方案將是:升級PHP或/並檢查'php.ini'(禁用的函數)。是的,你應該安裝並啓用'curl'庫。 – Axalix
在此之前提出的非常類似的問題:http://stackoverflow.com/questions/33469459/homebrew-cant-start-elastic-search – Val