Docker images from 7.1.3-ga4 fails to startDocker images from 7.1.3-ga4 fails to starthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1184284722024-03-29T06:09:21Z2024-03-29T06:09:21ZRE: Docker images from 7.1.3-ga4 fails to startHonor Dunkerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185455072020-02-19T09:02:26Z2020-02-19T09:02:26ZNice compilation here! <br />Thank you for sharing<a href="https://www.mycfavisit.us/">.</a> Honor Dunker2020-02-19T09:02:26ZRE: Docker images from 7.1.3-ga4 fails to startBijan Vakilihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184444282020-02-06T11:43:52Z2020-02-06T11:43:52Z<html><head></head><body>Okay. It looks like this is a known issue on Windows machines, and likely extends out to Docker via the underlying hyper-v platform. I see it's been discussed around the web and on LR JIRA. I think I'll check if you've tried any of those, for example through a LR container startup script, and what you've found. What do you think?<br><br><a href="https://stackoverflow.com/questions/37170580/error-when-starting-liferay-7-liferay-portal-7-0-ce-ga1-pwc6345-there-is-an">https://stackoverflow.com/questions/37170580/error-when-starting-liferay-7-liferay-portal-7-0-ce-ga1-pwc6345-there-is-an</a><br><a href="https://t.seebgroup.com/liferay-PWC6345-issues">https://t.seebgroup.com/liferay-PWC6345-issues</a><br><br><br>Here's how to initialize some variables before the portal starts.<br><br><pre><code>
Start the container with the option -v $(pwd)/xyz123:/mnt/liferay to bridge $(pwd)/xyz123 in the host operating system to /mnt/liferay on the container.
...
Scripts
All scripts in the container directory /mnt/liferay/scripts will be executed before before Liferay Portal starts. Place your scripts in $(pwd)/xyz123/scripts.
</code></pre><br>Source:<br><a href="https://hub.docker.com/r/liferay/portal">https://hub.docker.com/r/liferay/portal</a><br><br>Also, one additional check to be on safe side:<br><pre><code>
$ docker images liferay/portal:7.1.3-ga4
REPOSITORY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TAG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGE ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CREATED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE
liferay/portal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7.1.3-ga4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; da165ea2c822&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 months ago&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 870MB
</code></pre><br><br><br><br>Lastly, another way to do local dev on Windows would be to install VirtualBox + Ubuntu or some other linux distro that's closer to where Liferay will be running in production. If running Liferay on Windows in PROD, then nevermind <img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif"></body></html>Bijan Vakili2020-02-06T11:43:52ZRE: Docker images from 7.1.3-ga4 fails to startFederico Stendardihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184433072020-02-06T08:41:42Z2020-02-06T08:41:42Z<div class="quote-title">Olaf Kock:</div><blockquote><br /><div class="quote-title">Federico Stendardi:</div><blockquote><br />I don't why my "mountains image" is different from yours in the homepage... <img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" ><br /></blockquote>I've seen that a couple of times: The mountains (or in 7.3 the temple) come from the theme, and apparently the URL is identical between the versions. If you alternate between the different versions on the same address (as I frequently do on localhost:8080), you might hit the cache with the image that was the current one yesterday, when you had 'the other' version running.<br />Just "Shift-Reload" to work around the cache.<br /></blockquote><br />You're right! ;)Federico Stendardi2020-02-06T08:41:42ZRE: Docker images from 7.1.3-ga4 fails to startOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184381922020-02-06T08:06:07Z2020-02-06T08:06:07Z<div class="quote-title">Federico Stendardi:</div><blockquote><br />I don't why my "mountains image" is different from yours in the homepage... <img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" ><br /></blockquote>I've seen that a couple of times: The mountains (or in 7.3 the temple) come from the theme, and apparently the URL is identical between the versions. If you alternate between the different versions on the same address (as I frequently do on localhost:8080), you might hit the cache with the image that was the current one yesterday, when you had 'the other' version running.<br />Just "Shift-Reload" to work around the cache.Olaf Kock2020-02-06T08:06:07ZRE: Docker images from 7.1.3-ga4 fails to startFederico Stendardihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184429462020-02-06T08:00:15Z2020-02-06T08:00:15ZHi Bijan,<br />thanks for your reply.<br />I've reproduced the issue again following what you did.<br />OS: Windows 10<br />Command: docker run --rm -it --name lrtest liferay/portal:7.1.3-ga4 <br />See attached output.<br />I don't why my "mountains image" is different from yours in the homepage... <img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" >Federico Stendardi2020-02-06T08:00:15ZRE: Docker images from 7.1.3-ga4 fails to startBijan Vakilihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184394352020-02-06T03:21:49Z2020-02-06T03:21:49ZHi Federico,<br /><br />What are the steps to recreate this bug?<br /><br />I tried to recreate it and cannot. Here is what I tried.<br />OS: Ubuntu (sorry, don't have windows handy)<br />Command: docker run --rm -it --name lrtest liferay/portal:7.1.3-ga4<br />Output: See attached files<br /><br />I tried adding a couple portlets and was able to without any issues.<br /><blockquote><img src="https://liferay.dev/documents/portlet_file_entry/14/Screenshot+from+2020-02-05+22-17-03.png/9569b5eb-2e3c-08a8-4db1-d6d62906bb21?status=0&download=true" /><br />Bijan Vakili2020-02-06T03:21:49ZDocker images from 7.1.3-ga4 fails to startFederico Stendardihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184284712020-02-05T08:26:51Z2020-02-05T08:26:51ZHi guys,<br />I've started a couple of days ago to play with docker and liferay images (from the official liferay docker hub), in order to speed up our development process.<br />I tried different versions of Liferay (7.1.x and 7.2.x) and I noticed that from the 7.1.3-ga4 the docker image uses the Zulu JDK instead of the OpenJDK.<br />this shouldn't be a problem, but the docker images starting from that version fail to start on my local pc (Windows 10) with this error:<br /><br />2020-02-04T18:27:46.135070078Z javax.portlet.PortletException: org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required<br />2020-02-04T18:27:46.135088170Z at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:333)<br />2020-02-04T18:27:46.135098245Z at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:128)<br />2020-02-04T18:27:46.135105720Z at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:592)<br />2020-02-04T18:27:46.135113195Z at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:608)<br />2020-02-04T18:27:46.135120020Z at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:160)<br />2020-02-04T18:27:46.135126628Z at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:303)<br />2020-02-04T18:27:46.135133453Z at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:492)<br />2020-02-04T18:27:46.135140495Z at javax.portlet.GenericPortlet.render(GenericPortlet.java:291)<br />.... (log truncated since it's too big)<br /><br />I