Skip to content

jib-maven-plugin failing with 'No Compressor found for the stream signature' error over some docker images #4389

@leungwh

Description

@leungwh

Environment:

  • jib-maven-plugin 3.4.3
  • Maven
  • Linux

Description of the issue:
jib-maven-plugin is failing with 'No Compressor found for the stream signature' error over some docker images.

Docker images that failed on jib-maven-plugin with 'No Compressor found for the stream signature' error works fine over standard docker image build commands. So we can assure that those images are not corrupted.

The error only happens on some docker images but not others. So far we cannot find out what specific docker image attribute or content would trigger this error.

Expected behavior:
Build succeeds.

Steps to reproduce:

  1. maven execution over pom.xml file (jib-maven-plugin config included)

jib-maven-plugin Configuration:

            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>3.4.3</version>
                <configuration>
                    <from>
                        <image>(image path redacted):latest</image>
                    </from>
                    <container>
                        <extraClasspath>/app/resources/logback</extraClasspath>
                        <workingDirectory>/appvol/application</workingDirectory>
                        <entrypoint>
                            <arg>/bin/sh</arg>
                            <arg>-c</arg>
                            <arg>exec java $JAVA_OPTS -javaagent:/app/libs/dd-java-agent-0.103.0.jar -Ddd.trace.sample.rate=1.0 -Ddd.jdbc.analytics.enabled=true -Ddd.logs.injection=true -Dspring.profiles.active=$SPRING_PROFILES_ACTIVE -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )</arg>
                        </entrypoint>
                        <ports>
                            <port>8080</port>
                        </ports>
                    </container>
                </configuration>
            </plugin>

Log output:
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.3:dockerBuild (default-cli) on project (project name redacted): org.apache.commons.compress.compressors.CompressorException: No Compressor found for the stream signature. -> [Help 1]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions