Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Installatino problem on headless Ubuntu 20.04 server on Digital Ocean
Hello, I've started on a fresh ubuntu server, installed openjdk 11, setup JAVA_HOME, downloaded the liferay-ce-portal-tomcat-7.4.3.24-ga24-20220510074512112.tar.gz latest version, but am having a problem with the installation.
then execute the startup.sh command located in ../tomcat-9.0.56/bin
it start the script but gets stuck in the following place:
2022-05-15 13:53:04.471 INFO [main][PortalContextLoaderListener:123]
JVM arguments: --add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
-Djava.util.logging.config.file=/opt/liferay/tomcat-9.0.56/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djdk.tls.ephemeralDHKeySize=2048
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
-Dorg.apache.catalina.security.SecurityListener.UMASK=0027
-Dfile.encoding=UTF-8 -Djava.locale.providers=JRE,COMPAT,CLDR
-Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -Xms2560m
-Xmx2560m -XX:MaxNewSize=1536m -XX:MaxMetaspaceSize=768m
-XX:MetaspaceSize=768m -XX:NewSize=1536m -XX:SurvivorRatio=7
-Dignore.endorsed.dirs= -Dcatalina.base=/opt/liferay/tomcat-9.0.56
-Dcatalina.home=/opt/liferay/tomcat-9.0.56
-Djava.io.tmpdir=/opt/liferay/tomcat-9.0.56/temp
2022-05-15
13:53:11.477 WARN [main][DialectDetector:82] Liferay is configured to
use Hypersonic as its database. Do NOT use Hypersonic in production.
Hypersonic is an embedded database useful for development and
demonstration purposes. The database settings can be changed in
portal-ext.properties.
2022-05-15 13:53:11.478 INFO
[main][DialectDetector:153] Using dialect
com.liferay.portal.dao.orm.hibernate.HSQLDialect for HSQL Database
Engine 2.3
2022-05-15 13:53:17.797 INFO
[main][ModuleFrameworkImpl:1237] Starting initial bundles
2022-05-15 13:53:19.617 INFO
[ModuleFramework-Static-Bundles-2][InterpolationConfigurationPlugin:109]
Configured directory for secrets: /opt/liferay/osgi/configs
2022-05-15 13:53:23.061 INFO [main][ModuleFrameworkImpl:1534] Started
initial bundles
2022-05-15 13:53:23.062 INFO
[main][ModuleFrameworkImpl:1583] Starting dynamic bundles
2022-05-15 13:53:48.625 INFO [main][ModuleFrameworkImpl:1605] Started
dynamic bundles
2022-05-15 13:53:48.626 INFO
[main][ModuleFrameworkImpl:1612] Starting web bundles
2022-05-15
13:53:52.891 INFO [main][ModuleFrameworkImpl:1666] Started web
bundles
2022-05-15 13:53:52.891 INFO
[main][ModuleFrameworkImpl:253] Navigate to Control Panel > System
> Gogo Shell and enter "lb" to see all bundles
2022-05-15 13:53:56.798 WARN [main][SidecarManager:103] 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.
Have tried leaving the script running for half and hour and it does nothing.
Remeber I'm using a headless server (without desktop).
We're eager to work with liferay, so any help will be appreciated.
Thanks,
Ricardo Malla
Hard to say with just this log. I haven't seen that behavior at all
yet.
Does it also happen on a local server? Can you
reproduce anywhere else?
its a headless server (non desktop) hosted on digital ocean. ubuntu 20.04.
the ./startup.sh just stops.
What other logs can I read to see whats happening?
I spoke to somebody that's well versed on Liferay and he told me that maybe on that part of the installation script the browser pops up for you to continue the installation there, but in my case there's not browser as I'm using the non-desktop version of ubuntu.
will this make sense?
Is there another way to install the server for production? I tried the AWS bitnami image, which was a breeze to install, but came with some bugs (I uploaded a bunch of pdfs and they were not displayed correctly), so thats why I wanted to install the source code directly.
Any ideas?
Thanks!
How much memory does your server have?
Note, as you say
"for production use": You should install Elasticsearch
separately. The sidecar installation is considered good for demo
purposes, but not for production (see installation documentation): It
might well be that this exceeds your server's available memory, but
it's hard to say from this output.
Alternatives: Yes, you can run with other images as well
- if you run any kind of docker: Liferay also publishes images that
you can wire with the proper environmen (elasticsearch, database,
file-storage volume) and run this way.
I am facing the same issue in lifraey 7.4 does anyone have any solution??
Powered by Liferay™