-
Notifications
You must be signed in to change notification settings - Fork 12
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
Not possible to restart #3
Comments
These problems really depends on the platform you are running on (boot2docker, Ubuntu VM, etc.) and I cannot yet find a way to reliably start GitLab without any issues. I am open to ideas in order to improve this. |
I now also encounter the problem when starting a new instance of docker-gitlab. I didn't had these problems before, have you changed something? Also, I don't see how it should matter on which platform I'm running. The promise of Docker is that it runs independently of the platform. Everything the container needs is packaged inside the image, right? For the record, I'm running CoreOS. Error trace: Error executing action
|
The problem is not Docker but Chef, which is the configuration tool used by GitLab to configure itself. Chef needs to run to configure GitLab, but GitLab services must be started for Chef to run (database started most importantly), but GitLab cannot start properly if Chef does not run correctly. If the database started by GitLab services does not start fast enough for Chef to work with it, the reconfigure will fail. There is our race condition that may appear only on specific configurations, hardware, CPU, etc. The only solution I know of is to start the container from bash and manually run the first configurations, like you did, the others are more likely to be OK. docker run [...] gitlab_app bash
# Start GitLab services in the background,
# give it a few seconds to start
/opt/gitlab/embedded/bin/runsvdir-start &
# Start the configuration process
gitlab-ctl reconfigure The main problem is the initial configuration so a restart should normally not be a problem. If it is, and you have already run You will need to run reconfigure manually every time you touch the |
This may by same issue as this one: Try to manually increase kernel shared memory limit:
|
After using the dockerized Gitlab for a couple of days I had to restart the machine. The volumes are mapped onto the host machine. I tried to start the container again, but it failed to start. This is the error I get:
STDERR: psql: FATAL: the database system is starting up
Apr 10 13:40:39 node24.cluster.isd.org docker[14227]: ---- End output of /opt/gitlab/embedded/bin/psql --port 5432 -d template1 -c "CREATE USER gitlab" ----
Apr 10 13:40:39 node24.cluster.isd.org docker[14227]: Ran /opt/gitlab/embedded/bin/psql --port 5432 -d template1 -c "CREATE USER gitlab" returned 2
To me it looks like there is a timing issue, postgres isn't yet completely started but something is trying to connect to it.
After this error happened, the containers keeps running. Then I manually executed the CMD from the Docker file from a shell inside the container ('gitlab-ctl reconfigure & /opt/gitlab/embedded/bin/runsvdir-start'). That worked, Gitlab starts successfully.
The text was updated successfully, but these errors were encountered: