• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

coldfusion 2021 apache 2.4 win64 connector not working 'service unavailable'

New Here ,
Nov 16, 2020 Nov 16, 2020

Copy link to clipboard

Copied

hello all.

i am at a loss...  i installed a vanilla windows 2019 server, coldfusion 2021 trial and apache 2.4.46 win64 (also vanilla).  i then run the coldfusion connector wizzard and that does what it does and says it's done afterwards.

when i want to connect to a website then, i only get "Service Unavailable - The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."

i checked, also using https://helpx.adobe.com/coldfusion/kb/coldfusion-apache-manual-connector-configuration.html and basically, all seems ok:


- mod_jk.conf, workers.properties and mod_jk.so is in apache/conf directory


- the respective two lines are in http.conf:
     Include "C:\Apache24\conf\mod_jk.conf"
     Include "C:\ColdFusion2021\config\wsconfig\1\mod_jk_vhost.conf"

- apache also starts and shows 'Apache/2.4.46 (Win64) OpenSSL/1.1.1h mod_jk/1.2.46' in services

- but mod_jk.log in c:\ColdFusion2021\config\wsconfig\1 shows the following error:
[Mon Nov 16 13:11:25 2020] [6208:11180] [info] jk_open_socket::jk_connect.c (816): connect to ::1:8020 failed (errno=61)
[Mon Nov 16 13:11:25 2020] [6208:11180] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1158): (cfusion) Failed opening socket to (::1:8020) (errno=61)
[Mon Nov 16 13:11:25 2020] [6208:11180] [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=61)
[Mon Nov 16 13:11:25 2020] [6208:11180] [info] ajp_service::jk_ajp_common.c (3000): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Mon Nov 16 13:11:25 2020] [6208:11180] [error] ajp_service::jk_ajp_common.c (3021): (cfusion) connecting to tomcat failed (rc=-3, errors=66, client_errors=0).

- in server.xml in c:\ColdFusion2021\cfusion\runtime\conf, the port seems to be matching:
<Connector protocol="AJP/1.3" port="8020" redirectPort="8453" secret="9d752b89-0684-4a35-afde-7f9fcc1d9eb9" maxThreads="500" connectionTimeout="60000" tomcatAuthentication="false"/>


- coldfusion runs fine on port 8500 (http://{hostname}:8500/CFIDE/administrator) shows admin backend.

 

i have the same issue when also updating some coldfusion 2016 patches (somewhere after update 10) that i could apache no longer get to work.  i had to downgrade to update 10 to have it working again.  i thought i would have messed up something ('updating' the connectors or deleting and rebuilding them did not work either)  - but now i am on a new vanilla system...

 

i hope somebody can help here...  many thanks in advance!

lukas

TOPICS
Connector , Server administration

Views

8.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 16, 2020 Nov 16, 2020

Copy link to clipboard

Copied

workers.properties (with matching secret as in server.xml):

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=60
worker.cfusion.monitoringsecret=25287ba4-d701-4eb9-a48d-6c7e589102f5
worker.cfusion.secret=9d752b89-0684-4a35-afde-7f9fcc1d9eb9
#End of workers.properties associated with 'cfusion'

 

mod_jk.conf:
# Where to find workers.properties
JkWorkersFile "C:/Apache24/conf\workers.properties"
# Load mod_jk module
LoadModule jk_module "C:/Apache24/conf\mod_jk.so"
# Where to put jk shared memory
JkShmFile "C:/Apache24/conf\jk_shm"
# Worker File reload interval in seconds
JkWorkersFileReload "60"
# Where to put global jk logs
JkLogFile "C:/Apache24/conf\mod_jk_global.log"
# Set the jk log level [debug/error/info]
JkLogLevel info

mod_jk_vhost.conf:
# Where to find uriworkermap.properties
JkMountFile "C:\ColdFusion2021\config\wsconfig\1\uriworkermap.properties"
JkMountCopy "All"
# Where to put jk logs
JkLogFile "C:\ColdFusion2021\config\wsconfig\1\mod_jk.log"
# custom environment variables
JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_REMOTE_HOST
JkEnvVar REDIRECT_PATH
JkEnvVar REDIRECT_QUERY_STRING
JkEnvVar REDIRECT_HTTP_ACCEPT
JkEnvVar REDIRECT_HTTP_USER_AGENT
JkEnvVar REDIRECT_REMOTE_ADDR
JkEnvVar REDIRECT_SERVER_NAME
JkEnvVar REDIRECT_SERVER_PORT
JkEnvVar REDIRECT_SERVER_SOFTWARE
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
DirectoryIndex index.cfm
Alias /cf_scripts "C:\ColdFusion2021\cfusion\wwwroot\cf_scripts"
<Directory "C:\ColdFusion2021\cfusion\wwwroot\cf_scripts">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Files ~ ".hbmxml$">
Require all denied
</Files>

uriworkermap.properties:
/cfformgateway/* = cfusion
/CFFormGateway/* = cfusion
/flex2gateway/* = cfusion
/flex2gateway = cfusion
/cffileservlet/* = cfusion
/CFFileServlet/* = cfusion
/cfform-internal/* = cfusion
/flashservices/gateway/* = cfusion
/flex-internal/* = cfusion
/rest/* = cfusion
/restapps/* = cfusion
/mcs/* = cfusion
/mcs = cfusion
/__cf_connector_heartbeat__ = cfusion
/cfapiresources/* = cfusion
/*.mxml = cfusion
/*.as = cfusion
/*.cfm = cfusion
/*.CFM = cfusion
/*.Cfm = cfusion
/*.cfm/* = cfusion
/*.CFM/* = cfusion
/*.Cfm/* = cfusion
/*.swc = cfusion
/*.cfml = cfusion
/*.CFML = cfusion
/*.Cfml = cfusion
/*.cfml/* = cfusion
/*.CFML/* = cfusion
/*.Cfml/* = cfusion
/*.cfc = cfusion
/*.CFC = cfusion
/*.Cfc = cfusion
/*.cfc/* = cfusion
/*.CFC/* = cfusion
/*.Cfc/* = cfusion
/*.cfr = cfusion
/*.CFR = cfusion
/*.Cfr = cfusion
/*.cfswf = cfusion
/*.CFSWF = cfusion
/*.Cfswf = cfusion
/*.sws = cfusion
/*.jsp = cfusion
/*.hbmxml = cfusion
!/CFIDE/* = cfusion

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 22, 2021 Dec 22, 2021

Copy link to clipboard

Copied

LATEST

Responding for posterity. I had the same issue, but I was on Linux.

The key indicator is this:

connect to ::1:8020 failed

It's trying to connect via IPv6, but chances are your coldfusion is not using IPv6.

I corrected this by editing my conf/workers.properties file to the following: (Change localhost to 127.0.0.1)

worker.cfusion.host=127.0.0.1

 It's not exactly the proper solution, but it'll work for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation