-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
bundle clean force error #269
Comments
It looks like #268 and #269 are both related to this issue. I had a similar experience, build which was on I went looking for a tag that might refer to that previous version of As commenters in the related thread have already stated, tags (at least some tags) should be immutable, it is very bad for breaking changes to erase historical images that worked, rendering derivative Dockerfiles unusable. I noticed an appeal for funding when I was in there looking at those commits I wanted to roll back. I understand open source is on a volunteer basis and hope you will not take these comments the wrong way, maintainers. My intention is to make the project better for everyone, the easiest way to solve this issue going forward IMHO is to add a tag at build/push time which includes the commit sha, so that older images can be referenced and inspected for differences rather than overwriting them when a new image is built. It would be nice to honor semver, but this will make progress within the docker build harder to achieve, when the image tag used is meant to reflect the version of Jekyll included from upstream. I see how this could make it difficult to do versioning effectively. There are still things you can do that make sure downstream pipelines using this image won't break unrecoverably with new image builds, like ensuring every image pushed will get a unique and permanent tag so it will be preserved historically, and guaranteeing historical tags will only be removed in extreme cases, not casually overwritten and discarded every time a new build is undertaken. (Edit: upon reflection, I think I understand this was not a casual or everyday issue.) But that horse has left the barn, that old image is gone, and the version waters are all muddy now. So as for understanding what changed in the build and how to restore compatibility in the 4.0.0 line, while preserving the Dockerfile author's intended updates, I haven't done enough digging to understand what change should happen next, or if it makes sense to just go ahead and overwrite 4.0.0 again with a fix of some kind. |
This issue has been fixed. Technically we still bundle clean, or try to, we just ignore the error and hide it because we don't care if it succeeds, we just wanna try on your behalf. |
Has this fix been rolled out into production or am I doing something wrong such that the applied fix is not working for me? I have a Unfortuantely, this caused a permissions error I hadn't encountered before which I believe is the same as what is described #272. In my case, setting Now I'm in a catch-22, because if I work around the permission issues by running I can't immediately see where in the Any help would be appreciated as I try to restore our CI/CD systems as soon as possible. |
The problem is you are setting the Jekyll user to UID/GID = 0 and then it's chowning the folder to UID/GID 0 thus killing your permissions, don't change Jekyll's UID/GID, let the image set it when it runs if you need a different one via the environment variables provided to do so. |
Thanks for the quick reply! And I'm sorry, but I'm not sure I understand your answer. Maybe I was unclear, let me try to explain my situation again. I have a Dockerfile that is based on # Execute the original image's own entrypoint.
/usr/jekyll/bin/entrypoint jekyll build -d "$JEKYLL_DATA_DIR" "$INPUT_JEKYLL_BUILD_OPTS" The idea here is that I thought it would be possible to simply call up to the official Jekyll Builder entry point, and this did work for quite a while, until today. My own entry point script needs to run as
If I'm not mistaken, this is the same permissions issue as described in the issue I linked earlier. Notice, importantly, that this permissions error occurs when My understanding of your reply is that I should ensure that the One question I have is: Can you tell me what you are referring to when you say that "it is changing the folder to UID/GID 0"? What is the "it" in that sentence referring to? So, since I am already not setting the Jekyll user or group ID to zero, and yet I'm still facing permissions issues in the default configuration, I am unsure what I might be doing wrong that prevents my builds from succeeding. When I attempt to solve the permissions error by explicitly setting Is there a third option? Edited to add: For the moment, I've simply pinned our builds to |
So I took another stab at this this evening and I'm fairly certain that unless I'm just totally misusing the container, there's a problem that causes the build to fail with the Some of the permissions errors I was having turned out to be a caching issue where my GitHub Actions runners were not pulling down the correct image. After resolving that by pinning my base container image with a digest as described here, I'm no longer seeing any permissions errors but once again hitting this The error is certainly caused by the fact that when I execute the entrypoint script, the following sequence of events occurs:
That code branch always fails ( I can not see any way around this sequence of events that works in all cases and avoids the As usual, thanks so much for your help. |
I'll see if I can replicate it and take a look today or tomorrow! |
Many thanks for looking into this for us all. Please let me know if there is any more information you need that you think I can provide and I will do my best to get it to you. |
I arrived here because of the same issue when building a Docker image from https://github.com/cobbler/cobbler.github.io/blob/master/Dockerfile Replacing the first line to |
Description
Since the update to v4 a few days ago (April 23rd?) we encountered a similar error to #268.
After making including the chown change in our pipeline we are now encountering an issue
We are running the following commands
Output
Expected
The text was updated successfully, but these errors were encountered: