Skip to main content
Inspiring
December 23, 2021
Answered

Error Coldfusion 2021

  • December 23, 2021
  • 1 reply
  • 33041 views

Hello ,:)

 

I have a problem with my configuration of coldfusion.

 

I have this same error :

 

Thu Dec 23 15:34:05 2021] [6687:140487759288064] [error] ajp_service::jk_ajp_common.c (3021): (cfusion) connecting to tomcat failed (rc=-3, errors=161, client_errors=0).
[Thu Dec 23 15:34:05 2021] [6688:140487964980992] [info] jk_open_socket::jk_connect.c (816): connect to 127.0.0.1:8020 failed (errno=13)
[Thu Dec 23 15:34:05 2021] [6688:140487964980992] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1158): (cfusion) Failed opening socket to (127.0.0.1:8020) (errno=13)
[Thu Dec 23 15:34:05 2021] [6688:140487964980992] [error] ajp_send_request::jk_ajp_common.c (1829): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=13)
[Thu Dec 23 15:34:05 2021] [6688:140487964980992] [info] ajp_service::jk_ajp_common.c (3000): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Thu Dec 23 15:34:05 2021] [6688:140487964980992] [error] ajp_service::jk_ajp_common.c (3021): (cfusion) connecting to tomcat failed (rc=-3, errors=162, client_errors=0).

 

my server.xml:

 

<!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
This connector uses the NIO implementation that requires the JSSE
style configuration. When using the APR/native implementation, the
OpenSSL style configuration is required as described in the APR/native
documentation-->
<!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />-->
<!-- Define an AJP 1.3 Connector on port 8009-->
<!-- begin connector-->
<Connector protocol="AJP/1.3" port="8020" redirectPort="8453" secret="9661aacd-ac6f-42ad-8dd8-c371c36.." maxThreads="500" connectionTimeout="200000" tomcatAuthentication="false" address="127.0.0.1"/>
<!-- end connector-->
<!-- An Engine represents the entry point (within Catalina) that processes

 

 

 

 

 

 

My workers.proprietes:

 

heartbeat_interval=30
heartbeat_limit=90

#Start of workers.properties associated with 'cfusion'
worker.list=cfusion

worker.cfusion.type=ajp13
worker.cfusion.host=127.0.0.1
worker.cfusion.port=8020
worker.cfusion.heartbeat_servlet_path=/__cf_connector_heartbeat__
worker.cfusion.connection_pool_timeout=60
worker.cfusion.monitoringsecret=49162e5a-c1dc-4d25-a560-d8056d02016d
worker.cfusion.secret=9661aacd-ac6f-42ad-8dd8-c371c366c...
#End of workers.properties associated with 'cfusion

 

Please for you Help i don't know what i can do

 

THANKS 

 

 

 

    This topic has been closed for replies.
    Correct answer imad22375965ncv4
     

    it's ok!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! for the resolution of  the error tomcat !!!!! 

     


    By @imad22375965ncv4

     

    This means your original question has been answered. 🙂

    What suggestion led to the resolution? Please mark it as the correct answer. Alternatively, you could describe the steps that resolved the problem, then mark your description as the correct answer.

     

    That is important for the forum. In so doing you will promote the sharing of knowledge. Your response will also help a fellow developer who comes here looking for solutions. That will surely happen, because connector problems occur frequently.


    Hello ,

     

    Sorry for the delay.

    Yes for me it's ok with you all help.

     

    To resolve my problem, here the step

     

    1. Enable the listen of ipv4 in the jvm

    2. match the server.xml with workers.proprietes
    3.disable the selinux

    if the result of your netstat doesn't show  that your connector  use anyport tcp v4 in your server, is in my case the main problem.

     

     

    After this change my coldfusio n work good

     

    Once again thank you, without your helps i will never resolve my problem

     

    I wish you a good year , many good things for your family and you.....

     

     

    Imad
    3.

    1 reply

    BKBK
    Community Expert
    Community Expert
    December 23, 2021

    Suggestion:

    1. Make sure the connection settings in server.xml match those in workers.properties:
          connectionTimeout / connection_pool_timeout
          maxThreads / connection_pool_size / max_reuse_connections
          secret (the secret must contain 36 characters and no dots; its structure
          must be in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
    2.  Comment out the heartbeat_servlet_path setting.
    3.  Experiment by switching the host value from 127.0.0.1 to localhost.

      Your  workers.properties should then look like:
      heartbeat_interval=30
      heartbeat_limit=90
      
      #Start of workers.properties associated with 'cfusion'
      
      worker.list=cfusion
      
      worker.cfusion.type=ajp13
      worker.cfusion.host=localhost
      worker.cfusion.port=8020
      # worker.cfusion.heartbeat_servlet_path=/__cf_connector_heartbeat__
      worker.cfusion.connection_pool_timeout=200
      worker.cfusion.connection_pool_size=500
      worker.cfusion.max_reuse_connections=500
      worker.cfusion.monitoringsecret=49162e5a-c1dc-4d25-a560-d8056d02016d
      worker.cfusion.secret=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      
      # End of workers.properties associated with 'cfusion​
    Inspiring
    December 24, 2021
    Thanks you so much i will try it
    BKBK
    Community Expert
    Community Expert
    December 25, 2021

    @imad22375965ncv4 , before you test, remember to recreate the connector. You can do so by running the Web Server Configuration Tool, {INSTANCENAME}\runtime\bin\wsconfig.exe.