Open
Description
Version
redhat-actions/buildah-build@v2
Describe the bug
Building images by action failed on F41 and CentOS Stream 10
Is it somehow Selinux related or a problem with buildah?
Installation of packages works fine, but the other action failed.
[215/217] Installing perl-Module-Runtim 100% | 15.4 MiB/s | 31.5 KiB | 00m00s
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
[216/217] Installing glibc-gconv-extra- 100% | 90.0 MiB/s | 8.1 MiB | 00m00s
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
[217/217] Installing perl-FCGI-1:0.82-1 100% | 629.9 KiB/s | 95.8 KiB | 00m00s
Complete!
Found VERSION 5.40
Removed 24 files, 14 directories. 0 errors occurred.
STEP 7/11: COPY ./s2i/bin/ $STI_SCRIPTS_PATH
STEP 8/11: COPY ./root/ /
STEP 9/11: RUN mkdir -p ${APP_ROOT}/etc/httpd.d && sed -i -f ${APP_ROOT}/etc/httpdconf-fed.sed /etc/httpd/conf/httpd.conf && chmod -R og+rwx /var/run/httpd /run/mod_fcgid ${APP_ROOT}/etc/httpd.d && chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && rpm-file-permissions
chmod: changing permissions of '/var/run/httpd/htcacheclean': Operation not permitted
chmod: changing permissions of '/opt/app-root/etc/httpd.d/50-mpm.conf.template': Operation not permitted
error building at STEP "RUN mkdir -p ${APP_ROOT}/etc/httpd.d && sed -i -f ${APP_ROOT}/etc/httpdconf-fed.sed /etc/httpd/conf/httpd.conf && chmod -R og+rwx /var/run/httpd /run/mod_fcgid ${APP_ROOT}/etc/httpd.d && chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && rpm-file-permissions": error while running runtime: exit status 1
time="2024-09-30T12:29:40Z" level=error msg="exit status 1"
Error: Error: buildah exited with code 1
Trying to pull quay.io/fedora/s2i-base:41...
Getting image source signatures
Steps to reproduce, workflow links, screenshots
See job https://github.com/sclorg/s2i-perl-container/actions/runs/11106097918/job/30853687487
It worked for F40 and C9S, but not in F41 and C10S.