Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to fix the error of "Unbuffered entity enclosing request can not be repeated." ?

Esteban Lopez Valecky August 14, 2014

I'm not able to deploy via Deployment Project, I have 5 wars but some of them fails with the message "Could not deploy application: Unbuffered entity enclosing request can not be repeated."

Our system is:

  • Apache 2.2 (load balancer)
  • Tomcat 7 ( ajp connector)

LOG:

[Bamboo GUI]

simple	15-Aug-2014 15:44:20	Build Deployment of '1.3.10' on 'Production' started building on agent Elastic Agent on i-1a802330
simple	15-Aug-2014 15:44:20	Build working directory is /home/bamboo/bamboo-agent-home/xml-data/build-dir/3801090-4620289
simple	15-Aug-2014 15:44:20	Executing build Deployment of '1.3.10' on 'Production'
simple	15-Aug-2014 15:44:20	Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
simple	15-Aug-2014 15:44:20	Cleaning working directory '/home/bamboo/bamboo-agent-home/xml-data/build-dir/3801090-4620289'
simple	15-Aug-2014 15:44:20	Finished task 'Clean working directory task' with result: Success
simple	15-Aug-2014 15:44:20	Starting task 'Artifact download' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
simple	15-Aug-2014 15:44:20	Preparing to download plan result WZ-PROD-8 artifact: Shared artifact: [WappZapp Artifact (Production)], pattern: [**/*.war]
simple	15-Aug-2014 15:44:34	Artifact [WappZapp Artifact (Production)] downloaded successfully in 14s to working directory
simple	15-Aug-2014 15:44:34	Finished task 'Artifact download' with result: Success
simple	15-Aug-2014 15:44:34	Starting task 'Static' of type 'com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin:deployAppTask'
simple	15-Aug-2014 15:44:34	Deploying application with war file 'wappzapp-app/wappzapp-app-static/target/wappzapp-app-static.war' to context '/' to server 'http://static.wappzapp.com/manager' with tag 'static'
error		15-Aug-2014 15:44:35	Could not deploy application: Unbuffered entity enclosing request can not be repeated.
simple	15-Aug-2014 15:44:35	Finished task 'Static' with result: Error
simple	15-Aug-2014 15:44:35	Finalising the build...
simple	15-Aug-2014 15:44:35	Stopping timer.
simple	15-Aug-2014 15:44:35	Build 3801090-4620289-4587531 completed.
simple	15-Aug-2014 15:44:36	Finished processing deployment result Deployment of '1.3.10' on 'Production'

[Agent]

2014-08-15 13:44:20,212 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Deployment of '1.3.10' on 'Production' taken from queue.
2014-08-15 13:44:20,213 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Deployment of '1.3.10' on 'Production' assigned to agent 3997697
2014-08-15 13:44:20,218 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [DefaultBuildAgent] Changing context: null -> 3801090-4620289-4587531 on Elastic Agent on i-1a802330/5bb5abf7
2014-08-15 13:44:20,233 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Build Deployment of '1.3.10' on 'Production' started building on agent Elastic Agent on i-1a802330
2014-08-15 13:44:20,233 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.v2.build.task.InitializeBuild
2014-08-15 13:44:20,234 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Deployment of '1.3.10' on 'Production' VCS sync started
2014-08-15 13:44:20,237 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [CheckoutDirectoriesSnapshotHelper] Build working directory is /home/bamboo/bamboo-agent-home/xml-data/build-dir/3801090-4620289
2014-08-15 13:44:20,239 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
2014-08-15 13:44:20,240 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [PrepareBuildTask] Executing build Deployment of '1.3.10' on 'Production'
2014-08-15 13:44:20,240 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask
2014-08-15 13:44:20,241 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [ExecuteBuildTask] Starting execution: 3801090-4620289-4587531, logger: 2118149851
2014-08-15 13:44:20,241 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Deployment of '1.3.10' on 'Production' execution started
2014-08-15 13:44:20,250 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [TaskExecutorImpl] Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
2014-08-15 13:44:20,251 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [CleanWorkingDirectoryTask] Cleaning working directory '/home/bamboo/bamboo-agent-home/xml-data/build-dir/3801090-4620289'
2014-08-15 13:44:20,280 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [TaskExecutorImpl] Starting task 'Artifact download' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
2014-08-15 13:44:34,942 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [TaskExecutorImpl] Starting task 'Static' of type 'com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin:deployAppTask'
2014-08-15 13:44:35,396 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [HttpMethodDirector] I/O exception (java.net.SocketException) caught when processing request: Connection reset
2014-08-15 13:44:35,396 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [HttpMethodDirector] Retrying request
2014-08-15 13:44:35,489 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Deployment of '1.3.10' on 'Production' execution finished
2014-08-15 13:44:35,809 INFO [0-BAM::Elastic Agent on i-1a802330::Agent:pool-3-thread-1] [RemoteResultProcessor] Build Deployment of '1.3.10' on 'Production' completed on Bamboo agent. Sending results to server.

4 answers

1 vote
fdeferr August 25, 2014

I had the same problem and fixed it like that:

The default tomcat7 install for the module "manager" contains the maximum file 
size in 50MB or 52428800, there's the default value in \webapps\manager\WEB-
INF\web.xml
<multipart-config>
      <!-- 52MB max -->
      <max-file-size>52428800</max-file-size>
      <max-request-size>52428800</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

 

I changed that value to a greater one and it works.
Esteban Lopez Valecky August 25, 2014

Thanks for your answer
As you said 52mb is the default value in tomcat, but the funny thing is that my wars are not bigger than 30mb.

Ramadevi Potluri June 3, 2015

Hi Pat, I am having same issue. I changed max-file-size and max-request-size as 192428800. restarted tomcat server. But still having same issue. What value did you guys try with?

0 votes
bharath m July 18, 2016

Hi ,

I'm seeing the same issue . but the tomcat we are using is 8.0.36 .As you said my war size is 44.58mb.In multi config part its upto 50 mb max. do u think i need to change the config as well  or is there any alternate solution resolve.  Please find the error below 

INFO] Uploaded: http://10.27.164.40:8080/artifactory/libs-snapshot-local/com/west/brickhouse/campaign-event-builder-service/maven-metadata.xml (345 B at 17.7 KB/sec)
18-Jul-2016 11:21:25[INFO] ------------------------------------------------------------------------
18-Jul-2016 11:21:25[INFO] BUILD SUCCESS
18-Jul-2016 11:21:25[INFO] ------------------------------------------------------------------------
18-Jul-2016 11:21:25[INFO] Total time: 39.437 s
18-Jul-2016 11:21:25[INFO] Finished at: 2016-07-18T11:21:25-04:00
18-Jul-2016 11:21:26[INFO] Final Memory: 65M/634M
18-Jul-2016 11:21:26[INFO] ------------------------------------------------------------------------
18-Jul-2016 11:21:26Could not deploy application: Unbuffered entity enclosing request can not be repeated.
0 votes
Don Willis
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 29, 2015

This error is fixed in version 5.1.0 of the tomcat deploy plugin, which will be bundled in Bamboo 5.10. You can download 5.1.0 of the tomcat plugin from https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin/versions

Be aware that this error message is hiding another error, so upgrading the plugin most likely won't fix the deployments, but will make it obvious why the deployments aren't working.

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2015

Hello everybody,

Unfortunately this is a known bug that is being investigated at https://jira.atlassian.com/browse/BAM-14883.

Kind regards,
Felipe Kraemer
Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events