Kibana Does Not Load from mobile network

Kibana version 7.14
Elastic version 7.14

Kibana loads properly and fully using WIFI networks. However, when using mobile networks, Kibana does not load. The loading appears to stop at the log-in screen. The log-in screen does not show.

The log shows this:
"GET / login?next=%2TTP/1.1" 200 29543 "-" "Mozilla/5.0 (iPhone: CPU iPhone ......

"GET /node_modules/@kbn/ui-framwork/dist/kui_light.css HTTP/1.1" 304 641 "https://kibana.example.com/loging?next=%2Fapp%2Fhome" ...

A reverse proxy runs Elasticsearch and Kibana on the same machine.

Here is what has been tried to load Kibana to completion using mobile networks

<IfModule mod_deflate>
                #AddOutputFilterByType DEFLATE application/javascript
                #AddOutputFilterByType DEFLATE application/rss+xml
                #AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
                #AddOutputFilterByType DEFLATE application/x-font
                #AddOutputFilterByType DEFLATE application/x-font-opentype
                #AddOutputFilterByType DEFLATE application/x-font-otf
                #AddOutputFilterByType DEFLATE application/x-font-truetype
                #AddOutputFilterByType DEFLATE application/x-font-ttf
                #AddOutputFilterByType DEFLATE application/x-javascript
                #AddOutputFilterByType DEFLATE application/xhtml+xml
                #AddOutputFilterByType DEFLATE application/xml
                #AddOutputFilterByType DEFLATE font/opentype
                #AddOutputFilterByType DEFLATE font/otf
                #AddOutputFilterByType DEFLATE font/ttf
                #AddOutputFilterByType DEFLATE image/svg+xml
                #AddOutputFilterByType DEFLATE image/x-icon
                #AddOutputFilterByType DEFLATE text/css
                #AddOutputFilterByType DEFLATE text/html
                #AddOutputFilterByType DEFLATE text/javascript
                #AddOutputFilterByType DEFLATE text/plain
                #AddOutputFilterByType DEFLATE text/xml
        </IfModule>

        <IfModule mpm_event_module>
            StartServers          2
            MaxClients          150
            MinSpareThreads      25
            MaxSpareThreads      75
            ThreadLimit          64
            ThreadsPerChild      25
            MaxRequestsPerChild   0

           KeepAlive On
           #MaxKeepAliveRequests 500
           #KeepAliveTimeout 3
           #ThreadsPerChild 25
           #MaxRequestWorkers 400
           #StartServers 16
           #MinSpareThreads 200
           #MaxSpareThreads 400
           #MaxConnectionsPerChild 100000
        </IfModule>

</IfModule>


        <IfModule mod_cache_disk.c >
                # Apache Cache
                # CacheQuickHandler off
                # ---------------------
                # In this case, each request will reach Apache server
                # and only then hit the cache. This is useful in case
                # you want to do some kind of authentication before sending response.
                #
                # CacheQuickHandler on
                # --------------------
                # Cache will be placed before the server. In this case, the request
                # will first hit the cache. If there is no/expired cache entry,
                # then the request will be sent to server.

                CacheQuickHandler off
                CacheLock on
                CacheLockPath /tmp/mod_cache-lock
                CacheLockMaxAge 5
                CacheIgnoreHeaders Set-Cookie
                CacheRoot /var/cache/apache2/mod_cache_disk
                <Location />
                    CacheEnable disk
                    CacheHeader on
                    CacheDefaultExpire 800
                    CacheMaxExpire 64000
                    CacheIgnoreNoLastMod On
                    ExpiresActive on
                    ExpiresDefault A300
                    CacheReadSize 102400
                    CacheReadTime 1000
                </Location>
        </IfModule>

Does it work without the proxy?

The initial design was with the reverse proxy. It is not known if Kibana works without the proxy.

The mobile phone is usually set to both WiFi and mobil. Until recently, I never noticed when WiFi was "off" and only mobil was "on" that Kibana would not load. Kibana hangs then times out.

Mod_cache_disk has been removed. Mod_deflate and mpm_event_module remain as shown below.

Using tail -f on Kibana access log these setting show Kibana loading then halting for several minutes (?), then begins loading again and the login screen appears.

I'll get the timing and check if the setup is repeatable. However, if you or anyone know of any tweaks to load Kibana faster please let me know.

Thanks!

 34         <IfModule mod_deflate.c>
 35                 AddOutputFilterByType DEFLATE application/javascript
 36                 AddOutputFilterByType DEFLATE application/rss+xml
 37                 AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
 38                 AddOutputFilterByType DEFLATE application/x-font
 39                 AddOutputFilterByType DEFLATE application/x-font-opentype
 40                 AddOutputFilterByType DEFLATE application/x-font-otf
 41                 AddOutputFilterByType DEFLATE application/x-font-truetype
 42                 AddOutputFilterByType DEFLATE application/x-font-ttf
 43                 AddOutputFilterByType DEFLATE application/x-javascript
 44                 AddOutputFilterByType DEFLATE application/xhtml+xml
 45                 AddOutputFilterByType DEFLATE application/xml
 46                 AddOutputFilterByType DEFLATE font/opentype
 47                 AddOutputFilterByType DEFLATE font/otf
 48                 AddOutputFilterByType DEFLATE font/ttf
 49                 AddOutputFilterByType DEFLATE image/svg+xml
 50                 AddOutputFilterByType DEFLATE image/x-icon
 51                 AddOutputFilterByType DEFLATE text/css
 52                 AddOutputFilterByType DEFLATE text/html
 53                 AddOutputFilterByType DEFLATE text/javascript
 54                 AddOutputFilterByType DEFLATE text/plain
 55                 AddOutputFilterByType DEFLATE text/xml
 56         </IfModule>
 57 
 58         <IfModule mpm_event_module.c>
 59 
 60             StartServers 3
 61             MinSpareThreads 25
 62             MaxSpareThreads 75
 63             ThreadLimit 64
 64             ThreadsPerChild 25
 65             MaxRequestWorkers 30
 66             MaxConnectionsPerChild 10
 86         </IfModule>

With the previous mentioned setting, the results were mixed.

1st round Kibana loading
DuckDuckGo ~ 25 sec
Chrome ~ 11 sec
Brave ~ hung up

2nd round Kibana loadind
DuckDuckGo ~ hung up
Chrome ~ 35 sec
Brave hung up with message "Setup lifecycle of 'visType Table'
plugin wasn't completed in 10 sec. Consider disabling the plugin
and restart.

Here is the log of access-kibana.log. The timeout occurs after these when bootstrap.js attempts to load.

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:20:10:08 -0500] "GET /login?next=%2F HTTP/1.1" 200 29432 "https://kibana.example.com/login?next=%2F" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.116 Mobile/15E148 Safari/604.1"

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:20:10:09 -0500] "GET /bootstrap.js HTTP/1.1" 304 598 "https://kibana.example.com/login?next=%2F" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.116 Mobile/15E148 Safari/604.1"

Now UseCanonicalName on

Displaying "Loading Elastic" splash screen. However the login is boxes are not displayed. It hung up. Below is how far the loading got.

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:22:07:53 -0500] "GET /app/home HTTP/1.1" 302 5787 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15"

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:22:07:53 -0500] "GET /login?next=%2Fapp%2Fhome HTTP/1.1" 200 29432 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15"

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:22:07:53 -0500] "GET /bootstrap.js HTTP/1.1" 200 4038 "https://kibana.example.com/login?next=%2Fapp%2Fhome" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15"

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:22:07:54 -0500] "GET /42747/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.@elastic.js HTTP/1.1" 200 91228 "https://kibana.example.com/login?next=%2Fapp%2Fhome" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15"

kibana.example.com:443 xx.xx.xx.xx - - [11/Jan/2022:22:07:54 -0500] "GET /42747/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js HTTP/1.1" 200 72185 "https://kibana.example.com/login?next=%2Fapp%2Fhome" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 DuckDuckGo/7 Safari/605.1.15"

Solved!

While banning login attempts, a fail2ban filter was banning ip addresses that logged "GET /login" and kibana loads as expected

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