Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66583

LTS Container 2.303.1 uses OpenJDK with wrong file encoding

    XMLWordPrintable

Details

    Description

      The openjdk-11 used in the Docker build has the default file encoding set to ANSI instead of UTF-8. This is from jenkins systemInfo: 

      sun.jnu.encoding ANSI_X3.4-1968

      As we use non ANSI file names, this breaks Jenkins:

       WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID f755cad7-a303-403d-9dde-3e9296ce302d
      java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters ...

      Because the JAVA_OPTS parameter 

      -Dsun.jnu.encoding=UTF-8

      doesn't work, we can't fix this. So we can't use the current Jenkins LTS container.

      See https://github.com/AdoptOpenJDK/openjdk-docker/issues/105

      Attachments

        Activity

          sascha_broich Sascha added a comment -

          The LTS version 2.303.2 has resolved the issue.

          sascha_broich Sascha added a comment - The LTS version 2.303.2 has resolved the issue.
          sascha_broich Sascha added a comment -

          I restarted the container today and everything is fine. I don't know what had gone wrong yesterday.  Maybe it was some browser cache artifact or such.

          sascha_broich Sascha added a comment - I restarted the container today and everything is fine. I don't know what had gone wrong yesterday.  Maybe it was some browser cache artifact or such.
          timja Tim Jacomb added a comment -

          Locale is fixed in 2.303.2 and there's been no reports since that was released that it wasn't fixed.

          Status: Downloaded newer image for jenkins/jenkins:2.303.2
          jenkins@4d1ef106d09e:/$ locale
          LANG=C.UTF-8
          LANGUAGE=
          LC_CTYPE="C.UTF-8"
          LC_NUMERIC="C.UTF-8"
          LC_TIME="C.UTF-8"
          LC_COLLATE="C.UTF-8"
          LC_MONETARY="C.UTF-8"
          LC_MESSAGES="C.UTF-8"
          LC_PAPER="C.UTF-8"
          LC_NAME="C.UTF-8"
          LC_ADDRESS="C.UTF-8"
          LC_TELEPHONE="C.UTF-8"
          LC_MEASUREMENT="C.UTF-8"
          LC_IDENTIFICATION="C.UTF-8"
          LC_ALL=
          

          Can you provide complete steps to reproduce?

          timja Tim Jacomb added a comment - Locale is fixed in 2.303.2 and there's been no reports since that was released that it wasn't fixed. Status: Downloaded newer image for jenkins/jenkins:2.303.2 jenkins@4d1ef106d09e:/$ locale LANG=C.UTF-8 LANGUAGE= LC_CTYPE= "C.UTF-8" LC_NUMERIC= "C.UTF-8" LC_TIME= "C.UTF-8" LC_COLLATE= "C.UTF-8" LC_MONETARY= "C.UTF-8" LC_MESSAGES= "C.UTF-8" LC_PAPER= "C.UTF-8" LC_NAME= "C.UTF-8" LC_ADDRESS= "C.UTF-8" LC_TELEPHONE= "C.UTF-8" LC_MEASUREMENT= "C.UTF-8" LC_IDENTIFICATION= "C.UTF-8" LC_ALL= Can you provide complete steps to reproduce?
          sascha_broich Sascha added a comment -

          It's still not fixed in 2.303.2

          sascha_broich Sascha added a comment - It's still not fixed in 2.303.2
          timja Tim Jacomb added a comment -

          Yes correct

          timja Tim Jacomb added a comment - Yes correct

          I think this issue is related to:

          And therefore I think this issue is fixed (at least) in the next release.

          timja might know much more about this – and maybe even likes to mark this issue as fixed?

          reinholdfuereder Reinhold Füreder added a comment - I think this issue is related to: https://github.com/jenkinsci/docker/pull/1194 https://github.com/jenkinsci/docker/issues/1199 and https://github.com/jenkinsci/docker/pull/1201 https://github.com/jenkinsci/docker-agent/pull/191 And therefore I think this issue is fixed (at least) in the next release. timja might know much more about this – and maybe even likes to mark this issue as fixed?

          People

            csanchez Carlos Sanchez
            sascha_broich Sascha
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: