Mantis - Resin
Viewing Issue Advanced Details
5449 minor unable to reproduce 06-03-13 11:09 11-06-14 10:11
axw001  
ferg  
normal  
closed 4.0.36  
unable to reproduce  
none    
none  
0005449: resin restart - keystore not found
FYI

Following power recycling of a server resin did not restart, logging that it could not find the jsse keystore.

Subsequent manual start of resin worked ok - no changes were made to files locations or permissions.
Resin Professional 4.0.36 (built Fri, 26 Apr 2013 03:33:09 PDT)
Copyright(c) 1998-2012 Caucho Technology. All rights reserved.

  1014903.license -- 4 Resin servers Athene Systems Ltd

Starting Resin Professional on Sun, 02 Jun 2013 06:09:58 +0100 (BST)

/etc/resin/resin.xml:207: com.caucho.vfs.JsseSSLFactory.init(): java.io.FileNotFoundException: /etc/resin/keys/libertyaccounts.keystore

205:
206: <http port="443">
207: <jsse-ssl>
208: <key-store-type>jks</key-store-type>
209: <key-store-file>/etc/resin/keys/libertyaccounts.keystore</key-store-file>

    at com.caucho.config.xml.XmlConfigContext.error(XmlConfigContext.java:1244)
    at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:471)
    at com.caucho.config.xml.XmlConfigContext.configureNode(XmlConfigContext.java:371)
    at com.caucho.config.xml.XmlConfigContext.configureChildBean(XmlConfigContext.java:700)
    at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:686)
    at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
    at com.caucho.config.xml.XmlConfigContext.configureAttribute(XmlConfigContext.java:324)
    at com.caucho.config.program.NodeBuilderChildProgram.inject(NodeBuilderChildProgram.java:82)
    at com.caucho.config.program.ContainerProgram.inject(ContainerProgram.java:88)
    at com.caucho.config.program.ContainerProgram.inject(ContainerProgram.java:88)
    at com.caucho.config.program.ConfigProgram.configure(ConfigProgram.java:107)
    at com.caucho.cloud.network.NetworkClusterSystem.configServer(NetworkClusterSystem.java:348)
    at com.caucho.cloud.network.NetworkClusterSystem.configureServer(NetworkClusterSystem.java:321)
    at com.caucho.cloud.network.NetworkClusterSystem.access$300(NetworkClusterSystem.java:60)
    at com.caucho.cloud.network.NetworkClusterSystem$ServerListener.onServerAdd(NetworkClusterSystem.java:465)
    at com.caucho.cloud.topology.CloudPod.addServerListener(CloudPod.java:294)
    at com.caucho.cloud.network.NetworkClusterSystem$PodListener.onPodAdd(NetworkClusterSystem.java:456)
    at com.caucho.cloud.topology.CloudCluster.addPodListener(CloudCluster.java:340)
    at com.caucho.cloud.network.NetworkClusterSystem$NetworkClusterListener.onClusterAdd(NetworkClusterSystem.java:447)
    at com.caucho.cloud.topology.CloudSystem.addClusterListener(CloudSystem.java:232)
    at com.caucho.cloud.network.NetworkClusterSystem.<init>(NetworkClusterSystem.java:87)
    at com.caucho.cloud.network.ProNetworkClusterSystem.<init>(ProNetworkClusterSystem.java:62)
    at com.caucho.server.resin.ProResinDelegate.createNetworkSystem(ProResinDelegate.java:251)
    at com.caucho.server.resin.Resin.initClusterNetwork(Resin.java:1250)
    at com.caucho.server.resin.Resin.initServletSystem(Resin.java:1278)
    at com.caucho.server.resin.Resin.configure(Resin.java:998)
    at com.caucho.server.resin.Resin.initMain(Resin.java:980)
    at com.caucho.server.resin.Resin.main(Resin.java:1438)
Caused by: com.caucho.config.ConfigException: com.caucho.vfs.JsseSSLFactory.init(): java.io.FileNotFoundException: /etc/resin/keys/libertyaccounts.keystore
    at com.caucho.config.ConfigException.create(ConfigException.java:102)
    at com.caucho.config.ConfigException.create(ConfigException.java:130)
    at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:142)
    at com.caucho.config.type.InlineBeanType.init(InlineBeanType.java:458)
    at com.caucho.config.xml.XmlConfigContext.configureChildBean(XmlConfigContext.java:705)
    at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:686)
    at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
    ... 26 more
Caused by: java.io.FileNotFoundException: /etc/resin/keys/libertyaccounts.keystore
    at com.caucho.vfs.JniFilePathImpl.openReadImpl(JniFilePathImpl.java:402)
    at com.caucho.vfs.Path.openRead(Path.java:1149)
    at com.caucho.vfs.JsseSSLFactory.init(JsseSSLFactory.java:231)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:140)
    ... 30 more
/etc/resin/resin.xml:207: com.caucho.vfs.JsseSSLFactory.init(): java.io.FileNotFoundException: /etc/resin/keys/libertyaccounts.keystore

205:
206: <http port="443">
207: <jsse-ssl>
208: <key-store-type>jks</key-store-type>
209: <key-store-file>/etc/resin/keys/libertyaccounts.keystore</key-store-file>

Notes
(0006554)
ferg   
11-06-14 10:11   
Checked with 4.0.42. Unable to reproduce. Killing the Resin instance and allowing the watchdog to restart it still works with JSSE.

If there are permissions issues, like the keystore not being readable to the resin user, those would need to be added to the bug report to reproduce the issue.