Article - CS305796

"Failed to create SecurityManager, Failed to load SecretProvider" is seen when attempting to start the ThingWorx Platform

Modified: 01-Jun-2022   


Applies To

  • ThingWorx Platform 8.4 to 9.3
  • Apache Tomcat
  • Microsoft Windows

Description

  • Starting the ThingWorx Platform fails
  • Tomcat starts but ThingWorx fails to start
  • Fresh install of ThingWorx fails and no errors are logged in the \ThingworxStorage\logs\ApplicationLog.log
  • \ThingworxStorage\Logs folder not getting created
  • ThingWorx Applications logs getthing created in a folder named LOG_PATH_IS_UNDEFINED in {tomcat_home}
  • Permissions issue for ThingworxPlatform and ThingworxStorage directories
  • Tomcat exists on a different Drive 
  • {tomcat_home}\logs\tomcat9-stdout.YYYY-MM-DD.log shows the following:
    • [DATE_TIME] severe [main] org.apache.catalina.core.StandardContext.filterStart start filter exception:
      javax.servlet.ServletException: com.thingworx.exceptions.ConfigurationException: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
      at com.thingworx.security.authentication.HAAuthenticationFilter.init(HAAuthenticationFilter.java:49)
      at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:270)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:251)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4530)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5176)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
      ...
      Caused by: java.lang.RuntimeException: Failed to create SecurityManager, Failed to load SecretProvider
      at com.thingworx.security.SecurityManagerBootstrapper.init(SecurityManagerBootstrapper.java:65)
      at com.thingworx.system.configuration.PlatformSettings.<init>(PlatformSettings.java:1057)
      at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:1673)
      ... 45 more
      [DATE_TIME] severe [main] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class [com.thingworx.system.ThingWorxBootstrapper]
      java.lang.NullPointerException
      at com.thingworx.system.ThingWorxBootstrapper.contextDestroyed(ThingWorxBootstrapper.java:311)
      at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4729)
      at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5388)
      at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      ...
    • FAIL - Application at context path [/Thingworx] could not be started
This is a PDF version of Article CS305796 and may be out of date. For the latest version click https://www.ptc.com/en/support/article/CS305796?&language=en&posno=1&q=Failed to create SecurityManager&source=search