Skip to content
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

Bad directory permissions reported from Jetty 10.0.14 when using Docker 23.0.1 #9491

Closed
trautmane opened this issue Mar 12, 2023 · 7 comments
Labels
Third Party Issues with third party libraries or projects Unable To Replicate

Comments

@trautmane
Copy link

Jetty version(s)
10.0.14

Java version/vendor
zulu11.62.17-ca-jdk11.0.18-linux_x64

OS type/version
Ubuntu 22.04

Description
After following the quick setup instructions on Ubuntu 22.04, running jetty.sh start produces a bunch of tail: cannot open '.../jetty.state' for reading: No such file or directory messages and then finally exits with a FAILED message.

How to reproduce?
The following Dockerfile consistently reproduces the error:

#   docker build -t jetty-test:latest .
#   docker run -it --rm jetty-test:latest
#   docker run -it --entrypoint /bin/bash --rm jetty-test:latest

FROM ubuntu:22.04

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y curl vim

ARG TEST_DIR=/var/www/test

ARG JDK_VERSION=zulu11.62.17-ca-jdk11.0.18-linux_x64
ARG JDK_URL=https://cdn.azul.com/zulu/bin/$JDK_VERSION.tar.gz
ARG JAVA_HOME=$TEST_DIR/$JDK_VERSION

ARG JETTY_VERSION=10.0.14
ARG JETTY_DIST=jetty-home-${JETTY_VERSION}
ARG JETTY_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_VERSION/$JETTY_DIST.tar.gz
ARG JETTY_HOME=$TEST_DIR/$JETTY_DIST
ARG JETTY_BASE=$TEST_DIR/jetty-base

WORKDIR $TEST_DIR

RUN curl "$JDK_URL" | tar xz && \
    curl "$JETTY_URL" | tar xz

ENV JETTY_HOME="$JETTY_HOME" \
    PATH="$JAVA_HOME/bin:$PATH"

WORKDIR $JETTY_BASE
RUN java -jar $JETTY_HOME/start.jar --add-module=server,http

EXPOSE 8080
CMD $JETTY_HOME/bin/jetty.sh start
@trautmane trautmane added the Bug For general bugs on Jetty side label Mar 12, 2023
@joakime
Copy link
Contributor

joakime commented Mar 13, 2023

I haven't verified this yet, but this should be done in conjunction with Issue #9309

@joakime
Copy link
Contributor

joakime commented Mar 13, 2023

Unable to replicate, works for me.

[issue-9491-jettysh]$ cat Dockerfile 
#   docker build -t jetty-test:latest .
#   docker run -it --rm jetty-test:latest
#   docker run -it --entrypoint /bin/bash --rm jetty-test:latest

FROM ubuntu:22.04

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y curl vim

ARG TEST_DIR=/var/www/test

ARG JDK_VERSION=zulu11.62.17-ca-jdk11.0.18-linux_x64
ARG JDK_URL=https://cdn.azul.com/zulu/bin/$JDK_VERSION.tar.gz
ARG JAVA_HOME=$TEST_DIR/$JDK_VERSION

ARG JETTY_VERSION=10.0.14
ARG JETTY_DIST=jetty-home-${JETTY_VERSION}
ARG JETTY_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_VERSION/$JETTY_DIST.tar.gz
ARG JETTY_HOME=$TEST_DIR/$JETTY_DIST
ARG JETTY_BASE=$TEST_DIR/jetty-base

WORKDIR $TEST_DIR

RUN curl "$JDK_URL" | tar xz && \
    curl "$JETTY_URL" | tar xz

ENV JETTY_HOME="$JETTY_HOME" \
    PATH="$JAVA_HOME/bin:$PATH"

WORKDIR $JETTY_BASE
RUN java -jar $JETTY_HOME/start.jar --add-module=server,http

EXPOSE 8080
CMD $JETTY_HOME/bin/jetty.sh start
[issue-9491-jettysh]$ docker build --tag jetty-issues:9491 .
ERROR: gcloud failed to load: module 'collections' has no attribute 'MutableMapping'
    gcloud_main = _import_gcloud_main()
    import googlecloudsdk.gcloud_main
    from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
    from googlecloudsdk.api_lib.util import exceptions
    from googlecloudsdk.core.resource import resource_printer
    from googlecloudsdk.core.resource import config_printer
    from googlecloudsdk.core.resource import resource_printer_base
    from googlecloudsdk.core.resource import resource_projector
    from google.protobuf import json_format as protobuf_encoding
    __import__('pkg_resources').declare_namespace(__name__)
    import packaging.requirements
    from pyparsing import stringStart, stringEnd, originalTextFor, ParseException
    collections.MutableMapping.register(ParseResults)

This usually indicates corruption in your gcloud installation or problems with your Python interpreter.

Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
    /usr/bin/python3

If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.

If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
    https://cloud.google.com/sdk/
Sending build context to Docker daemon   2.56kB
Step 1/20 : FROM ubuntu:22.04
 ---> 74f2314a03de
Step 2/20 : RUN apt-get update
 ---> Running in 5348be515db6
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [891 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [880 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [10.9 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1193 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1129 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [5557 B]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [823 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [865 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
Fetched 26.2 MB in 2s (12.6 MB/s)
Reading package lists...
Removing intermediate container 5348be515db6
 ---> 423a29381250
Step 3/20 : RUN apt-get -y upgrade
 ---> Running in a4381f78090a
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
  libsystemd0 libudev1
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 394 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsystemd0 amd64 249.11-0ubuntu3.7 [317 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libudev1 amd64 249.11-0ubuntu3.7 [76.9 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 394 kB in 0s (936 kB/s)
(Reading database ... 4395 files and directories currently installed.)
Preparing to unpack .../libsystemd0_249.11-0ubuntu3.7_amd64.deb ...
Unpacking libsystemd0:amd64 (249.11-0ubuntu3.7) over (249.11-0ubuntu3.6) ...
Setting up libsystemd0:amd64 (249.11-0ubuntu3.7) ...
(Reading database ... 4395 files and directories currently installed.)
Preparing to unpack .../libudev1_249.11-0ubuntu3.7_amd64.deb ...
Unpacking libudev1:amd64 (249.11-0ubuntu3.7) over (249.11-0ubuntu3.6) ...
Setting up libudev1:amd64 (249.11-0ubuntu3.7) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Removing intermediate container a4381f78090a
 ---> 38679a1c7f99
Step 4/20 : RUN apt-get install -y curl vim
 ---> Running in 2202738098ee
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates libbrotli1 libcurl4 libexpat1 libgpm2 libldap-2.5-0
  libldap-common libmpdec3 libnghttp2-14 libpsl5 libpython3.10
  libpython3.10-minimal libpython3.10-stdlib libreadline8 librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsodium23 libsqlite3-0 libssh-4
  media-types openssl publicsuffix readline-common vim-common vim-runtime xxd
Suggested packages:
  gpm libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
  libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql readline-doc
  ctags vim-doc vim-scripts
The following NEW packages will be installed:
  ca-certificates curl libbrotli1 libcurl4 libexpat1 libgpm2 libldap-2.5-0
  libldap-common libmpdec3 libnghttp2-14 libpsl5 libpython3.10
  libpython3.10-minimal libpython3.10-stdlib libreadline8 librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsodium23 libsqlite3-0 libssh-4
  media-types openssl publicsuffix readline-common vim vim-common vim-runtime
  xxd
0 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.5 MB of archives.
After this operation, 68.2 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.8 [1184 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates all 20211016ubuntu0.22.04.1 [144 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.6-1~22.04.2 [810 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 media-types all 7.0.0 [25.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 readline-common all 8.1.2-1 [53.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libreadline8 amd64 8.1.2-1 [153 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsqlite3-0 amd64 3.37.2-2ubuntu0.1 [641 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.6-1~22.04.2 [1832 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 xxd amd64 2:8.2.3995-1ubuntu2.3 [51.2 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-common all 2:8.2.3995-1ubuntu2.3 [81.5 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnghttp2-14 amd64 1.43.0-1build3 [76.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpsl5 amd64 0.21.0-1.2build2 [58.4 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy/main amd64 publicsuffix all 20211207.1025-1 [129 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libbrotli1 amd64 1.0.9-2build6 [315 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg2-3ubuntu1.2 [20.5 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg2-3ubuntu1.2 [53.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg-0ubuntu0.22.04.1 [183 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build4 [58.2 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy/main amd64 libssh-4 amd64 0.9.6-2build1 [184 kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl4 amd64 7.81.0-1ubuntu1.8 [290 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.8 [194 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgpm2 amd64 1.20.7-10build1 [15.3 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.13+dfsg-0ubuntu0.22.04.1 [15.9 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10 amd64 3.10.6-1~22.04.2 [1955 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules amd64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy/main amd64 libsodium23 amd64 1.0.18-1build2 [164 kB]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-runtime all 2:8.2.3995-1ubuntu2.3 [6825 kB]
Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim amd64 2:8.2.3995-1ubuntu2.3 [1727 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 17.5 MB in 3s (5190 kB/s)
Selecting previously unselected package openssl.
(Reading database ... 4395 files and directories currently installed.)
Preparing to unpack .../00-openssl_3.0.2-0ubuntu1.8_amd64.deb ...
Unpacking openssl (3.0.2-0ubuntu1.8) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../01-ca-certificates_20211016ubuntu0.22.04.1_all.deb ...
Unpacking ca-certificates (20211016ubuntu0.22.04.1) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../02-libexpat1_2.4.7-1ubuntu0.2_amd64.deb ...
Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
Selecting previously unselected package libmpdec3:amd64.
Preparing to unpack .../03-libmpdec3_2.5.1-2build2_amd64.deb ...
Unpacking libmpdec3:amd64 (2.5.1-2build2) ...
Selecting previously unselected package libpython3.10-minimal:amd64.
Preparing to unpack .../04-libpython3.10-minimal_3.10.6-1~22.04.2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
Selecting previously unselected package media-types.
Preparing to unpack .../05-media-types_7.0.0_all.deb ...
Unpacking media-types (7.0.0) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../06-readline-common_8.1.2-1_all.deb ...
Unpacking readline-common (8.1.2-1) ...
Selecting previously unselected package libreadline8:amd64.
Preparing to unpack .../07-libreadline8_8.1.2-1_amd64.deb ...
Unpacking libreadline8:amd64 (8.1.2-1) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../08-libsqlite3-0_3.37.2-2ubuntu0.1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.37.2-2ubuntu0.1) ...
Selecting previously unselected package libpython3.10-stdlib:amd64.
Preparing to unpack .../09-libpython3.10-stdlib_3.10.6-1~22.04.2_amd64.deb ...
Unpacking libpython3.10-stdlib:amd64 (3.10.6-1~22.04.2) ...
Selecting previously unselected package xxd.
Preparing to unpack .../10-xxd_2%3a8.2.3995-1ubuntu2.3_amd64.deb ...
Unpacking xxd (2:8.2.3995-1ubuntu2.3) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../11-vim-common_2%3a8.2.3995-1ubuntu2.3_all.deb ...
Unpacking vim-common (2:8.2.3995-1ubuntu2.3) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../12-libnghttp2-14_1.43.0-1build3_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.43.0-1build3) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../13-libpsl5_0.21.0-1.2build2_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1.2build2) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../14-publicsuffix_20211207.1025-1_all.deb ...
Unpacking publicsuffix (20211207.1025-1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../15-libbrotli1_1.0.9-2build6_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.9-2build6) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../16-libsasl2-modules-db_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../17-libsasl2-2_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Selecting previously unselected package libldap-2.5-0:amd64.
Preparing to unpack .../18-libldap-2.5-0_2.5.13+dfsg-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-0ubuntu0.22.04.1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../19-librtmp1_2.4+20151223.gitfa8646d.1-2build4_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build4) ...
Selecting previously unselected package libssh-4:amd64.
Preparing to unpack .../20-libssh-4_0.9.6-2build1_amd64.deb ...
Unpacking libssh-4:amd64 (0.9.6-2build1) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../21-libcurl4_7.81.0-1ubuntu1.8_amd64.deb ...
Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.8) ...
Selecting previously unselected package curl.
Preparing to unpack .../22-curl_7.81.0-1ubuntu1.8_amd64.deb ...
Unpacking curl (7.81.0-1ubuntu1.8) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../23-libgpm2_1.20.7-10build1_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-10build1) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../24-libldap-common_2.5.13+dfsg-0ubuntu0.22.04.1_all.deb ...
Unpacking libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
Selecting previously unselected package libpython3.10:amd64.
Preparing to unpack .../25-libpython3.10_3.10.6-1~22.04.2_amd64.deb ...
Unpacking libpython3.10:amd64 (3.10.6-1~22.04.2) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../26-libsasl2-modules_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Selecting previously unselected package libsodium23:amd64.
Preparing to unpack .../27-libsodium23_1.0.18-1build2_amd64.deb ...
Unpacking libsodium23:amd64 (1.0.18-1build2) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../28-vim-runtime_2%3a8.2.3995-1ubuntu2.3_all.deb ...
Adding 'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.2.3995-1ubuntu2.3) ...
Selecting previously unselected package vim.
Preparing to unpack .../29-vim_2%3a8.2.3995-1ubuntu2.3_amd64.deb ...
Unpacking vim (2:8.2.3995-1ubuntu2.3) ...
Setting up libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
Setting up media-types (7.0.0) ...
Setting up libpsl5:amd64 (0.21.0-1.2build2) ...
Setting up libsodium23:amd64 (1.0.18-1build2) ...
Setting up libgpm2:amd64 (1.20.7-10build1) ...
Setting up libbrotli1:amd64 (1.0.9-2build6) ...
Setting up libsqlite3-0:amd64 (3.37.2-2ubuntu0.1) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Setting up libnghttp2-14:amd64 (1.43.0-1build3) ...
Setting up libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
Setting up xxd (2:8.2.3995-1ubuntu2.3) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Setting up vim-common (2:8.2.3995-1ubuntu2.3) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build4) ...
Setting up libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Setting up libssh-4:amd64 (0.9.6-2build1) ...
Setting up libmpdec3:amd64 (2.5.1-2build2) ...
Setting up vim-runtime (2:8.2.3995-1ubuntu2.3) ...
Setting up openssl (3.0.2-0ubuntu1.8) ...
Setting up readline-common (8.1.2-1) ...
Setting up publicsuffix (20211207.1025-1) ...
Setting up libreadline8:amd64 (8.1.2-1) ...
Setting up libldap-2.5-0:amd64 (2.5.13+dfsg-0ubuntu0.22.04.1) ...
Setting up libpython3.10-stdlib:amd64 (3.10.6-1~22.04.2) ...
Setting up ca-certificates (20211016ubuntu0.22.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
124 added, 0 removed; done.
Setting up libcurl4:amd64 (7.81.0-1ubuntu1.8) ...
Setting up curl (7.81.0-1ubuntu1.8) ...
Setting up libpython3.10:amd64 (3.10.6-1~22.04.2) ...
Setting up vim (2:8.2.3995-1ubuntu2.3) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/vi.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/vi.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/view.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/view.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/ex.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/ex.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/editor.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/editor.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 2202738098ee
 ---> ecb31380334b
Step 5/20 : ARG TEST_DIR=/var/www/test
 ---> Running in 7115ba06a3e6
Removing intermediate container 7115ba06a3e6
 ---> fa3aa509043a
Step 6/20 : ARG JDK_VERSION=zulu11.62.17-ca-jdk11.0.18-linux_x64
 ---> Running in a2b913379788
Removing intermediate container a2b913379788
 ---> 7558973bd7ad
Step 7/20 : ARG JDK_URL=https://cdn.azul.com/zulu/bin/$JDK_VERSION.tar.gz
 ---> Running in 5c5b903966ea
Removing intermediate container 5c5b903966ea
 ---> 97a174ed52d1
Step 8/20 : ARG JAVA_HOME=$TEST_DIR/$JDK_VERSION
 ---> Running in c2c1443197c7
Removing intermediate container c2c1443197c7
 ---> 5db0bbb32f61
Step 9/20 : ARG JETTY_VERSION=10.0.14
 ---> Running in b093974c07f4
Removing intermediate container b093974c07f4
 ---> 526a33ba0ca9
Step 10/20 : ARG JETTY_DIST=jetty-home-${JETTY_VERSION}
 ---> Running in 831c52f75d95
Removing intermediate container 831c52f75d95
 ---> 865b9cf2143a
Step 11/20 : ARG JETTY_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_VERSION/$JETTY_DIST.tar.gz
 ---> Running in ee781b2f9ef4
Removing intermediate container ee781b2f9ef4
 ---> 19e95e2a8232
Step 12/20 : ARG JETTY_HOME=$TEST_DIR/$JETTY_DIST
 ---> Running in d8d13e41c011
Removing intermediate container d8d13e41c011
 ---> cb414b79aa0b
Step 13/20 : ARG JETTY_BASE=$TEST_DIR/jetty-base
 ---> Running in 2cecc4ebec1d
Removing intermediate container 2cecc4ebec1d
 ---> df0db2ba070b
Step 14/20 : WORKDIR $TEST_DIR
 ---> Running in 511f73c44032
Removing intermediate container 511f73c44032
 ---> c693878bab9a
Step 15/20 : RUN curl "$JDK_URL" | tar xz &&     curl "$JETTY_URL" | tar xz
 ---> Running in e81528303ae6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  190M  100  190M    0     0  46.1M      0  0:00:04  0:00:04 --:--:-- 46.1M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.4M  100 10.4M    0     0  20.5M      0 --:--:-- --:--:-- --:--:-- 20.4M
Removing intermediate container e81528303ae6
 ---> d249241ffd80
Step 16/20 : ENV JETTY_HOME="$JETTY_HOME"     PATH="$JAVA_HOME/bin:$PATH"
 ---> Running in 4bbcfdff3d94
Removing intermediate container 4bbcfdff3d94
 ---> 866cf100a390
Step 17/20 : WORKDIR $JETTY_BASE
 ---> Running in 21d277e0b99a
Removing intermediate container 21d277e0b99a
 ---> f476a5c07967
Step 18/20 : RUN java -jar $JETTY_HOME/start.jar --add-module=server,http
 ---> Running in 2c46986082bd
INFO  : mkdir ${jetty.base}/start.d
INFO  : server          initialized in ${jetty.base}/start.d/server.ini
INFO  : logging-jetty   transitively enabled
INFO  : resources       transitively enabled
INFO  : http            initialized in ${jetty.base}/start.d/http.ini
INFO  : threadpool      transitively enabled, ini template available with --add-module=threadpool
INFO  : logging/slf4j   transitive provider of logging/slf4j for logging-jetty
INFO  : logging/slf4j   dynamic dependency of logging-jetty
INFO  : bytebufferpool  transitively enabled, ini template available with --add-module=bytebufferpool
INFO  : mkdir ${jetty.base}/resources
INFO  : copy ${jetty.home}/modules/logging/jetty/resources/jetty-logging.properties to ${jetty.base}/resources/jetty-logging.properties
INFO  : Base directory was modified
Removing intermediate container 2c46986082bd
 ---> 66f805d7e3a6
Step 19/20 : EXPOSE 8080
 ---> Running in d397888732be
Removing intermediate container d397888732be
 ---> 285ea87e6fe7
Step 20/20 : CMD $JETTY_HOME/bin/jetty.sh start
 ---> Running in df44f37f76c9
Removing intermediate container df44f37f76c9
 ---> a134915edd06
Successfully built a134915edd06
Successfully tagged jetty-issues:9491
[issue-9491-jettysh]$ docker run --rm -it jetty-issues:9491
Starting Jetty: OK Mon Mar 13 21:21:41 UTC 2023
[issue-9491-jettysh]$ 

@joakime joakime added More Info Required Unable To Replicate and removed Bug For general bugs on Jetty side labels Mar 13, 2023
@trautmane
Copy link
Author

Thanks for looking at this!
I'm stumped, because I repeatedly get the failed result running docker on different boxes:

> cat Dockerfile
#   docker build -t jetty-test:latest .
#   docker run -it --rm jetty-test:latest
#   docker run -it --entrypoint /bin/bash --rm jetty-test:latest

FROM ubuntu:22.04

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y curl vim

ARG TEST_DIR=/var/www/test

ARG JDK_VERSION=zulu11.62.17-ca-jdk11.0.18-linux_x64
ARG JDK_URL=https://cdn.azul.com/zulu/bin/$JDK_VERSION.tar.gz
ARG JAVA_HOME=$TEST_DIR/$JDK_VERSION

ARG JETTY_VERSION=10.0.14
ARG JETTY_DIST=jetty-home-${JETTY_VERSION}
ARG JETTY_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_VERSION/$JETTY_DIST.tar.gz
ARG JETTY_HOME=$TEST_DIR/$JETTY_DIST
ARG JETTY_BASE=$TEST_DIR/jetty-base

WORKDIR $TEST_DIR

RUN curl "$JDK_URL" | tar xz && \
    curl "$JETTY_URL" | tar xz

ENV JETTY_HOME="$JETTY_HOME" \
    PATH="$JAVA_HOME/bin:$PATH"

WORKDIR $JETTY_BASE
RUN java -jar $JETTY_HOME/start.jar --add-module=server,http

EXPOSE 8080
CMD $JETTY_HOME/bin/jetty.sh start

> docker build -t jetty-test:latest --no-cache --progress=plain .
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 ...

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 991B done
#2 DONE 0.2s

#1 [internal] load .dockerignore
#1 DONE 0.3s

#3 [internal] load metadata for docker.io/library/ubuntu:22.04
#3 DONE 0.3s

#4 [1/8] FROM docker.io/library/ubuntu:22.04@sha256:2adf22367284330af9f832ffefb717c78239f6251d9d0f58de50b86229ed1427
#4 CACHED

#5 [2/8] RUN apt-get update
#5 0.602 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#5 0.604 Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#5 0.688 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#5 0.709 Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
#5 0.730 Get:5 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [5557 B]
#5 0.770 Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [865 kB]
#5 0.822 Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#5 1.001 Get:8 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [891 kB]
#5 1.184 Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [823 kB]
#5 5.704 Get:10 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#5 5.706 Get:11 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#5 5.707 Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#5 6.012 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1193 kB]
#5 6.238 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [10.9 kB]
#5 6.260 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [880 kB]
#5 6.595 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1129 kB]
#5 7.161 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
#5 7.195 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
#5 7.223 Fetched 26.2 MB in 7s (3925 kB/s)
#5 7.223 Reading package lists...
#5 DONE 8.6s

#6 [3/8] RUN apt-get -y upgrade
#6 0.934 Reading package lists...
#6 1.746 Building dependency tree...
#6 1.875 Reading state information...
#6 1.896 Calculating upgrade...
#6 2.059 The following packages will be upgraded:
#6 2.059   libsystemd0 libudev1
#6 2.101 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#6 2.101 Need to get 394 kB of archives.
#6 2.101 After this operation, 0 B of additional disk space will be used.
#6 2.101 Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsystemd0 amd64 249.11-0ubuntu3.7 [317 kB]
#6 2.185 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libudev1 amd64 249.11-0ubuntu3.7 [76.9 kB]
#6 2.330 debconf: delaying package configuration, since apt-utils is not installed
#6 2.381 Fetched 394 kB in 0s (3204 kB/s)
(Reading database ... 4395 files and directories currently installed.)
#6 2.531 Preparing to unpack .../libsystemd0_249.11-0ubuntu3.7_amd64.deb ...
#6 2.694 Unpacking libsystemd0:amd64 (249.11-0ubuntu3.7) over (249.11-0ubuntu3.6) ...
#6 3.016 Setting up libsystemd0:amd64 (249.11-0ubuntu3.7) ...
(Reading database ... 4395 files and directories currently installed.)
#6 3.324 Preparing to unpack .../libudev1_249.11-0ubuntu3.7_amd64.deb ...
#6 3.454 Unpacking libudev1:amd64 (249.11-0ubuntu3.7) over (249.11-0ubuntu3.6) ...
#6 3.768 Setting up libudev1:amd64 (249.11-0ubuntu3.7) ...
#6 3.951 Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
#6 DONE 4.5s

#7 [4/8] RUN apt-get install -y curl vim
#7 0.851 Reading package lists...
#7 1.668 Building dependency tree...
#7 1.798 Reading state information...
#7 1.925 The following additional packages will be installed:
#7 1.926   ca-certificates libbrotli1 libcurl4 libexpat1 libgpm2 libldap-2.5-0
#7 1.926   libldap-common libmpdec3 libnghttp2-14 libpsl5 libpython3.10
#7 1.926   libpython3.10-minimal libpython3.10-stdlib libreadline8 librtmp1 libsasl2-2
#7 1.926   libsasl2-modules libsasl2-modules-db libsodium23 libsqlite3-0 libssh-4
#7 1.926   media-types openssl publicsuffix readline-common vim-common vim-runtime xxd
#7 1.927 Suggested packages:
#7 1.927   gpm libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
#7 1.927   libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql readline-doc
#7 1.927   ctags vim-doc vim-scripts
#7 1.989 The following NEW packages will be installed:
#7 1.989   ca-certificates curl libbrotli1 libcurl4 libexpat1 libgpm2 libldap-2.5-0
#7 1.989   libldap-common libmpdec3 libnghttp2-14 libpsl5 libpython3.10
#7 1.989   libpython3.10-minimal libpython3.10-stdlib libreadline8 librtmp1 libsasl2-2
#7 1.989   libsasl2-modules libsasl2-modules-db libsodium23 libsqlite3-0 libssh-4
#7 1.990   media-types openssl publicsuffix readline-common vim vim-common vim-runtime
#7 1.990   xxd
#7 2.034 0 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
#7 2.034 Need to get 17.5 MB of archives.
#7 2.034 After this operation, 68.2 MB of additional disk space will be used.
#7 2.034 Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.8 [1184 kB]
#7 2.501 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates all 20211016ubuntu0.22.04.1 [144 kB]
#7 2.503 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
#7 2.508 Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB]
#7 2.514 Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.6-1~22.04.2 [810 kB]
#7 2.600 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 media-types all 7.0.0 [25.5 kB]
#7 2.600 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 readline-common all 8.1.2-1 [53.5 kB]
#7 2.601 Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libreadline8 amd64 8.1.2-1 [153 kB]
#7 2.603 Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsqlite3-0 amd64 3.37.2-2ubuntu0.1 [641 kB]
#7 2.634 Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.6-1~22.04.2 [1832 kB]
#7 3.075 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 xxd amd64 2:8.2.3995-1ubuntu2.3 [51.2 kB]
#7 3.107 Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-common all 2:8.2.3995-1ubuntu2.3 [81.5 kB]
#7 3.163 Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnghttp2-14 amd64 1.43.0-1build3 [76.3 kB]
#7 3.173 Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpsl5 amd64 0.21.0-1.2build2 [58.4 kB]
#7 3.190 Get:15 http://archive.ubuntu.com/ubuntu jammy/main amd64 publicsuffix all 20211207.1025-1 [129 kB]
#7 3.205 Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libbrotli1 amd64 1.0.9-2build6 [315 kB]
#7 3.234 Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg2-3ubuntu1.2 [20.5 kB]
#7 3.234 Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg2-3ubuntu1.2 [53.8 kB]
#7 3.235 Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg-0ubuntu0.22.04.1 [183 kB]
#7 3.528 Get:20 http://archive.ubuntu.com/ubuntu jammy/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build4 [58.2 kB]
#7 3.572 Get:21 http://archive.ubuntu.com/ubuntu jammy/main amd64 libssh-4 amd64 0.9.6-2build1 [184 kB]
#7 3.606 Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl4 amd64 7.81.0-1ubuntu1.8 [290 kB]
#7 3.657 Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.8 [194 kB]
#7 3.740 Get:24 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgpm2 amd64 1.20.7-10build1 [15.3 kB]
#7 3.740 Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.13+dfsg-0ubuntu0.22.04.1 [15.9 kB]
#7 3.740 Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10 amd64 3.10.6-1~22.04.2 [1955 kB]
#7 4.165 Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules amd64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]
#7 4.181 Get:28 http://archive.ubuntu.com/ubuntu jammy/main amd64 libsodium23 amd64 1.0.18-1build2 [164 kB]
#7 4.216 Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-runtime all 2:8.2.3995-1ubuntu2.3 [6825 kB]
#7 5.680 Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim amd64 2:8.2.3995-1ubuntu2.3 [1727 kB]
#7 6.227 debconf: delaying package configuration, since apt-utils is not installed
#7 6.282 Fetched 17.5 MB in 4s (4311 kB/s)
#7 6.398 Selecting previously unselected package openssl.
(Reading database ... 4395 files and directories currently installed.)
#7 6.403 Preparing to unpack .../00-openssl_3.0.2-0ubuntu1.8_amd64.deb ...
#7 6.449 Unpacking openssl (3.0.2-0ubuntu1.8) ...
#7 6.767 Selecting previously unselected package ca-certificates.
#7 6.767 Preparing to unpack .../01-ca-certificates_20211016ubuntu0.22.04.1_all.deb ...
#7 6.808 Unpacking ca-certificates (20211016ubuntu0.22.04.1) ...
#7 7.151 Selecting previously unselected package libexpat1:amd64.
#7 7.152 Preparing to unpack .../02-libexpat1_2.4.7-1ubuntu0.2_amd64.deb ...
#7 7.234 Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
#7 7.452 Selecting previously unselected package libmpdec3:amd64.
#7 7.452 Preparing to unpack .../03-libmpdec3_2.5.1-2build2_amd64.deb ...
#7 7.493 Unpacking libmpdec3:amd64 (2.5.1-2build2) ...
#7 7.777 Selecting previously unselected package libpython3.10-minimal:amd64.
#7 7.778 Preparing to unpack .../04-libpython3.10-minimal_3.10.6-1~22.04.2_amd64.deb ...
#7 7.827 Unpacking libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
#7 8.078 Selecting previously unselected package media-types.
#7 8.079 Preparing to unpack .../05-media-types_7.0.0_all.deb ...
#7 8.128 Unpacking media-types (7.0.0) ...
#7 8.337 Selecting previously unselected package readline-common.
#7 8.338 Preparing to unpack .../06-readline-common_8.1.2-1_all.deb ...
#7 8.379 Unpacking readline-common (8.1.2-1) ...
#7 8.630 Selecting previously unselected package libreadline8:amd64.
#7 8.630 Preparing to unpack .../07-libreadline8_8.1.2-1_amd64.deb ...
#7 8.679 Unpacking libreadline8:amd64 (8.1.2-1) ...
#7 8.947 Selecting previously unselected package libsqlite3-0:amd64.
#7 8.947 Preparing to unpack .../08-libsqlite3-0_3.37.2-2ubuntu0.1_amd64.deb ...
#7 8.997 Unpacking libsqlite3-0:amd64 (3.37.2-2ubuntu0.1) ...
#7 9.164 Selecting previously unselected package libpython3.10-stdlib:amd64.
#7 9.165 Preparing to unpack .../09-libpython3.10-stdlib_3.10.6-1~22.04.2_amd64.deb ...
#7 9.214 Unpacking libpython3.10-stdlib:amd64 (3.10.6-1~22.04.2) ...
#7 9.474 Selecting previously unselected package xxd.
#7 9.475 Preparing to unpack .../10-xxd_2%3a8.2.3995-1ubuntu2.3_amd64.deb ...
#7 9.524 Unpacking xxd (2:8.2.3995-1ubuntu2.3) ...
#7 9.850 Selecting previously unselected package vim-common.
#7 9.851 Preparing to unpack .../11-vim-common_2%3a8.2.3995-1ubuntu2.3_all.deb ...
#7 9.904 Unpacking vim-common (2:8.2.3995-1ubuntu2.3) ...
#7 10.19 Selecting previously unselected package libnghttp2-14:amd64.
#7 10.19 Preparing to unpack .../12-libnghttp2-14_1.43.0-1build3_amd64.deb ...
#7 10.24 Unpacking libnghttp2-14:amd64 (1.43.0-1build3) ...
#7 10.46 Selecting previously unselected package libpsl5:amd64.
#7 10.46 Preparing to unpack .../13-libpsl5_0.21.0-1.2build2_amd64.deb ...
#7 10.50 Unpacking libpsl5:amd64 (0.21.0-1.2build2) ...
#7 10.69 Selecting previously unselected package publicsuffix.
#7 10.69 Preparing to unpack .../14-publicsuffix_20211207.1025-1_all.deb ...
#7 10.73 Unpacking publicsuffix (20211207.1025-1) ...
#7 10.98 Selecting previously unselected package libbrotli1:amd64.
#7 10.98 Preparing to unpack .../15-libbrotli1_1.0.9-2build6_amd64.deb ...
#7 11.02 Unpacking libbrotli1:amd64 (1.0.9-2build6) ...
#7 11.20 Selecting previously unselected package libsasl2-modules-db:amd64.
#7 11.20 Preparing to unpack .../16-libsasl2-modules-db_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#7 11.24 Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#7 11.46 Selecting previously unselected package libsasl2-2:amd64.
#7 11.46 Preparing to unpack .../17-libsasl2-2_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#7 11.50 Unpacking libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#7 11.81 Selecting previously unselected package libldap-2.5-0:amd64.
#7 11.81 Preparing to unpack .../18-libldap-2.5-0_2.5.13+dfsg-0ubuntu0.22.04.1_amd64.deb ...
#7 11.86 Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#7 12.02 Selecting previously unselected package librtmp1:amd64.
#7 12.02 Preparing to unpack .../19-librtmp1_2.4+20151223.gitfa8646d.1-2build4_amd64.deb ...
#7 12.06 Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build4) ...
#7 12.32 Selecting previously unselected package libssh-4:amd64.
#7 12.32 Preparing to unpack .../20-libssh-4_0.9.6-2build1_amd64.deb ...
#7 12.37 Unpacking libssh-4:amd64 (0.9.6-2build1) ...
#7 12.60 Selecting previously unselected package libcurl4:amd64.
#7 12.60 Preparing to unpack .../21-libcurl4_7.81.0-1ubuntu1.8_amd64.deb ...
#7 12.64 Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.8) ...
#7 12.83 Selecting previously unselected package curl.
#7 12.83 Preparing to unpack .../22-curl_7.81.0-1ubuntu1.8_amd64.deb ...
#7 12.87 Unpacking curl (7.81.0-1ubuntu1.8) ...
#7 13.15 Selecting previously unselected package libgpm2:amd64.
#7 13.15 Preparing to unpack .../23-libgpm2_1.20.7-10build1_amd64.deb ...
#7 13.20 Unpacking libgpm2:amd64 (1.20.7-10build1) ...
#7 13.39 Selecting previously unselected package libldap-common.
#7 13.39 Preparing to unpack .../24-libldap-common_2.5.13+dfsg-0ubuntu0.22.04.1_all.deb ...
#7 13.44 Unpacking libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#7 13.71 Selecting previously unselected package libpython3.10:amd64.
#7 13.71 Preparing to unpack .../25-libpython3.10_3.10.6-1~22.04.2_amd64.deb ...
#7 13.76 Unpacking libpython3.10:amd64 (3.10.6-1~22.04.2) ...
#7 14.04 Selecting previously unselected package libsasl2-modules:amd64.
#7 14.04 Preparing to unpack .../26-libsasl2-modules_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#7 14.09 Unpacking libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#7 14.38 Selecting previously unselected package libsodium23:amd64.
#7 14.38 Preparing to unpack .../27-libsodium23_1.0.18-1build2_amd64.deb ...
#7 14.43 Unpacking libsodium23:amd64 (1.0.18-1build2) ...
#7 14.71 Selecting previously unselected package vim-runtime.
#7 14.71 Preparing to unpack .../28-vim-runtime_2%3a8.2.3995-1ubuntu2.3_all.deb ...
#7 14.76 Adding 'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime'
#7 14.81 Adding 'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime'
#7 14.86 Unpacking vim-runtime (2:8.2.3995-1ubuntu2.3) ...
#7 15.54 Selecting previously unselected package vim.
#7 15.54 Preparing to unpack .../29-vim_2%3a8.2.3995-1ubuntu2.3_amd64.deb ...
#7 15.59 Unpacking vim (2:8.2.3995-1ubuntu2.3) ...
#7 15.84 Setting up libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
#7 15.99 Setting up media-types (7.0.0) ...
#7 16.19 Setting up libpsl5:amd64 (0.21.0-1.2build2) ...
#7 16.34 Setting up libsodium23:amd64 (1.0.18-1build2) ...
#7 16.48 Setting up libgpm2:amd64 (1.20.7-10build1) ...
#7 16.63 Setting up libbrotli1:amd64 (1.0.9-2build6) ...
#7 16.78 Setting up libsqlite3-0:amd64 (3.37.2-2ubuntu0.1) ...
#7 16.93 Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#7 17.13 Setting up libnghttp2-14:amd64 (1.43.0-1build3) ...
#7 17.28 Setting up libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#7 17.48 Setting up xxd (2:8.2.3995-1ubuntu2.3) ...
#7 17.63 Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#7 17.78 Setting up vim-common (2:8.2.3995-1ubuntu2.3) ...
#7 17.98 Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build4) ...
#7 18.13 Setting up libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
#7 18.30 Setting up libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#7 18.43 Setting up libssh-4:amd64 (0.9.6-2build1) ...
#7 18.55 Setting up libmpdec3:amd64 (2.5.1-2build2) ...
#7 18.68 Setting up vim-runtime (2:8.2.3995-1ubuntu2.3) ...
#7 18.86 Setting up openssl (3.0.2-0ubuntu1.8) ...
#7 19.06 Setting up readline-common (8.1.2-1) ...
#7 19.20 Setting up publicsuffix (20211207.1025-1) ...
#7 19.35 Setting up libreadline8:amd64 (8.1.2-1) ...
#7 19.50 Setting up libldap-2.5-0:amd64 (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#7 19.65 Setting up libpython3.10-stdlib:amd64 (3.10.6-1~22.04.2) ...
#7 19.82 Setting up ca-certificates (20211016ubuntu0.22.04.1) ...
#7 20.00 debconf: unable to initialize frontend: Dialog
#7 20.00 debconf: (TERM is not set, so the dialog frontend is not usable.)
#7 20.00 debconf: falling back to frontend: Readline
#7 20.00 debconf: unable to initialize frontend: Readline
#7 20.00 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
#7 20.00 debconf: falling back to frontend: Teletype
#7 20.28 Updating certificates in /etc/ssl/certs...
#7 20.71 124 added, 0 removed; done.
#7 20.89 Setting up libcurl4:amd64 (7.81.0-1ubuntu1.8) ...
#7 21.04 Setting up curl (7.81.0-1ubuntu1.8) ...
#7 21.19 Setting up libpython3.10:amd64 (3.10.6-1~22.04.2) ...
#7 21.34 Setting up vim (2:8.2.3995-1ubuntu2.3) ...
#7 21.46 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
#7 21.50 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
#7 21.52 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
#7 21.55 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
#7 21.58 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/da/man1/vi.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/de/man1/vi.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.58 update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
#7 21.60 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/da/man1/view.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/de/man1/view.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
#7 21.60 update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
#7 21.63 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/da/man1/ex.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/de/man1/ex.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.63 update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
#7 21.65 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/da/man1/editor.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/de/man1/editor.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.65 update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
#7 21.73 Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
#7 21.88 Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
#7 21.92 Updating certificates in /etc/ssl/certs...
#7 22.22 0 added, 0 removed; done.
#7 22.22 Running hooks in /etc/ca-certificates/update.d...
#7 22.22 done.
#7 DONE 23.7s

#8 [5/8] WORKDIR /var/www/test
#8 DONE 0.6s

#9 [6/8] RUN curl "https://cdn.azul.com/zulu/bin/zulu11.62.17-ca-jdk11.0.18-linux_x64.tar.gz" | tar xz &&     curl "https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/10.0.14/jetty-home-10.0.14.tar.gz" | tar xz
#9 0.704   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#9 0.704                                  Dload  Upload   Total   Spent    Left  Speed
100  190M  100  190M    0     0  55.5M      0  0:00:03  0:00:03 --:--:-- 55.5M
#9 4.160   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#9 4.160                                  Dload  Upload   Total   Spent    Left  Speed
100 10.4M  100 10.4M    0     0  20.0M      0 --:--:-- --:--:-- --:--:-- 20.0M
#9 DONE 7.8s

#10 [7/8] WORKDIR /var/www/test/jetty-base
#10 DONE 0.6s

#11 [8/8] RUN java -jar /var/www/test/jetty-home-10.0.14/start.jar --add-module=server,http
#11 1.582 INFO  : mkdir ${jetty.base}/start.d
#11 1.587 INFO  : server          initialized in ${jetty.base}/start.d/server.ini
#11 1.588 INFO  : logging-jetty   transitively enabled
#11 1.588 INFO  : resources       transitively enabled
#11 1.588 INFO  : http            initialized in ${jetty.base}/start.d/http.ini
#11 1.589 INFO  : threadpool      transitively enabled, ini template available with --add-module=threadpool
#11 1.589 INFO  : logging/slf4j   transitive provider of logging/slf4j for logging-jetty
#11 1.589 INFO  : logging/slf4j   dynamic dependency of logging-jetty
#11 1.589 INFO  : bytebufferpool  transitively enabled, ini template available with --add-module=bytebufferpool
#11 1.590 INFO  : mkdir ${jetty.base}/resources
#11 1.590 INFO  : copy ${jetty.home}/modules/logging/jetty/resources/jetty-logging.properties to ${jetty.base}/resources/jetty-logging.properties
#11 1.591 INFO  : Base directory was modified
#11 DONE 1.9s

#12 exporting to image
#12 exporting layers
#12 exporting layers 2.5s done
#12 writing image sha256:206441b8c07cf4fdfa24c88350a5fb20fed2dde61029f374b6f8d0c368b5e973 0.0s done
#12 naming to docker.io/library/jetty-test:latest 0.0s done
#12 DONE 2.5s

> docker run -it --rm jetty-test:latest
Starting Jetty: tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
tail: cannot open '/var/www/test/jetty-base/jetty.state' for reading: No such file or directory
. FAILED Mon Mar 13 22:34:18 UTC 2023

@joakime
Copy link
Contributor

joakime commented Mar 14, 2023

What version of docker are you using?

[joakim@hyperion issue-9491-jettysh]$ docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu4
[joakim@hyperion issue-9491-jettysh]$ lsb_release -a
LSB Version:	core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy

@joakime
Copy link
Contributor

joakime commented Mar 14, 2023

I went ahead and added a step to the Dockerfile to list the $TEST_DIR contents (to see file permissions)

[joakim@hyperion issue-9491-jettysh]$ cat Dockerfile 
#   docker build -t jetty-test:latest .
#   docker run -it --rm jetty-test:latest
#   docker run -it --entrypoint /bin/bash --rm jetty-test:latest

FROM ubuntu:22.04

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y curl vim

ARG TEST_DIR=/var/www/test

ARG JDK_VERSION=zulu11.62.17-ca-jdk11.0.18-linux_x64
ARG JDK_URL=https://cdn.azul.com/zulu/bin/$JDK_VERSION.tar.gz
ARG JAVA_HOME=$TEST_DIR/$JDK_VERSION

ARG JETTY_VERSION=10.0.14
ARG JETTY_DIST=jetty-home-${JETTY_VERSION}
ARG JETTY_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_VERSION/$JETTY_DIST.tar.gz
ARG JETTY_HOME=$TEST_DIR/$JETTY_DIST
ARG JETTY_BASE=$TEST_DIR/jetty-base

WORKDIR $TEST_DIR

RUN curl "$JDK_URL" | tar xz && \
    curl "$JETTY_URL" | tar xz

ENV JETTY_HOME="$JETTY_HOME" \
    PATH="$JAVA_HOME/bin:$PATH"

WORKDIR $JETTY_BASE
RUN java -jar $JETTY_HOME/start.jar --add-module=server,http

RUN ls -la $TESTDIR

EXPOSE 8080
CMD $JETTY_HOME/bin/jetty.sh start
[joakim@hyperion issue-9491-jettysh]$ docker build --tag jetty-issues:9491 .
ERROR: gcloud failed to load: module 'collections' has no attribute 'MutableMapping'
    gcloud_main = _import_gcloud_main()
    import googlecloudsdk.gcloud_main
    from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
    from googlecloudsdk.api_lib.util import exceptions
    from googlecloudsdk.core.resource import resource_printer
    from googlecloudsdk.core.resource import config_printer
    from googlecloudsdk.core.resource import resource_printer_base
    from googlecloudsdk.core.resource import resource_projector
    from google.protobuf import json_format as protobuf_encoding
    __import__('pkg_resources').declare_namespace(__name__)
    import packaging.requirements
    from pyparsing import stringStart, stringEnd, originalTextFor, ParseException
    collections.MutableMapping.register(ParseResults)

This usually indicates corruption in your gcloud installation or problems with your Python interpreter.

Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
    /usr/bin/python3

If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.

If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
    https://cloud.google.com/sdk/
Sending build context to Docker daemon  15.36kB
Step 1/21 : FROM ubuntu:22.04
 ---> 74f2314a03de
Step 2/21 : RUN apt-get update
 ---> Using cache
 ---> 423a29381250
Step 3/21 : RUN apt-get -y upgrade
 ---> Using cache
 ---> 38679a1c7f99
Step 4/21 : RUN apt-get install -y curl vim
 ---> Using cache
 ---> ecb31380334b
Step 5/21 : ARG TEST_DIR=/var/www/test
 ---> Using cache
 ---> fa3aa509043a
Step 6/21 : ARG JDK_VERSION=zulu11.62.17-ca-jdk11.0.18-linux_x64
 ---> Using cache
 ---> 7558973bd7ad
Step 7/21 : ARG JDK_URL=https://cdn.azul.com/zulu/bin/$JDK_VERSION.tar.gz
 ---> Using cache
 ---> 97a174ed52d1
Step 8/21 : ARG JAVA_HOME=$TEST_DIR/$JDK_VERSION
 ---> Using cache
 ---> 5db0bbb32f61
Step 9/21 : ARG JETTY_VERSION=10.0.14
 ---> Using cache
 ---> 526a33ba0ca9
Step 10/21 : ARG JETTY_DIST=jetty-home-${JETTY_VERSION}
 ---> Using cache
 ---> 865b9cf2143a
Step 11/21 : ARG JETTY_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_VERSION/$JETTY_DIST.tar.gz
 ---> Using cache
 ---> 19e95e2a8232
Step 12/21 : ARG JETTY_HOME=$TEST_DIR/$JETTY_DIST
 ---> Using cache
 ---> cb414b79aa0b
Step 13/21 : ARG JETTY_BASE=$TEST_DIR/jetty-base
 ---> Using cache
 ---> df0db2ba070b
Step 14/21 : WORKDIR $TEST_DIR
 ---> Using cache
 ---> c693878bab9a
Step 15/21 : RUN curl "$JDK_URL" | tar xz &&     curl "$JETTY_URL" | tar xz
 ---> Using cache
 ---> d249241ffd80
Step 16/21 : ENV JETTY_HOME="$JETTY_HOME"     PATH="$JAVA_HOME/bin:$PATH"
 ---> Using cache
 ---> 866cf100a390
Step 17/21 : WORKDIR $JETTY_BASE
 ---> Using cache
 ---> f476a5c07967
Step 18/21 : RUN java -jar $JETTY_HOME/start.jar --add-module=server,http
 ---> Using cache
 ---> 66f805d7e3a6
Step 19/21 : RUN ls -la $TESTDIR
 ---> Running in 1baf89cc25ad
total 16
drwxr-xr-x 1 root root 4096 Mar 13 21:21 .
drwxr-xr-x 1 root root 4096 Mar 13 21:21 ..
drwxr-xr-x 2 root root 4096 Mar 13 21:21 resources
drwxr-xr-x 2 root root 4096 Mar 13 21:21 start.d
Removing intermediate container 1baf89cc25ad
 ---> 66d9c5b8f187
Step 20/21 : EXPOSE 8080
 ---> Running in 8c1bfec06fb5
Removing intermediate container 8c1bfec06fb5
 ---> 8244970a5baf
Step 21/21 : CMD $JETTY_HOME/bin/jetty.sh start
 ---> Running in 13b0b2e6596d
Removing intermediate container 13b0b2e6596d
 ---> eb370ac34638
Successfully built eb370ac34638
Successfully tagged jetty-issues:9491
[joakim@hyperion issue-9491-jettysh]$ docker run --rm -it jetty-issues:9491
Starting Jetty: OK Tue Mar 14 00:41:26 UTC 2023

This shows that the build I get has $TEST_DIR owned by root, with pretty normal default permissions.

Step 19/21 : RUN ls -la $TESTDIR
 ---> Running in 1baf89cc25ad
total 16
drwxr-xr-x 1 root root 4096 Mar 13 21:21 .
drwxr-xr-x 1 root root 4096 Mar 13 21:21 ..
drwxr-xr-x 2 root root 4096 Mar 13 21:21 resources
drwxr-xr-x 2 root root 4096 Mar 13 21:21 start.d

What does yours show?

@trautmane
Copy link
Author

I'm running a newer docker than you:

> docker --version
Docker version 23.0.1, build a5ee5b1

on RHEL 9.1:

> cat /etc/redhat-release
Red Hat Enterprise Linux release 9.1 (Plow)

My $TEST_DIR looks the same as yours:

#12 [9/9] RUN ls -la $TESTDIR
#12 0.867 total 0
#12 0.867 drwxr-xr-x 1 root root 38 Mar 14 11:27 .
#12 0.867 drwxr-xr-x 1 root root 24 Mar 14 11:27 ..
#12 0.867 drwxr-xr-x 2 root root 38 Mar 14 11:27 resources
#12 0.867 drwxr-xr-x 2 root root 40 Mar 14 11:27 start.d
#12 DONE 1.1s

I just asked a colleague to run the test on his Mac with older Docker. More specifically:

Docker version 20.10.22, build 3a2c30b
MacOS 12.6.1. Desktop Docker is 4.16.2 (95914)

In this environment, the test runs as it did for you without any problem!

@joakime joakime added Third Party Issues with third party libraries or projects and removed More Info Required labels Mar 14, 2023
@joakime
Copy link
Contributor

joakime commented Mar 14, 2023

I think you are running into moby/moby#45133

Closing this issue, as it's not a Jetty issue.

@joakime joakime closed this as completed Mar 14, 2023
@joakime joakime changed the title jetty.sh fails for jetty 10.0.14 on Ubuntu 22.04 Bad directory permissions reported from Jetty 10.0.14 when using Docker 23.0.1 Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Third Party Issues with third party libraries or projects Unable To Replicate
Projects
None yet
Development

No branches or pull requests

2 participants