Can't log into couchbase server (ADDED STEPS TO REPLICATE ISSUE) Please take a look, Thanks!

Hello,

Trying to install couchbase on ubuntu. When I get it installed to where the web UI is up and running I am unable to actually create a new cluster. Both the finish with defaults button and Save and Finish buttons don’t work. No errors pop up. Only visible change is that when selecting “Save & Finish” it loads for half a second then nothing changes. I have tried playing around with the settings but no dice.

Alright, so apparently it was because I was trying to use ‘Administrator’ as the username. So I used admin and now I am presented with the sign in page. Now I just need to figure out why once I enter the correct username/password the page goes completely blank on chrome/firefox/edge. If i enter the wrong password it just tells me the username/password was invalid. When I enter the correct information it goes blank after several seconds. I will play with it some more and post again if I can’t resolve this issue.

I tried: curl http://[host]:8091/pools/default -u [Admin]:[pass] and I get a long list of information about the couchbase server. Unfortionatly, I am still unable to access the web UI. On some tries it is telling me the user/password combination is incorrect when I know for a fact it is. Thoughts?

EDIT: I have noticed the URL changing from http://10.102.163.200:8091/ui/index.html to http://10.102.163.200:8091/ui/index.html#!/auth sometimes. Not every time though. Sometimes when it does the page glitches out and I am unable to type.

On Friday everything was working as it should. PHP was able to upload and fetch documents and the Web UI was able to create new buckets, documents ect.

2 days later:
When opening the web UI on Chrome:

1

When opening the page on Edge:

Imgur

When trying to log in with the correct username/password combination:

Imgur

