Javascript errors in fresh Couchbase cluster

Hi,

I’m running tests using Couchbase and Docker together (using the official docker image) and after a fresh install and cluster initialisation, I get errors in the Admin log page.

Steps to reproduce:

$ docker run -d --name test -p 8091-8094:8091-8094 -p 11210:11210 couchbase
$ docker exec -it test /bin/bash
$ /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-init-username=Administrator --cluster-init-password=password --cluster-init-port=8091 --services=data,index,query,fts --cluster-ramsize=650 --cluster-index-ramsize=650 --cluster-fts-ramsize=256

Then I log in the admin console at http://localhost:8091/ and go to Log page and see this (I removed http:// because Couchbase forum doesn’t accept more than 2 links, in the error messages below about localhost):


Client-side error-report for user undefined on node ‘ns_1@127.0.0.1’:
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Got unhandled javascript error:
name: TypeError;
message: Cannot read property ‘clear’ of undefined;
stack: TypeError: Cannot read property ‘clear’ of undefined
at clearOnResponse (http://localhost:8091/ui/app.min.js:1090:54)
at responseError (http://localhost:8091/ui/app.min.js:1092:34)
at localhost:8091/ui/libs/angular.min.js:119:129
at r.$eval (http://localhost:8091/ui/libs/angular.min.js:133:313)
at r.$digest (http://localhost:8091/ui/libs/angular.min.js:130:412)
at r.$apply (http://localhost:8091/ui/libs/angular.min.js:134:78)
at g (http://localhost:8091/ui/libs/angular.min.js:87:444)
at T (http://localhost:8091/ui/libs/angular.min.js:92:50)
at XMLHttpRequest.w.onload (http://localhost:8091/ui/libs/angular.min.js:93:78);

(repeated 1 times) hide menelaus_web 102 ns_1@127.0.0.1 9:49:20 AM Thu Jul 7, 2016


Client-side error-report for user undefined on node ‘ns_1@127.0.0.1’:
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Got unhandled javascript error:
name: TypeError;
message: Cannot read property ‘clear’ of undefined;
stack: TypeError: Cannot read property ‘clear’ of undefined
at clearOnResponse (http://localhost:8091/ui/app.min.js:1090:54)
at responseError (http://localhost:8091/ui/app.min.js:1092:34)
at localhost:8091/ui/libs/angular.min.js:119:129
at r.$eval (http://localhost:8091/ui/libs/angular.min.js:133:313)
at r.$digest (http://localhost:8091/ui/libs/angular.min.js:130:412)
at r.$apply (http://localhost:8091/ui/libs/angular.min.js:134:78)
at g (http://localhost:8091/ui/libs/angular.min.js:87:444)
at T (http://localhost:8091/ui/libs/angular.min.js:92:50)
at XMLHttpRequest.w.onload (http://localhost:8091/ui/libs/angular.min.js:93:78);

menelaus_web 102 ns_1@127.0.0.1 9:48:33 AM Thu Jul 7, 2016


Client-side error-report for user undefined on node ‘ns_1@127.0.0.1’:
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Got unhandled javascript error:
name: SyntaxError;
message: Unexpected token u in JSON at position 0;
stack: SyntaxError: Unexpected token u in JSON at position 0
at Object.parse (native)
at uc (http://localhost:8091/ui/libs/angular.min.js:15:483)
at $b (http://localhost:8091/ui/libs/angular.min.js:82:360)
at localhost:8091/ui/libs/angular.min.js:83:274
at n (http://localhost:8091/ui/libs/angular.min.js:7:333)
at cd (http://localhost:8091/ui/libs/angular.min.js:83:256)
at c (http://localhost:8091/ui/libs/angular.min.js:84:468)
at localhost:8091/ui/libs/angular.min.js:119:129
at r.$eval (http://localhost:8091/ui/libs/angular.min.js:133:313)
at r.$digest (http://localhost:8091/ui/libs/angular.min.js:130:412);

menelaus_web 102 ns_1@127.0.0.1 9:48:33 AM Thu Jul 7, 2016


Changed cluster compat mode from undefined to [4,5] ns_orchestrator 000 ns_1@127.0.0.1 9:48:21 AM Thu Jul 7, 2016


I’m the only node, so I’m the master. mb_master 000 ns_1@127.0.0.1 9:48:21 AM Thu Jul 7, 2016


Couchbase Server has started on web port 8091 on node ‘ns_1@127.0.0.1’. Version: “4.5.0-2601-enterprise”. menelaus_sup 001 ns_1@127.0.0.1 9:48:21 AM Thu Jul 7, 2016


Initial otp cookie generated: xfkisxduinzhjpsm ns_cookie_manager 003 ns_1@127.0.0.1 9:48:21 AM Thu Jul 7, 2016


Couchbase version: 4.5.0-2601-enterprise
Docker version: 1.12.0-rc3, build 91e29e8, experimental (for Mac OS X)

Hi, Couple of clarification questions -

  • Did you see this behavior only on Docker image? Have you tested installing Couchbase and running on your local MAC OSX?
  • Can you reproduce the issue? if ‘yes’ can you collect logs using cbcollect_info and create a JIRA issue and attach logs

Thanks!

Anil Kumar

I am having similar error on couchbase

User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36
Got unhandled javascript error:
name: TypeError;
message: Cannot read property 'toLowerCase' of undefined;
stack: TypeError: Cannot read property 'toLowerCase' of undefined
at Scope.updateSearchResults (http://beta-swarm01.mapotempo.com:8091/_p/ui/query/qw_query_controller.js:1015:32)
at fn (eval at compile (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:15651:15), <anonymous>:4:177)
at Scope.$eval (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:18542:28)
at http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:26439:13
at Object.<anonymous> (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:29324:9)
at forEach (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:408:20)
at Object.$$writeModelToScope (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:29322:5)
at writeToModelIfNeeded (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:29315:14)
at http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:29309:9
at validationDone (http://beta-swarm01.mapotempo.com:8091/ui/libs/angular.js:29234:9);

any ideas