묻고 답해요
141만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
ansible host 접속 관련 문의 드립니다.
안녕하세요.제가 ansible 에서 kubernetes 제어하기 강의듣는중인데요.ansible 명령어 를 host 쪽에 실행하는 것을 시도하는데 에러가 발생해서요.저는 윈도우 기반에 도커데스크탑 설치해서 수업듣고 있습니다.윈도우의 ssh 는 openssh 인터넷 검색해서 설치하였습니다.에러 팝업내용은 다음과 같습니다.처음에는 ssh-copy-id 명령어도 에러나서 접속이 안되었었는데요. 그냥 윈도우 .ssh 폴더안의 authorized_keys 파일을 그냥 열구 id_rsa.pub 파일 내용을 복사 붙여넣기 해서 ssh 접속은 비번 안물어보구 되게 되었습니다.혹시 체크할 만한 내용 있다면 조언 부탁드립니다.감사합니다.
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
edowon0623/docker이미지에 /etc/sysconfig/docker와 docker-storage라는 파일이 없는거같아요
ssh로 접속해서 vi /etc/sysconfig/docker 했는데 docker라는 파일이 없어요이건 어찌어찌 따라쳐서 저장했지만...sed -i -e 's/overlay2/vfs/g' /etc/sysconfig/docker-storage해당명령어 실행하니sed: can't read /etc/sysconfig/docker-storage: No such file or directory라고 하네요..
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
tomcat remote war 배포시 오류 문제 해결
저도 삽질좀했는데요 tomcat 설치를 어떻게 했든지 상관없고apache-tomcat-9.0.65/webapps/manager/META-INF/context.xml파일을 수정하셔서 자신의 IP를 추가 시켜주어야 해결됩니다 저도 계속 apache-tomcat-9.0.65/conf/context.xml 파일을 수정했었는데요 이 파일을 수정하면 문제가 해결이 안됩니다 apache-tomcat-9.0.65/webapps/manager/META-INF/context.xml이 파일의 설정부분에서 Valve 태그에 | 파이프 추가하고 자신의 IP를 추가 해준뒤 tomcat을 shutdown 했다가 다시 startup 해주면 해결됩니다강사님이 설명하시는 부분은 이부분은 Skip 되어있어서 삽질을 좀했네요 ...<Context antiResourceLocking="false" privileged="true" > <CookieProcessor className="org.apache.tomcat.util.http.Rfc6265CookieProcessor" sameSiteCookies="strict" /> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|192.168.50.*" /> <Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/> </Context>
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
윈도우 버전 사용하고 있는데 ssh 컨테이너 내에 도커가 동작하지 않아요
최신 이미지라 그런지 etc/sysconfig/docker 폴더도 존재하지 않습니다 ..
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
kex_exchange_identification 에러
이 에러때문에 강의가 진행되지않습니다 ㅠㅠ인텔맥이고, 정리된 도커명령어 그대로 작동시켜 ssh 에 접속하려고할때 아래와같은 에러가 발생합니다.. kex_exchange_identification: Connection closed by remote host Connection closed by ::1 port 20022
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
ssh 접속 에러
안녕하세요 인텔칩에서 ssh 도커 실행 명령어를 이용하여 설치 후 ssh 접속시 아래와 같은 에러가 발생합니다. 혹시몰라서 실리콘칩용 도커이미지로 인스톨 후 설치해보았는데, 이때는 ssh 접속이 가능합니다 (내부 도커 실행은불가능했지만) ssh 접속시 known_hosts 를 다시 쓰는 것도 확인하였습니다.구글링을 해봐도 현재 강의내용과 다른 내용이 많아서 직접 질문하는것이 빠를 것 같아 질문드립니다. kex_exchange_identification: Connection closed by remote host Connection closed by ::1 port 10022
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
에러가발생합니다.
안녕하세요. 강의 진행 중 에러가 발생하여 질문드립니다. 아래와 같은 에러가 계속 발생하는데 원인을 알 수 있을까요? OS는 맥이며, 젠킨스는 도커로 인스톨하였고, 톰캣은 brew 로 9버전을 인스톨하였습니다. [My-Third-Project] $ /var/jenkins_home/tools/hudson.model.JDK/bin/java -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.13.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3.8.5/boot/plexus-classworlds-2.6.0.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3.8.5/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3.8.5 /var/jenkins_home/war/WEB-INF/lib/remoting-3046.v38db_38a_b_7a_86.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.13.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.13.jar 35605 Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 53.0 at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1007) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:545) at java.base/java.net.URLClassLoader.access$100(URLClassLoader.java:83) at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:453) at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:447) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:446) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:425) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:135) at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:65) ERROR: ================================================================================ ERROR: Invalid project setup: Connection reset ERROR: [JENKINS-18403][JENKINS-28294] JDK '' not supported to run Maven projects. ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the controller. ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK. ERROR: Retrying with agent Java and setting compile/test properties to point to /var/jenkins_home/tools/hudson.model.JDK. ERROR: ================================================================================ Established TCP socket on 43679 [My-Third-Project] $ /opt/java/openjdk/bin/java -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.13.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3.8.5/boot/plexus-classworlds-2.6.0.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3.8.5/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3.8.5 /var/jenkins_home/war/WEB-INF/lib/remoting-3046.v38db_38a_b_7a_86.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.13.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.13.jar 43679 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f /var/jenkins_home/workspace/My-Third-Project/pom.xml clean compile package [INFO] Scanning for projects... [INFO] [INFO] ----------------------< com.njonecompany.web:web >---------------------- [INFO] Building cicd-web-project maven webapp 1.0 [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ web --- [INFO] Deleting /var/jenkins_home/workspace/My-Third-Project/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ web --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ web --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to /var/jenkins_home/workspace/My-Third-Project/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ web --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ web --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ web --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/My-Third-Project/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ web --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /var/jenkins_home/workspace/My-Third-Project/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ web --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.njonecompany.web.TestWelcome 01:01:58,334 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 01:01:58,335 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 01:01:58,335 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/var/jenkins_home/workspace/My-Third-Project/target/classes/logback.xml] 01:01:58,482 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 01:01:58,484 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 01:01:58,498 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 01:01:58,594 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead. 01:01:58,594 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder. 01:01:58,594 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details 01:01:58,596 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.njonecompany.web] to DEBUG 01:01:58,596 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.njonecompany.web] to false 01:01:58,596 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[com.njonecompany.web] 01:01:58,598 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR 01:01:58,598 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 01:01:58,598 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 01:01:58,599 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d9f158f - Registering current configuration as safe fallback point 2022-09-19 01:02:00 [main] DEBUG c.n.web.controller.WelcomeController - Welcome to njonecompany.com... Mon Sep 19 01:02:00 UTC 2022 MockHttpServletRequest: HTTP Method = GET Request URI = / Parameters = {} Headers = [] Body = <no character encoding set> Session Attrs = {} Handler: Type = com.njonecompany.web.controller.WelcomeController Method = com.njonecompany.web.controller.WelcomeController#index(Model) Async: Async started = false Async result = null Resolved Exception: Type = null ModelAndView: View name = index View = null Attribute = msg value = Hi, there Attribute = today value = Mon Sep 19 01:02:00 UTC 2022 FlashMap: Attributes = null MockHttpServletResponse: Status = 200 Error message = null Headers = [Content-Language:"en"] Content type = null Body = Forwarded URL = /WEB-INF/views/index.jsp Redirected URL = null Cookies = [] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.889 s - in com.njonecompany.web.TestWelcome [INFO] [INFO] Results: [INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [JENKINS] Recording test results [INFO] [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ web --- [INFO] Packaging webapp [INFO] Assembling webapp [web] in [/var/jenkins_home/workspace/My-Third-Project/target/hello-world] [INFO] Processing war project [INFO] Copying webapp resources [/var/jenkins_home/workspace/My-Third-Project/src/main/webapp] [INFO] Webapp assembled in [70 msecs] [INFO] Building war: /var/jenkins_home/workspace/My-Third-Project/target/hello-world.war [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.011 s [INFO] Finished at: 2022-09-19T01:02:03Z [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/jenkins_home/workspace/My-Third-Project/pom.xml to com.njonecompany.web/web/1.0/web-1.0.pom [JENKINS] Archiving /var/jenkins_home/workspace/My-Third-Project/target/hello-world.war to com.njonecompany.web/web/1.0/web-1.0.war [DeployPublisher][INFO] Attempting to deploy 1 war file(s) [DeployPublisher][INFO] Deploying /var/jenkins_home/workspace/My-Third-Project/target/hello-world.war to container Tomcat 9.x Remote with context null ERROR: Build step failed with exception org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/jenkins_home/workspace/My-Third-Project/target/hello-world.war] at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:176) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1192) at hudson.FilePath.act(FilePath.java:1175) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1072) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711) at hudson.model.Run.execute(Run.java:1924) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:710) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:882) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:895) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:161) ... 19 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://192.168.86.216:8081/manager/text/list at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:577) ... 22 more org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:710) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:882) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:895) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:161) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1192) at hudson.FilePath.act(FilePath.java:1175) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1072) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711) at hudson.model.Run.execute(Run.java:1924) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://192.168.86.216:8081/manager/text/list at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:577) ... 22 more Build step 'Deploy war/ear to a container' marked build as failure Finished: FAILURE
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
AWS Jenkins + Tomcat 연동 문제
안녕하세요? 강의대로 모두 따라했는데, Build할 때 아래와 같이 문제가 발생합니다 ㅠ[DeployPublisher][INFO] Deploying /var/lib/jenkins/workspace/JunyHarang-Tomcat-Project/target/hello-world.war to container Tomcat 9.x Remote with context null ERROR: Build step failed with exception org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/lib/jenkins/workspace/JunyHarang-Tomcat-Project/target/hello-world.war] at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:176) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1192) at hudson.FilePath.act(FilePath.java:1175) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1072) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:709) at hudson.model.Run.execute(Run.java:1924) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Caused by: java.net.ConnectException: Connection timed out (Connection timed out) at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) at java.base/java.net.Socket.connect(Socket.java:609) at java.base/java.net.Socket.connect(Socket.java:558) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:508) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603) at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:276) at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:375) at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:396) at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1253) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081) at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:567) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:882) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:895) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:161) ... 19 more java.net.ConnectException: Connection timed out (Connection timed out) at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) at java.base/java.net.Socket.connect(Socket.java:609) at java.base/java.net.Socket.connect(Socket.java:558) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:508) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603) at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:276) at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:375) at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:396) at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1253) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081) at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:567) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:882) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:895) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:161) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1192) at hudson.FilePath.act(FilePath.java:1175) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1072) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:709) at hudson.model.Run.execute(Run.java:1924) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Build step 'Deploy war/ear to a container' marked build as failure Finished: FAILURE
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
ssh 서버 실행 시 에러
안녕하세요?ssh 서버 실행 시 Conflict, The container name "/docker-server" is already in use by container "4a08bbeafb65" 라고 에러가 나오네요.명령어는 아래와 같이 입력했고docker run --privileged --name docker-server -itd -p 10022:22 -p 8081:8080 -e container=docker -v /sys/fs/cgorup:/sys/fs/cgroup edowon0623/docker:latest /usr/sbin/initdocker ps 라고 입력 시 아무것도 안나오는데docker ps -a 입력하면 위의 4a08bbeafb65 가 Created 상태입니다. 인터넷 찾아보니 삭제하고 해보라고 해서 해 봐도 안되네요.윈도우 10 사용자입니다.위 그림은 실행 상황입니다. 두 번째 그림은 docker desktop 에서 실행하려고 할 때도 같은 메시지가 나옵니다.
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
Kubelet Error 문의
안녕하세요? Kubernetes Master Server가 강제 재부팅 된 뒤 문제가 발생하여 문의 드립니다.위와 같이 Kubectl 명령어가 현재 먹지 않는 상태이고,검색을 해 보니 아래와 같이 해보래서 해 보았으나, 해결되지 않고 있습니다. Service에 대해 상태를 확인을 해보면 위와 같이 실패로 나오고, 재부팅, Service 재시작 등을 해보아도 해결이 되지 않고 있습니다.journalctl -xeu kubelet 명령어로 확인하면위와 같이 나오고 있습니다!
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
ansible 서버에서 ssh-copy-id가 정상적으로 실행되지 않습니다.
안녕하세요~Ansible playbook으로 Kubernetes Script 실행하기 위해서ansible 서버에서 ssh-copy-id를 통해 쿠버네티스 로컬서버로 접속하고자 하는데이 명령어가 정상적으로 실행이 되지 않고 있습니다.윈도우 사용자이고, 마이크로 계정으로 자동 연동된 로그인 사용하고 있습니다.아래의 이미지와 같이 에러메세지를 확인할 수가 없어서 원인이 뭔지 잘 모르겠네요 ^^;이 작업이 정상적으로 되지 않아 다음 수업진행이 어렵습니다.확인 부탁드릴께요감사합니다.
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
Kubernets 설치 관련 질문
안녕하세요?https://github.com/joneconsulting/k8s/blob/master/install/kubernetes_install.md이거 보고 CentOS에 가상 머신 3개(CentOS 7)으로 올린 뒤 진행하던 중 문제가 발생하여 질문드립니다.데쉬보드를 VM Host Server에서 Firefox로 접근을 해보고 싶은데,위와 같이 접근을 할 수 가 없는 상태 입니다.하지만 Local에서 curl 명령어를 통해 API 테스트를 하면 아래와 같이 정상 처리 되는 것을 볼 수 있습니다.각 VM Server는 CLI Mode만 이용하고 싶어서 GUI가 아닌데, HOST Server 혹은 외부에서 접속을 하려면 어떻게 해야 하나요??그리고, 마지막 TEST부분에서 Port Fowarding된 Port 번호를 어떻게 확인할 수 있나요?
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
ssh-server 실행 시 추가된 옵션 문의드립니다
안녕하세요.ssh-server 실행할 때 옵션추가된 명령어로 실행하도록 문의 답변 주셨는데요, 추가된 옵션에 대해 설명을 해주실수 있을까요?docker run --privileged --name docker-server -itd -p 10022:22 -p 8081:8080 -e container=docker -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host edowon0623/docker-server:m1 /usr/sbin/init(볼륨에 :rw가 추가되었고, --cgroupns=host 이 추가된 것으로 보입니다)[질문]/sys/fs/cgroup 를 volume으로 설정하는 이유-v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns = host 를 추가해야하는 이유(이하 문서 내용 발췌)--cgroupns (API 1.41+) cgroup namespace to use (host|private) - 'host': Run the container in the Docker host's cgroup namespace - 'private': Run the container in its own private cgroup namespace - '': Use the cgroup namespace as configured by the default-cgroupns-mode option on the daemon (default)감사합니다.
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
강의에 사용하시는 문서 받을 수 있을까요?
안녕하세요.강의에 사용하시는 PPT 자료 받을 수 있을지 문의 드립니다.감사합니다.
-
미해결Jenkins를 이용한 CI/CD Pipeline 구축
ssh 에러
docker run --privileged --name docker-server -itd -p 10022:22 -p 8081:8080 -e container=docker -v /sys/fs/cgroup:/sys/fs/cgroup edowon0623/docker:latest /usr/sbin이렇게 실행하고 ssh root@localhsot - p 10022로 접속을 하려고 하니 Could not resolve hostname localhsot: \276\313\267\301\301\370 \310\243\275\272\306\256\260\241 \276\370\275\300\264\317\264\331.이렇게 에러가 발생합니다.