-
Notifications
You must be signed in to change notification settings - Fork 497
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
Upgrading to 4.0.0, ruby 2.4, causes unicorn exit status 127 #379
Comments
TODO: Update startup script to detect a change in ruby version and auto clean the old bundle installs. |
@jcormier I've met the same issue, the cause is that I deleted the /srv/docker/redmine/redmine/tmp folder Here is my logs
|
If you remove the /srv/docker/redmine/redmine/tmp folder, you need to make sure you delete the container volume. With docker-compose this can be done by docker-compose down. With regular docker command I'm not sure how to do this but some googling should find the answer. |
I modify |
Correct, we don't check the ruby version when determining if the tmp cache needs to be deleted. If you change the ruby version, make sure to bring down the container |
yeah,I remove the volume and rebuild it works, I can't image why a tmp folder could cause this problem |
The tmp folder contains a cache of the ruby bundle information, so we don't have to reinstall the gems every time the container is started. If you change the ruby version, we need to run through all the bundle install steps again, but we don't because the cache looks like it exists. This issue is still open, since ideally, we would detect that the cache is for the wrong version of ruby and rerun the bundle step. |
my previous experience just build the apt dev packages and gems into image, so it just relys on docker build cache layer, the bad part is the image bigger. |
I can't really speak for @sameersbn original reason for this decision. But I suspect plugins can require additional gems, which would slow everything down on container start. |
Upgrading from redmine:3.4.7 to redmine:4.0.0 causes unicorn to exit repeatedly. This is due to the upgrade from ruby 3.3 to 3.4. The files in /srv/docker/redmine/redmine/tmp/ need to be removed.
With removing old ruby files
Note: Make sure you run docker-compose down or you may end up with errors
The text was updated successfully, but these errors were encountered: