Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1751

Container fails to start when LOGBACK_LEVEL environment variable is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.5.0
    • None
    • guacamole-docker
    • None
    • x86 CentOS Stream 8 with Docker version 20.10.13, build a224086

    Description

      Symptom

      When starting up the docker image `guacamole/guacamole:latest`, with the environment variable `LOGBACK_LEVEL` set to anything, the container fails to start. The container logs only show the following line:

      /opt/guacamole/bin/start.sh: 1169: unzip: not found

      Preliminary Investigation

      This is the code around the aforementioned line above:

      if [ -n "$LOGBACK_LEVEL" ]; then
          unzip -o -j /opt/guacamole/guacamole.war WEB-INF/classes/logback.xml -d $GUACAMOLE_HOME
          sed -i "s/level=\"info\"/level=\"$LOGBACK_LEVEL\"/" $GUACAMOLE_HOME/logback.xml
      fi

      The code only executes if the `LOGBACK_LEVEL` environment variable is set, and then the unzip command fails, likely because it is not installed in the image.

      Proposed solution

      Install the unzip program by adding it to the relevant Dockerfile.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              koellewe Jans Rautenbach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: