Issue
-
Unable to add the token in Analytics Cloud configuration of Liferay DXP Instance Settings. The below errors are observed in the console
2021-05-09 12:14:26.660 ERROR [WebContainer : 189][PortletServlet:112] javax.portlet.PortletException: java.net.UnknownHostException: analytics.liferay.com: analytics.liferay.com: unknown error
javax.portlet.PortletException: java.net.UnknownHostException: analytics.liferay.com: analytics.liferay.com: unknown error
at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:69)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:378)
at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:97)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:260)
at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
Environment
- Liferay DXP 7.1
- Analytics Cloud
Resolution
- Usually, the UnknownHostException fires because of the two main reasons:
1) If Wi-Fi signals are weak.
2) If the device connected to the Wifi but no internet is available. - Ensure that the DXP installation has internet access to the Analytic Cloud server.
- For some use cases, such as analyzing corporate intranet usage, visitor's browsers are also behind a firewall. In this scenario, ensure that the corporate office network also allows outbound access for the below URLs:
Additional Information
- The {regionKey} is based on the initial selection during workspace setup (i.e. ac-southamericaeast1, ac-europewest2, ac-europewest3, or ac-uswest1).
- No Network Access to Analytics Cloud