Timelion Error in Canvas (getaddrinfo ENOTFOUND)

Whenever I pick Timelion as datasource in Canvas, I get this error:

[timelion] > getaddrinfo ENOTFOUND www.0.com www.0.com:80

Timelion works fine in regular Kibana. It's just in Canvas that I get this error.

Kibana and ES 6.5.4.

Any ideas on how to troubleshoot this? I don't see any errors in the Kibana log.

What does your Kibana config look like?

server.name: kibana
server.host: "0"
elasticsearch.url: "https://elasticsearch:9200"
elasticsearch.username: "kibanaserver"
elasticsearch.password: xxxxxxxxxxx
elasticsearch.ssl.verificationMode: none
elasticsearch.requestHeadersWhitelist: ["Authorization", "sgtenant"]

xpack.monitoring.ui.container.elasticsearch.enabled: true
xpack.security.enabled: false
xpack.reporting.queue.timeout: 600000

searchguard.auth.anonymous_auth_enabled: true
searchguard.auth.type: "basicauth"

xpack.spaces.enabled: false

Can you try changing this to server.host: "0.0.0.0"?

Thanks, that changed the error to something more understandable:

[timelion] > Request failed with status code 403

Now I need to figure out why Canvas does not have permission to Timelion.

How does Canvas talk to Timelion? SQL queries work, and raw ES documents also work, so I guess Timelion is handled in some other way.

We fixed a related but different issue using Timelion in Canvas (https://github.com/elastic/kibana/issues/25742)

I think the fix for that issue (https://github.com/elastic/kibana/pull/27944) will also fix the error you're seeing. It looks like this fix is scheduled for the 6.6.0 release, which should be available relatively soon.

You might get a more helpful error if you bump up the logging. Try setting this in your kibana.yml and retry:

logging.verbose: true
logging.quiet: false

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.