Kibana version: 7.2.0
Elasticsearch version: 7.2.0
Server OS version: Debian 9
Browser version: Firefox 67.0.4
Browser OS version: Ubuntu 18.04.2 LTS
Original install method (e.g. download page, yum, from source, etc.): Download page
Describe the bug: After creating a new Space, then attempting to navigate to that space (either via the intro Space-selector screen or via the top-navigation dropdown menu for selecting a different Space), Kibana enters an infinite "loading... error" loop.
Steps to reproduce:
Expected behavior: Either of the following would be acceptable:
Screenshots (if relevant):
This screen appears briefly (less than 100ms) between long periods where only a Loading spinner is visible. It took a few attempts to get the timing right to take this screenshot:

Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
Pinging @elastic/kibana-security
Hey @canterberry, thanks for the bug report.
I'm having a hard time reproducing this issue. Can you share a little more about your configuration? Can you post your kibana.yml, with any sensitive information redacted?

edit: the gif was cutoff at the end slightly, but still illustrates my attempt. Full video here: http://recordit.co/0I2npdKf2i
Your repro steps look correct.
A video of me following the same steps (starting from the Spaces management screen):
:film_strip: elastic.kibana.39837.mp4
Here's our Kibana configuration:
kibana.yml
elasticsearch:
hosts:
- "<<<REDACTED>>>"
username: "<<<REDACTED>>>"
password: "<<<REDACTED>>>"
ssl:
certificate: "<<<REDACTED>>>"
key: "<<<REDACTED>>>"
certificateAuthorities:
- "<<<REDACTED>>>"
verificationMode: "full"
kibana:
defaultAppId: "discover"
index: ".kibana"
path:
data: <<<REDACTED>>>
server:
host: "<<<REDACTED>>>"
port: "<<<REDACTED>>>"
name: "<<<REDACTED>>>"
xsrf:
whitelist:
- /api/security/v1/saml
ssl:
enabled: true
certificate: "<<<REDACTED>>>"
key: "<<<REDACTED>>>"
certificateAuthorities:
- "<<<REDACTED>>>"
supportedProtocols:
- "TLSv1.2"
xpack:
monitoring:
enabled: true
security:
authProviders:
- saml
encryptionKey: "<<<REDACTED>>>"
public:
hostname: "<<<REDACTED>>>"
port: <<<REDACTED>>>
protocol: https
secureCookies: true
In this configuration, we have two Kibana nodes running behind an application load balancer in AWS, operating over TLSv1.2; our Kibana users are using SAML authentication.
Thanks for the update, I was able to reproduce when setting the kibana.defaultAppId option to "discover", like your kibana.yml indicates.
Can you verify that removing this configuration option "fixes" the problem for you? I want to make sure we're isolating the problem correctly.
@legrego This default value of the kibana.defaultAppId option is "discover" according to the Kibana Settings documentation. Removing it should have no impact, so I'll try removing it and see if the problem persists.
You're absolutely right, it _shouldn't_ have an impact...however, it looks like there's a bug in the documentation, as the current default value is home:
https://github.com/elastic/kibana/blob/e1b1c56eefd4f0fe09666adc45d11b0f413a3d02/src/legacy/core_plugins/kibana/index.js#L54
@legrego Excellent sleuthing. That did, indeed, fix the problem!
Awesome, thanks for confirming!