/opt/couchbase/bin/cbworkloadgen -n 10.0.0.127:8091

Hello;
I have just installed “Couchbase Server " to RHEL 8.2. The package version is
“couchbase-server-6.6.1-9213.x86_64”.
I have checked whether the Couchbase Server” is running or not as below.

[root@shiina ~]# systemctl | grep -i couch
couchbase-server.service                                                                         loaded active running   Couchbase Server                                                             
[root@shiina ~]#

It works.

I have checked the port of 8091 as below.

[root@shiina ~]# netstat -apn | grep 8091
tcp        0      0 0.0.0.0:18091           0.0.0.0:*               LISTEN      2094/beam.smp       
tcp        0      0 0.0.0.0:8091            0.0.0.0:*               LISTEN      2094/beam.smp       
tcp        0      0 127.0.0.1:52026         127.0.0.1:8091          ESTABLISHED 2458/goxdcr         
tcp        0      0 127.0.0.1:8091          127.0.0.1:52030         ESTABLISHED 2094/beam.smp       
tcp        0      0 127.0.0.1:8091          127.0.0.1:52026         ESTABLISHED 2094/beam.smp       
tcp        0      0 127.0.0.1:52030         127.0.0.1:8091          ESTABLISHED 2458/goxdcr         
tcp        0      0 127.0.0.1:8091          127.0.0.1:52016         ESTABLISHED 2094/beam.smp       
tcp        0      0 127.0.0.1:52018         127.0.0.1:8091          ESTABLISHED 2458/goxdcr         
tcp        0      0 127.0.0.1:8091          127.0.0.1:52024         ESTABLISHED 2094/beam.smp       
tcp        0      0 127.0.0.1:52024         127.0.0.1:8091          ESTABLISHED 2458/goxdcr         
tcp        0      0 127.0.0.1:8091          127.0.0.1:52028         ESTABLISHED 2094/beam.smp       
tcp        0      0 127.0.0.1:52028         127.0.0.1:8091          ESTABLISHED 2458/goxdcr         
tcp        0      0 127.0.0.1:8091          127.0.0.1:52018         ESTABLISHED 2094/beam.smp       
tcp        0      0 127.0.0.1:52016         127.0.0.1:8091          ESTABLISHED 2446/saslauthd-port 
tcp6       0      0 :::18091                :::*                    LISTEN      2094/beam.smp       
tcp6       0      0 :::8091                 :::*                    LISTEN      2094/beam.smp       
[root@shiina ~]#

However, I could not connect to Web Console.

In addition to this, I have tried to use “cbworkloadgen” utility to test my server.

[root@shiina ~]# /opt/couchbase/bin/cbworkloadgen -n 10.0.0.127:8091
Traceback (most recent call last):
  File "/opt/couchbase/lib/python/cbworkloadgen", line 8, in <module>
    import pump_transfer
  File "/opt/couchbase/lib/python/pump_transfer.py", line 15, in <module>
    import pump
  File "/opt/couchbase/lib/python/pump.py", line 29, in <module>
    import snappy # pylint: disable=import-error
ModuleNotFoundError: No module named 'snappy'

It gives Snappy error as above. However, I have the packages as below.

[root@shiina ~]# rpm -aq | grep snap
snapd-2.47.1-1.el8.x86_64
snappy-1.1.8-3.el8.x86_64
snap-confine-2.47.1-1.el8.x86_64
snapd-selinux-2.47.1-1.el8.noarch
[root@shiina ~]# 

So, I need your help to find the cause of those problems.
Best regards;

Try to wget or curl http://127.0.0.1:8091 (or real IP but from the same box where CB Server is installed)

There seems to be two issues here:

  1. Not being able to connect to the web console
  2. Snappy error with cbworkloadgen

With regards to the webconsole that looks like a network connection issue given that Couchbase Server is listening on that port. I would try the excellent suggestion by @skaryshev.


With regards to the snappy issues, this looks to be more of an install/environmental issue. I tried to reproduce this on a fresh AWS EC2 using RHEL 8.3 but it worked:

[ec2-user@ip-172-11-26-63 ~]$ /opt/couchbase/bin/cbworkloadgen -n localhost:8091

Error: option -u/--username is required
[ec2-user@ip-172-11-26-63 ~]$ /opt/couchbase/bin/cbworkloadgen -n localhost:8091 -u Administrator -p password
  [####################] 100.0% (10527/estimated 10527 msgs)
bucket: default, msgs transferred...
       :                total |       last |    per sec
 byte  :               105270 |     105270 |   225555.9
done

A normal Couchbase Server will install all of the dependency it needs including snappy . How was Couchbase Server installed?

Hello;
I have solved those porblems.
For the GUI, I have disabled the firewalld daemon on RHEL 8.2.
For the cbworkloadgen, I have re-install snappy.
Now, it works as expected.
[root@zero bin]# ./cbworkloadgen -n 10.1.1.73:8091 -i 10 -j -b Gantek_Test_Bucket --username Administrator --password xxxxxxx
[####################] 100.0% (11/estimated 11 msgs)
bucket: default, msgs transferred…
: total | last | per sec
byte : 682 | 682 | 11272.0
done
[root@zero bin]# ./cbworkloadgen -n 10.1.1.73:8091 -i 1000 -j -b Gantek_Test_Bucket --username Administrator --password xxxxxxx
[####################] 100.0% (1053/estimated 1053 msgs)
bucket: default, msgs transferred…
: total | last | per sec
byte : 70107 | 70107 | 249052.5
done
[root@zero bin]#

Thank you for your comments.