Legacy Knowledge Base
Published Jul. 2, 2025

initBundle FAILED when creating a Liferay Workspace Project in Liferay Developer Studio with "Download Liferay bundle" option checked

Written By

Emma Liu

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • When creating a Liferay Workspace Project in Liferay Developer Studio with "Download Liferay bundle" option checked, the following initBundle FAILED error is reported in the console:
    CONFIGURE SUCCESSFUL in 15s

    CONFIGURE SUCCESSFUL in 0s
    > Task :downloadBundle

    > Task :initBundle
    Exception in thread "main" java.io.EOFException
    at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.read(GzipCompressorInputStream.java:303)
    at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:608)
    at java.base/java.io.InputStream.transferTo(InputStream.java:704)
    at java.base/java.nio.file.Files.copy(Files.java:3077)
    at com.liferay.portal.tools.bundle.support.internal.util.FileUtil._writeArchiveEntryFile(FileUtil.java:511)
    at com.liferay.portal.tools.bundle.support.internal.util.FileUtil._untar(FileUtil.java:444)
    at com.liferay.portal.tools.bundle.support.internal.util.FileUtil.unpack(FileUtil.java:271)
    at com.liferay.portal.tools.bundle.support.commands.InitBundleCommand.execute(InitBundleCommand.java:58)
    at com.liferay.portal.tools.bundle.support.BundleSupport.main(BundleSupport.java:73)

    > Task :initBundle FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':initBundle'.
    > Process 'command 'C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot\bin\java.exe'' finished with non-zero exit value 1

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 22s
    2 actionable tasks: 2 executed

    (The 'New Liferay Workspace' screenshot)

     Selection_017.png

Environment

  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

Resolution

  • The error is usually reported when the bundle file is not downloaded completely. To confirm this, please go into {USER_HOME}/.liferay/bundles/ folder and unzip the downloaded bundle. There should be error reported when unzipping the bundle zip.
  • To resolve this:
    1. Go to {USER_HOME}/.liferay/bundles/ folder and remove the incomplete zip file.
    2. In Developer Studio, click Initialize Server Bundle as in the screenshot.Selection_015.png
    3. Output similar to the following should be logged in the console:
      CONFIGURE SUCCESSFUL in 0s
      Download https://releases-cdn.liferay.com/portal/7.2.0-ga1/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761.tar.gz
      > Task :downloadBundle
      > Task :initBundle

      BUILD SUCCESSFUL in 2m 26s
      2 actionable tasks: 2 executed
Did this article resolve your issue ?

Legacy Knowledge Base

Capabilities

Product

Education

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy