Search code examples
linuxazurecouchbaseredhat

Issues with install/config Couchbase on Azure Linux RH7.4 VM


I have created a RedHat 7.4 Linux VM in Azure in order to replicate our current couchbase marketplace server. We are moving away from this due to the inability to pay via invoicing.

I have installed couchbase-server-community-4.5.0-centos7.86_64.rpm and amended the swappiness, disabled THP and opened ports as suggested. The bucket name and password are also the same.

The staff member who created the marketplace VM is no longer employed here and there is no documentation.

When configuring the couchbase installation I have tried the public IP and DNS name but receive listen EADDRNOTAVAIL. I have also provided both the private IP of the VM and the 127.0.0.1 localhost address during configuration, both of which allow me to proceed. However, we are unable to insert data in to the bucket created and receive a timeout error when trying via a simple console app.

InnerException {"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"} System.Exception {System.Net.Sockets.SocketException}

I'm not overly familiar with Linux, so any ideas or suggestions are most welcome. Are there any system files I need to edit? Do I need to edit the host file?


Solution

  • I download couchbase-server-community-4.5.1-centos7.x86_64.rpm from the https://packages.couchbase.com/releases/4.5.1/couchbase-server-community-4.5.1-centos7.x86_64.rpm.

    When you install the rpm you will get the following message.

    You have successfully installed Couchbase Server. Please browse to http://shui:8091/ to configure your server. Please refer to http://couchbase.com for additional resources.

    Please note that you have to update your firewall configuration to allow connections to the following ports: 4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11209 to 11211, 11214, 11215, 18091 to 18093, and from 21100 to 21299.

    You need open these port on Azure NSG and firewall.

    For NSG, you need create rules like below:

    enter image description here

    For firewall, add rules like below:

    sudo firewall-cmd --zone=public --add-port=8091/tcp --permanent
    

    For test, you could disable firewall, use systemctl stop firewalld.service .

    Then you could open browser, enter http://<public IP>:8091. In my example, it is http://52.224.178.211:8091.


    Also, you could use Paas service Couchbase Enterprise on Azure, please refer to this link.