Giter VIP home page Giter VIP logo

Comments (31)

sameersbn avatar sameersbn commented on May 16, 2024

i sense image corruption. I have triggered a rebuild of sameersbn/gitlab:latest on the trusted build service. The build should be ready in a couple of minutes.

If this does not work then please completely delete the following images from the host
ubuntu:14.04
sameersbn/ubuntu
sameersbn/gitlab
...and then pull the sameersbn/gitlab image from the index.

This issue seems to happen whenever there is a corrupt build or a corrupt intermediate image. I don't think there is any way to tell where the corruption has occurred. The only way I rid myself of this issue is to nuke everything.

from docker-gitlab.

hami9x avatar hami9x commented on May 16, 2024

Thanks a lot, I deleted all the images, repulled and the problem is gone now.

from docker-gitlab.

repole avatar repole commented on May 16, 2024

I too am having this issue with 6.8.2. No amount of removing the image and repulling seems to solve it.

6.8.0 seems to work just fine though.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@repole when removing images you should remove all ubuntu 14.04 images, this includes ubuntu:14.04, ubuntu:latest and ubuntu:trusty.

You may also choose to remove all images that may be present in the host if you can.

from docker-gitlab.

repole avatar repole commented on May 16, 2024

So I have a totally clean install of ubuntu and docker. No other images. Should I be pulling these Ubuntu images prior to pulling yours?

It seems that when I get the github repo and manually build from there, the ubuntu images are getting pulled as well, but when I docker pull sameersbn/docker-gitlab:6.8.2, the only image that ends up being built is docker-gitlab, none of the ubuntu stuff.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

the ubuntu and sameersbn/ubuntu images would also be pulled. But thats ok, just a
docker pull sameersbn/gitlab:6.8.2 should suffice

from docker-gitlab.

repole avatar repole commented on May 16, 2024

I've done a remove of 6.8.2 five times now and repulled, each time totally clearing my images/containers, and I'm still getting the /bin/cp error.

6.8.1 and 6.8.0 seem to run fine, but when actually browsing to localhost:10080 I just get an nginx page (many hours after having started the container).

Pulling from github and building eventually gets me an error:
sudo: unable to execute /bin/mkdir: Permission denied
The command [/bin/sh -c /app/setup/install] returned a non-zero code: 1

I'm on Ubuntu 14.04, I'll probably try with Ubuntu 13 in a bit if I can't figure anything out here.

Any logs or things that I can send along that may be of use?

Also thanks for the support and fast responses, really appreciate it.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@repole the error you mentioned above is in fact the result of image corruption. I would have triggered a rebuild of the 6.8.2 image, but at the moment there is some issue with the docker build service due to which i cannot tag versions on images.

If you are building the image, then remove all the existing images and build from source.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

p.s. you can also try the sameersbn/gitlab:latest, its essentially the 6.9.0 version of gitlab. it hasn't been tagged as 6.9.0 because of the same trusted build issue.

from docker-gitlab.

repole avatar repole commented on May 16, 2024

Latest also gives me the bin/cp issue, have tried it a good five times now with a totally clean install.

Every docker pull or github build I've done has been on a clean docker/ubuntu install, I've always cleared out all images and containers after, so I'm at a bit of a loss.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@repole i understand your frustration.
My final suggestion would be to build from the source. But before you do so, edit the Dockerfile and change the line FROM sameersbn/ubuntu:14.04.20140519 to FROM sameersbn/ubuntu:latest

This will resolve the problem if the issue is coming from the sameersbn/ubuntu:14.04.20140519 image build.

from docker-gitlab.

repole avatar repole commented on May 16, 2024

Gave that a shot, unfortunately same error:

Successfully installed bundler-1.6.2
1 gem installed
---> c38e8ff8324b
Step 3 : ADD assets/setup/ /app/setup/
---> 083da30c087e
Step 4 : RUN chmod 755 /app/setup/install
---> Running in ad0b7e950775
---> e7b9dbb19305
Step 5 : RUN /app/setup/install
---> Running in ed487c6b4133
Adding user git' ... Adding new groupgit' (1000) ...
Adding new user git' (1000) with groupgit' ...
Creating home directory /home/git' ... Copying files from/etc/skel' ...
passwd: password expiry information changed.
sudo: unable to execute /bin/mkdir: Permission denied
2014/05/24 10:40:33 The command [/bin/sh -c /app/setup/install] returned a non-zero code: 1

I'll probably try a few more things and keep tinkering, and if no success, I'll try waiting until the next release. Really do appreciate all the help though, regardless of the outcome.

from docker-gitlab.

repole avatar repole commented on May 16, 2024

Just as a quick update, everything seems to be working swimingly with Ubuntu 12.04 as my OS. Suppose it's a compatibility issue with 14.04.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@repole I am not sure about this. I have installed gitlab on ubuntu 14.04 server as well as desktop editions without any issues.

from docker-gitlab.

outrunthewolf avatar outrunthewolf commented on May 16, 2024

Same issue:

Step 5 : RUN /app/setup/install
 ---> Running in 8ca20ac14004
Adding user `git' ...
Adding new group `git' (1000) ...
Adding new user `git' (1000) with group `git' ...
Creating home directory `/home/git' ...
Copying files from `/etc/skel' ...
passwd: password expiry information changed.
sudo: unable to execute /bin/mkdir: Permission denied
2014/05/28 11:18:40 The command [/bin/sh -c /app/setup/install] returned a non-zero code: 1

I'm on 13.04
Building from source
Using latest

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@outrunthewolf have you tried sameersbn/gitlab:latest from the docker index? Just today I updated one of my servers with sameersbn/gitlab:latest from the index with no problems. If you still witness the issue with this version (from the index), then I think it might have something to do with the host.

I am guessing it could be related to selinux, but I cannot be sure. Do you have selinux installed on your ubuntu 13.10 host? As far as I can tell, selinux is not installed by default on ubuntu.

Besides, have you tried deleting all existing images since this issue also appears if an intermediate image suffers some sort of corruption?

This issue is turning out to be a pain!

from docker-gitlab.

outrunthewolf avatar outrunthewolf commented on May 16, 2024

@sameersbn ha yeah sorry to compound the problem.

No it doesn't look like selinux is installed

Yes I did use sameersbn/gitlab:latest

And yes I made sure I had a clean image

I have however spun up a droplet with 12.04 running and the install went completely fine.

Do you have an idea of where the issue lies?

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@outrunthewolf no idea.. just created an account on digital ocean. will check whats going on.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@outrunthewolf are you using the ubuntu packaged docker.io package or manually installing docker using the official docker ppa?

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@repole @outrunthewolf

I was able to track down the issue in your use case. Basically the stock ubuntu docker.io package seems to cause the issue.

Here's what I did, first I tried with the docker.io package:

apt-get install -y docker.io
docker.io build --tag='sameersbn/gitlab' .

The result of this was

Adding user `git' ...
Adding new group `git' (1000) ...
Adding new user `git' (1000) with group `git' ...
Creating home directory `/home/git' ...
Copying files from `/etc/skel' ...
passwd: password expiry information changed.
sudo: unable to execute /bin/mkdir: Permission denied
2014/05/28 09:06:25 The command [/bin/sh -c /app/setup/install] returned a non-zero code: 1

So I decided to use the latest docker packages straight from http://docs.docker.io/installation/ubuntulinux/#ubuntu-precise-1204-lts-64-bit

apt-get purge docker.io
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
apt-get update
apt-get install lxc-docker

Then purge all existing containers and images and build docker-gitlab

docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker build --tag='sameersbn/gitlab' .

And the image builds without any issues.

So it looks like the issue is cause due to the default docker.io ubuntu package. So you know what that means!

from docker-gitlab.

outrunthewolf avatar outrunthewolf commented on May 16, 2024

@sameersbn 👍

I ran the index on Digital Oceans Ubuntu/Docker VPS which I assume uses the stock ubuntu docker package and it failed.

I then spun up a VPS and built docker from source, which worked. Nice one 💥 ⭐

So this is an issue with the Ubuntu package and not a specific Ubuntu itself?

from docker-gitlab.

georgkreimer avatar georgkreimer commented on May 16, 2024

@sameersbn Maybe you should mention in the README that the default docker.io package doesn't work here. Just had the same issue, but following the steps above fixed it.

from docker-gitlab.

outrunthewolf avatar outrunthewolf commented on May 16, 2024

@georgkreimer Its a worthy addition. Maybe a p/r?

from docker-gitlab.

georgkreimer avatar georgkreimer commented on May 16, 2024

never mind. just saw it... it's actually in there. all the way at the end https://github.com/sameersbn/docker-gitlab#reporting-issues

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@outrunthewolf

So this is an issue with the Ubuntu package and not a specific Ubuntu itself?

No don't think its an issue with ubuntu. The problem is the docker.io package in the ubuntu repo is pretty dated. Maybe it has something to do with apparmor which is probably taken care of in newer docker versions.

Docker is a fast evolving projects, it makes sense to have whatever up-to-date version you can get your hands on. For ubuntu, it would mean installing docker using the docker.io repository. For RPM based distros, redhat is doing an excellent job of updating the docker packages and making everything work with selinux.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@georgkreimer

it's actually in there. all the way at the end

maybe I'll move the section at the beginning of the README (will probably save people a lot of time).

from docker-gitlab.

halkeye avatar halkeye commented on May 16, 2024

I've installed lxc-docker (14.04) and still have the same issue. Is there any indication on what the issue is? Does building the image help?

halkeye@barkdog ~ $ docker run --name='gitlab' -it --rm -p 10022:22 -p 10080:80 -e 'GITLAB_PORT=10080' -e 'GITLAB_SSH_PORT=10022' sameersbn/gitlab:7.1.1
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
Starting openssh server...
sudo: unable to execute /bin/cp: Permission denied
halkeye@barkdog ~ $ docker --version
Docker version 1.1.2, build d84a070

from docker-gitlab.

halkeye avatar halkeye commented on May 16, 2024

Ah, deleting the image and reinstalling seemed to fix

from docker-gitlab.

cmoulliard avatar cmoulliard commented on May 16, 2024

Problem is still there with image 7.9.4

docker logs gitlab
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.

Here is the instructions used to launch the container

docker run -itdP --name redis sameersbn/redis
docker run -itdP --name gitlab -e 'DB_TYPE=mysql' -e 'DB_HOST=192.168.59.103' -e 'DB_NAME=gitlabhq_production' -e 'DB_USER=gitlab' -e 'DB_PASS=xxxxx' -e 'GITLAB_SIGNUP=true' -e 'GITLAB_SSH_PORT=10022' -e 'GITLAB_PORT=10080' -p 10022:22 -p 10080:80 --env GITLAB_ROOT_PASSWORD=$GITLAB_PASSWORD --link redis:redisio --privileged sameersbn/gitlab:$GITLAB_VERSION

where $GITLAB_VERSION = 7.9.4

from docker-gitlab.

sameersbn avatar sameersbn commented on May 16, 2024

@cmoulliard the invoke-rc.d: policy-rc.d denied execution of restart. is expected when the container is started for the first time. Does the container exit at that point?

In case you are using redhat based or any selinux enabled host, then it could be because if the security context. I would suggest mounting a volume for the data directory and apply the selinux policy as described in the data volume section of the readme

btw, the docker flags -it are not compatible with -d. You should use either one.

from docker-gitlab.

AdamDanischewski avatar AdamDanischewski commented on May 16, 2024

I had this problem, I didn't "fix it", yet worked around it simply starting the sshd daemon on my own - instead of using the services/init.d/upstart. I recommend you test out starting sshd on your own (use the fully qualified path to sshd from root) and start it with -Dd to keep it from daemon'izing into the background and it will print debug information. If that's working fine, you can implement the workaround (starting it on your own) while you continue to search for the solution to the policy/upstart/init.d interactions.

from docker-gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.