-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Access denied, Timeout and config file problems #96
Comments
@Alas89 First of, please paste your docker run command.
I think you are connecting to the host and not the container. Check if you are able to clone/push/pull the repository using the container ip.
Do do not need to edit these files (unless you know what you are going). Try running the image with the
You need to read the README past the Quick Start instructions. |
@Alas89 also paste the |
@sameersbn At first I want to thank you for your quick response. I`ve tried the things you recommented with a new docker instance by running
gitlab container ip: 172.17.0.2
from host to docker container
After the push didn`t work I tried to clone the repo and then I got this message:
To clone (or work with git) I use EGit (Eclipse plugin) on my laptop. It worked fine for a older gitlab VM but now we changed our server infrastructure to docker and I can`t make it work. I can connect via ssh to the container from my laptop by using ssh I read both README files but didn`t fine something helpfull. If I should not edit the config fiels how should I change the git urls in the webfrontend? I can |
@Alas89 first i recommend that you use the latest image docker run --name='gitlab2000' -h mydomain -it --rm -p 2222:22 -p 80:80 \
-e "GITLAB_PORT=80" -e "GITLAB_SSH_PORT=2222" \
sameersbn/gitlab:latest Typically I would ask you to use the Regarding the Access denied message, have you added your ssh key to your gitlab profile? The configuration parameters are specified using environment variables. For example, if you want to set the gitlab hostname to docker run --name='gitlab2000' -h mydomain -it --rm -p 2222:22 -p 80:80 \
-e "GITLAB_HOST=mydomain" -e "GITLAB_PORT=80" -e "GITLAB_SSH_PORT=2222" \
sameersbn/gitlab:latest All available configuration options are listed in the Available Configuration Parameters section of the README I hope this helps. |
@sameersbn I tried the latest version but run in anothor error:
With sudo:
I`ll try 6.8.0. with the "new" run command an let you know the results. |
@sameersbn So I tried the 6.8.0 the webfronten looks better it shows mydomain but not the differnt ssh port 2222. But still the same acces dined message. I generated the RSA-key an uplodet it, like described in the webfrontend. My commands and the message below. clone
push
|
@Alas89 There could be a couple of reasons this issue could occur.
apt-get purge docker.io
curl -s https://get.docker.io/ubuntu/ | sudo sh
|
@Alas89 P.S. in |
@Alas89 any progress?? |
Hey after trying a lot of things and none of them worked. I made it.
And I can pull and push as its supposed to be. But still I can |
@Alas89 can you provide me the following information?
I will try to replicate your environment and look for the issue source and hopefully fix it. Thanks |
@sameersbn it would be great if you could especially the problem with the 7.0 version or if someone else got the same problem as I. So here are the information you asked for:
I hope this will help and again thanks a lot. |
@Alas89 My installation is identical to yours except for the docker version. You should probably update your docker version. Latest release of docker is It is also possible that an intermediate file system layer might have gotten corrupt. Since there is no way to figure this out if this has been the case, we can remove all gitlab and its dependent image and pull the image from the index again. Some users have faced such issues in the past and were able to resolve it by deleting existing images and pulling the image from the docker again. docker rmi sameersbn/gitlab:6.8.1
docker rmi sameersbn/gitlab:6.8.2
docker rmi sameersbn/gitlab:6.9.0
docker rmi sameersbn/gitlab:6.9.1
docker rmi sameersbn/gitlab:6.9.2
docker rmi sameersbn/gitlab:7.0.0
docker rmi sameersbn/gitlab:7.1.0
docker rmi sameersbn/gitlab:latest
docker rmi sameersbn/ubuntu:14.04.20140508
docker rmi sameersbn/ubuntu:14.04.20140628
docker pull sameersbn/gitlab:7.0.1
``
The above will remove any gitlab images greater than version `6.8.0` and the last line will pull the most recent image. |
Hello Guys,
I`m relatively new in the howl docker world. So I run into some problems with your gitlab docker container.
The first one is: I pulled and run the container. The webfrontend is running fine. I added useres, created a group and project and uploaded my rsa key. But now when I want to pull the project I recive a access denied message.
Second: To fix this I changed the config files from default to:
gitlab-shell/config.yml
# Url to gitlab instance. Used for api calls. Should end with a slash.
gitlab_url: "http://mydomain:80/"
After this I run into a timeout
The third and last problem is when I restart the docker container with docker restart all the changes are restored to the default vallue.
The containers port forwarding is 2222:22 and 80:80.
I used three different RSA-keys all get the access denied.
Thanks ahead for your response. I hope you can help me . I am pretty frustrated now :(
The text was updated successfully, but these errors were encountered: