Ad Widget

Collapse

zabbix 4.4 frontend 503 error for assests

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PStoner
    Junior Member
    • Feb 2020
    • 5

    #1

    zabbix 4.4 frontend 503 error for assests

    I am trying to setup a zabbix server, to which I will eventually connect remote agent hosts. I installed zabbix 4.4 using the rpm packages on a CentOS 7 server. After configuring the MySql database, the zabbix-server.conf, etc. I open a browser and receive some weird issues.

    The first issue, opening http://[host ip address]/zabbix, returns `The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.`

    If I then try http://[host ip address]/zabbix/index.php, I see the screen but there is no styling.

    Click image for larger version

Name:	Zabbiz_Screen.png
Views:	5449
Size:	16.4 KB
ID:	396412

    Using Chrome browser I opened the developer tools and see several 503 errors (service unavailable) in the console.

    Click image for larger version

Name:	zabbix_503.png
Views:	5333
Size:	28.8 KB
ID:	396411

    Researching this, I've found where I may have to change the owner and set permissions so I

    Code:
    chown -R apache:apache /usr/share/zabbix
    chmod -R =x /usr/share/zabbix
    That has not helped.

    There are no errors in either /var/log/httpd/access_log or error_log. I've enabled php to log errors, `error_log = /var/log/php/php_errors.log` and created the parent directory /var/log/php, but no file has been generated

    I'm not sure what else to do.

    Setup and Configuration:
    • OS: CentOS Linux release 7.4.1708 Apache: Server version:
    • Apache/2.4.6 (CentOS)
    • PHP: 5.6.40 (cli) (built: Feb 18 2020 08:36:40)

    My /etc/httpd/conf.d/zabbix.conf looks like
    Code:
    #
    # Zabbix monitoring system php web frontend
    #
    
    Alias /zabbix /usr/share/zabbix
    
    <Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Require all granted
    
    <IfModule mod_php5.c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value max_input_vars 10000
    php_value always_populate_raw_post_data -1
    php_value date.timezone America/New_York
    </IfModule>
    </Directory>
    
    <Directory "/usr/share/zabbix/conf">
    Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/app">
    Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/include">
    Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/local">
    Require all denied
    </Directory>
    Everything I have read points to a misconfiguration of Apache, but I think I've been through everything I can think of.

    What am I missing?
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    I think the chown/chmod you did probably did more harm than good. You might want to consider an uninstall/re-install of the zabbix-web package, to get back to default permissions there.

    Nothing from your config jumps out as being "wrong". Did you compare the httpd24-example.conf from zabbix-web to yours, to see if there are any obvious differences that might be the cause of the issue?

    Comment

    • PStoner
      Junior Member
      • Feb 2020
      • 5

      #3
      Tim, thank you for the reply. I completely removed all aspects of zabbix 4.4, except the mysql database, along with all related files. I did a clean install of zabbix 4.0, server agent and web. I have yet to configure the server, but I cannot seem to locate the httpd24-example.conf, you mention. I will post back once I know how 4.0 fairs

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        I'm not using the official Zabbix packages (we've been building our own for a long time), but the Zabbix installation guide mentions

        You will have to do some more manual configuration. This is because we cannot identify the Apache version required for your PHP which makes it impossible for us to provide proper Apache configuration for Zabbix frontend. We have included 2 Apache configuration files to our zabbix-web package, one for Apache 2.2 and another for 2.4, which you would need to integrate with the Apache configuration yourself:
        • httpd22-example.conf
        • httpd24-example.conf
        To get the full path to the files execute:

        Code:
        $ rpm -ql zabbix-web | grep example.conf
        Maybe that's outdated documentation? Hopefully not.

        Comment

        Working...