AH01071: Got error 'PHP message: [cb,WARN] Pooled socket is dead. Continuing to next one'

Hello,

I am seeing this error every few seconds in my php error files. Everything seems to work as expected, so I am not sure what is the problem.

Can PLEASE somebody can help me identify the problem and make it dissapear from my error logs?

AH01071: Got error ‘PHP message: [cb,WARN] (lcbio_mgr L:463 I:1156962874) server:ip (HE=0x561c6c225700) Pooled socket is dead. Continuing to next one’

I am using couchbase SDK 3 on a centos 7 server. with PHP 7.4.8

1 Like

@avsej can you please assist ?

Hi! I’ve got the same issue.

@maciej.tomaszewski, could you post some more log entries as a context? If it is possible, set log level to debug: couchbase.log_level = DEBUG using php INI

Sure! :slight_smile:

NOTICE: PHP message: [cb,INFO] (instance L:509 I:3942169343) Version=3.0.4, Changeset=1626c51782da99afbbcfb8e4b39c67f4a940fff5
NOTICE: PHP message: [cb,INFO] (instance L:510 I:3942169343) Effective connection string: couchbase://couchbase:8091. Bucket=(null)
NOTICE: PHP message: [cb,INFO] (instance L:202 I:3942169343) DNS SRV lookup failed: LCB_ERR_UNKNOWN_HOST (1049). Ignore this if not relying on DNS SRV records
NOTICE: PHP message: [cb,DEBG] (instance L:139 I:3942169343) Adding host couchbase:8091 to initial HTTP bootstrap list
NOTICE: PHP message: [cb,DEBG] (instance L:139 I:3942169343) Adding host couchbase:11210 to initial CCCP bootstrap list
NOTICE: PHP message: [cb,INFO] (pcbc/pool L:69) New lcb_INSTANCE * instance has been initialized. I=0x55b46c4a74d0
NOTICE: PHP message: [cb,INFO] (bootstrap L:260 I:3942169343) Requested network configuration: heuristic
NOTICE: PHP message: [cb,DEBG] (confmon L:92 I:3942169343) Preparing providers (this may be called multiple times)
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:3942169343) Provider CCCP is ENABLED
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:3942169343) Provider HTTP is ENABLED
NOTICE: PHP message: [cb,INFO] (cccp L:160 I:3942169343) Requesting connection to node couchbase:11210 for CCCP configuration
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:481 I:3942169343) couchbase:11210 (HE=0x55b46c4bfea0) Creating new connection because none are available in the pool
NOTICE: PHP message: [cb,INFO] (connection L:487 I:3942169343) couchbase:11210 (SOCK=c347c78532dc9991) Starting. Timeout=2000000us
NOTICE: PHP message: [cb,DEBG] (connection L:252 I:3942169343) couchbase:11210 (SOCK=c347c78532dc9991) Created new socket with FD=9
NOTICE: PHP message: [cb,INFO] (connection L:155 I:3942169343) couchbase:11210 (SOCK=c347c78532dc9991) Connected established
NOTICE: PHP message: [cb,DEBG] (connection L:108 I:3942169343) couchbase:11210 (SOCK=c347c78532dc9991) Successfully set TCP_NODELAY
NOTICE: PHP message: [cb,DEBG] (connection L:108 I:3942169343) couchbase:11210 (SOCK=c347c78532dc9991) Successfully set TCP_KEEPALIVE
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:349 I:3942169343) couchbase:11210 (HE=0x55b46c4bfea0) Received result for I=0x55b46c513f30,C=(nil); E=0x0
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:309 I:3942169343) couchbase:11210 (HE=0x55b46c4bfea0) Assigning R=0x55b46c522ac0 SOCKET=0x55b46c4e7090
NOTICE: PHP message: [cb,DEBG] (ioctx L:95 I:3942169343) couchbase:11210 (CTX=0x55b46c4a8bd0,unknown) Pairing with SOCK=c347c78532dc9991
NOTICE: PHP message: [cb,DEBG] (negotiation L:434 I:3942169343) couchbase:11210 (CTX=0x55b46c4a8bd0,sasl,SASLREQ=0x55b46c507140) HELO identificator: {“a”:“libcouchbase/3.0.4 (Linux-4.15.0-91-generic; x86_64; GNU 8.3.0) PCBC/3.0.3 (PHP/7.4.10 NTS)”,“i”:“85ad7bb4eaf8baff/c347c78532dc9991”}, features: 0x02 (TLS), 0x06 (XATTR), 0x0b (JSON), 0x08 (Select bucket), 0x07 (XERROR), 0x03 (TCP nodelay), 0x0a (Snappy), 0x04 (Mutation seqno), 0x0f (Tracing), 0x12 (Collections), 0x0e (Unordered execution)
NOTICE: PHP message: [cb,DEBG] (negotiation L:465 I:3942169343) couchbase:11210 (CTX=0x55b46c4a8bd0,sasl,SASLREQ=0x55b46c507140) Server supports features: 0x03 (TCP nodelay), 0x04 (Mutation seqno), 0x06 (XATTR), 0x07 (XERROR), 0x08 (Select bucket), 0x0a (Snappy), 0x0b (JSON), 0x0e (Unordered execution)
NOTICE: PHP message: [cb,DEBG] (ioctx L:140 I:3942169343) couchbase:11210 (CTX=0x55b46c4a8bd0,sasl) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
NOTICE: PHP message: [cb,DEBG] (ioctx L:95 I:3942169343) couchbase:11210 (CTX=0x55b46c523100,unknown) Pairing with SOCK=c347c78532dc9991
NOTICE: PHP message: [cb,DEBG] (ioctx L:140 I:3942169343) couchbase:11210 (CTX=0x55b46c523100,bc_cccp) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:536 I:3942169343) couchbase:11210 (HE=0x55b46c4bfea0) Placing socket back into the pool. I=0x55b46c513f30,C=0x55b46c4e7090
NOTICE: PHP message: [cb,INFO] (confmon L:168 I:3942169343) Setting new configuration. Received via CCCP
NOTICE: PHP message: [cb,DEBG] (confmon L:92 I:3942169343) Preparing providers (this may be called multiple times)
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:3942169343) Provider CCCP is ENABLED
NOTICE: PHP message: [cb,INFO] (bootstrap L:94 I:3942169343) Selected network configuration: “default”
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:288) cachenew: ptr=0x55b46c495140, type=1, connstr=couchbase://couchbase:8091, bucketname=(null), username=sampleUser, lcb=0x55b46c4a74d0, refs=1. I=0x55b46c4a74d0
NOTICE: PHP message: [cb,DEBG] (pcbc/cluster L:98) Initialize Cluster. C=0x7f1d01b404b0 connstr=“couchbase://couchbase:8091”
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:185) Rewrite connection string from “couchbase://couchbase:8091” to “couchbase://couchbase:8091/data”
NOTICE: PHP message: [cb,INFO] (instance L:509 I:1810565108) Version=3.0.4, Changeset=1626c51782da99afbbcfb8e4b39c67f4a940fff5
NOTICE: PHP message: [cb,INFO] (instance L:510 I:1810565108) Effective connection string: couchbase://couchbase:8091/data. Bucket=data
NOTICE: PHP message: [cb,INFO] (instance L:202 I:1810565108) DNS SRV lookup failed: LCB_ERR_UNKNOWN_HOST (1049). Ignore this if not relying on DNS SRV records
NOTICE: PHP message: [cb,DEBG] (instance L:139 I:1810565108) Adding host couchbase:8091 to initial HTTP bootstrap list
NOTICE: PHP message: [cb,DEBG] (instance L:139 I:1810565108) Adding host couchbase:11210 to initial CCCP bootstrap list
NOTICE: PHP message: [cb,INFO] (pcbc/pool L:69) New lcb_INSTANCE * instance has been initialized. I=0x55b46c4e0f00
NOTICE: PHP message: [cb,INFO] (bootstrap L:260 I:1810565108) Requested network configuration: heuristic
NOTICE: PHP message: [cb,DEBG] (confmon L:92 I:1810565108) Preparing providers (this may be called multiple times)
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:1810565108) Provider CCCP is ENABLED
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:1810565108) Provider HTTP is ENABLED
NOTICE: PHP message: [cb,INFO] (cccp L:160 I:1810565108) Requesting connection to node couchbase:11210 for CCCP configuration
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:481 I:1810565108) couchbase:11210 (HE=0x55b46c4fa1f0) Creating new connection because none are available in the pool
NOTICE: PHP message: [cb,INFO] (connection L:487 I:1810565108) couchbase:11210 (SOCK=efe78e81436bac7b) Starting. Timeout=2000000us
NOTICE: PHP message: [cb,DEBG] (connection L:252 I:1810565108) couchbase:11210 (SOCK=efe78e81436bac7b) Created new socket with FD=14
NOTICE: PHP message: [cb,INFO] (connection L:155 I:1810565108) couchbase:11210 (SOCK=efe78e81436bac7b) Connected established
NOTICE: PHP message: [cb,DEBG] (connection L:108 I:1810565108) couchbase:11210 (SOCK=efe78e81436bac7b) Successfully set TCP_NODELAY
NOTICE: PHP message: [cb,DEBG] (connection L:108 I:1810565108) couchbase:11210 (SOCK=efe78e81436bac7b) Successfully set TCP_KEEPALIVE
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:349 I:1810565108) couchbase:11210 (HE=0x55b46c4fa1f0) Received result for I=0x55b46c494c50,C=(nil); E=0x0
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:309 I:1810565108) couchbase:11210 (HE=0x55b46c4fa1f0) Assigning R=0x55b46c515af0 SOCKET=0x55b46c4c5b50
NOTICE: PHP message: [cb,DEBG] (ioctx L:95 I:1810565108) couchbase:11210 (CTX=0x55b46c4ef070,unknown) Pairing with SOCK=efe78e81436bac7b
NOTICE: PHP message: [cb,DEBG] (negotiation L:434 I:1810565108) couchbase:11210 (CTX=0x55b46c4ef070,sasl,SASLREQ=0x55b46c507140) HELO identificator: {“a”:“libcouchbase/3.0.4 (Linux-4.15.0-91-generic; x86_64; GNU 8.3.0) PCBC/3.0.3 (PHP/7.4.10 NTS)”,“i”:“5195f0c46beb07f4/efe78e81436bac7b”}, features: 0x02 (TLS), 0x06 (XATTR), 0x0b (JSON), 0x08 (Select bucket), 0x07 (XERROR), 0x03 (TCP nodelay), 0x0a (Snappy), 0x04 (Mutation seqno), 0x0f (Tracing), 0x12 (Collections), 0x0e (Unordered execution)
NOTICE: PHP message: [cb,DEBG] (negotiation L:465 I:1810565108) couchbase:11210 (CTX=0x55b46c4ef070,sasl,SASLREQ=0x55b46c507140) Server supports features: 0x03 (TCP nodelay), 0x04 (Mutation seqno), 0x06 (XATTR), 0x07 (XERROR), 0x08 (Select bucket), 0x0a (Snappy), 0x0b (JSON), 0x0e (Unordered execution)
NOTICE: PHP message: [cb,DEBG] (negotiation L:517 I:1810565108) couchbase:11210 (CTX=0x55b46c4ef070,sasl,SASLREQ=0x55b46c507140) Sending SELECT_BUCKET “data”
NOTICE: PHP message: [cb,DEBG] (ioctx L:140 I:1810565108) couchbase:11210 (CTX=0x55b46c4ef070,sasl) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
NOTICE: PHP message: [cb,DEBG] (ioctx L:95 I:1810565108) couchbase:11210 (CTX=0x55b46c4fdb20,unknown) Pairing with SOCK=efe78e81436bac7b
NOTICE: PHP message: [cb,DEBG] (ioctx L:140 I:1810565108) couchbase:11210 (CTX=0x55b46c4fdb20,bc_cccp) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:536 I:1810565108) couchbase:11210 (HE=0x55b46c4fa1f0) Placing socket back into the pool. I=0x55b46c494c50,C=0x55b46c4c5b50
NOTICE: PHP message: [cb,INFO] (confmon L:168 I:1810565108) Setting new configuration. Received via CCCP
NOTICE: PHP message: [cb,DEBG] (confmon L:92 I:1810565108) Preparing providers (this may be called multiple times)
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:1810565108) Provider CCCP is ENABLED
NOTICE: PHP message: [cb,INFO] (bootstrap L:94 I:1810565108) Selected network configuration: “default”
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:288) cachenew: ptr=0x55b46c512020, type=0, connstr=couchbase://couchbase:8091/data, bucketname=data, username=sampleUser, lcb=0x55b46c4e0f00, refs=1. I=0x55b46c4e0f00
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:185) Rewrite connection string from “couchbase://couchbase:8091” to “couchbase://couchbase:8091/data”
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:356) cachehit: type=0, connstr=couchbase://couchbase:8091/data, bucketname=data, username=sampleUser, lcb=0x55b46c4e0f00, refs=2. I=0x55b46c4e0f00
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:185) Rewrite connection string from “couchbase://couchbase:8091” to “couchbase://couchbase:8091/index”
NOTICE: PHP message: [cb,INFO] (instance L:509 I:869318611) Version=3.0.4, Changeset=1626c51782da99afbbcfb8e4b39c67f4a940fff5
NOTICE: PHP message: [cb,INFO] (instance L:510 I:869318611) Effective connection string: couchbase://couchbase:8091/index. Bucket=index
NOTICE: PHP message: [cb,INFO] (instance L:202 I:869318611) DNS SRV lookup failed: LCB_ERR_UNKNOWN_HOST (1049). Ignore this if not relying on DNS SRV records
NOTICE: PHP message: [cb,DEBG] (instance L:139 I:869318611) Adding host couchbase:8091 to initial HTTP bootstrap list
NOTICE: PHP message: [cb,DEBG] (instance L:139 I:869318611) Adding host couchbase:11210 to initial CCCP bootstrap list
NOTICE: PHP message: [cb,INFO] (pcbc/pool L:69) New lcb_INSTANCE * instance has been initialized. I=0x55b46c506df0
NOTICE: PHP message: [cb,INFO] (bootstrap L:260 I:869318611) Requested network configuration: heuristic
NOTICE: PHP message: [cb,DEBG] (confmon L:92 I:869318611) Preparing providers (this may be called multiple times)
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:869318611) Provider CCCP is ENABLED
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:869318611) Provider HTTP is ENABLED
NOTICE: PHP message: [cb,INFO] (cccp L:160 I:869318611) Requesting connection to node couchbase:11210 for CCCP configuration
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:481 I:869318611) couchbase:11210 (HE=0x55b46c4c19e0) Creating new connection because none are available in the pool
NOTICE: PHP message: [cb,INFO] (connection L:487 I:869318611) couchbase:11210 (SOCK=23cc90c6165c8609) Starting. Timeout=2000000us
NOTICE: PHP message: [cb,DEBG] (connection L:252 I:869318611) couchbase:11210 (SOCK=23cc90c6165c8609) Created new socket with FD=18
NOTICE: PHP message: [cb,INFO] (connection L:155 I:869318611) couchbase:11210 (SOCK=23cc90c6165c8609) Connected established
NOTICE: PHP message: [cb,DEBG] (connection L:108 I:869318611) couchbase:11210 (SOCK=23cc90c6165c8609) Successfully set TCP_NODELAY
NOTICE: PHP message: [cb,DEBG] (connection L:108 I:869318611) couchbase:11210 (SOCK=23cc90c6165c8609) Successfully set TCP_KEEPALIVE
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:349 I:869318611) couchbase:11210 (HE=0x55b46c4c19e0) Received result for I=0x55b46c501010,C=(nil); E=0x0
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:309 I:869318611) couchbase:11210 (HE=0x55b46c4c19e0) Assigning R=0x55b46c506d90 SOCKET=0x55b46c4f8030
NOTICE: PHP message: [cb,DEBG] (ioctx L:95 I:869318611) couchbase:11210 (CTX=0x55b46c514290,unknown) Pairing with SOCK=23cc90c6165c8609
NOTICE: PHP message: [cb,DEBG] (negotiation L:434 I:869318611) couchbase:11210 (CTX=0x55b46c514290,sasl,SASLREQ=0x55b46c507140) HELO identificator: {“a”:“libcouchbase/3.0.4 (Linux-4.15.0-91-generic; x86_64; GNU 8.3.0) PCBC/3.0.3 (PHP/7.4.10 NTS)”,“i”:“65d8e93b33d0bfd3/23cc90c6165c8609”}, features: 0x02 (TLS), 0x06 (XATTR), 0x0b (JSON), 0x08 (Select bucket), 0x07 (XERROR), 0x03 (TCP nodelay), 0x0a (Snappy), 0x04 (Mutation seqno), 0x0f (Tracing), 0x12 (Collections), 0x0e (Unordered execution)
NOTICE: PHP message: [cb,DEBG] (negotiation L:465 I:869318611) couchbase:11210 (CTX=0x55b46c514290,sasl,SASLREQ=0x55b46c507140) Server supports features: 0x03 (TCP nodelay), 0x04 (Mutation seqno), 0x06 (XATTR), 0x07 (XERROR), 0x08 (Select bucket), 0x0a (Snappy), 0x0b (JSON), 0x0e (Unordered execution)
NOTICE: PHP message: [cb,DEBG] (negotiation L:517 I:869318611) couchbase:11210 (CTX=0x55b46c514290,sasl,SASLREQ=0x55b46c507140) Sending SELECT_BUCKET “index”
NOTICE: PHP message: [cb,DEBG] (ioctx L:140 I:869318611) couchbase:11210 (CTX=0x55b46c514290,sasl) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
NOTICE: PHP message: [cb,DEBG] (ioctx L:95 I:869318611) couchbase:11210 (CTX=0x55b46c4ca160,unknown) Pairing with SOCK=23cc90c6165c8609
NOTICE: PHP message: [cb,DEBG] (ioctx L:140 I:869318611) couchbase:11210 (CTX=0x55b46c4ca160,bc_cccp) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:536 I:869318611) couchbase:11210 (HE=0x55b46c4c19e0) Placing socket back into the pool. I=0x55b46c501010,C=0x55b46c4f8030
NOTICE: PHP message: [cb,INFO] (confmon L:168 I:869318611) Setting new configuration. Received via CCCP
NOTICE: PHP message: [cb,DEBG] (confmon L:92 I:869318611) Preparing providers (this may be called multiple times)
NOTICE: PHP message: [cb,DEBG] (confmon L:99 I:869318611) Provider CCCP is ENABLED
NOTICE: PHP message: [cb,INFO] (bootstrap L:94 I:869318611) Selected network configuration: “default”
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:288) cachenew: ptr=0x55b46c4f8130, type=0, connstr=couchbase://couchbase:8091/index, bucketname=index, username=sampleUser, lcb=0x55b46c506df0, refs=1. I=0x55b46c506df0
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:185) Rewrite connection string from “couchbase://couchbase:8091” to “couchbase://couchbase:8091/index”
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:356) cachehit: type=0, connstr=couchbase://couchbase:8091/index, bucketname=index, username=sampleUser, lcb=0x55b46c506df0, refs=2. I=0x55b46c506df0
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:253) cachedel: type=0, connstr=couchbase://couchbase:8091/index, bucketname=index, username=sampleUser, lcb=0x55b46c506df0, refs=1. I=0x55b46c506df0
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:253) cachedel: type=0, connstr=couchbase://couchbase:8091/data, bucketname=data, username=sampleUser, lcb=0x55b46c4e0f00, refs=1. I=0x55b46c4e0f00
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:253) cachedel: type=0, connstr=couchbase://couchbase:8091/data, bucketname=data, username=sampleUser, lcb=0x55b46c4e0f00, refs=0. I=0x55b46c4e0f00
NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:253) cachedel: type=0, connstr=couchbase://couchbase:8091/index, bucketname=index, username=sampleUser, lcb=0x55b46c506df0, refs=0. I=0x55b46c506df0

Is there no solution? I am getting exactly the same error and I am stuck for days…

[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: xxx.xxx.xxx.xxx, server: xx.xx.xx.xx, request: “POST /xxx/xxx HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.4-fpm.sock:”, host: “xx.xx.xx.xx”, referrer: “http://xxxxxxxx/xxx/xxxx

You can try to play with ini_set('couchbase.pool.max_idle_time_sec', 0) and http_poolsize=0 (in connection string).

1 Like