Details
-
Task
-
Resolution: Not a Bug
-
Major
-
None
-
None
-
None
-
None
-
Mac OS X running Couchbase Server 7.0.0-5017
-
1
Description
Machine:
Macbook Pro 13" Intel - running OS 11.4
Docker: version 20.10.6, build 370c289
Summary:
We have two issues at hand.
#1 the build 4602 doesn't work when trying to create bucket, collection, and index. It just hangs
#2 the build 5017 seems to have an issue between creating a collection and index. I believe if we put a long enough sleep between these two, it will mask the issue and that's what we do in Java and .NET to get around the issue which seems to be something bigger in possibly the C library.
Issue: we have a project where we need to create a bucket, collection, then index via Python code to setup our tutorial before the developer runs the code to test an API in the sample app. The Python project can be found in GitHub here:
https://github.com/couchbase-examples/python-quickstart
We get different behavior depending on the version of Couchbase Server 7 beta. When using the package from Docker or our website - version 4602 when running the app it just hangs when trying to create a collection no matter how many times I stop and start the app or if I just let it sit for like 2 hours. I don't get a crash, but it doesn't work.
I talked to Wayne Siu and he suggested to test with version 5017 - so I downloaded that from the internal server and ran via docker:
docker run -d --name db -p 8091-8094:8091-8094 -p 11210-11211:11210-11211 build-docker.couchbase.com:443/couchbase/server-internal:7.0.0-5017
When trying to create the bucket, collection, and then index I crash out between creating collection and index. If I run the app a second time it then runs without issues - which we believe is a timing issue between collection creation and index creating where the index is trying to create but the bucket and collection aren't fully created yet.
Crash Traceback:
Traceback (most recent call last):
File "/usr/local/bin/flask", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 507, in main
cli.main(args=args, prog_name=name)
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 374, in main
return AppGroup.main(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 417, in run_command
app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 146, in _init_
self._load_unlocked()
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 170, in _load_unlocked
self._app = rv = self.loader()
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 231, in load_app
rv = locate_app(self.app_import_path)
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 90, in locate_app
_import_(module)
File "/Users/aaronlabeau/Code/quickstart/python-quickstart/src/app.py", line 285, in <module>
cb = CouchbaseClient.create_client(*db_info.values())
File "/Users/aaronlabeau/Code/quickstart/python-quickstart/src/app.py", line 42, in create_client
self.connect(**kwargs)
File "/Users/aaronlabeau/Code/quickstart/python-quickstart/src/app.py", line 80, in connect
self._bucket = self._cluster.bucket(self.bucket_name)
File "/usr/local/lib/python3.9/site-packages/couchbase/cluster.py", line 495, in bucket
return self._cluster.open_bucket(name, admin=self._admin)
File "/usr/local/lib/python3.9/site-packages/couchbase_core/cluster.py", line 128, in open_bucket
rv = self.bucket_factory(str(connstr), **kwargs)
File "/usr/local/lib/python3.9/site-packages/couchbase/bucket.py", line 198, in _init_
super(Bucket,self)._init_(connection_string, **self._bucket_args)
File "/usr/local/lib/python3.9/site-packages/couchbase_core/client.py", line 159, in _init_
self._do_ctor_connect()
File "/usr/local/lib/python3.9/site-packages/couchbase_core/client.py", line 168, in _do_ctor_connect
self._connect()
couchbase.exceptions.ProtocolException: <RC=0x41A[LCB_ERR_PROTOCOL_ERROR (1050)], There was a problem while trying to send/receive your request over the network. This may be a result of a bad network or a misconfigured client or server, C Source=(src/bucket.c,1209)>
Attachments
Issue Links
- relates to
-
MB-46643 Couchbase fails to create collection index right after the creation of a collection
- Reopened