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

Sidecar Elasticsearch aborted at startup in Docker

    Details

      Description

      The sidecar Elasticsearch in these 2 docker images aborted during startup and there is no trace of the reason in other logs:

      • liferay/dxp:7.3.10-ga1
      • liferay/dxp:7.3.10-dxp-2

      I tried them in both Docker Engine 19.03.13 (Docker for Mac 2.5.1) and Docker Engine 20.10.8 (minikube v1.23.2).

      Here are a few outputs:

      $ docker run -it liferay/dxp:7.3.10-dxp-2
      [LIFERAY] To SSH into this container, run: "docker exec -it ddf4c54f9577 /bin/bash".
      ...
      2021-09-30 01:55:46.020 WARN [main][SidecarManager:111] Liferay automatically starts a child process of Elasticsearch named sidecar for convenient development and demonstration purposes. Do NOT use sidecar in production. Refer to the documentation for details on the limitations of sidecar and instructions on configuring a remote Elasticsearch connection in the Control Panel.
      /usr/local/bin/liferay_entrypoint.sh: line 45: 8 Killed start_liferay.sh

      $ docker run -it liferay/dxp:7.3.10-ga1
      [LIFERAY] To SSH into this container, run: "docker exec -it c0ab59cd3bd0 /bin/bash".
      ...
      2021-09-30 02:13:22.769 WARN [main][SidecarManager:109] Liferay automatically starts a child process of Elasticsearch named sidecar for convenient development and demonstration purposes. Do NOT use sidecar in production. Refer to the documentation for details on the limitations of sidecar and instructions on configuring a remote Elasticsearch connection in the Control Panel.
      /usr/local/bin/liferay_entrypoint.sh: line 45: 8 Killed start_liferay.sh

      # In minikube
      $ docker run -it liferay/dxp:7.3.10-dxp-2
      [LIFERAY] To SSH into this container, run: "docker exec -it c8e2ef8ff694 /bin/bash".
      ...
      2021-09-30 06:51:02.326 WARN [main][SidecarManager:111] Liferay automatically starts a child process of Elasticsearch named sidecar for convenient development and demonstration purposes. Do NOT use sidecar in production. Refer to the documentation for details on the limitations of sidecar and instructions on configuring a remote Elasticsearch connection in the Control Panel.
      2021-09-30 06:51:04.211 WARN [com.liferay.portal.se[email protected]3a229ee6[-Xms1g -Xmx1g -XX:+AlwaysPreTouch -Des.path.conf=/opt/liferay/tomcat/temp/sidecar6410934535691922211/config -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dio.netty.allocator.type=unpooled -Dio.netty.allocator.numDirectArenas=0 -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/liferay/tomcat/temp/sidecar6410934535691922211 -Djava.security.policy=jar:file:/opt/liferay/osgi/state/org.eclipse.osgi/602/0/bundleFile!/META-INF/sidecar.policy -Djna.nosys=true]-][Sidecar:623] Sidecar Elasticsearch process is aborted
      java.util.concurrent.ExecutionException: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 137
      at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar$RestartFutureListener.complete(Sidecar.java:619)
      at com.liferay.petra.concurrent.DefaultNoticeableFuture$OnceFutureListener.complete(DefaultNoticeableFuture.java:111)
      at com.liferay.petra.concurrent.DefaultNoticeableFuture.done(DefaultNoticeableFuture.java:85)
      at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:384)
      at java.util.concurrent.FutureTask.setException(FutureTask.java:251)
      at com.liferay.petra.concurrent.DefaultNoticeableFuture.setException(DefaultNoticeableFuture.java:79)
      at java.util.concurrent.FutureTask.run(FutureTask.java:271)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 137
      at com.liferay.petra.process.local.LocalProcessExecutor$SubprocessReactor.call(LocalProcessExecutor.java:309)
      at com.liferay.petra.process.local.LocalProcessExecutor$SubprocessReactor.call(LocalProcessExecutor.java:161)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      ... 1 more

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            michael.chen1 Michael Chen
            Participants of an Issue:
            Recent user:
            Tibor Lipusz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              15 weeks ago

                Packages

                Version Package