Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Description
Problem Definition
When a Tomcat deployment task is used, Tomcat expects certain roles for the bamboo user to be added in conf/tomcat-users.xml between the <tomcat-users> tags for a successful deployment. When this is not added, the task throws the following not-so-helpful error
simple 29-Nov-2019 16:41:56 Deploying application with war file 'ROOT.war' to context '/' to server 'http://www.hostURL:3237/manager/' simple 29-Nov-2019 16:41:56 Confirm expected Tomcat manager location. simple 29-Nov-2019 16:41:56 Trying to retrieve Tomcat details from http://www.hostURL:3237/manager//text/serverinfo error 29-Nov-2019 16:41:56 Server info returned status code: 403 error 29-Nov-2019 16:41:56 Try likely variations of Tomcat manager location. simple 29-Nov-2019 16:41:56 Trying to retrieve Tomcat details from http://www.hostURL:3237/manager//serverinfo error 29-Nov-2019 16:41:56 Server info returned status code: 404 error 29-Nov-2019 16:41:56 Could not detect Tomcat version from server info, trusting configuration of Tomcat 7 or greater error 29-Nov-2019 16:41:57 Could not deploy application: Data transfer interrupted (broken pipe) (Write failed) error 29-Nov-2019 16:41:57 java.net.SocketException: Data transfer interrupted (broken pipe) (Write failed) error 29-Nov-2019 16:41:57 at java.net.SocketOutputStream.socketWrite0(Native Method) error 29-Nov-2019 16:41:57 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) error 29-Nov-2019 16:41:57 at java.net.SocketOutputStream.write(SocketOutputStream.java:155) error 29-Nov-2019 16:41:57 at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
The error message with 403 and 404 did not give a meaningful hint.
Suggested Solution
It would be better to elaborate this error by catching a 403 and insert a hint towards a maybe missing role followed by the stack trace.
The need for these roles are however mentioned in our documentation here