首页 > 解决方案 > 我在 Couchbase 中收到此错误:'Pooled socket is dead。继续下一个'

问题描述

我正在尝试进行 N1QL 查询。我成功获得集群连接。但是当我尝试执行查询时它失败了。在 nginx 错误日志中,我收到此错误-

[error] 17518#17518: *7703 FastCGI sent in stderr: "PHP message: [cb,WARN] (lcbio_mgr L:483 
I:3887268011) <localhost:8093> 
(HE=0x56542f856a50) Pooled socket is dead. Continuing to next one" while reading response 
header from upstream, client: xxxxxxxxxxxxxxxx........

我想到了防火墙问题并尝试禁用防火墙。还尝试在防火墙中启用端口,但没有任何工作。我正在使用 Couchbase Server Enterprise Edition 6.6.1 build 9213。这是我用于集群连接的代码 -

$connectionString = "couchbase://localhost";
$options          = new \Couchbase\ClusterOptions();
$options->credentials('USERNAME', 'PASSWORD');
$cluster = new \Couchbase\Cluster($connectionString, $options);

new \Couchbase\QueryOptions();
$options->namedParameters($queryParams);
$cluster->query($query, $options);

我可以尝试什么来解决这个问题?

标签: phpcouchbasen1ql

解决方案


推荐阅读