You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you make requests to the gitlab application before this you will see the 500 errors since the application has not started yet, but should respond correctly once its up. Please check if this is the case.
If you are still seeing this issue then just try restarting the container.
A few people have reported this issue but they have found that restarting the container fixes this issue. I think that its got something with gitlab.
If you are seeing this issue consistently, try running the image without any arguments
docker run -i -t sameersbn/gitlab
If you do not see the issue after this, then maybe it could be a problem with the application arguments.
I, [2014-02-03T11:10:18.193141 #234] INFO -- : Refreshing Gem list
fatal: Not a git repository (or any of the parent directories): .git
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Host '172.17.42.1' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' (Mysql2::Error)
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
Host '172.17.42.1' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
Later on in the log:
--2014-02-03 11:40:19-- http://localhost/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2014-02-03 11:40:19 ERROR 502: Bad Gateway.
Activity
sameersbn commentedon Feb 3, 2014
Please make sure that you are allowing the application enough time to start.
A typical docker log will look like this https://gist.github.com/sameersbn/b5b99fb72ed4eb22908f
You have to wait until you see the below lines in the log.
If you make requests to the gitlab application before this you will see the 500 errors since the application has not started yet, but should respond correctly once its up. Please check if this is the case.
If you are still seeing this issue then just try restarting the container.
A few people have reported this issue but they have found that restarting the container fixes this issue. I think that its got something with gitlab.
If you are seeing this issue consistently, try running the image without any arguments
If you do not see the issue after this, then maybe it could be a problem with the application arguments.
riaanvddool commentedon Feb 3, 2014
OK, I will try that.
This is what I see in unicorn.stderr.log:
riaanvddool commentedon Feb 3, 2014
Via docker logs:
Later on in the log:
sameersbn commentedon Feb 3, 2014
@riaanvddool If the mysql error, can you add the parameter
-e "DB_POOL=10"to the run command and retry. If it still does not work, try increasing the number.
riaanvddool commentedon Feb 3, 2014
I restarted the (separate) mysql docker and the "is blocked because of many connection errors" message disappeared.
Now I get:
Looking into that now...
sameersbn commentedon Feb 3, 2014
@riaanvddool You mean you are using the mysql docker container? i.e. https://github.com/sameersbn/docker-mysql
If yes, then edit the https://github.com/sameersbn/docker-mysql/blob/master/resources/setup/commands.sql file appropriately and rebuild the mysql docker images.
riaanvddool commentedon Feb 4, 2014
I am using https://github.com/orchardup/docker-mysql.
The problem seemed to be with a line in https://github.com/orchardup/docker-mysql/blob/master/run
GRANT ALL PRIVILEGES ON . TO 'root'@'%';
should have read
GRANT ALL PRIVILEGES ON . TO 'root'@'%' WITH GRANT OPTION;
The omission of the "WITH GRANT OPTION" part stopped root from granting privileges to the gitlab user.
I see that in your file (https://github.com/sameersbn/docker-mysql/blob/master/resources/setup/commands.sql) you have the "WITH GRANT OPTION" part.
Thanks for the pointers, I hope this might help someone else.
sameersbn commentedon Feb 4, 2014
@riaanvddool glad to hear that the issue is resolved for you.