Exit code 6 on shutting down Tomcat service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Exit code 6 on shutting down Tomcat service

Jakub Moravec
Hello Tomcat team,

    we are having an issue that we were not able to resolve ourselves or
using the existing documentation, so I'd like to ask you for help.

    Description:

        During Tomcat service shutdown (using
command  <TOMCAT_ROOT>/bin/tomcat9.exe //SS//<SERVICE_NAME>), we sometimes
receive exit code 6. It happens underministically (or at least we don't
know the exact circumstances under which the error code is returned). We
were not able to find any information about this exit code or any
suggestions for fixes in the documentation.

     Environment:
         Tomcat: 9.0.33
         OS: Windows 2016, Version: 10.0, Flavor: Data Center

Thank you for your assistance!
Jakub Moravec
[hidden email]

--
*This email is intended solely for the addressee(s) and all its contents,
including all attachments and files transmitted with it, represent
confidential information. Unauthorized distribution, modification or
disclosure of its contents and unauthorized reliance on its contents are
prohibited. If you have received this email in error, please notify the
sender immediately by return email. Please then delete the email from your
system and do not (i) copy or distribute it, (ii) rely on its contents, or
(iii) disclose its contents to any person.*
Reply | Threaded
Open this post in threaded view
|

Re: Exit code 6 on shutting down Tomcat service

André Warnier (tomcat/perl)
Hi.

On 30.09.2020 14:40, Jakub Moravec wrote:

> Hello Tomcat team,
>
>      we are having an issue that we were not able to resolve ourselves or
> using the existing documentation, so I'd like to ask you for help.
>
>      Description:
>
>          During Tomcat service shutdown (using
> command  <TOMCAT_ROOT>/bin/tomcat9.exe //SS//<SERVICE_NAME>), we sometimes
> receive exit code 6.

You may want to have a look at these :
- https://cwiki.apache.org/confluence/display/TOMCAT/Windows#Windows-Q11
- http://tomcat.apache.org/tomcat-9.0-doc/windows-service-howto.html

These pages do not explain why you get an exit code 6 from tomcat9.exe.
But they explain what tomcat9.exe actually is, which may help for what follows (*)

The documentation page http://tomcat.apache.org/tomcat-9.0-doc/windows-service-howto.html,
  at the end, lists some additional tomcat9.exe command-line parameters (the ones starting
with "--Log") which may enable you to find out more details about the internal error that
triggers this exit code.
(e.g : --LogLevel "Debug")(and where to find that logfile)

The mailing list archives, at https://markmail.org/list/org.apache.commons.users/ may also
help finding the reason (in the search box, enter "daemon", or "daemon exit")

(*) the tomcat9.exe program is actually a renamed copy of the Apache Commons Daemon
"prunsrv" program, which the tomcat team adds to the tomcat-for-Windows package, to
facilitate installing and running tomcat as a Windows service.


It happens underministically (or at least we don't

> know the exact circumstances under which the error code is returned). We
> were not able to find any information about this exit code or any
> suggestions for fixes in the documentation.
>
>       Environment:
>           Tomcat: 9.0.33
>           OS: Windows 2016, Version: 10.0, Flavor: Data Center
>
> Thank you for your assistance!
> Jakub Moravec
> [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]