SearchGuard 6 - 6.2.2-21
Elasticsearch & Kibana - 6.2.2
Error: Uncaught TypeError: Super expression must either be null or a function, not undefined (https://elite10dot80c.elite35.lab/app/kibana/bundles/vendors.bundle.js?v=16588:89)
at window.onerror (https://elite10dot80c.elite35.lab/app/kibana/bundles/commons.bundle.js?v=16588:1:506240)
If I enable session affinity on the Nginx then I don't see this issue but I need to keep the session affinity disabled on the Nginx for my solution.
Also I see this only on one of the cluster in my lab while other clusters with the same solution do not have this issue.
So does Kibana Searchguard plugin require affinity or stickiness to be enabled on the load balancer? Or is there anything else I'm missing here as this issue is not seen on other clusters with affinity disabled?
│ 192.168.10.39 ──https─► 192.168.10.80 ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────│POST /app/kibana/api/v1/auth/login HTTP/1.1 │Host: host10dot80c.server35.lab │User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 │Accept: application/json, text/plain, */* │Accept-Language: en-US,en;q=0.9 │Accept-Encoding: gzip, deflate, br │Connection: keep-alive │Origin: https://host10dot80c.server35.lab │Content-Type: application/json;charset=UTF-8 │Content-Length: 50 │ │{ │ "password" : "Password1", │ "username" : "kibanaadmin" │}
│ 192.168.10.39 ──https─► 192.168.10.51
Super expression must either be null or a function, not undefined
commons.bundle.js
Error: Uncaught TypeError: Super expression must either be null or a function, not undefined (https://elite10dot80c.elite35.lab/app/kibana/bundles/vendors.bundle.js?v=16588:89)
at window.onerror (https://elite10dot80c.elite35.lab/app/kibana/bundles/commons.bundle.js?v=16588:1:506240)
Hi,I've found some difference between the working setup and the setup that is throwing this error.
│ 192.168.10.39 ──https─► 192.168.10.80├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────│POST /app/kibana/api/v1/auth/login HTTP/1.1│Host: host10dot80c.server35.lab│User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36│Accept: application/json, text/plain, */*│Accept-Language: en-US,en;q=0.9│Accept-Encoding: gzip, deflate, br│Connection: keep-alive│Origin: https://host10dot80c.server35.lab│Content-Type: application/json;charset=UTF-8│Content-Length: 50││{│ "password" : "Password1",│ "username" : "kibanaadmin"│}
Shown above is the login request from the setup where I'm facing this issue and as you can see that there is no cookie field. For 6.2.2-10 (which is quite old BTW, current version would be 13) we write cookies for multi tenancy and for Basic Auth. So maybe the root cause is that nginx does not handle cookies correctly?
Uncaught TypeError: Cannot read property 'call' of undefined (https://host10dot80c.server35.lab/app/kibana/bundles/vendors.bundle.js?v=16588:1)
Version: 6.2.2
Build: 16588
Error: Uncaught TypeError: Cannot read property 'call' of undefined (https://host10dot80c.server35.lab/app/kibana/bundles/vendors.bundle.js?v=16588:1)
at window.onerror (https://host10dot80c.server35.lab/app/kibana/bundles/commons.bundle.js?v=16588:1:506238)
Uncaught TypeError: Cannot read property 'call' of undefined