So I encountered the same problem again… increasing the resources doesn’t make any difference this time.
I’m using PHP SDK v3.2.1 with latest C SDK (v3.x) and Couchbase Server CE v6.6.
I’ve managed to run DEBUG mode, find some logs below. I made 3 requests, the middle one returned LCB_ERR_UNSUPPORTED_OPERATION (214)
. I divided logs into 3 different sections. The middle one is the one related to the failed request. I can see some differences with pool connection between working requests 1st and 3rd one, and the failed one (2nd).
2021-05-20T20:56:24.198439800Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=1, connstr=couchbase://host:8091, bucketname=(null), username=user, lcb=0x55946a2906b0, refs=35. I=0x55946a2906b0
2021-05-20T20:56:24.198472800Z NOTICE: PHP message: [cb,DEBG] (pcbc/cluster L:122) Initialize Cluster. C=0x7fa8f8ad0370 connstr="couchbase://host:8091"
2021-05-20T20:56:24.198479400Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/b"
2021-05-20T20:56:24.198481900Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a5555e0, refs=1. I=0x55946a5555e0
2021-05-20T20:56:24.198484000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:24.198495500Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a531810, refs=1. I=0x55946a531810
2021-05-20T20:56:24.198722500Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/b"
2021-05-20T20:56:24.198760100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a5555e0, refs=2. I=0x55946a5555e0
2021-05-20T20:56:24.198766700Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:24.198769000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a531810, refs=2. I=0x55946a531810
2021-05-20T20:56:24.198771200Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:24.198773200Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a531810, refs=3. I=0x55946a531810
2021-05-20T20:56:24.200633900Z NOTICE: PHP message: [cb,WARN] (lcbio_mgr L:483 I:2061797827) <couchbase:8093> (HE=0x55946a4f3ae0) Pooled socket is dead. Continuing to next one
2021-05-20T20:56:24.200663400Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:501 I:2061797827) <couchbase:8093> (HE=0x55946a4f3ae0) Creating new connection because none are available in the pool
2021-05-20T20:56:24.200670000Z NOTICE: PHP message: [cb,INFO] (connection L:485 I:2061797827) <couchbase:8093> (SOCK=27690ccc532aaee6) Starting. Timeout=75000000us
2021-05-20T20:56:24.200930400Z NOTICE: PHP message: [cb,DEBG] (connection L:250 I:2061797827) <couchbase:8093> (SOCK=27690ccc532aaee6) Created new socket with FD=20
2021-05-20T20:56:24.201027600Z NOTICE: PHP message: [cb,INFO] (connection L:153 I:2061797827) <couchbase:8093> (SOCK=27690ccc532aaee6) Connected established
2021-05-20T20:56:24.201039100Z NOTICE: PHP message: [cb,DEBG] (connection L:106 I:2061797827) <couchbase:8093> (SOCK=27690ccc532aaee6) Successfully set TCP_NODELAY
2021-05-20T20:56:24.201042600Z NOTICE: PHP message: [cb,DEBG] (connection L:106 I:2061797827) <couchbase:8093> (SOCK=27690ccc532aaee6) Successfully set TCP_KEEPALIVE
2021-05-20T20:56:24.201045900Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:369 I:2061797827) <couchbase:8093> (HE=0x55946a4f3ae0) Received result for I=0x55946a29d8b0,C=(nil); E=0x0
2021-05-20T20:56:24.201048800Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:329 I:2061797827) <couchbase:8093> (HE=0x55946a4f3ae0) Assigning R=0x55946a583310 SOCKET=0x55946a57cfc0
2021-05-20T20:56:24.201051300Z NOTICE: PHP message: [cb,DEBG] (ioctx L:94 I:2061797827) <couchbase:8093> (CTX=0x55946a549870,unknown) Pairing with SOCK=27690ccc532aaee6
2021-05-20T20:56:24.238070100Z NOTICE: PHP message: [cb,DEBG] (ioctx L:139 I:2061797827) <couchbase:8093> (CTX=0x55946a549870,mgmt/capi) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
2021-05-20T20:56:24.238119800Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:554 I:2061797827) <couchbase:8093> (HE=0x55946a4f3ae0) Placing socket back into the pool. I=0x55946a29d8b0,C=0x55946a57cfc0
2021-05-20T20:56:24.246570600Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a531810, refs=2. I=0x55946a531810
2021-05-20T20:56:24.246603400Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a531810, refs=1. I=0x55946a531810
2021-05-20T20:56:24.246610100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a5555e0, refs=1. I=0x55946a5555e0
2021-05-20T20:56:24.246624500Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a531810, refs=0. I=0x55946a531810
2021-05-20T20:56:24.246627200Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a5555e0, refs=0. I=0x55946a5555e0
2021-05-20T20:56:25.210755900Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=1, connstr=couchbase://host:8091, bucketname=(null), username=user, lcb=0x55946a426d60, refs=34. I=0x55946a426d60
2021-05-20T20:56:25.210789100Z NOTICE: PHP message: [cb,DEBG] (pcbc/cluster L:122) Initialize Cluster. C=0x7fa8f8ad0370 connstr="couchbase://host:8091"
2021-05-20T20:56:25.210795700Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/b"
2021-05-20T20:56:25.210798400Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a554d60, refs=1. I=0x55946a554d60
2021-05-20T20:56:25.210800500Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:25.210802600Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a543170, refs=1. I=0x55946a543170
2021-05-20T20:56:25.211092000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/b"
2021-05-20T20:56:25.211135100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a554d60, refs=2. I=0x55946a554d60
2021-05-20T20:56:25.211142800Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:25.211145700Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a543170, refs=2. I=0x55946a543170
2021-05-20T20:56:25.211148200Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:25.211164000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a543170, refs=3. I=0x55946a543170
2021-05-20T20:56:25.224976300Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a543170, refs=2. I=0x55946a543170
2021-05-20T20:56:25.225002700Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a543170, refs=1. I=0x55946a543170
2021-05-20T20:56:25.225009200Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a554d60, refs=1. I=0x55946a554d60
2021-05-20T20:56:25.225011500Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a543170, refs=0. I=0x55946a543170
2021-05-20T20:56:25.225013600Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a554d60, refs=0. I=0x55946a554d60
2021-05-20T20:56:31.807871700Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=1, connstr=couchbase://host:8091, bucketname=(null), username=user, lcb=0x55946a42a5b0, refs=46. I=0x55946a42a5b0
2021-05-20T20:56:31.807909800Z NOTICE: PHP message: [cb,DEBG] (pcbc/cluster L:122) Initialize Cluster. C=0x7fa8f8ad0370 connstr="couchbase://host:8091"
2021-05-20T20:56:31.807916400Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/b"
2021-05-20T20:56:31.807919000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a53a2e0, refs=1. I=0x55946a53a2e0
2021-05-20T20:56:31.807921100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:31.807923100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a516490, refs=1. I=0x55946a516490
2021-05-20T20:56:31.808365800Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/b"
2021-05-20T20:56:31.808403400Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a53a2e0, refs=2. I=0x55946a53a2e0
2021-05-20T20:56:31.808410100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:31.808413000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a516490, refs=2. I=0x55946a516490
2021-05-20T20:56:31.808415400Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:173) Rewrite connection string from "couchbase://host:8091" to "couchbase://host:8091/a"
2021-05-20T20:56:31.808427200Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:324) cachehit: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a516490, refs=3. I=0x55946a516490
2021-05-20T20:56:31.810507300Z NOTICE: PHP message: [cb,WARN] (lcbio_mgr L:483 I:122606560) <couchbase:8093> (HE=0x55946a52ccb0) Pooled socket is dead. Continuing to next one
2021-05-20T20:56:31.810535700Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:501 I:122606560) <couchbase:8093> (HE=0x55946a52ccb0) Creating new connection because none are available in the pool
2021-05-20T20:56:31.810542300Z NOTICE: PHP message: [cb,INFO] (connection L:485 I:122606560) <couchbase:8093> (SOCK=2e29203e5eab1d69) Starting. Timeout=75000000us
2021-05-20T20:56:31.810813400Z NOTICE: PHP message: [cb,DEBG] (connection L:250 I:122606560) <couchbase:8093> (SOCK=2e29203e5eab1d69) Created new socket with FD=19
2021-05-20T20:56:31.810892400Z NOTICE: PHP message: [cb,INFO] (connection L:153 I:122606560) <couchbase:8093> (SOCK=2e29203e5eab1d69) Connected established
2021-05-20T20:56:31.810921600Z NOTICE: PHP message: [cb,DEBG] (connection L:106 I:122606560) <couchbase:8093> (SOCK=2e29203e5eab1d69) Successfully set TCP_NODELAY
2021-05-20T20:56:31.810928200Z NOTICE: PHP message: [cb,DEBG] (connection L:106 I:122606560) <couchbase:8093> (SOCK=2e29203e5eab1d69) Successfully set TCP_KEEPALIVE
2021-05-20T20:56:31.810930800Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:369 I:122606560) <couchbase:8093> (HE=0x55946a52ccb0) Received result for I=0x55946a52e3a0,C=(nil); E=0x0
2021-05-20T20:56:31.810932900Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:329 I:122606560) <couchbase:8093> (HE=0x55946a52ccb0) Assigning R=0x55946a5518e0 SOCKET=0x55946a506980
2021-05-20T20:56:31.810935200Z NOTICE: PHP message: [cb,DEBG] (ioctx L:94 I:122606560) <couchbase:8093> (CTX=0x55946a4f18d0,unknown) Pairing with SOCK=2e29203e5eab1d69
2021-05-20T20:56:31.849544300Z NOTICE: PHP message: [cb,DEBG] (ioctx L:139 I:122606560) <couchbase:8093> (CTX=0x55946a4f18d0,mgmt/capi) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
2021-05-20T20:56:31.849585000Z NOTICE: PHP message: [cb,DEBG] (lcbio_mgr L:554 I:122606560) <couchbase:8093> (HE=0x55946a52ccb0) Placing socket back into the pool. I=0x55946a52e3a0,C=0x55946a506980
2021-05-20T20:56:31.858725000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a516490, refs=2. I=0x55946a516490
2021-05-20T20:56:31.858755500Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a516490, refs=1. I=0x55946a516490
2021-05-20T20:56:31.858762000Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a53a2e0, refs=1. I=0x55946a53a2e0
2021-05-20T20:56:31.858764700Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/a, bucketname=a, username=user, lcb=0x55946a516490, refs=0. I=0x55946a516490
2021-05-20T20:56:31.858767100Z NOTICE: PHP message: [cb,DEBG] (pcbc/pool L:225) cachedel: type=0, connstr=couchbase://host:8091/b, bucketname=b, username=user, lcb=0x55946a53a2e0, refs=0. I=0x55946a53a2e0
Please let me know what might be the problem and feel free to ask for more details. I can provide any data you need @raju
This is most likely not a PHP SDK issue but I noticed your answer @avsej in a different but similar thread posted few months ago as well.