Sunday, September 13, 2020

Error in Starting Jenkins Service - DevOps

While undergoing Training course on "DevOps Foundations: Continuous Delivery/Continuous Integration" through "Linkedin Learning", i got the below doubt.

I am having issue in starting Jenkins service and test fixture. 

Please help me to solve this problem (Message me on Linkedin if you have solution):

Error screenshot is mentioned below:



Steps to replicate the Error:

1. Desktop Path:
/a/DevOps/Ex_Files_DevOps_Continuous_Delivery_Integration/Exercise Files/Course Environments

2. Docker Command:
$ docker-compose up -d --build

3. Press Enter
Building jenkins
Step 1/8 : FROM jenkins:latest
 ---> cd14cecfdb3a
Step 2/8 : MAINTAINER Ernest Mueller <ernestmueller@theagileadmin.com>
 ---> Using cache
 ---> 1317d7c8dfbf
Step 3/8 : USER root
 ---> Using cache
 ---> 1da2689d4cf2
Step 4/8 : RUN     apt-get update &&     apt-get install -y build-essential &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> c3cf65c20337
Step 5/8 : COPY docker /usr/bin/docker
 ---> Using cache
 ---> 14227a0ef002
Step 6/8 : RUN gpasswd -a jenkins staff
 ---> Using cache
 ---> b4dd3651f510
Step 7/8 : USER jenkins
 ---> Using cache
 ---> 0670a9760139
Step 8/8 : ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"]
 ---> Using cache
 ---> 2fc81a7e74bf
Successfully built 2fc81a7e74bf
Successfully tagged cd_jenkins:latest
Building test_fixture
Step 1/16 : FROM ubuntu:16.04
 ---> 4b22027ede29
Step 2/16 : MAINTAINER Ernest Mueller <ernestmueller@theagileadmin.com>
 ---> Using cache
 ---> f05ea0b1ea99
Step 3/16 : RUN apt-get update && apt-get install -y openssh-server curl jq vim
 ---> Using cache
 ---> 84c5190c3619
Step 4/16 : RUN mkdir /var/run/sshd
 ---> Using cache
 ---> 2c8ce2c83375
Step 5/16 : RUN echo 'root:theagileadmin' | chpasswd
 ---> Using cache
 ---> 5ec95fda248e
Step 6/16 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
 ---> Using cache
 ---> 4d43f68faf23
Step 7/16 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
 ---> Using cache
 ---> a300714bcfa5
Step 8/16 : ENV NOTVISIBLE "in users profile"
 ---> Using cache
 ---> e2994b48d1d1
Step 9/16 : RUN echo "export VISIBLE=now" >> /etc/profile
 ---> Using cache
 ---> 1533725c83db
Step 10/16 : RUN curl -L https://www.opscode.com/chef/install.sh | bash
 ---> Using cache
 ---> d91d92814adc
Step 11/16 : RUN wget https://packages.chef.io/files/stable/chefdk/1.5.0/ubuntu/16.04/chefdk_1.5.0-1_amd64.deb
 ---> Using cache
 ---> aa5b98e2f3c1
Step 12/16 : RUN dpkg -i chefdk_1.5.0-1_amd64.deb
 ---> Using cache
 ---> a3bf53026e4e
Step 13/16 : VOLUME        ["/chef-repo"]
 ---> Using cache
 ---> e478b6a56198
Step 14/16 : EXPOSE 22
 ---> Using cache
 ---> 2f917a84db9e
Step 15/16 : EXPOSE 8888
 ---> Using cache
 ---> 31b84a8588c6
Step 16/16 : CMD ["/usr/sbin/sshd", "-D"]
 ---> Using cache
 ---> ad7c951c921c
Successfully built ad7c951c921c
Successfully tagged test_fixture:latest
Building abao
Step 1/10 : FROM node:alpine
 ---> 0e0d8a11f565
Step 2/10 : MAINTAINER Ernest Mueller <ernestmueller@theagileadmin.com>
 ---> Using cache
 ---> 571cd3b0a5d5
Step 3/10 : RUN apk update && apk add yaml
 ---> Using cache
 ---> 38928796345a
Step 4/10 : RUN npm install -g abao
 ---> Using cache
 ---> 2e86f66f46f7
Step 5/10 : RUN npm install --save-dev chai
 ---> Using cache
 ---> 60eabe55be06
Step 6/10 : RUN mkdir -p /raml
 ---> Using cache
 ---> 9c708212cf63
Step 7/10 : VOLUME /raml
 ---> Using cache
 ---> b9df144ad4a0
Step 8/10 : WORKDIR /raml
 ---> Using cache
 ---> 63bfbc1f2424
Step 9/10 : ENTRYPOINT ["abao"]
 ---> Using cache
 ---> 69442b7e2f4d
Step 10/10 : CMD ["--help"]
 ---> Using cache
 ---> 932d2a96e3ef
Successfully built 932d2a96e3ef
Successfully tagged abao:latest
Starting courseenvironments_nexus_1 ...
Starting courseenvironments_test_fixture_1 ... error
Starting courseenvironments_abao_1         ...

Starting courseenvironments_nexus_1        ... done
ectivity on endpoint courseenvironments_test_fixture_1 (9232233db62902a65f3b25bf66d861f28aa8ba1d8c751fd33ee650a2a1e0b6efStarting courseenvironments_abao_1         ... done
Starting courseenvironments_jenkins_1      ... error

ERROR: for courseenvironments_jenkins_1  Cannot start service jenkins: error while mounting volume '/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data': failed to mount local volume: mount A:/DevOps/Ex_Files_DevOps_Continuous_Delivery_Integration/Exercise Files/Course Environments/raml-files:/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data, flags: 0x1000: no such file or directory

ERROR: for test_fixture  Cannot start service test_fixture: driver failed programming external connectivity on endpoint courseenvironments_test_fixture_1 (9232233db62902a65f3b25bf66d861f28aa8ba1d8c751fd33ee650a2a1e0b6ef): Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use

ERROR: for jenkins  Cannot start service jenkins: error while mounting volume '/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data': failed to mount local volume: mount A:/DevOps/Ex_Files_DevOps_Continuous_Delivery_Integration/Exercise Files/Course Environments/raml-files:/mnt/sda1/var/lib/docker/volumes/courseenvironments_ramlfiles/_data, flags: 0x1000: no such file or directory
ERROR: Encountered errors while bringing up the project.

No comments:

Post a Comment

Featured Posts