-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with jetty.sh start regression 10.0.6 -> 10.0.7 when using JETTY_USER #7008
Comments
We need to know more details here. You are using init.d, not system.d, right? Do these steps describe your configuration? docker run -it ubuntu:21.10 bash
apt update
apt install -y vim
apt install -y curl
apt install -y openjdk-11-jdk-headless
cd /tmp
curl -O https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/10.0.7/jetty-home-10.0.7.tar.gz
useradd -m jetty
cd /opt
tar -zxf /tmp/jetty-home-10.0.7.tar.gz
mkdir jetty-base
cd /opt/jetty-base
java -jar /opt/jetty-home-10.0.7/start.jar --module=http,deploy
mkdir /opt/jetty-base/logs
chown -R jetty:jetty /opt/jetty-base/
ln -s /opt/jetty-home-10.0.7/bin/jetty.sh /etc/init.d/jetty
cd /etc/default
vim jetty
JETTY_HOME=/opt/jetty-home-10.0.7
JETTY_BASE=/opt/jetty-base
JETTY_USER=jetty
service jetty start This shows a result of ...
I need to investigate further. |
📓 Note: if I use the above and simply swap out to using Using the In Jetty 10.0.7, the
The
The biggest difference is that we now try hard to avoid forking the JVM in service mode. We want to be on "the no-fork ever" path, so lets see what is going on with this non-LTS ubuntu. There are some quirky things in RUN_ARGS seen with 10.0.7 (why is The execution in 10.0.7 goes into start-stop-daemon line and then fails. Still need to dig deeper. |
Have similar behavior, but building a deb package so slightly different setup. Setting up variables https://github.com/Hack23/cia/blob/master/cia-dist-deb/src/main/config/etc/default/cia Strange "jetty.sh run" will actually start jetty. All works with 10.0.6 version of jetty.sh. |
+ Minor fix to remove extra LF output in RUN_ARGS + Using start-stop-daemon options properly Signed-off-by: Joakim Erdfelt <[email protected]>
+ Do not include JETTY_SYS_PROPS in JAVA_OPTIONS to avoid duplicates that show up in RUN_ARGS. + Only use JETTY_SYS_PROPS in RUN_CMD. Signed-off-by: Joakim Erdfelt <[email protected]>
I opened up PR #7009 with an updated Can you try it on your environments too?
That's likely because |
Seems the We chose the set of options we used in |
Tested the above https://github.com/eclipse/jetty.project/blob/c89866682c14ca1da0ce482eeca0953375b25da8/jetty-home/src/main/resources/bin/jetty.sh and it works as expected 👍 |
Issue #7008 - Fix regression in `bin/jetty.sh` on systems using `start-stop-daemon`
…as a work-around for Jetty 10 start-stop-daemon failure on Ubuntu 22.04. Maybe jetty/jetty.project#7008 was closed prematurely?
Jetty version(s)
10.0.7
Java version/vendor
(use: java -version)
Openjdk 17
OS type/version
Ubuntu 21.10
Description
When using JETTY_USER, "jetty.sh start" fails to startup.
How to reproduce?
Setting JETTY_USER and configure as a service /etc/init.d/jetty
Worked with 10.0.6 (changes 2b0161e#diff-2b9f3399552ca99de76591c09421a925e0d63a4c7cea19757ae7a81551993d24 ) and stll works if replace with 10.0.6 version of jetty.sh only.
The text was updated successfully, but these errors were encountered: