-
Notifications
You must be signed in to change notification settings - Fork 175
3.4.6 docker image write permission error. #137
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
Comments
I have similar problem, but if i load locally saved image from disk (from previous build) - all fine. It seems that last updates raise errors. |
@popovpo Me too, It only happened on my production server and I can't reproduce on another VM. I tried to dump the database and include all datafile, but this works just fine on a brand new installation. |
Here is also happening, do we have any solution? |
The timeline on docker-library/official-images#5054 merge lines up with #136 being "the change" here, but that's almost all making things more permissive (not less), so I can't really see how/where this would've caused this. 😕 |
It probably due to this plugin. https://github.com/scrum2b/scrum2b |
Same issue i am facing with a fresh rebuild services. |
Same problem here with the same error message in the logs. Can I provide any additional information to dig into the problem? |
It would be really helpful to have a way to reproduce so we can debug
what's going on.
|
Ok, I will try my best ;-) The Docker version used is: Docker version 18.06.1-ce, build e68fc7a I use the Redmine 3.4 image in a Docker Compose setup:
As you can see I already added /home/redmine as a volume. I did a chown nobody and one permission error is gone (see log below). The plugins folder contains three plugins:
The log shows up the following:
The image is pulled on a daily base from hub.docker.com and unmodified. If you need any additional information, let me know. |
I've got a first pass for at least the home directory related issues at #141 that could definitely use some testing. 👍 |
#141 fixed the |
@tianon: it looks like any plugin that has a Gemfile triggers the behavior. Digging a bit further atm. |
This looks pretty straightforward: the user redmine cannot write to
The part executed as user redmine with more debugging information:
Basically because of the gosu at https://github.com/docker-library/redmine/blob/master/3.4/docker-entrypoint.sh#L45, the user changes to redmine and this user has no right to do This looks like a basic oversight, but I'm not sure what the right way out of it is. |
Found a fix! unset BUNDLE_APP_CONFIG
unset BUNDLE_PATH Not sure if it's the right one, or how to apply it tho. Maybe it should be |
Also I noticed this: root@92f9cb45f073:/usr/src/redmine# ls -alh /home/redmine/
total 12K
drwxrwxrwt 1 redmine redmine 4.0K Nov 20 10:18 .
drwxr-xr-x 1 root root 4.0K Nov 20 10:17 ..
drwxr-xr-x 3 root root 4.0K Nov 20 10:18 .bundle The directory |
Thanks for the digging! I've finally managed to reproduce with the following simple steps thanks to your additional clues: $ mkdir oh-no
$ echo "gem 'l'" > oh-no/Gemfile
$ docker run -it --rm -v "$PWD/oh-no":/usr/src/redmine/plugins/oh-no:ro redmine:3.4 (Which fails immediately with the same error so I can help investigate, debug, and come up with a fix.) |
Fix up at #142. 👍 |
@tianon: many thanks 🙏 |
My instance is back up after pulling the current image - thanks a lot! 👍 |
Many thanks! |
Hi, I am still facing this problem with the exact same message. I don't know if I messed up somewhere.
And I have one plugin in
Can anyone help? |
As a simpler way to produce the error:
result:
|
@hrmon I used your exact commands but added |
Well I tried it just now and it didn't work. Do you have any idea what can be the problem or how can I investigate it? |
Hi all. I'd like to report a bug for docker image tag 3.4.6. I think it was pushed on Friday Nov 9th or Satturday Nov 10th.
This is the system log:
I think it is because redmine is trying to edit
/usr/local/bundler/config
, but the permission is0644
, and the owner isroot
, group id isstaff
.Thanks in advance!
The text was updated successfully, but these errors were encountered: