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

Left status bar dissapears #3576

Closed
mzac opened this issue Sep 10, 2018 · 4 comments
Closed

Left status bar dissapears #3576

mzac opened this issue Sep 10, 2018 · 4 comments
Labels
needs-feedback We'll only proceed once we hear from you again

Comments

@mzac
Copy link

mzac commented Sep 10, 2018

Expected Behavior

Left status bar text should be always visible

Current Behavior

After a few minutes of having Icingaweb2 open in Chrome, the left text dissapears

Possible Solution

I'm guessing it could be something wrong with my Apache/fpm configuration but I have double checked everything and the config looks good

Steps to Reproduce (for bugs)

  1. Open Icingaweb2
  2. Left statusbar is good
  3. A few minutes later all text is gone
  4. Open chrome inspector and see raw PHP

Context

Need to reload the page to get the text to come back

Your Environment

  • Icinga Web 2 version and modules (System - About): 2.6.1, monitoring
  • Version used (icinga2 --version): r2.9.1-1
  • Operating System and version: Redhat 7
  • Enabled features (icinga2 feature list): api checker command ido-mysql mainlog notification statusdata
@mzac
Copy link
Author

mzac commented Sep 10, 2018

isb-1
isb-2

@mzac
Copy link
Author

mzac commented Sep 10, 2018

[root@icinga-dev1 conf.d]# cat icingaweb2.conf
NameVirtualHost *:80

<VirtualHost *:80>
        ServerName icinga-dev1.lab.local
        Redirect permanent / https://icinga-dev1.lab.local/
</VirtualHost>

<VirtualHost *:443>
        ServerName icinga-dev1.lab.local

        DocumentRoot /usr/share/icingaweb2/public

        ErrorLog /var/log/httpd/icingaweb2_error_log
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
        CustomLog /var/log/httpd/icingaweb2.log combined
        LogLevel warn

        SSLEngine on
        SSLProtocol all -SSLv2 -SSLv3
        SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
        SSLCertificateFile /etc/pki/tls/certs/<removed for github>
        SSLCertificateKeyFile /etc/pki/tls/private/<removed for github>

        SSLCertificateChainFile /etc/pki/tls/certs/<removed for github>
        SSLCACertificateFile /etc/pki/tls/certs/<removed for github>

        <Files ~ "\.(cgi|shtml|phtml|php3?)$">
            SSLOptions +StdEnvVars
        </Files>

        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0

        CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

        LimitRequestLine 4194304

#       Alias /icingaweb2 "/usr/share/icingaweb2/public"

        <IfVersion < 2.4>
                # Forward PHP requests to FPM
                SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
                <LocationMatch "^/(.*\.php)$">
                        ProxyPassMatch "fcgi://127.0.0.1:9000/usr/share/icingaweb2/public/$1"
                </LocationMatch>
        </IfVersion>

        <Directory "/usr/share/icingaweb2/public">
                SSLRequireSSL
                Options SymLinksIfOwnerMatch
                AllowOverride None

                DirectoryIndex index.php

                <IfModule mod_authz_core.c>
                        <RequireAll>
                                Require all granted
                        </RequireAll>
                </IfModule>

                <IfModule !mod_authz_core.c>
                        Order allow,deny
                        Allow from all
                </IfModule>

                SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"

                EnableSendfile Off

                <IfModule mod_rewrite.c>
                        RewriteEngine on
                        RewriteBase /
                        RewriteCond %{REQUEST_FILENAME} -s [OR]
                        RewriteCond %{REQUEST_FILENAME} -l [OR]
                        RewriteCond %{REQUEST_FILENAME} -d
                        RewriteRule ^.*$ - [NC,L]
                        RewriteRule ^.*$ index.php [NC,L]
                </IfModule>

                <IfModule !mod_rewrite.c>
                        DirectoryIndex error_norewrite.html
                        ErrorDocument 404 /error_norewrite.html
                </IfModule>

                <IfVersion >= 2.4>
                        # Forward PHP requests to FPM
                        SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
                        <FilesMatch "\.php$">
                                SetHandler "proxy:fcgi://127.0.0.1:9000"
                                ErrorDocument 503 /error_unavailable.html
                        </FilesMatch>
                </IfVersion>
        </Directory>
</VirtualHost>

@lippserd
Copy link
Member

Hi,

I do think that this is related to your Apache/FPM config because you only receive plain PHP code after a while. For debugging this you could keep track of the network requests of Web 2 and try to correlate requests that return plain PHP with your Webserver's and FPM's debug and access logs. We're looking for menu (layout/menu) requests here. Hope this helps.

Best,
Eric

@lippserd lippserd added the needs-feedback We'll only proceed once we hear from you again label Nov 14, 2018
@brunomendola
Copy link

Hi, just to say that I solved by cleaning the browser cache.

@lippserd lippserd closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback We'll only proceed once we hear from you again
Projects
None yet
Development

No branches or pull requests

3 participants