Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run https://hub.docker.com/r/liferay/dxp for testing #612

Open
chendelin1982 opened this issue May 15, 2024 · 4 comments
Open

run https://hub.docker.com/r/liferay/dxp for testing #612

chendelin1982 opened this issue May 15, 2024 · 4 comments
Assignees
Labels
feature Type label, New feature or request

Comments

@chendelin1982
Copy link
Contributor

What type of your feature request?

test https://hub.docker.com/r/liferay/dxp, if can access it, please let @chendelin1982 use and test it

@chendelin1982 chendelin1982 added the feature Type label, New feature or request label May 15, 2024
@half-yutou
Copy link

[root@test001 ~]# docker run -it -p 8848:8080 liferay/dxp:latest -e LIFERAY_VIRTUAL_PERIOD_HOSTS_PERIOD_VALID_PERIOD_HOSTS=119.8.25.33

after setting env at runtime,an warning is still reported

2024-05-15 07:57:16.978 WARN [http-nio-8080-exec-9][PortalImpl:5507] Set the property "virtual.hosts.valid.hosts" in portal.properties to allow "119.8.25.33" as a domain

@Websoft9 Websoft9 deleted a comment from half-yutou May 15, 2024
@half-yutou
Copy link

[root@test001 ~]# docker run -it -p 8848:8080 liferay/dxp:latest -e LIFERAY_VIRTUAL_PERIOD_HOSTS_PERIOD_VALID_PERIOD_HOSTS=119.8.25.33

after setting env at runtime,an warning is still reported

2024-05-15 07:57:16.978 WARN [http-nio-8080-exec-9][PortalImpl:5507] Set the property "virtual.hosts.valid.hosts" in portal.properties to allow "119.8.25.33" as a domain

when docker run, it stop at:

2024-05-15 08:57:28.666 INFO  [fileinstall-directory-watcher][LicenseManager:-1] DXP Development license validation passed
2024-05-15 08:57:28.666 INFO  [fileinstall-directory-watcher][LicenseManager:-1] License registered for DXP Development

at the same time

  1. browser can jump to the default url after specifying the host and port
    image

  2. when browser jump to the url,server throws a runtime exception:

2024-05-15 08:59:02.449 WARN  [http-nio-8080-exec-10][code_jsp:161] {code="500", msg="", uri=/}
java.lang.RuntimeException: Invalid host name 119.8.25.33
        at com.liferay.portal.servlet.filters.validhostname.ValidHostNameFilter.doFilterTry(ValidHostNameFilter.java:31) ~[portal-impl.jar:?]
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187) ~[portal-kernel.jar:?]
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92) ~[portal-kernel.jar:?]
        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:95) ~[portal-kernel.jar:?]
        at com.liferay.shielded.container.internal.proxy.FilterWrapper.doFilter(FilterWrapper.java:69) ~[com.liferay.shielded.container.impl.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:179) ~[catalina.jar:9.0.87]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:154) ~[catalina.jar:9.0.87]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168) ~[catalina.jar:9.0.87]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) ~[catalina.jar:9.0.87]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481) ~[catalina.jar:9.0.87]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130) [catalina.jar:9.0.87]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) [catalina.jar:9.0.87]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [catalina.jar:9.0.87]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346) [catalina.jar:9.0.87]
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390) [tomcat-coyote.jar:9.0.87]
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) [tomcat-coyote.jar:9.0.87]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928) [tomcat-coyote.jar:9.0.87]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1786) [tomcat-coyote.jar:9.0.87]
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) [tomcat-coyote.jar:9.0.87]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-util.jar:9.0.87]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-util.jar:9.0.87]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) [tomcat-util.jar:9.0.87]
        at java.lang.Thread.run(Thread.java:829) [?:?]
2024-05-15 08:59:02.510 WARN  [http-nio-8080-exec-10][PortalImpl:5507] Set the property "virtual.hosts.valid.hosts" in portal.properties to allow "119.8.25.33" as a domain

though we have specify the env about virtual.hosts.valid.hosts.

@qiaofeng1227
Copy link
Contributor

qiaofeng1227 commented May 16, 2024

2024-05-16 07:08:22.018 INFO  [main][StartupHelperUtil:96] There are no patches installed
2024-05-16 07:08:22.116 INFO  [main][LoggingTimer:74] Starting com.liferay.portal.events.StartupHelperUtil#initResourceActions
2024-05-16 07:08:22.139 INFO  [main][LoggingTimer:35] Completed com.liferay.portal.events.StartupHelperUtil#initResourceActions in 23 ms
2024-05-16 07:08:22.156 INFO  [main][LicenseManager:-1] Failed to find directory /opt/liferay/data/license
2024-05-16 07:08:22.156 INFO  [main][LicenseManager:-1] No binary licenses found
2024-05-16 07:08:22.661 INFO  [main][AutoDeployDir:152] Auto deploy scanner started for /opt/liferay/deploy

The DXP images come with a 30 day trial license. Older images will be regularly deleted and new images with a new 30 day trial license will be made available.

@half-yutou
Copy link

the issue to liferay official site:
liferay/liferay-docker#145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Type label, New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants