-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: nuxeo-11.0.0
-
Component/s: ARender
-
Epic Link:
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform 11.1.21, nxplatform 11.1.22
-
Story Points:3
Starting a Nuxeo server with ARender without setting the ARender configuration makes the com.nuxeo.ecm.arender service unstarted and so block the server in strict mode.
2019-10-18T14:26:11,508 ERROR [ComponentManager] Component service:com.nuxeo.ecm.arender notification of application started failed: Secret is null or empty, you need to define it java.lang.RuntimeException: Secret is null or empty, you need to define it at com.nuxeo.ecm.arender.core.ARenderComponent.start(ARenderComponent.java:58) ~[nuxeo-arender-core-11.0.0-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:381) [nuxeo-runtime-11.1-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:709) [nuxeo-runtime-11.1-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:691) [nuxeo-runtime-11.1-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:792) [nuxeo-runtime-11.1-SNAPSHOT.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:447) [nuxeo-runtime-11.1-SNAPSHOT.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:462) [nuxeo-runtime-11.1-SNAPSHOT.jar:?]
If there is missing configuration, ARenderComponent should log that the ARender service is not enabled and not break the server startup, even in strict mode.
Log something like:
log.warn("Missing ARender configuration: ARender disabled");