Closed milovidov983 closed 5 years ago
I too encountered something similar. Investigating the logs by docker exec -it gitlab11 bash
into the container and looking at tail log/unicorn.stderr.log
revealed that a PID was running or the file /home/git/gitlab/tmp/pids/unicorn.pid
is stale. Check for the existence of the PID and, should it not exist, delete the file through rm /home/git/gitlab/tmp/pids/unicorn.pid
.
In my instance, I suspect that the container is occasionally crashing/restarting due to not having enough memory and sometimes doesn't clean up after itself following the crash.
I suspect that the container is occasionally crashing/restarting due to not having enough memory and sometimes doesn't clean up after itself following the crash.
For us GitLab crashed after 12minutes during the recompiling assets step that is triggered during startup. This was not the case for 11.8.x, but started at 11.9.x
That whole unicorn issue was a side effect of RAM running out and not the underling cause.
Our solution was to move GitLab from a subpath https://ourdomain.com/apps/gitlab/
to a dedicated subdomain https://git.ourdomain.com/
(by not passing --env GITLAB_RELATIVE_URL_ROOT="/apps/gitlab"
). The recompiling assets step is not required at all then. No RAM issues, everything working fine.
Just in case you're also facing this issue @ahills60
That makes sense, @geberl, and I'm now investigating a solution that won't involve recompiling assets. Thank you for pointing me in the right direction — it's most appreciated.
Update: Moving to a solution that didn't invoke the recompiling of assets (i.e. removing my GITLAB_RELATIVE_URL_ROOT
setup) did the trick and has stopped the GitLab crash. Thanks again @geberl.
Is there a fix already? Removing GITLAB_RELATIVE_URL_ROOT
is not an option, it is the reason for me to use this project.
My bad, my memory was full and this caused the error! All is good again
Most likely the problem was really a lack of memory. But in the end, we installed the original Gitlab image.
I try migrate old version sameersbn/docker-gitlab to new. I copied all the gitlab files to a other directory and hooked them into the docker-compose file:
That's what gitlab writes in the logs:
UPDATE Maybe I do not have a memory, but this is not accurate.