Performing a yum -y update before installing additional packages breaks httpd
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- devops, infrastructure
Research direction
Start with the Dockerfile reproducer and compare the behavior before and after yum -y update. Read the referenced /usr/libexec/s2i/assemble, /usr/libexec/s2i/run, and /etc/httpd/conf/httpd.conf entry points; the work is done when the image can update and install packages without causing either reported permission error.
Written by the indexing model from the issue text.
Description
Container platform
Podman/Docker
Version
registry.access.redhat.com/ubi9/php-81:9.5
OS version of the container image
el9
Bugzilla, Jira
No response
Description
Performing a yum -y update before installing additional packages breaks httpd
Issues:
1.) Permissions error when updating httpd.conf
STEP 9/10: RUN sed -i "s/^Listen 0.0.0.0:8080/Listen 0.0.0.0:8081/" /etc/httpd/conf/httpd.conf
sed: couldn't open temporary file /etc/httpd/conf/sedTWjtCG: Permission denied
Error: building at STEP "RUN sed -i "s/^Listen 0.0.0.0:8080/Listen 0.0.0.0:8081/" /etc/httpd/conf/httpd.conf": while running runtime: exit status 4
2.) Permission error when starting the container /usr/libexec/s2i/run (at httpd -D FOREGROUND)
(13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
Workaround:
omit yum -y update command
Reproducer
1.)
Dockerfile ->
FROM registry.access.redhat.com/ubi9/php-81:9.5
USER 0
RUN yum -y update && \
yum -y install git && \
yum clean all
USER 1001
RUN mkdir -p /tmp/src/public
RUN echo '<?php\n\necho "Hello World!";\n' > /tmp/src/public/index.php
ENV DOCUMENTROOT=/public
RUN /usr/libexec/s2i/assemble
# permission error here
RUN sed -i "s/^Listen 0.0.0.0:8080/Listen 0.0.0.0:8081/" /etc/httpd/conf/httpd.conf
CMD /usr/libexec/s2i/run
bash ->
podman build -t test -f Dockerfile .
..
...
STEP 9/10: RUN sed -i "s/^Listen 0.0.0.0:8080/Listen 0.0.0.0:8081/" /etc/httpd/conf/httpd.conf
sed: couldn't open temporary file /etc/httpd/conf/sedTWjtCG: Permission denied
Error: building at STEP "RUN sed -i "s/^Listen 0.0.0.0:8080/Listen 0.0.0.0:8081/" /etc/httpd/conf/httpd.conf": while running runtime: exit status 4
2.)
Dockerfile ->
FROM registry.access.redhat.com/ubi9/php-81:9.5
USER 0
RUN yum -y update && \
yum -y install git && \
yum clean all
USER 1001
RUN mkdir -p /tmp/src/public
RUN echo '<?php\n\necho "Hello World!";\n' > /tmp/src/public/index.php
ENV DOCUMENTROOT=/public
RUN /usr/libexec/s2i/assemble
# run error
CMD /usr/libexec/s2i/run
bash ->
podman build -t test .
podman run test
..
...
(13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
- Dominant language
- Shell
- Stars
- 114
- Forks
- 326
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sclorg/s2i-php-container
-
Difficulty 2/5 1-3 hours Newbie friendliness 47/100
sclorg/s2i-php-container#523 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
sclorg/s2i-php-container#470 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sclorg/s2i-php-container#435 · 2 comments · 6 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
sclorg/s2i-php-container#416 · 1 comment ·
-
bug P1
Difficulty 3/5 1-2 days Newbie friendliness 42/100
sclorg/s2i-php-container#404 · 4 comments · 2 reactions ·
All issues in sclorg/s2i-php-container
Similar issues
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·
-
help wanted new command
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tldr-pages/tldr#24151 ·
-
PacReq: Rune IDE Openpackage request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pacstall/pacstall-programs#9402 ·
-
[BUG] ci: the first prefetch-images.sh call runs before shard.txt exists, so it is always a no-op Openbug github-actions
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
update-request
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/MINGW-packages#31768 ·