Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-113624

Environment variables are not passed for the worker api

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Labels:
      None

      Description

      Example log

      C:\Users\liferay\opt\git-stuff\liferay-portal-ee\modules>gw -b util.gradle formatSourceCurrentBranch
      Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
      Configuration on demand is an incubating feature.
      Unexpected exception thrown.
      org.gradle.internal.remote.internal.MessageIOException: Could not write '/127.0.0.1:50371'.
              at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:137)
              at org.gradle.internal.remote.internal.hub.MessageHub$ConnectionDispatch.run(MessageHub.java:331)
              at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
              at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
              at sun.nio.ch.SocketDispatcher.write0(Native Method)
              at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
              at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
              at sun.nio.ch.IOUtil.write(IOUtil.java:51)
              at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
              at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.writeWithNonBlockingRetry(SocketConnection.java:276)
              at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.writeBufferToChannel(SocketConnection.java:264)
              at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:258)
              at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:135)
              ... 7 more
      
      > Task :formatSourceCurrentBranch FAILED
      Add Git to your PATH system variable first
      
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':formatSourceCurrentBranch'.
      > A failure occurred while executing com.liferay.gradle.util.work.ExecuteJavaWorkAction
         > Failed to run Gradle Worker Daemon
            > Process 'Gradle Worker Daemon 1' finished with non-zero exit value 1
      

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              peter.shin Peter Shin
              Recent user:
              Brian Chan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Master