Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem: Some issues in ubi8/php-80 base image
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. use S2I to build test phpinfo page application using base image ubi8/php-80
2. try to access it in the browser or in CLI
Actual results: It gives an error message:
---
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
---
Expected results:
It should show phpinfo test page in the browser
Additional info:
Tested same phpinfo test page with ubi8/php-7x it works properly.
Tested same phpinfo test page wtth ubi9/php-80 and it works but still can see below errors in the logs
~~~
chmod: changing permissions of '/var/log/php-fpm': Operation not permitted
chown: changing ownership of '/var/log/php-fpm': Operation not permitted
~~~
ubi8/php-80 gives below error messages:
~~~
In the log I see:
[Tue May 31 17:58:04.381909 2022] [proxy:error] [pid 30] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed
[Tue May 31 17:58:04.381979 2022] [proxy_fcgi:error] [pid 30] [client 10.84.18.1:55758] AH01079: failed to make connection to backend: httpd-UDS
When opening a terminal in the pod, I see there is no folder /run/php-fpm ...
~~~
sambekar, do you see `Operation not permitted` in build logs or in your container logs? I'd appreciate more context for these errors: pods statuses, full logs, etc.
Moving to Unknown as this is not about the image registry. I cannot tell from the provided snippets if it's S2I problem, ubi9/php-80, or works as expected.
This looks like a bug in the PHP 8.0 packages for RHEL8 which we will address.
In the meantime, adding a script as follows in the S2I application should work around the problem:
$ mkdir php-pre-start
$ cat > php-pre-start/fix.sh <<EOF
#!/bin/sh
sed -i "s/mod_php7.c/mod_php.c/" /etc/httpd/conf.d/php.conf
EOF
$
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (New and updated Application Stream container images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:7843
Comment 34Red Hat Bugzilla
2023-09-18 04:38:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days