Details
-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
3.1.1
-
None
-
None
-
1
Description
Got an LCB_ERR_KVENGINE_INVALID_PACKET exception doing a first default collection operation (a document get) on the travel-sample bucket.
Using Couchbase Server 7.0.0-4602-enterprise.
The error was...
exception: <Key='airline_10', RC=0x407[LCB_ERR_KVENGINE_INVALID_PACKET (1031)], Operational Error, Results=1, C Source=(src/multiresult.c,312), Context={'status_code': 4, 'opaque': 0, 'cas': 0, 'key': 'airline_10', 'bucket': 'travel-sample', 'collection': '', 'scope': '', 'context': '', 'ref': '', 'endpoint': '127.0.0.1:11210', 'type': 'KVErrorContext'}, Tracing Output={"airline_10": {"debug_info": {"FILE": "src/callbacks.c", "FUNC": "value_callback", "LINE": 849}}}>
|
The client python3 code using python SDK: 3.1.1 was...
#!/usr/bin/python3
|
|
import sys
|
|
from couchbase.cluster import Cluster, ClusterOptions
|
from couchbase_core.cluster import PasswordAuthenticator
|
|
pa = PasswordAuthenticator('username', 'password')
|
cluster = Cluster('couchbase://127.0.0.1', ClusterOptions(pa))
|
|
bucket = cluster.bucket('travel-sample')
|
collection = bucket.default_collection()
|
|
try:
|
result = collection.get('airline_10')
|
print(result.content)
|
|
except Exception as e:
|
print("exception:", e)
|
Using a few other SDK's...
php SDK: 3.1.0 – got an error that looked similar
c SDK: 3.1.2 – got an error that looked similar
ruby SDK: 3.0.3 – worked ok
dotnet SDK: 3.1.3 – worked ok
go SDK: 2.2.3 – worked ok
java SDK: 3.1.3 – worked ok
nodejs SDK: 3.1.2 – worked ok
The error outputs from the php & c SDK's that had similar issues were...
php SDK: 3.1.0 – error that looked similar
[cb,WARN] (server L:384 I:1135628394) <127.0.0.1:11210> (CTX=0x560306c009b0,memcached,SRV=0x560306c97a40,IX=0) Received server error EINVAL (0x4) on packet: OP=0xbb, RC=0x4, SEQ=0
|
PHP Fatal error: Uncaught Couchbase\BaseException: LCB_ERR_KVENGINE_INVALID_PACKET (1031) in /opt/couchbase/var/tmp/play/code.php:11
|
Stack trace:
|
#0 /opt/couchbase/var/tmp/play/code.php(11): Couchbase\Collection->get()
|
#1 {main}
|
thrown in /opt/couchbase/var/tmp/play/code.php on line 11
|
c SDK: 3.1.2 – error that looked similar
airline_10: failed with error LCB_ERR_KVENGINE_INVALID_PACKET (1031)
|