Q: about cb server web console open errors

#1

HI,
when I use chrome login to cb server web console UI, I can’t open login web UI, I inspect chrome network logs, get error below:

Uncaught SyntaxError: Invalid or unexpected token
angular-animate.js:63 Uncaught TypeError: Cannot read property ‘$$minErr’ of undefined
at angular-animate.js:63
at angular-animate.js:4158
(anonymous) @ angular-animate.js:63
(anonymous) @ angular-animate.js:4158
angular-sanitize.js:19 Uncaught TypeError: Cannot read property ‘$$minErr’ of undefined
at angular-sanitize.js:19
at angular-sanitize.js:801
(anonymous) @ angular-sanitize.js:19
(anonymous) @ angular-sanitize.js:801
angular-messages.js:267 Uncaught TypeError: Cannot read property ‘module’ of undefined
at angular-messages.js:267
at angular-messages.js:747
(anonymous) @ angular-messages.js:267
(anonymous) @ angular-messages.js:747
angular-ui-router-1.0.0-rc.1.js:7738 Uncaught ReferenceError: angular is not defined
at angular-ui-router-1.0.0-rc.1.js:7738
at angular-ui-router-1.0.0-rc.1.js:10
at angular-ui-router-1.0.0-rc.1.js:11
(anonymous) @ angular-ui-router-1.0.0-rc.1.js:7738
(anonymous) @ angular-ui-router-1.0.0-rc.1.js:10
(anonymous) @ angular-ui-router-1.0.0-rc.1.js:11
angular-uib-stackedMap.js:1 Uncaught ReferenceError: angular is not defined
at angular-uib-stackedMap.js:1
(anonymous) @ angular-uib-stackedMap.js:1
angular-uib-dropdown.js:1 Uncaught ReferenceError: angular is not defined
at angular-uib-dropdown.js:1
(anonymous) @ angular-uib-dropdown.js:1
angular-uib-multiMap.js:1 Uncaught ReferenceError: angular is not defined
at angular-uib-multiMap.js:1
(anonymous) @ angular-uib-multiMap.js:1
angular-uib-modal.js:1 Uncaught ReferenceError: angular is not defined
at angular-uib-modal.js:1
(anonymous) @ angular-uib-modal.js:1
angular-uib-position.js:1 Uncaught ReferenceError: angular is not defined
at angular-uib-position.js:1
(anonymous) @ angular-uib-position.js:1
angular-uib-tooltip.js:6 Uncaught ReferenceError: angular is not defined
at angular-uib-tooltip.js:6
(anonymous) @ angular-uib-tooltip.js:6
angular-uib-spock.js:8 Uncaught ReferenceError: angular is not defined
at angular-uib-spock.js:8
(anonymous) @ angular-uib-spock.js:8
angular-ui-select.js:70 Uncaught ReferenceError: angular is not defined
at angular-ui-select.js:70
at angular-ui-select.js:1312
(anonymous) @ angular-ui-select.js:70
(anonymous) @ angular-ui-select.js:1312
angular-ui-codemirror.js:6 Uncaught ReferenceError: angular is not defined
at angular-ui-codemirror.js:6
(anonymous) @ angular-ui-codemirror.js:6
ngclipboard.js:19 Uncaught TypeError: Cannot read property ‘module’ of undefined
at ngclipboard.js:19
at ngclipboard.js:48
(anonymous) @ ngclipboard.js:19
(anonymous) @ ngclipboard.js:48
ui-ace.js:6 Uncaught ReferenceError: angular is not defined
at ui-ace.js:6
(anonymous) @ ui-ace.js:6
ace.js:14598 Uncaught SyntaxError: Invalid or unexpected token
ext-language_tools.js:1 Uncaught ReferenceError: define is not defined
at ext-language_tools.js:1
(anonymous) @ ext-language_tools.js:1
mode-json.js:1 Uncaught ReferenceError: define is not defined
at mode-json.js:1
(anonymous) @ mode-json.js:1
mode-n1ql.js:49 Uncaught ReferenceError: define is not defined
at mode-n1ql.js:49
at mode-n1ql.js:188
(anonymous) @ mode-n1ql.js:49
(anonymous) @ mode-n1ql.js:188
mode-sql-plus-plus.js:30 Uncaught ReferenceError: define is not defined
at mode-sql-plus-plus.js:30
at mode-sql-plus-plus.js:170
(anonymous) @ mode-sql-plus-plus.js:30
(anonymous) @ mode-sql-plus-plus.js:170
mode-javascript.js:1 Uncaught ReferenceError: define is not defined
at mode-javascript.js:1
(anonymous) @ mode-javascript.js:1
app.min.js:1 Uncaught ReferenceError: angular is not defined
at app.min.js:1
at app.min.js:2
(anonymous) @ app.min.js:1
(anonymous) @ app.min.js:2
qw_focus_me.js:5 Uncaught ReferenceError: angular is not defined
at qw_focus_me.js:5
at qw_focus_me.js:19
(anonymous) @ qw_focus_me.js:5
(anonymous) @ qw_focus_me.js:19
query.js:4 Uncaught ReferenceError: angular is not defined
at query.js:4
at query.js:233
(anonymous) @ query.js:4
(anonymous) @ query.js:233
qw_constants_service.js:10 Uncaught ReferenceError: angular is not defined
at qw_constants_service.js:10
at qw_constants_service.js:86
(anonymous) @ qw_constants_service.js:10
(anonymous) @ qw_constants_service.js:86
qw_query_plan_service.js:8 Uncaught ReferenceError: angular is not defined
at qw_query_plan_service.js:8
at qw_query_plan_service.js:1081
(anonymous) @ qw_query_plan_service.js:8
(anonymous) @ qw_query_plan_service.js:1081
qw_json_csv_service.js:8 Uncaught ReferenceError: angular is not defined
at qw_json_csv_service.js:8
at qw_json_csv_service.js:177
(anonymous) @ qw_json_csv_service.js:8
(anonymous) @ qw_json_csv_service.js:177
qw_doc_editor_controller.js:8 Uncaught ReferenceError: angular is not defined
at qw_doc_editor_controller.js:8
at qw_doc_editor_controller.js:933
(anonymous) @ qw_doc_editor_controller.js:8
(anonymous) @ qw_doc_editor_controller.js:933
qw_query_controller.js:3 Uncaught ReferenceError: angular is not defined
at qw_query_controller.js:3
at qw_query_controller.js:1246
(anonymous) @ qw_query_controller.js:3
(anonymous) @ qw_query_controller.js:1246
qw_query_monitor_controller.js:4 Uncaught ReferenceError: angular is not defined
at qw_query_monitor_controller.js:4
at qw_query_monitor_controller.js:361
(anonymous) @ qw_query_monitor_controller.js:4
(anonymous) @ qw_query_monitor_controller.js:361
qw_query_service.js:3 Uncaught ReferenceError: angular is not defined
at qw_query_service.js:3
at qw_query_service.js:2046
(anonymous) @ qw_query_service.js:3
(anonymous) @ qw_query_service.js:2046
qw_fix_long_number_service.js:10 Uncaught ReferenceError: angular is not defined
at qw_fix_long_number_service.js:10
at qw_fix_long_number_service.js:232
(anonymous) @ qw_fix_long_number_service.js:10
(anonymous) @ qw_fix_long_number_service.js:232
qw_query_schema_display.directive.js:19 Uncaught ReferenceError: angular is not defined
at qw_query_schema_display.directive.js:19
at qw_query_schema_display.directive.js:291
(anonymous) @ qw_query_schema_display.directive.js:19
(anonymous) @ qw_query_schema_display.directive.js:291
qw-json-tree.directive.js:19 Uncaught ReferenceError: angular is not defined
at qw-json-tree.directive.js:19
at qw-json-tree.directive.js:138
(anonymous) @ qw-json-tree.directive.js:19
(anonymous) @ qw-json-tree.directive.js:138
qw-json-datatable.directive.js:16 Uncaught ReferenceError: angular is not defined
at qw-json-datatable.directive.js:16
at qw-json-datatable.directive.js:952
(anonymous) @ qw-json-datatable.directive.js:16
(anonymous) @ qw-json-datatable.directive.js:952
qw-json-table.directive.js:23 Uncaught ReferenceError: angular is not defined
at qw-json-table.directive.js:23
at qw-json-table.directive.js:384
(anonymous) @ qw-json-table.directive.js:23
(anonymous) @ qw-json-table.directive.js:384
qw-json-table-editor.directive.js:20 Uncaught ReferenceError: angular is not defined
at qw-json-table-editor.directive.js:20
at qw-json-table-editor.directive.js:949
(anonymous) @ qw-json-table-editor.directive.js:20
(anonymous) @ qw-json-table-editor.directive.js:949
qw-explain-viz.directive.js:23 Uncaught ReferenceError: angular is not defined
at qw-explain-viz.directive.js:23
at qw-explain-viz.directive.js:218
(anonymous) @ qw-explain-viz.directive.js:23
(anonymous) @ qw-explain-viz.directive.js:218
qw-explain-viz-d3.directive.js:23 Uncaught ReferenceError: angular is not defined
at qw-explain-viz-d3.directive.js:23
at qw-explain-viz-d3.directive.js:677
(anonymous) @ qw-explain-viz-d3.directive.js:23
(anonymous) @ qw-explain-viz-d3.directive.js:677
qw-long-press.directive.js:14 Uncaught ReferenceError: angular is not defined
at qw-long-press.directive.js:14
at qw-long-press.directive.js:46
(anonymous) @ qw-long-press.directive.js:14
(anonymous) @ qw-long-press.directive.js:46
qw-json-validator.directive.js:9 Uncaught ReferenceError: angular is not defined
at qw-json-validator.directive.js:9
at qw-json-validator.directive.js:38
(anonymous) @ qw-json-validator.directive.js:9
(anonymous) @ qw-json-validator.directive.js:38
angular-route.js:24 Uncaught TypeError: Cannot read property ‘module’ of undefined
at angular-route.js:24
at angular-route.js:6
(anonymous) @ angular-route.js:24
(anonymous) @ angular-route.js:6
angular-ui-tree.min.js:6 Uncaught ReferenceError: angular is not defined
at angular-ui-tree.min.js:6
at angular-ui-tree.min.js:6
(anonymous) @ angular-ui-tree.min.js:6
(anonymous) @ angular-ui-tree.min.js:6
expvar.js:1 Uncaught ReferenceError: angular is not defined
at expvar.js:1
(anonymous) @ expvar.js:1
filters.js:16 Uncaught ReferenceError: angular is not defined
at filters.js:16
(anonymous) @ filters.js:16
directives.js:16 Uncaught ReferenceError: angular is not defined
at directives.js:16
(anonymous) @ directives.js:16
2index.html:146 GET http://xxx.xxx.xxx.xxx:8091/_p/ui/fts/js/debug.js net::ERR_ABORTED 404 (Object Not Found)
fts.js:20 Uncaught ReferenceError: angular is not defined
at fts.js:20
at fts.js:181
(anonymous) @ fts.js:20
(anonymous) @ fts.js:181
esprima.min.js:4644 Uncaught SyntaxError: Invalid regular expression: missing /
eventing.js:1 Uncaught ReferenceError: angular is not defined
at eventing.js:1
(anonymous) @ eventing.js:1
cbas.js:4 Uncaught ReferenceError: angular is not defined
at cbas.js:4
at cbas.js:168
(anonymous) @ cbas.js:4
(anonymous) @ cbas.js:168
cw_constants_service.js:10 Uncaught ReferenceError: angular is not defined
at cw_constants_service.js:10
at cw_constants_service.js:133
(anonymous) @ cw_constants_service.js:10
(anonymous) @ cw_constants_service.js:133
cw_cbas_controller.js:3 Uncaught ReferenceError: angular is not defined
at cw_cbas_controller.js:3
at cw_cbas_controller.js:1266
(anonymous) @ cw_cbas_controller.js:3
(anonymous) @ cw_cbas_controller.js:1266
cw_query_service.js:3 Uncaught ReferenceError: angular is not defined
at cw_query_service.js:3
at cw_query_service.js:2105

env: cb server 6.0

my local internet is normal, how can I do?

Best Regards!

angular

#2

Hi @angular,

I haven’t seen that problem before, and we have tested Couchbase 6.0 on Chrome, Safari, and Firefox. Which version of Chrome are you using? What platform are you running on?

Thanks,

-Eben

#3

Hi @eben:
my env :
os: mac
chrome: 73.0.3683.103(64 )
is issue is client or server or network error? how can I inspect it?

thanks for your reply.

angular

#4

I’m running the same version of Chrome on my mac, so that shouldn’t be an issue.

Did the web console UI ever work correctly? Or is this the first time you have tried it?

The web console UI is based on AngularJS, and the stack trace you included suggests that for some reason the angular library is not being loaded properly. If you run the following ‘curl’ command, does it retrieve angular.js?

curl localhost:8091/ui/libs/angular.js

Also, are you using Couchbase version 6.0, 6.0.1, or 6.0.2?

#5

HI @eben

I’m using cb server 6.0. The above situation is not always present. I’ll try curl angular.js on the server side when the same issue next time occurred. I guess the network has some trouble make angular library not being loaded, but I browse the web site is normal. BTW: I using Operator 1.1 to deployment cb server.

thanks for your reply!

angular

#6

Since the Admin UI works sometimes, and fails sometimes, the problem sounds like a network issue. How often does the problem occur? Are you able to reproduce the problem reliably? Or does it just happen randomly?

#7

HI @eben,
this problem just happen randomly. when it’s occur again, I’ll curl angular.js then report on forum.

thanks!

angular