Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging jetty on a failed start

Tags:

solr

cloud

jetty

I've deployed Solr in Jetty 9.0.6 on a Debian machine and sometimes when i try to start it up, it fails without giving me any clues why. The <>.stderrout.log file is allways empty. How could I enable logging or verbose output for the start operation? I'm doing:

$ sudo service jetty start
Starting Jetty . . . . . . . FAILED Tue Oct 15 11:10:18 CEST 2013

thanks!

like image 308
maephisto Avatar asked Dec 19 '22 23:12

maephisto


1 Answers

With Jetty 9.0.6 you pass into the part of your service that calls ${jetty.home}/start.jar the extra --daemon command line variable and look for the start.log files. (These files are usually found at the ${jetty.logs}/start.log location.

Along with that, also include the -DDEBUG=true to enable debug of the startup process, as well as enabling the debug on Jetty itself (until the actual logger kicks in).

Finally, if you want the default Jetty StdErrLog to log at debug level too, add the -Dorg.eclipse.jetty.LEVEL=DEBUG to the command line as well.

To put this in non-service terms ...

[jetty-distribution-9.0.6.v20130930]$ java -jar start.jar --daemon -DDEBUG=true -Dorg.eclipse.jetty.LEVEL=DEBUG

As for how to do that with a debian service, I have no clue.

like image 134
Joakim Erdfelt Avatar answered Dec 31 '22 13:12

Joakim Erdfelt