Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build-and-push action is failing on file permissions #321

Open
phracek opened this issue Sep 30, 2024 · 0 comments
Open

Build-and-push action is failing on file permissions #321

phracek opened this issue Sep 30, 2024 · 0 comments

Comments

@phracek
Copy link
Member

phracek commented Sep 30, 2024

During the build and push action, there is an issue with changing file permissions.
This error occurs on Fedora, and CentOS Stream 10 for version 5.40

The error is here:

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
Copying blob sha256:e5e20b011aa30b28103fb0edee61cfed3b8c9b86585456e84db983ae27efb307
Copying blob sha256:562b7629469303e0c8fe25a6043976f3148aa2255037f877189a3f4ebade16af
Copying blob sha256:36f2da144565886d76790b4e55c6870503b56062c0b234fb2dd283cb72bfd5b4
Copying blob sha256:562b7629469303e0c8fe25a6043976f3148aa2255037f877189a3f4ebade16af
Copying blob sha256:e5e20b011aa30b28103fb0edee61cfed3b8c9b86585456e84db983ae27efb307
Copying blob sha256:36f2da144565886d76790b4e55c6870503b56062c0b234fb2dd283cb72bfd5b4
Copying config sha256:542b72d11de96698a404e31485463e8c0f20b928faaaa93b3b9411aa86d468cf
Writing manifest to image destination

The tests are PASSED like can be see in this pull request #320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant