Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13233

Running docker image throws error on startup for AJP connector

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.4.4, 14.3.0
    • None
    • None
    • Flagged
    • Pulsar
    • Pulsar 234 - ContentSearch Fin

    Description

      02-Apr-2020 09:17:34.094 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.6.5].
      02-Apr-2020 09:17:34.097 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
      02-Apr-2020 09:17:34.098 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
      02-Apr-2020 09:17:34.101 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1d  10 Sep 2019]
      02-Apr-2020 09:17:34.516 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
      02-Apr-2020 09:17:34.566 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-127.0.0.1-8009"]
      02-Apr-2020 09:17:34.572 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [779] milliseconds
      02-Apr-2020 09:17:34.625 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
      02-Apr-2020 09:17:34.626 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.33]
      02-Apr-2020 09:17:34.661 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/cms]
      02.04.2020 09:17:49 INFO  main [SearchIndex.doInit:659] Index initialized: /brxm/project/target/storage/workspaces/default/index Version: 3
      02.04.2020 09:18:16 ERROR main [LocalHippoRepository.start:329] 
      
      
      	Insecure default administrator credentials are enabled! Change the password!
      
      
      02-Apr-2020 09:18:24.225 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/cms] has finished in [49,564] ms
      02-Apr-2020 09:18:24.226 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/site]
      02-Apr-2020 09:18:40.018 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/site] has finished in [15,792] ms
      02-Apr-2020 09:18:40.023 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
      02-Apr-2020 09:18:40.033 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to start component [Connector[AJP/1.3-8009]]
      	org.apache.catalina.LifecycleException: Protocol handler start failed
      		at org.apache.catalina.connector.Connector.startInternal(Connector.java:1038)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:438)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.lang.reflect.Method.invoke(Method.java:498)
      		at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
      	Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid.
      		at org.apache.coyote.ajp.AbstractAjpProtocol.start(AbstractAjpProtocol.java:264)
      		at org.apache.catalina.connector.Connector.startInternal(Connector.java:1035)
      		... 12 more
      02-Apr-2020 09:18:40.035 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [65,460] milliseconds
      

      I believe this has to do with the tomcat version. The local fix i use temporarily is adding secret=12345 attribute to the ajp connector in server.xml

       

      Attachments

        Activity

          People

            eperez Eduardo Perez (Inactive)
            bvural Baris Can Vural
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: