Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Quickstart fails to spin up adop | registry container restarts forever #288

Open
vikramkunisetty opened this issue Aug 21, 2018 · 0 comments

Comments

@vikramkunisetty
Copy link

Able to reproduce this after finding the same behavior atleast 3-4times now:

Followed the instructions in the quickstart and performed the steps as follows:

  1. Launched an EC2 - Ubuntu t2.micro to spin up ADOP
  2. Installed Docker, Docker-machine, docker-compose
root@ip-172-31-5-91:~# docker-compose --version
docker-compose version 1.22.0, build f46880fe
root@ip-172-31-5-91:~# docker-machine --version
docker-machine version 0.14.0, build 89b8332
root@ip-172-31-5-91:~# docker --version
Docker version 18.06.0-ce, build 0ffa825

git clone https://github.com/Accenture/adop-docker-compose.git
  1. Quikcstart Script:
    ./quickstart.sh -t aws -m adop -c vpc-xxxx -r eu-west-1 -z c -a AAA -s SSS -u prd -p xxxx

    tail of the log:


Creating sensu-server          ... done
* Waiting for the Platform to become available - this can take a few minutes
Jenkins was unavailable, so slept for: 30 secs
Jenkins was unavailable, so slept for: 30 secs
Jenkins was unavailable, so slept for: 30 secs
Jenkins was unavailable, so slept for: 30 secs
Jenkins was unavailable, so slept for: 30 secs
* Loading the Platform
Generating client certificates for TLS-enabled Engine
/root/docker_certs/cert.pem was generated successfully...
/root/docker_certs/ca.pem was generated successfully...
/root/docker_certs/key.pem was generated successfully...
Uploading certificates to Jenkins Slave at: //root/.docker/
* Waiting for Nginx to become available
Nginx was unavailable, so slept for: 5 secs
Nginx was unavailable, so slept for: 5 secs
Nginx was unavailable, so slept for: 5 secs
Nginx was unavailable, so slept for: 5 secs
Nginx was unavailable, so slept for: 5 secs
Nginx was unavailable, so slept for: 5 secs

--see complete log in the attachment.

  1. Stopped this and connected to the machine:
    and found that all the services are up and running except the registry container is restarting forever:
    d3c255fb6e44 registry:2.5.1 "/entrypoint.sh /etc…" 14 minutes ago Restarting (1) 29 seconds ago registry
    Not sure if this could be an issue but this worked only once when upgraded the image version to 2.6 in compose.yml.
  2. docker logs for jenkins, gerrit etc did not work with the below error:
root@adop:~# docker logs jenkins
Error response from daemon: configured logging driver does not support reading
root@adop:~# docker logs jenkins-slave
Error response from daemon: configured logging driver does not support reading
root@adop:~# docker logs registry
Error response from daemon: configured logging driver does not support reading

  1. Tried to restart with more options:
    root@ip-172-31-5-91:~/adop-docker-compose# ./adop compose -m adop init --with-stdout
    Found out the similar issues reported in unable to start the platform #285

--tail of the log:

Recreating sensu-uchiwa          ... done
Recreating sonar                 ... done
* Waiting for the Platform to become available - this can take a few minutes
Jenkins was unavailable, so slept for: 30 secs
Jenkins was unavailable, so slept for: 30 secs
Jenkins was unavailable, so slept for: 30 secs
Error response from daemon: Container 70a70033eb1ddb93f1e6a5f8e4d4bff6145107cfc3aa99f319977e49e0da036f is restarting, wait until the container is running
Jenkins was unavailable, so slept for: 30 secs
Error response from daemon: Container 70a70033eb1ddb93f1e6a5f8e4d4bff6145107cfc3aa99f319977e49e0da036f is restarting, wait until the container is running
Jenkins was unavailable, so slept for: 30 secs
Error response from daemon: Container 70a70033eb1ddb93f1e6a5f8e4d4bff6145107cfc3aa99f319977e49e0da036f is restarting, wait until the container is running
Jenkins was unavailable, so slept for: 30 secs

  1. performed the logs check of Jenkins and found this extract:
root@adop:~# docker logs 70a70033eb1ddb93f1e6a5f8e4d4bff6145107cfc3aa99f319977e49e0da036f
Genarate JENKINS SSH KEY and add it to gerrit
Setting up your default SCM provider - Gerrit...
Generate Sonar authentication token
Generating Sonar Authentication Token
* Waiting for the Sonar user token api to become available - this can take a few minutes
Generating Jenkins Key Pair
Sonar was unavailable, so slept for: 30 secs
Sonar was unavailable, so slept for: 30 secs
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    90  100    90    0     0   2425      0 --:--:-- --:--:-- --:--:--  2432
Traceback (most recent call last):
  File "<string>", line 1, in <module>
KeyError: 'token'

Detailed logs: github_adop.log

used the latest commit on OS Version "16.04.4 LTS (Xenial Xerus)"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant