Hello. I'm working on upgrading our Elastic setup to version 7.6.0 and I'm having issues with Kibana startup. What I see in the logs is that Kibana is not able to install the "apm" plugin within the default 30 seconds (see logs below).
Here are the logs:
Feb 18 14:15:48 systemd[1]: Started Kibana.
Feb 18 14:15:52 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:52Z","tags":["info","plugins-service"],"pid":8900,"message":"Plugin \"case\" is disabled."}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins-system"],"pid":8900,"message":"Setting up [37] plugins: [usageCollection,metrics,
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","usageCollection"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","metrics"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","canvas"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","timelion"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","features"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","apm_oss"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","taskManager"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","siem"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","licensing"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","security"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["warning","plugins","security","config"],"pid":8900,"message":"Generating a random key for xpack.
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["warning","plugins","security","config"],"pid":8900,"message":"Session cookies will be transmitte
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","infra"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","encryptedSavedObjects"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["warning","plugins","encryptedSavedObjects","config"],"pid":8900,"message":"Generating a random k
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","code"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","data"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","share"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","home"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","spaces"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","cloud"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:15:56 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:15:56Z","tags":["info","plugins","apm"],"pid":8900,"message":"Setting up plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["fatal","root"],"pid":8900,"message":"Error: Setup lifecycle of \"apm\" plugin wasn't completed i
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins-system"],"pid":8900,"message":"Stopping all plugins."}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","cloud"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","spaces"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","home"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","share"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","data"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","code"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","encryptedSavedObjects"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","infra"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","security"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","licensing"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","siem"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","taskManager"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","apm_oss"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","features"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","timelion"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","canvas"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","metrics"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: {"type":"log","@timestamp":"2020-02-18T14:16:26Z","tags":["info","plugins","usageCollection"],"pid":8900,"message":"Stopping plugin"}
Feb 18 14:16:26 kibana[8900]: FATAL Error: Setup lifecycle of "apm" plugin wasn't completed in 30sec. Consider disabling the plugin and re-start.
Feb 18 14:16:27 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
Feb 18 14:16:27 systemd[1]: kibana.service: Failed with result 'exit-code'.
I've also tried to install the plugin manually and increasing the time available for the installation using the following command but the URL that is used by default does not contain the plugin.
$ /usr/share/kibana# bin/kibana-plugin install apm 2m --allow-root
Attempting to transfer from apm
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/apm/apm-7.6.0.zip
Plugin installation was unsuccessful due to error "No valid url specified."
If I do a curl request to that URL I get a 404 response code:
$ curl -I https://artifacts.elastic.co/downloads/kibana-plugins/apm/apm-7.6.x.zip
HTTP/2 404
retry-after: 0
content-type: text/html
accept-ranges: bytes
accept-ranges: bytes
date: Tue, 18 Feb 2020 14:25:12 GMT
via: 1.1 varnish
x-served-by: cache-ams21042-AMS
x-cache: MISS
x-cache-hits: 0
x-timer: S1582035912.281037,VS0,VE372
server: ElasticInfrastructure
content-length: 78
I also tried to disable the plugin in the "kibana.yml" file using the config option "xpack.apm.enabled" but because of this bug it does not work.
Could someone advice on how to proceed here without downgrading to version 7.5.2?
Thank you very much for your help.
Regards
/José Carlos