Kibana: Disable Usage Statistics Internal Server Error

Created on 27 Aug 2020  路  7Comments  路  Source: elastic/kibana

Kibana version: 7.9.0
Elasticsearch version: 7.9.0
Server OS version: RHEL 7.7
Browser version: Chrome Browser OS
version: Version 80.0.3987.132 (Official Build) (64-bit)
Original install method (e.g. download page, yum, from source, etc.): yum
Describe the bug: When Kibana loads the "Help us improve the Elastic Stack" banner displays everytime When the Disable button is clicked a Internal Server Error is thrown with the following message and stack trace

Schermata del 2020-08-27 12-58-42

When click disable or enable.. after 7 seconds: Internal Server Error

Error: Internal Server Error
    at Fetch._callee3$ (https://kibana.bluarancio.com/33813/bundles/core/core.entry.js:34:109213)
    at l (https://kibana.bluarancio.com/33813/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:155323)
    at Generator._invoke (https://kibana.bluarancio.com/33813/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:155076)
    at Generator.forEach.e.<computed> [as next] (https://kibana.bluarancio.com/33813/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:155680)
    at fetch_asyncGeneratorStep (https://kibana.bluarancio.com/33813/bundles/core/core.entry.js:34:102354)
    at _next (https://kibana.bluarancio.com/33813/bundles/core/core.entry.js:34:102670)

Easy way to reproduce:

request + Payload

time curl 'http://kibana.local/s/oracle/api/telemetry/v2/optIn' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'DNT: 1' \
  -H 'kbn-version: 7.9.0' \
  -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36' \
  -H 'Content-Type: application/json' \
  -H 'Accept: */*' \
  -H 'Origin: http://kibana.local' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Referer: https://kibana.local' \
  -H 'Accept-Language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6' \
  -H 'Cookie: experimentation_subject_id=ImE3NGRlNzc4LTddljZDUtNDY1OS1hMjNhLWMzOGUwZTljNjQ0NCI%3D--c776b78f75d4f2ee5d292b893b61cec8b40d985e; sid=Fe26.2**4f4f587a076ecbe330f95d727a6793772048807523dd27f0644ab5baf33ed270*4jpx2qsPlOuKuAMOm5DenA*fANpnV_NofFtoihZ-HgNZjtM5jo_scwxuW2P7NEm0FFv9HgDFbDdJ6eyV1H2kt39c_9b206s1mqY_vI4hwVvHbXDojRv4qSVRKeGsHglNmTxwOqGGf8UC8dszGpaykznJzi72PPo3jF1FzXyYvzoZpQZBnpD6unaRhF-af9Jqrqaq3JyBsdvMySnlsqE9dfcOVLRlbmcHK15Jz3jWF4WnhRyYUnqua9DArhzOkThRXb5jWZ55QrHA-ju61X7jLmNcG_**380fe6685fb71043eca0d47d148fe26f9e6728b283aeb7b545693527e020ad2b*s3l9YSc7ANgOC-7BvfNRNKdB_pSKJunNBOQNhsdvzEp37c' \
  --data-binary '{"enabled":false}' \
  --compressed -v -k

response

* About to connect() to kibana.local port 80 (#0)
*   Trying 10.20.64.230...
* Connected to kibana.local (10.20.64.230) port 80 (#0)
> POST /s/oracle/api/telemetry/v2/optIn HTTP/1.1
> Host: kibana.local
> Accept-Encoding: deflate, gzip
> Connection: keep-alive
> Pragma: no-cache
> Cache-Control: no-cache
> DNT: 1
> kbn-version: 7.9.0
> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
> Content-Type: application/json
> Accept: */*
> Origin: https://kibana.local
> Sec-Fetch-Site: same-origin
> Sec-Fetch-Mode: cors
> Sec-Fetch-Dest: empty
> Referer: http://kibana.local
> Accept-Language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6
> Cookie: experimentation_subject_id=ImE3NGRlNzc4LTljZDUtNDY1OS1hMjNhLWMzOGUwZTljNjQ0NCI%3D--c776b78f75d4f2ee5d292b893b61cec8b40d985e; sid=Fe26.2**4f4f587a076ecbe330f95d727a6793772048807523dd27f0644ab5baf33ed270*4jpx2qsPlOuKuAMOm5DenA*fANpnV_NofFtoihZ-HgNZjtM5jo_scwxuW2P7NEm0FFv9HgDFbDdJ6eyV1H2kt39c_9b206s1mqY_vI4hwVvHbXDojRv4qSVRKeGsHglNmTxwOqGGf8UC8dszGpaykznJzi72PPo3jF1FzXyYvzoZpQZBnpD6unaRhF-af9Jqrqaq3JyBMySnlsqE9dfcOVLRlbmcHK15Jz3jWF4WnhRyYUnqua9DArhzOkThRXb5jWZ55QrHA-ju61X7jLmNcG_**380fe6685fb71043eca0d47d148fe26f9e6728b283aeb7b545693527e020ad2b*s3l9YSc7ANgOC-7BvfNRNKdB_pSKJunNBOQNhzEp37c
> Content-Length: 17
> 
* upload completely sent off: 17 out of 17 bytes
< HTTP/1.1 500 Internal Server Error
< Server: nginx/1.16.1
< Date: Thu, 27 Aug 2020 10:51:51 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 97
< Connection: keep-alive
< kbn-name: Logs-First
< kbn-license-sig: d79cd60fa1a64c239200ce169a73374671bcb1cb7669ca213243cc56d4e12179
< kbn-xpack-sig: 74c7285b8785dc3e0eea8544d6e34773
< cache-control: private, no-cache, no-store, must-revalidate
< set-cookie: sid=Fe26.2**dda4f1b54760626b11a7479014d2dddd690aac8c5c2df155e4c352cda7e9f2ec*Q3CUrKqZ5OF0vcDK6qovqg*Po5E_wCe_P8wOEkzWCIlRDCMSGCECK6hJE4eT9SDwp_cTllQzbxY-dAEhythQxBxYggfA09EqMPRRQmPRDNrd1FMTAAgn1VP-3Rbbd8A5eWs57Uc9EmGZ62b2-r2nGGJU6lAfdNFIdMCka74CW8X6NtZjX1y4SW7eW6xT1rM_BWhDe8XD0fQsFYMXuHv_brcID0QQemq625YLubymxzfxAHZpfuZUW6_BJKfz-0e3uiv0FvvZjVrg-pOKyBWy59v**1370d894db263aa0068fe0c984832684910b072ac4e9b42c98845549f0b0707e*VCItnpRDd5n7QPzcecQ6LlDsSSGjWOYMhLIbfe_rSCU; HttpOnly; Path=/
< 
* Connection #0 to host kibana.local left intact

{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred."}

real    0m7.267s
user    0m0.007s
sys 0m0.006s

It's possible Kibana try to send some information over internet on remote host? my network are behind corporate firewall and can't connect to remote host without proxy configuration.

Telemetry KibanaTelemetry bug triage_needed

All 7 comments

Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry)

I see this also. Very annoying since it takes so much screen estate and pops up on every screen.

Hi @r4770, thank you for reporting this issue.

I believe it's related to https://github.com/elastic/kibana/issues/75637. If so, it should be fixed on the next release 7.9.1.

Hi, @r4770 and @smoeding! 7.9.1 is now out and this issue should be fixed.

Can you confirm if it is fixed on your end?

@afharo thanks for the update, now the issue is solved!

@afharo On my side it also looks good after updating to 7.9.1

Thank you both for confirming! I'll close the issue then. Please, feel free to reopen it if you think something else should be done.

Was this page helpful?
0 / 5 - 0 ratings