Issue
- Glowrrot is not working and giving these errors:
ERROR [http-nio-8080-exec-5][GlowrootProxyServlet:66] null
org.apache.http.conn.HttpHostConnectException: Connect to localhost:4000 [localhost/127.0.0.1] failed: Connection refused: connect
Environment
- Liferay DXP 2023.Q4+
Resolution
- The 4000 port is the default here.
-
Now, to start with this, first, need to stop the DXP server if users have run the server via
./catalina.sh run, they must run the command./catalina.sh glowroot run.-
Please view the attached screenshot for console logs showing the growroot port or information.
However, in case of docker, enabling Glowroot with theGLOWROOT_ENABLEDenvironment variable set totrue. For example,docker run -e GLOWROOT_ENABLED=true -it -m 8g -p 8080:8080 liferay/dxp:latest
Whereas, if using a Tomcat bundle, run Glowroot from the command line. Navigate to the bundle’s$CATALINA_HOME/binfolder. Then execute./catalina.sh glowroot run.
When users run this command, they will see the same DXP UI as before. Users will be requested to sign in. Please enter the administrator credentials.
To access Glowroot, first log in to your Liferay instance with your administrator account. Glowroot can only be accessed by users with an administrator role.
Now, navigate tohttp://localhost:8080/o/glowrootto access the dashboard.
-
Please view the attached screenshot for console logs showing the growroot port or information.