Skip to main content
Participating Frequently
August 4, 2021
Answered

Coldfusion 2021 Runtime service not available

  • August 4, 2021
  • 8 replies
  • 3042 views

I'm installing Coldfusion 2021 on a RHEL8 server.  It is supposed to be running under Tomcat 9.0.50.  We run this succesfully on a CentOS 8 server/Coldfusion 2018.  However, RHEL, both cf2018 and cf2021 give the following message:

"Error","main","08/04/21","08:52:35","","The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration."
coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available.

How can I mitigate this?

This topic has been closed for replies.
Correct answer BKBK

@Priyank Shrivastava. , Nice to read that you were able to deploy CF2021 on RHEL 8 and Tomcat 9.0.50 without any issue.

 

@bampolsk , a running theme in your error logs is Security. Take a look at the following excerpts:

 

  1. 05-Aug-2021 13:12:13.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-11.0.12.0.7-0.el8_4.x86_64
    05-Aug-2021 13:12:13.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.12+7-LTS
    05-Aug-2021 13:12:13.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Red Hat, Inc.
  2. -Djdk.tls.ephemeralDHKeySize=2048
    -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
    -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
  3. Aug 5, 2021 13:12:18 PM Information [main] - Starting security...
    Aug 5, 2021 13:12:18 PM Error [main] - Unable to install Security package: coldfusion.runtime.Encryptor$InvalidEncryptionKeyException: The key specified is not a valid key for this encryption: Could not create key.
    Aug 5, 2021 13:12:18 PM Information [main] - Unable to initialise CFStartupServlet:The key specified is not a valid key for this encryption: Could not create key.

 

They suggest a security incompatibility.

 

Are you using the Red Hat build of OpenJDK? If so, what happens when you use instead the Java library from ColdFusion downloads?

And, should that fail, what happens when you move one patch down to JDK 11.0.11?

8 replies

bampolskAuthor
Participating Frequently
August 6, 2021

Hi Priyank...  Thanks for your support.  I took your advice, installed the JDK from the Adobe site, and added this line to /etc/systemd/system/tomcat9.service:

Environment=JAVA_HOME=/opt/jdk-11.0.11

 

I'm now to start Coldfusion, login and configure my application.  Thanks again for your support.

 

Regards,

 

Brian

Priyank Shrivastava.
Community Manager
Community Manager
August 6, 2021

Hi Brian, 

 

Glad that it is working for you. It was @BKBK suggestion to change the JDK. 

 

Thanks @BKBK 

 

Thanks, Priyank Shrivastava
bampolskAuthor
Participating Frequently
August 5, 2021

Hi Priyank...  my bad.  I forgot to set proper ownership on my Coldfusion directory tree.  Because it runs as a JEE under Tomcat, ownership should have been tomcat.tomcat which it now is.  After fixing that, I reinitialized the catalina logs and coldfusion's exception.log and server.log, all four of which I'm now uploading to you.  Thanks for your patience.  I hope we can resolve this shortly.

 

Brian

Priyank Shrivastava.
Community Manager
Community Manager
August 5, 2021

Hi Brian,

I deployed CF2021 on Tomcat 9.0.50 without any issue. As per logs, I can see that it is not allowing it to install the packages. Do you have internal access to this server?

 

Here is what I followed. 

1. Created a WAR package

2. Copied the war file in /opt/tomcat/webapps/cfusion.war

3. restart the Tomcat 

I am able to access it using http://hostname:8080/cfusion/CFIDE/administrator/index.cfm

 

Thanks, Priyank Shrivastava
BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
August 6, 2021

@Priyank Shrivastava. , Nice to read that you were able to deploy CF2021 on RHEL 8 and Tomcat 9.0.50 without any issue.

 

@bampolsk , a running theme in your error logs is Security. Take a look at the following excerpts:

 

  1. 05-Aug-2021 13:12:13.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-11.0.12.0.7-0.el8_4.x86_64
    05-Aug-2021 13:12:13.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.12+7-LTS
    05-Aug-2021 13:12:13.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Red Hat, Inc.
  2. -Djdk.tls.ephemeralDHKeySize=2048
    -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
    -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
  3. Aug 5, 2021 13:12:18 PM Information [main] - Starting security...
    Aug 5, 2021 13:12:18 PM Error [main] - Unable to install Security package: coldfusion.runtime.Encryptor$InvalidEncryptionKeyException: The key specified is not a valid key for this encryption: Could not create key.
    Aug 5, 2021 13:12:18 PM Information [main] - Unable to initialise CFStartupServlet:The key specified is not a valid key for this encryption: Could not create key.

 

They suggest a security incompatibility.

 

Are you using the Red Hat build of OpenJDK? If so, what happens when you use instead the Java library from ColdFusion downloads?

And, should that fail, what happens when you move one patch down to JDK 11.0.11?

bampolskAuthor
Participating Frequently
August 5, 2021

Priyank,

 

I should also mention a couple of other things.  We are running Coldfusion 2018 under tomcat 9.0.50 successfully in CentOS 8.  It's only when we migrate to RHEL 8 that we experience this issue.  We have tried both cf2018 and cf2021 under RHEL 8 with the same result.

 

Thanks for your assistance,

 

Brian

Priyank Shrivastava.
Community Manager
Community Manager
August 5, 2021

Hi Brian,

 

I saw that in your first response. Let me try with Tomcat 9.0.50 on RHEL8 and see if I have the same issue. I did see some Permission issue in the logs file. 

 

log4j:ERROR /opt/ColdFusion2021/WEB-INF/cfusion/logs/server.log (Permission denied)
Aug 5, 2021 11:00:31 AM Fatal [main] - java.nio.file.AccessDeniedException: /opt/ColdFusion2021/WEB-INF/cfusion/lib/log4j.properties
log4j:ERROR /opt/ColdFusion2021/WEB-INF/cfusion/logs/exception.log (Permission denied)
Unable to install Logging package: coldfusion.server.ServiceException: java.nio.file.AccessDeniedException: /opt/ColdFusion2021/WEB-INF/cfusion/lib/log4j.properties
coldfusion.server.ServiceException: java.nio.file.AccessDeniedException: /opt/ColdFusion2021/WEB-INF/cfusion/lib/log4j.properties

 

Aug 5, 2021 11:00:31 AM Fatal [main] - Unable to install Logging package: coldfusion.server.ServiceException: java.nio.file.AccessDeniedException: /opt/ColdFusion2021/WEB-INF/cfusion/lib/log4j.properties
Aug 5, 2021 11:00:31 AM Information [main] - Unable to initialise CFStartupServlet:Unable to install Logging package: coldfusion.server.ServiceException: java.nio.file.AccessDeniedException: /opt/ColdFusion2021/WEB-INF/cfusion/lib/log4j.properties
Aug 5, 2021 11:00:31 AM Information [main] - ColdFusion: application services are now available

 

Can you please check if you can fix the permission on logs folder and that has write permission.

 

Thanks, Priyank Shrivastava
bampolskAuthor
Participating Frequently
August 5, 2021

Here are catalina.out and catalina.2021-08-05.log.  Before collecting them, I zeroed out these files on the server, restarted tomcat9 and the attempted to access coldfusion2021 admin again.  I did this to provide the cleanest possible logs.

BKBK
Community Expert
Community Expert
August 5, 2021
quote

I'm installing Coldfusion 2021 on a RHEL8 server.  It is supposed to be running under Tomcat 9.0.50.  ...
"Error","main","08/04/21","08:52:35","","The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration."
coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available.

How can I mitigate this?


By @bampolsk

 

Tomcat 9.0.50? Are you sure?

 

I am on ColdFusion 2021 Update 1, and its Tomcat version is 9.0.41.

Have a look at the Tomcat 9 Changelog. You will see that there are a lot of changes between versions 9.0.41 and 9.0.50.

 

My server details:

 

  • ColdFusion 2021
    Version: 2021.0.01.325996
    Tomcat Version: 9.0.41.0
    Edition: Developer
    Operating System: Windows 10
bampolskAuthor
Participating Frequently
August 4, 2021

One more point... it's installed as a JEE (WAR) application.

Priyank Shrivastava.
Community Manager
Community Manager
August 4, 2021

I thought, I could ask you this but I missed it. Thanks for letting me know. Could you please share the Tomcat catalina.log. Make sure you scan the log for any sensitive information(IPs etc) and then post it here. 

Thanks, Priyank Shrivastava
bampolskAuthor
Participating Frequently
August 4, 2021

Priyank,  Coldfusion should run as an applet under Tomcat9, so I don't have a separate Coldfusion startup log.  Coldfusion is being run as a tomcat applet under the user tomcat.  If you still want, I can post a tomcat log.  there are four different logs:  catalina.out, catalina.2021-08-04.log, localhost.2021-08-04.log, and localhost_access_log.2021-08-04.txt.

Priyank Shrivastava.
Community Manager
Community Manager
August 4, 2021

Hi,

Can you please post complete start up log. Also, which user you are using to start the service?

 

 

 

Thanks, Priyank Shrivastava