AggConfig object not found


(Mishal) #1

Getting this error after upgrading ELK stack from 6.3.2 to 6.5.0.

My custom Kibana plugin has stopped rendering. Are there some necessary changes need to be made as part of the upgrade?


(kulkarni) #2

Can u please provide more details ? What are the errors on ES and Kibana logs?

cc @tylersmalley

THanks
Rashmi


#3

I'm trying to upgrade some custom plugins and I've the same issue.
It's seems to be caused by the new courier request handler.


#4

In my case, the console print the following error :

TypeError: Cannot read property 'aggConfig' of undefined
at collectBucket (tabify.js:62)
at tabify.js:78
at _buckets.js:67
at Array.forEach ()
at TabifyBuckets.forEach (_buckets.js:66)
at collectBucket (tabify.js:70)
at tabify.js:78
at _buckets.js:67
at Array.forEach ()
at TabifyBuckets.forEach (_buckets.js:66)
at collectBucket (tabify.js:70)
at tabify.js:78
at _buckets.js:67
at Array.forEach ()
at TabifyBuckets.forEach (_buckets.js:66)
at collectBucket (tabify.js:70)

The courier retrieve all needed data from elasticsearch.


(Mishal) #5

@pchakour Were you able to solve it?


#6

Not yet. I'm currently looking for a way to fix it.
It's possible to create a custom request handler to avoid the problem but I want to use the standard courier.

@rashmi, do you have any ideas about our issue ?


#7

I've more informations about my issue. It's happen when my custom plugin has only one bucket define in the schema. I patch the kibana code to handle this case.

It's a bug of kibana or it's something expected ?


(Mishal) #8

Can you pls share the patch details ?


#9

This is a link with the git diff http://www.rapidshare.com.cn/B52ntSD

I don't think usefull for you because you have metrics and buckets in your visualization.