[ZBX-22121] Zabbix Web container fails to start after installing OS patches (likely related to PHP and PHP-FPM) Created: 2022 Dec 22  Updated: 2022 Dec 26  Resolved: 2022 Dec 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.2.5
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Steve Assignee: Alexey Pustovalov
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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:

```

[root@zabbix 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.



 Comments   
Comment by Alexey Pustovalov [ 2022 Dec 23 ]

What you do not like with currently installed PostgreSQL client?

Comment by Steve [ 2022 Dec 24 ]

The old client had some vulnerabilities, but they actually should be fixed now as per https://support.zabbix.com/browse/ZBX-21727 but I just never removed that step from my Dockerfile.

 

But it's not the postgres install part that is the issue here, it is doing the microdnf update, which is updating PHP and PHP FPM (I believe).

Comment by Alexey Pustovalov [ 2022 Dec 26 ]

Also you are trying to install EL7 package on OL8

Generated at Sun Jul 06 06:28:47 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.