Php sdk 3.1 connection error

Hi, Team
After updating the server and the PHP version, we were forced to update the SDK to version 3.1.
When we request a server (version 6.0) we receive a connection error message - [cb,EROR] (cccp L:187 I:170552098) NOHOST:NOPORT (CTX=(nil),) Could not get configuration: LCB_ERR_TIMEOUT (201).
Interestingly, sometimes the result of the query is obtained, sometimes not. Can anybody help solve this problem?
Request code:
$connect_str = ‘couchbase://xxx.xxx.xxx.50,xxx.xxx.xxx.51,xxx.xxx.xxx.52,xxx.xxx.xxx.53,xxx.xxx.xxx.54,xxx.xxx.xxx.55’;
$options = new \Couchbase\ClusterOptions();
$options->credentials(“user”, “password”);
$cluster = new \Couchbase\Cluster($connect_str, $options);
$bucket = $cluster->bucket(‘bcktname’);
$collection = $bucket->defaultCollection();
$res = $collection->get(‘docname’);

Response with empty body:
[cb,EROR] (cccp L:187 I:786669618) NOHOST:NOPORT (CTX=(nil),) Could not get configuration: LCB_ERR_TIMEOUT (201)
[cb,EROR] (connection L:162 I:786669618) xxx.xxx.xxx.50:11210 (SOCK=4599ec9cc6de3a08) Failed to establish connection: LCB_ERR_TIMEOUT (201), os errno=0
[cb,WARN] (cccp L:402 I:786669618) xxx.xxx.xxx.51:11210 (CTX=0x55aecf09c690,bc_cccp) CCCP Packet responded with 0x08; nkey=0, cmd=0xb5, seq=0xf00d, value={“error”:{“context”:“No bucket selected”}}
[cb,WARN] (cccp L:402 I:786669618) xxx.xxx.xxx.52:11210 (CTX=0x55aecf0b7040,bc_cccp) CCCP Packet responded with 0x08; nkey=0, cmd=0xb5, seq=0xf00d, value={“error”:{“context”:“No bucket selected”}}
[cb,WARN] (cccp L:402 I:786669618) xxx.xxx.xxx.53:11210 (CTX=0x55aecf0b8e20,bc_cccp) CCCP Packet responded with 0x08; nkey=0, cmd=0xb5, seq=0xf00d, value={“error”:{“context”:“No bucket selected”}}
[cb,WARN] (cccp L:402 I:786669618) xxx.xxx.xxx.54:11210 (CTX=0x55aecf09c690,bc_cccp) CCCP Packet responded with 0x08; nkey=0, cmd=0xb5, seq=0xf00d, value={“error”:{“context”:“No bucket selected”}}
[cb,WARN] (cccp L:402 I:786669618) xxx.xxx.xxx.55:11210 (CTX=0x55aecf0b7020,bc_cccp) CCCP Packet responded with 0x08; nkey=0, cmd=0xb5, seq=0xf00d, value={“error”:{“context”:“No bucket selected”}}
[cb,EROR] (connection L:162 I:786669618) xxx.xxx.xxx.50:8091 (SOCK=bd0e1bec42e86492) Failed to establish connection: LCB_ERR_TIMEOUT (201), os errno=0
[cb,EROR] (htconfig L:311 I:786669618) Connection to REST API failed with LCB_ERR_TIMEOUT (201) (os errno = 0)
[cb,EROR] (cccp L:187 I:3228768186) NOHOST:NOPORT (CTX=(nil),) Could not get configuration: LCB_ERR_TIMEOUT (201)
[cb,EROR] (connection L:162 I:3228768186) xxx.xxx.xxx.50:11210 (SOCK=6777d6dc79192843) Failed to establish connection: LCB_ERR_TIMEOUT (201), os errno=0
[cb,WARN] (server L:813 I:3228768186) Failing command with error LCB_ERR_TIMEOUT (201): {“b”:“bcktname”,“i”:“837f4978c07317ba/6d0d358e469077f8/0”,“l”:“xxx.xxx.xxx.xxx:xxxxx”,“r”:“xxx.xxx.xxx.55:11210”,“s”:“kv:get”,“t”:5000}
Couchbase\TimeoutException [ 201 ]: LCB_ERR_TIMEOUT (201)


Response with full body:
similar message to the previous one, but $res contain document content

@server n you please try specifying the port in the connect_str? In the mean time I will see if I can reproduce this issue

Couchbase 6.0 reached end of full maintenance last year, by the way. Could you try with newer server?

Hi, I also have the same problem with php7.4.
Unfortunately we cannot currently upgrade our database to version 7! :cry:
If I can help you debug in any way, I am available.
Thank you

Have you tried server versions 6.5 or 6.6?

@avsej no, currently i use Community Edition 6.0.0 build 1693.

Hello, any suggestions because I have the same problem. I’m using v6.5 of the Couchbase and php 7.4