jenkings - " instead of the expected "OK" message

本文记录了使用Jenkins部署Tomcat过程中遇到的应用部署成功但无法重启的问题,并详细描述了错误日志及部分解决尝试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

      jenkins构建完成出现问题如下:

18:16:31 Deploying /root/.jenkins/workspace/Test_qds/target/qds.war to container Tomcat 7.x Remote with context 
18:16:32   Redeploying [/root/.jenkins/workspace/Test_qds/target/qds.war]
18:16:32   Undeploying [/root/.jenkins/workspace/Test_qds/target/qds.war]
18:16:33   Deploying [/root/.jenkins/workspace/Test_qds/target/qds.war]
18:16:37 ERROR: Build step failed with exception
18:16:37 org.codehaus.cargo.container.ContainerException: Failed to deploy [/root/.jenkins/workspace/Test_qds/target/qds.war]
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:106)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:184)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:147)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:117)
18:16:37 	at hudson.FilePath.act(FilePath.java:998)
18:16:37 	at hudson.FilePath.act(FilePath.java:976)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)
18:16:37 	at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)
18:16:37 	at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)
18:16:37 	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
18:16:37 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
18:16:37 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
18:16:37 	at hudson.model.Build$BuildExecution.post2(Build.java:186)
18:16:37 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
18:16:37 	at hudson.model.Run.execute(Run.java:1762)
18:16:37 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
18:16:37 	at hudson.model.ResourceController.execute(ResourceController.java:97)
18:16:37 	at hudson.model.Executor.run(Executor.java:419)
18:16:37 Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The Tomcat Manager responded "FAIL - Deployed application at context path /qds but context failed to start
18:16:37 " instead of the expected "OK" message
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:715)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:761)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:312)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)
18:16:37 	... 18 more
18:16:37 org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The Tomcat Manager responded "FAIL - Deployed application at context path /qds but context failed to start
18:16:37 " instead of the expected "OK" message
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:715)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:761)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:312)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)
18:16:37 	at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:184)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:147)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:117)
18:16:37 	at hudson.FilePath.act(FilePath.java:998)
18:16:37 	at hudson.FilePath.act(FilePath.java:976)
18:16:37 	at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)
18:16:37 	at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)
18:16:37 	at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)
18:16:37 	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
18:16:37 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
18:16:37 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
18:16:37 	at hudson.model.Build$BuildExecution.post2(Build.java:186)
18:16:37 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
18:16:37 	at hudson.model.Run.execute(Run.java:1762)
18:16:37 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
18:16:37 	at hudson.model.ResourceController.execute(ResourceController.java:97)
18:16:37 	at hudson.model.Executor.run(Executor.java:419)
18:16:37 Build step 'Deploy war/ear to a container' marked build as failure
18:16:37 Finished: FAILURE
         场景描述:第一天构建若干十次,都构建成功,部署成功,但是无法进行重启,手动重启后,正常使用,所以确定问题在于tomcat无法重启;第二天手动构建下,构建成功,部署成功,重启成功.这是个十分神奇的问题啊.
E:\proj\jenkings\jenkins-plugin-manager>java -jar "E:\proj\jenkings\jenkins-plugin-manager\jenkins-plugin-manager-2.13.2.jar" --verbose --output-directory "E:\proj\jenkings\jenkins-plugin-manager\output" --plugin-file "E:\proj\jenkings\jenkins-plugin-manager\plugins.txt" --available-updates : Show available plugin updates for the requested plugins (default: false) --clean-download-directory : If set, cleans the plugin download directory before plugin installation. Otherwise the tool performs plugin download and reports compatibility issues, if any. (default: false) --credentials <CREDENTIALS,CREDENTIALS,...> : Comma-separated list of credentials in format '<host>[:port]:<username>:<password>'. The password must not contain space or ',' --hide-security-warnings : Hide if any security warnings exist for the requested plugins (default: false) --jenkins-experimental-update-center URL : Sets experimental update center; will override JENKINS_UC_EXPERIMENTAL environment variable. If not set via CLI option or environment variable, will default to https://updates.jenkins.io/experimental/upd ate-center.json --jenkins-incrementals-repo-mirror URL : Set Maven mirror to be used to download plugins from the Incrementals repository, will override the JENKINS_INCREMENTALS_REPO_MIRROR environment variable. If not set via CLI option or environment variable, will default to https://repo.jenkins-ci.org/incrementals --jenkins-plugin-info URL : Sets the location of plugin information; will override JENKINS_PLUGIN_INFO environment variable. If not set via CLI option or envir
最新发布
03-18
Microsoft Windows [版本 10.0.19044.5608] (c) Microsoft Corporation。保留所有权利。 E:\proj\jenkings\jenkins-plugin-manager>java -jar jenkins-plugin-manager.jar --verbose --output-directory ./output --plugin-file plugins.txt Error: Unable to access jarfile jenkins-plugin-manager.jar E:\proj\jenkings\jenkins-plugin-manager>java -jar jenkins-plugin-manager-2.13.2.jar --verbose --output-directory ./output --plugin-file plugins.txt --available-updates : Show available plugin updates for the requested plugins (default: false) --clean-download-directory : If set, cleans the plugin download directory before plugin installation. Otherwise the tool performs plugin download and reports compatibility issues, if any. (default: false) --credentials <CREDENTIALS,CREDENTIALS,...> : Comma-separated list of credentials in format '<host>[:port]:<username>:<password>'. The password must not contain space or ',' --hide-security-warnings : Hide if any security warnings exist for the requested plugins (default: false) --jenkins-experimental-update-center URL : Sets experimental update center; will override JENKINS_UC_EXPERIMENTAL environment variable. If not set via CLI option or environment variable, will default to https://updates.jenkins.io/experimental/upd ate-center.json --jenkins-incrementals-repo-mirror URL : Set Maven mirror to be used to download plugins from the Incrementals repository, will override the JENKINS_INCREMENTALS_REPO_MIRROR environment variable. If not set via CLI option or environment variable, will default to https://repo.jenkins-ci.org/incrementals --jenkins-plugin-info URL : Sets the location of plugin
03-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值