Comments (8)
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.
--2014-02-03 10:20:55-- 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... 302 Found
Location: http://localhost/users/sign_in [following]
--2014-02-03 10:20:55-- http://localhost/users/sign_in
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'
0K .. 347M=0s
2014-02-03 10:20:56 (347 MB/s) - `/dev/null' saved [2589]
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.
from docker-gitlab.
OK, I will try that.
This is what I see in unicorn.stderr.log:
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)
from docker-gitlab.
Via docker logs:
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.
from docker-gitlab.
@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.
from docker-gitlab.
I restarted the (separate) mysql docker and the "is blocked because of many connection errors" message disappeared.
Now I get:
Access denied for user 'gitlab'@'172.17.42.1' (using password: YES)
Looking into that now...
from docker-gitlab.
@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.
from docker-gitlab.
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.
from docker-gitlab.
@riaanvddool glad to hear that the issue is resolved for you.
from docker-gitlab.
Related Issues (20)
- Unable to fetch commit when using --depth 1 mode
- GitLab Critical Security Release: 16.8.1, 16.7.4, 16.6.6, 16.5.8 HOT 1
- How to backup GitLab in Kubernetes? Do you have any good ideas, templates, or documentation? I'm not very familiar with Kubernetes, so please help me. HOT 2
- Backups not functioning in v16.8.1 HOT 3
- [Question] How to change the clone link from localhost to my domain? HOT 2
- Support setting `global_time_tracking_report` HOT 1
- I have set up an auto-backup strategy in Kubernetes, but it seems not to take effect. How can I troubleshoot the problem? HOT 9
- How is openid_connect_signing_key handled? HOT 1
- level=error correlation_id= duration_ms=0 error="badgateway: failed to receive response: dial unix /home/git/gitlab/tmp/sockets/gitlab.socket: connect: no such file or directory
- Please support pages namespace_in_path
- Web log-in broken HOT 2
- missing 16.1.6 and 16.3.7 version needed for upgrade path HOT 14
- postgres (PostgreSQL) 15.1 (Debian 15.1-1.pgdg110+1) image no longer exists HOT 5
- im trying to deploy my flutter web app on github pages
- Unable to upgrade from 16.1.5 HOT 2
- Mailroom fails to start in 17.1.0 HOT 1
- CI failure in github release due to go version of executor HOT 9
- node modules not updated HOT 9
- Backup creation fails since 17.1.0 HOT 2
- Howto clone a repo with https protocol without OAuth HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-gitlab.