At this point, the webpage is frozen. The webpage does not freeze if you enter the wrong information. Refreshing the webpage results in a blank webpage for the next several minutes. If you like, restarting couchbase server fixes the blank page issue until you try again.
Confirming login information using curl http://[host]:8091/pools/default -u [Admin]:[pass]
The console returns this only If you enter the correct user/pass combination: {“name”:“default”,“nodes”:[{“systemStats”:{“cpu_utilization_rate”:0.7537688442211056,“swap_total”:1021833216,“swap_used”:0,“mem_total”:16826597376,“mem_free”:15964782592},“interestingStats”:{},“uptime”:“6582”,“memoryTotal”:16826597376,“memoryFree”:15964782592,“mcdMemoryReserved”:12837,“mcdMemoryAllocated”:12837,“couchApiBase”:“http://127.17.0.1:8092/",“clusterMembership”:“active”,“recoveryType”:“none”,“status”:“healthy”,“otpNode”:“ns_1@127.17.0.1”,“thisNode”:true,“hostname”:“127.17.0.1:8091”,“clusterCompatibility”:393216,“version”:“6.0.0-1693-community”,“os”:“x86_64-unknown-linux-gnu”,“cpuCount”:4,“ports”:{“proxy”:11211,“direct”:11210},“services”:[“kv”]}],“buckets”:{“uri”:"/pools/default/buckets?v=103205365&uuid=f4bff7cce75467d2c45c7b2f9386fb96",“terseBucketsBase”:"/pools/default/b/",“terseStreamingBucketsBase”:"/pools/default/bs/"},“remoteClusters”:{“uri”:"/pools/default/remoteClusters?uuid=f4bff7cce75467d2c45c7b2f9386fb96",“validateURI”:"/pools/default/remoteClusters?just_validate=1"},“alerts”:[],“alertsSilenceURL”:"/controller/resetAlerts?uuid=f4bff7cce75467d2c45c7b2f9386fb96&token=0",“controllers”:{“addNode”:{“uri”:"/controller/addNodeV2?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“rebalance”:{“uri”:"/controller/rebalance?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“failOver”:{“uri”:"/controller/failOver?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“startGracefulFailover”:{“uri”:"/controller/startGracefulFailover?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“reAddNode”:{“uri”:"/controller/reAddNode?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“reFailOver”:{“uri”:"/controller/reFailOver?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“ejectNode”:{“uri”:"/controller/ejectNode?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“setRecoveryType”:{“uri”:"/controller/setRecoveryType?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“setAutoCompaction”:{“uri”:"/controller/setAutoCompaction?uuid=f4bff7cce75467d2c45c7b2f9386fb96",“validateURI”:"/controller/setAutoCompaction?just_validate=1"},“clusterLogsCollection”:{“startURI”:"/controller/startLogsCollection?uuid=f4bff7cce75467d2c45c7b2f9386fb96",“cancelURI”:"/controller/cancelLogsCollection?uuid=f4bff7cce75467d2c45c7b2f9386fb96"},“replication”:{“createURI”:"/controller/createReplication?uuid=f4bff7cce75467d2c45c7b2f9386fb96",“validateURI”:"/controller/createReplication?just_validate=1"}},“rebalanceStatus”:“none”,“rebalanceProgressUri”:"/pools/default/rebalanceProgress",“stopRebalanceUri”:"/controller/stopRebalance?uuid=f4bff7cce75467d2c45c7b2f9386fb96",“nodeStatusesUri”:"/nodeStatuses",“maxBucketCount”:10,“autoCompactionSettings”:{“parallelDBAndViewCompaction”:false,“databaseFragmentationThreshold”:{“percentage”:30,“size”:“undefined”},“viewFragmentationThreshold”:{“percentage”:30,“size”:“undefined”},“indexCompactionMode”:“circular”,“indexCircularCompaction”:{“daysOfWeek”:“Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday”,“interval”:{“fromHour”:0,“toHour”:0,“fromMinute”:0,“toMinute”:0,“abortOutside”:false}},“indexFragmentationThreshold”:{“percentage”:30}},“tasks”:{“uri”:"/pools/default/tasks?v=30130988"},“counters”:{},“indexStatusURI”:"/indexStatus?v=21137658",“checkPermissionsURI”:"/pools/default/checkPermissions?v=PPopHxDQZZX8WxaGVOG9GfaY1rQ%3D",“serverGroupsUri”:"/pools/default/serverGroups?v=122176776",“clusterName”:“test”,“balanced”:true,“memoryQuota”:5000,“indexMemoryQuota”:512,“ftsMemoryQuota”:512,“cbasMemoryQuota”:2185,“eventingMemoryQuota”:256,“storageTotals”:{“ram”:{“total”:16826597376,“quotaTotal”:5242880000,“quotaUsed”:0,“used”:2489901056,“usedByData”:0,“quotaUsedPerNode”:0,“quotaTotalPerNode”:5242880000},“hdd”:{“total”:30562803712,“quotaTotal”:30562803712,“used”:5501304668,“usedByData”:0,"free”:25

The bucket-list command shows:
test
bucketType: membase
numReplicas: 1
ramQuota: 1073741824
ramUsed: 22045576
so we know everything is functioning properly. In order to see this bucket with the bucket list command you need to pass the correct username/password combinations as arguments.
The password can be changed using : sudo ./couchbase-cli reset-admin-password
This does not resolve the issue either.
At this point a fresh install is done.
To uninstall:
sudo systemctl stop couchbase-server
sudo dpkg -r couchbase-server-community
sudo rm -rf /opt/couchbase
To install:
sudo apt-get install couchbase-server-community
Prints:
Imgur

Next step is to try http://our.site:8091
The site cannot be resolved. Try via the server IP.

Attempt to run through the Setup New cluster option.

Imgur
Imgur

Finish with defaults does not work. 

Imgur

Imgur

The servers outside ip “xxx.xxx.xxx.xxx” has been tried. As has 127.0.0.1. As has 127.17.0.1. All fail to save and finish. Typically the button does nothing. Maybe it pulls up the spinning wheel for a moment but then usually returns to form as if I never clicked the button. If you try enough times the page will go blank. At this point you can stop the server and start it again to be presented with a log in screen.
Attempting to sign in with the correct combination of username/password results in absolutely nothing happening. If you insert the wrong password it will tell you the password is invalid. Sometimes the page will go blank as well. At this point the URL changes from http://10.102.xxx.xxx:8091/ui/index.html to http://10.102.xxx.xxx:8091/ui/index.html#!/auth Using the curl command shows the username and password is valid just like before
Because this failed, I will wipe and reinstall again.
This time I will try to setup the node, cluster, and bucket manually.

./couchbase-cli node-init --cluster xxx.xxx.xxx.xxx:8091 --username Administrator --password lamepassword --node-init-data-path /opt/couchbase/var/lib/couchbase/data --node-init-index-path /opt/couchbase/var/lib/couchbase/data --node-init-analytics-path /opt/couchbase/var/lib/couchbase/data --node-init-hostname 10.102.163.200

SUCCESS: Node initialized
./couchbase-cli cluster-init --cluster xxx.xxx. xxx.xxx --cluster-username Administrator --cluster-password lamepassword --cluster-name test
SUCCESS: Cluster initialized
./couchbase-cli bucket-create -c xxx.xxx.xxx.xxx:8091 -u Administrator -p lamepassword --bucket=test --bucket-type=couchbase --bucket-ramsize=1024 –wait
SUCCESS: Bucket created
Unfortunately, same problem again. This installation isn’t any better. Resetting. This time we will try with command line but use the local host IP. In this case 127.17.0.1
As before everything console side is a success and the server is running. However the same issues as before occur. Resetting and trying one last time with 127.0.0.1
Same as before.
Finally I repeated these steps with one small change:
./couchbase-cli node-init --cluster xxx.xxx.xxx.xxx 00:8091 --username Administrator --password lamepassword --node-init-data-path /opt/couchbase/var/lib/couchbase/data --node-init-index-path /opt/couchbase/var/lib/couchbase/data --node-init-analytics-path /opt/couchbase/var/lib/couchbase/data
However, no improvements were made. There is a chance I suppose that it could be a firewall issue, but that wouldn’t explain while it was working before.