Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Thuan NguyenThuan NguyenReporter
Thuan NguyenThuan NguyenIs this a Regression?
NoTriage
UntriagedOperating System
Ubuntu 64-bitStory Points
1Sprint
NonePriority
CriticalInstabug
Open Instabug
Details
Details
Assignee
Thuan Nguyen
Thuan NguyenReporter
Thuan Nguyen
Thuan NguyenIs this a Regression?
No
Triage
Untriaged
Operating System
Ubuntu 64-bit
Story Points
1
Sprint
None
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
PagerDuty
Sentry
Sentry
Sentry
Zendesk Support
Zendesk Support
Zendesk Support
Created December 16, 2020 at 4:13 AM
Updated June 17, 2021 at 10:56 PM
Resolved March 1, 2021 at 8:53 AM
Steps to Reproduce
Install Couchbase server 6.0.1 on a Ubuntu 18.04 server.
Use couchbase-cli to initial node and create bucket1. It works as expected.
Upgrade node to Couchbase server 6.6.0
#Use couchbase-cli to create a second bucket, bucket2, failed with error:
root@ip-172-31-18-93:~# /opt/couchbase/bin/couchbase-cli bucket-create -c localhost:8091 --username Administrator --password password --bucket bucket2 --bucket-type couchbase --bucket-ramsize 256 --bucket-replica 1 --bucket-priority high --bucket-eviction-policy fullEviction --enable-flush 0 --enable-index-replica 1 Traceback (most recent call last): File "/opt/couchbase/lib/python/couchbase-cli", line 8, in <module> import cbmgr File "/opt/couchbase/lib/python/cbmgr.py", line 17, in <module> from argparse import ArgumentError, ArgumentParser, HelpFormatter, Action, SUPPRESS ImportError: bad magic number in 'argparse': b'\x03\xf3\r\n' root@ip-172-31-18-93:~
Workaround
Remove all file with extension pyc in /opt/couchbase/lib/python/*.pyc as mention in this Forum, it works
root@ip-172-31-18-93:~# rm -rf /opt/couchbase/lib/python/*.pyc root@ip-172-31-18-93:~# /opt/couchbase/bin/couchbase-cli bucket-create -c localhost:8091 --username Administrator --password password --bucket bucket2 --bucket-type couchbase --bucket-ramsize 256 --bucket-replica 1 --bucket-priority high --bucket-eviction-policy fullEviction --enable-flush 0 --enable-index-replica 1 SUCCESS: Bucket created root@ip-172-31-18-93:~#
This bug does not affect centos as I confirmed in the forum.