Jetty fails to start after first time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jetty (Debian) |
Fix Released
|
Unknown
|
|||
jetty (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: jetty
How to reproduce this bug:
- Install Jetty 6.1.24-5
- change NO_START variable in /etc/default/jetty
- sudo /etc/init.d/jetty stop
- sudo /etc/init.d/jetty start
It will print "Starting Jetty servlet engine" and then return very fast to shell prompt.
Why it happens:
This is a problem with "rotatelogs" utility in /etc/init.d/jetty.
Version Jetty 6.1.22-1ubuntu1 has not this problem.
Version Jetty 6.1.24-5 in Debian has this problem. Previous version in Debian has not this problem.
How to work around:
There are two ways to work aroud.
a) To delete /var/log/out.log and to start jetty with "sudo /etc/init.d/jetty start" (the problem will appear again next time you will have to restart jetty).
b) To revert the lines of /etc/init.d/jetty to launch rotatelogs as jetty user:
- $ROTATELOGS "$LOGDIR/out.log" 86400 \
- < "$LOGDIR/out.log"
>>>>>>>>
+ sudo -b -u $JETTY_USER $ROTATELOGS "$LOGDIR/out.log" 86400 \
+ < "$LOGDIR/out.log"
This bug have to be reported to Debian too.
description: | updated |
Changed in jetty (Debian): | |
status: | Unknown → New |
Changed in jetty (Debian): | |
status: | New → Fix Released |
I think this bug was inserted trying to fix this bug:
http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 580639