Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22121

Zabbix Web container fails to start after installing OS patches (likely related to PHP and PHP-FPM)

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Won't fix
    • 6.2.5
    • None
    • Frontend (F)
    • None

    Description

      Steps to reproduce:

      NOTE: We are using zabbix 6.2.3 but I cannot select that version on the form.

       

      We use a slightly customized dockerfile to pull the latest version of web image from dockerhub: zabbix/zabbix-web-apache-pgsql:ol-6.2.3, then we update it:

      ```

      1. install latest version of postgres13.X + update the image
        USER root
        RUN \
            cd /tmp/ && \
            curl https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm -o postgres.rpm && \
            rpm -i postgres.rpm && \
            microdnf remove postgresql && \
            microdnf module reset postgresql && \
            microdnf module enable postgresql:13 && \
            microdnf install postgresql && \
            microdnf update
        USER zabbix
        

        ```

      Result:
      When launching the container, the following logs are produced, and the web container fails to load the UI:

      ```

      [[email protected] zabbix-server]# docker logs zabbix-server-zabbix-web-1
      ** Deploying Zabbix web-interface (Apache) with PostgreSQL database
      ** Using POSTGRES_USER variable from secret file
      ** Using POSTGRES_PASSWORD variable from secret file
      ********************
      * DB_SERVER_HOST: postgres-server
      * DB_SERVER_PORT: 5432
      * DB_SERVER_DBNAME: zabbix
      * DB_SERVER_SCHEMA: public
      ********************
      ** Adding Zabbix virtual host (HTTP)
      ln: failed to create symbolic link '/etc/httpd/conf.d/zabbix.conf': Permission denied
      **** Impossible to enable SSL support for Apache2. Certificates are missed.
      ** Preparing Zabbix frontend configuration file
      ########################################################
      ** Executing supervisord
      2022-12-21 23:56:37,264 INFO Included extra file "/etc/supervisor/conf.d/supervisord_zabbix.conf" during parsing
      2022-12-21 23:56:37,264 INFO Included extra file "/etc/supervisor/conf.d/supervisord_zabbix.conf" during parsing
      2022-12-21 23:56:37,299 INFO RPC interface 'supervisor' initialized
      2022-12-21 23:56:37,299 INFO RPC interface 'supervisor' initialized
      2022-12-21 23:56:37,299 INFO supervisord started with pid 1
      2022-12-21 23:56:37,299 INFO supervisord started with pid 1
      2022-12-21 23:56:38,302 INFO spawned: 'httpd' with pid 16
      2022-12-21 23:56:38,302 INFO spawned: 'httpd' with pid 16
      2022-12-21 23:56:38,304 INFO spawned: 'php-fpm' with pid 17
      2022-12-21 23:56:38,304 INFO spawned: 'php-fpm' with pid 17
      [21-Dec-2022 23:56:38] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:38] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:38] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:38] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:38] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:38] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:38] ERROR: FPM initialization failed
      [21-Dec-2022 23:56:38] ERROR: FPM initialization failed
      2022-12-21 23:56:38,799 INFO exited: php-fpm (exit status 78; not expected)
      2022-12-21 23:56:38,799 INFO exited: php-fpm (exit status 78; not expected)
      AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
      SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
      2022-12-21 23:56:39,036 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:39,036 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:40,040 INFO spawned: 'httpd' with pid 18
      2022-12-21 23:56:40,040 INFO spawned: 'httpd' with pid 18
      2022-12-21 23:56:40,041 INFO spawned: 'php-fpm' with pid 19
      2022-12-21 23:56:40,041 INFO spawned: 'php-fpm' with pid 19
      [21-Dec-2022 23:56:40] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:40] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:40] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:40] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:40] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:40] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:40] ERROR: FPM initialization failed
      [21-Dec-2022 23:56:40] ERROR: FPM initialization failed
      2022-12-21 23:56:40,107 INFO exited: php-fpm (exit status 78; not expected)
      2022-12-21 23:56:40,107 INFO exited: php-fpm (exit status 78; not expected)
      AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
      SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
      2022-12-21 23:56:40,132 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:40,132 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:42,136 INFO spawned: 'httpd' with pid 20
      2022-12-21 23:56:42,136 INFO spawned: 'httpd' with pid 20
      2022-12-21 23:56:42,139 INFO spawned: 'php-fpm' with pid 21
      2022-12-21 23:56:42,139 INFO spawned: 'php-fpm' with pid 21
      [21-Dec-2022 23:56:42] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:42] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:42] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:42] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:42] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:42] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:42] ERROR: FPM initialization failed
      [21-Dec-2022 23:56:42] ERROR: FPM initialization failed
      2022-12-21 23:56:42,221 INFO exited: php-fpm (exit status 78; not expected)
      2022-12-21 23:56:42,221 INFO exited: php-fpm (exit status 78; not expected)
      AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
      SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
      2022-12-21 23:56:42,244 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:42,244 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:45,248 INFO spawned: 'httpd' with pid 22
      2022-12-21 23:56:45,248 INFO spawned: 'httpd' with pid 22
      2022-12-21 23:56:45,250 INFO spawned: 'php-fpm' with pid 23
      2022-12-21 23:56:45,250 INFO spawned: 'php-fpm' with pid 23
      [21-Dec-2022 23:56:45] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:45] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:45] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:45] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
      [21-Dec-2022 23:56:45] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:45] ERROR: unable to bind listening socket for address '/run/php-fpm/www.sock': No such file or directory (2)
      [21-Dec-2022 23:56:45] ERROR: FPM initialization failed
      [21-Dec-2022 23:56:45] ERROR: FPM initialization failed
      2022-12-21 23:56:45,313 INFO exited: php-fpm (exit status 78; not expected)
      2022-12-21 23:56:45,313 INFO exited: php-fpm (exit status 78; not expected)
      AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
      SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
      2022-12-21 23:56:45,343 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
      2022-12-21 23:56:45,343 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
      2022-12-21 23:56:45,354 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:45,354 INFO exited: httpd (exit status 1; not expected)
      2022-12-21 23:56:46,356 INFO gave up: httpd entered FATAL state, too many start retries too quickly
      2022-12-21 23:56:46,356 INFO gave up: httpd entered FATAL state, too many start retries too quickly
      

      ```
      Expected:
      Zabbix web loads correctly. 

      Note we have been patching containers for a while now, and this is the first time we ran into this issue.

      Attachments

        Activity

          People

            dotneft Alexey Pustovalov
            steve.falzon@securityshift.com Steve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: