php - 我在 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);
我可以尝试什么来解决这个问题?
解决方案
推荐阅读
- razor - RazorEngineCore - 如何使用扩展方法
- python - 根据数据帧内的值将熊猫数据帧值与 rgb 颜色值的键对应
- laravel - laravel:不显示传递的数据
- amazon-web-services - 如何将 AWS::ECS::Service 更新为 Fargate 启动类型
- python - post_save 信号后无法运行自定义装饰器
- reactjs - 如何导航到一个组件并将其作为整个页面打开
- python - 逗号后如何匹配多个IP地址?
- javascript - 如何从 JSON 对象返回特定数量的单词?
- angular - 将 Angular 10 与 BsDatepickerConfig 和 ngModel 一起使用 - 存储日期,而不是时间
- xaml - Uno Platform - 共享项目中的参考资源字典