Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibana error: (Unknown provider: sessionTimeoutProvider) #9369

Closed
stefandoorn opened this issue Dec 5, 2016 · 23 comments
Closed

Kibana error: (Unknown provider: sessionTimeoutProvider) #9369

stefandoorn opened this issue Dec 5, 2016 · 23 comments
Labels
bug Fixes for quality problems that affect the customer experience stale Used to mark issues that were closed for being stale Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Operations Team label for Operations Team

Comments

@stefandoorn
Copy link

Kibana version: 5.x

Elasticsearch version: 5.x

Server OS version: Centos 7

Browser version: Chrome

Browser OS version: Mac OSX

Original install method (e.g. download page, yum, from source, etc.): Yum

Steps to reproduce:
I installed Elasticsearch using yum following the instructions on the website. Afterwards the same for Kibana. Both work when accessing them through the browser. Then I installed x-pack following the instructions (first for ES, then for Kibana). Restarting the services and reloading Kibana gives me the errors below. Uninstall also breaks Kibana, so I'm kind of stuck now with it.

Errors in browser console (if relevant):
browser:
Fatal Error
Uncaught Error: [$injector:unpr] Unknown provider: sessionTimeoutProvider <- sessionTimeout <- $http <- config
http://errors.angularjs.org/1.4.7/$injector/unpr?p0=sessionTimeoutProvider%20%3C-%20sessionTimeout%20%3C-%20%24http%20%3C-%20config (http://192.168.22.22:5601/bundles/commons.bundle.js?v=14476:36)
Version: 5.0.2
Build: 14476
Error: Uncaught Error: [$injector:unpr] Unknown provider: sessionTimeoutProvider <- sessionTimeout <- $http <- config
http://errors.angularjs.org/1.4.7/$injector/unpr?p0=sessionTimeoutProvider%20%3C-%20sessionTimeout%20%3C-%20%24http%20%3C-%20config (http://192.168.22.22:5601/bundles/commons.bundle.js?v=14476:36)
at window.onerror (http://192.168.22.22:5601/bundles/commons.bundle.js?v=14476:69:13503)

console:
commons.bundle.js?v=14476:55 Error: Uncaught Error: [$injector:unpr] Unknown provider: sessionTimeoutProvider <- sessionTimeout <- $http <- config
http://errors.angularjs.org/1.4.7/$injector/unpr?p0=sessionTimeoutProvider%20%3C-%20sessionTimeout%20%3C-%20%24http%20%3C-%20config (http://192.168.22.22:5601/bundles/commons.bundle.js?v=14476:36)
at window.onerror (commons.bundle.js?v=14476:69)Notifier._showFatal @ commons.bundle.js?v=14476:55
commons.bundle.js?v=14476:36 Uncaught Error: [$injector:unpr] Unknown provider: sessionTimeoutProvider <- sessionTimeout <- $http <- config(…)
commons.bundle.js?v=14476:55 Uncaught Error: Uncaught Error: [$injector:unpr] Unknown provider: sessionTimeoutProvider <- sessionTimeout <- $http <- config(…)
http://192.168.22.22:5601/app/kibana Failed to load resource: the server responded with a status of 503 (Service Unavailable)

Provide logs and/or server output (if relevant):

@epixa
Copy link
Contributor

epixa commented Dec 5, 2016

@stefandoorn Can you delete the optimize/bundles directory as well as the optimize/.babel-cache.json file and restart Kibana? That will trigger a completely fresh rebuild of the Kibana source with x-pack.

Do you get any errors like this in your kibana logs: #8818 ?

Also, I recommend moving this conversation to IRC or the forums in order to get more timely feedback, as we use github for bugs and feature requests.

@nbari
Copy link

nbari commented Dec 12, 2016

Had the same issue, just rebooted server and working now.

@epixa
Copy link
Contributor

epixa commented Dec 12, 2016

@nbari Did you need to delete the optimize/bundles directory, or was a restart alone enough to fix it?

@nbari
Copy link

nbari commented Dec 12, 2016

First I deleted optimize/bundles and optimize/.babel-cache.json restarted kibana and didn't work, then I just did a reboot and got it working.

Later I just add xpack.security.enabled: false in both elasticsearch.yml and kibana.yml

@tronicum
Copy link

tronicum commented Jan 3, 2017

I had a nginx with basic auth in front of kibana. having two of those chained, did not work...!
You might add this to the documentation as many people "secure" their kibana with a reverse proxy if they dont use x-pack.

@cptcanuck
Copy link

I was having this problem as well. Fresh install of ES and Kibana with x-pack, running with NGINX and basic auth in front.

Doing as @nbari suggested, disabling xpack security, worked.

This seems related to #9226 as well.

@howardjones
Copy link

Just been through the same here, with 5.2.2 from the yum repo of each application. Disabling xpack security did work, but I was hoping to look at AD integration and role-based access control, so it's not too helpful!

@mfn
Copy link

mfn commented Apr 13, 2017

Can you delete the optimize/bundles directory as well as the optimize/.babel-cache.json file and restart Kibana? That will trigger a completely fresh rebuild of the Kibana source with x-pack.

Worked for me; note: the restart took minutes until kibana node server responded via http.
With no log, no output, nothing this was irritating but at some point I realized that files in optimize/bundles/ accumulated and just waited.

@epixa
Copy link
Contributor

epixa commented Apr 13, 2017

@mfn Yeah, the code transpilation can take a really long time, and it's maddening. This is the biggest thing we're looking to address with the new build system, which would cut that down to nothing and make this whole problem go away.

@hsafe
Copy link

hsafe commented Jun 21, 2017

Hi all,
I was having identical issue and still not resolved for elk stack 5.4 on centos7 nginx reverse proxy with simple authentication on.
I tried all the steps here: delete the files under optimize/ folder and rebooted and alternatively setting the
xpack.security.enabled: false or disabling simple authentication directive in nginx.
I should state that I waited enough for the kibanna to rebuild its internals as well...
I went as far as from a non-listening kibana on default port to listening kibana...but then lost all together logging and visualization. Now the service is up filebeats at clients are OK and shipping to logstash but no more record of the graphs... I do not want to frantically jump here and there or revert...appreciate to help.
Current status is :xpack.security.enabled: false in kibana and elastic yaml and basic security in nginx is on.
Can someone please help?

@jbudz jbudz changed the title Kibana (5.x) breaks after installing x-pack (Unknown provider: sessionTimeoutProvider) Kibana breaks after installing x-pack (Unknown provider: sessionTimeoutProvider) Nov 20, 2017
@thomasneirynck
Copy link
Contributor

Closing due to inactivity. Can reopen if problem persists.

@navnitt
Copy link

navnitt commented Nov 15, 2018

What is the final solution to this?

@mfn
Copy link

mfn commented Nov 15, 2018

@navnitt back #9369 (comment) in this worked for me: #9369 (comment)

@navnitt
Copy link

navnitt commented Nov 15, 2018

restarting kibana after deleting optimize is not working for me.

1 similar comment
@navnitt
Copy link

navnitt commented Nov 16, 2018

restarting kibana after deleting optimize is not working for me.

@navnitt
Copy link

navnitt commented Nov 16, 2018

changed the ownership of optimize after reboot worked.But it is aking for a password and I dint reset any password.

@JoshuaSmeda
Copy link

changed the ownership of optimize after reboot worked.But it is aking for a password and I dint reset any password.

The above solution does work. If you still experiencing an issue, please open a new issue. There is no need to troubleshoot your issue on an existing issue when a solution has already been provided.

@BobBlank12
Copy link

OK... similar issue. After deleting the bundle and babel-cache, restart of kibana still no go. ps -ef | grep kibana showed another kibana process still running. Make SURE there isn't an additional Kibana instance running or orphaned.

@rishiloyola
Copy link

Why did you close this @thomasneirynck? I am still having an issue with this. Please open it to solve the issue.

@Leaf-Lin
Copy link
Contributor

It's still affecting 6.5.0 (with x-pack comes preinstalled).
I can confirm the workaround fix the issue:

  1. deleted optimize/bundles and optimize/.babel-cache.json
  2. ps -ef | grep kibana to check if there’s another kibana process still running, if there are, kill -9 PID or restart the server. Make sure there's only one kibana running per host!
  3. restarted kibana (this will take longer than usual to rebuild)

But we'd also like to know why it breaks at the first place. I'm unable to see root cause for 6.5.0 as there's no x-pack installation involved.

@Bargs Bargs changed the title Kibana breaks after installing x-pack (Unknown provider: sessionTimeoutProvider) Kibana error: (Unknown provider: sessionTimeoutProvider) Aug 15, 2019
@Bargs
Copy link
Contributor

Bargs commented Aug 15, 2019

The comment above as well as this comment from a duplicate ticket both report this error appearing suddenly after x-pack had already been installed and working for some time. I think that's worth looking into, so I'm going to re-open this ticket.

@Bargs Bargs reopened this Aug 15, 2019
@Bargs Bargs added bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team and removed feedback_needed labels Aug 15, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@Bargs Bargs added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Aug 15, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@joshdover joshdover added the stale Used to mark issues that were closed for being stale label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience stale Used to mark issues that were closed for being stale Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests