SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 69896: The SAS® Intelligent Decisioning 5.6 sas-viya-decisiondefinitions-default service does not start

DetailsHotfixAboutRate It

When you restart all viya services, the sas-decisiondefinitions-default service is the only service that is not ready. The rest of the viya service show a status of up. Also, when you restart sas-decisiondefinitions-defautl service using the following code, it shows an up status:

sudo systemctl restart sas-viya-decisiondefinitions-default

When the sas-viya-decisiondefinitions-default service does not show a status of up, the decisions and treatments are not available in the SAS® Model manager GUI.

In this scenario, the /opt/sas/viya/config/var/log/decisiondefinitions/default/sas-decisiondefinitions_<date timestamp>.log file shows messages similar to the following:

2023-02-16 06:43:36.739  INFO 125326 --- [           main:decisions] j.LocalContainerEntityManagerFactoryBean : service Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-02-16 06:43:38.453 ERROR 125326 --- [           main:decisions] .j.p.c.JobExecutionProviderPostProcessor : service Unable to find bean upgradeDecisionService
2023-02-16 06:43:42.374 ERROR 125326 --- [           main:decisions] o.s.b.web.embedded.tomcat.TomcatStarter  : service Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'getCodeGeneratorServletRequestListener': Unsatisfied dependency expressed through field 'asyncExternalArtifactGetter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'asyncExternalArtifactGetter': Unsatisfied dependency expressed through field 'decisionVersionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decisionVersionService': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.sas.dcm.svcs.decisions.service.impl.DecisionVersionServiceImpl] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@506c589e]
2023-02-16 06:43:42.500  INFO 125326 --- [           main:decisions] o.apache.catalina.core.StandardService   : service Stopping service [Tomcat]
2023-02-16 06:43:42.580  WARN 125326 --- [           main:decisions] ConfigServletWebServerApplicationContext : service Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2023-02-16 06:43:42.584  INFO 125326 --- [           main:decisions] j.LocalContainerEntityManagerFactoryBean : service Closing JPA EntityManagerFactory for persistence unit 'default'
2023-02-16 06:43:42.589  INFO 125326 --- [           main:decisions] o.s.s.c.ThreadPoolTaskScheduler          : service Shutting down ExecutorService 'vaultThreadPoolTaskScheduler'
2023-02-16 06:43:42.633  INFO 125326 --- [           main:decisions] ServiceInitializationApplicationListener : service Releasing initialization lock
2023-02-16 06:43:42.757  INFO 125326 --- [           main:decisions] ConditionEvaluationReportLoggingListener : service
 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-02-16 06:43:42.792 ERROR 125326 --- [           main:decisions] o.s.boot.SpringApplication               : service Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)

Workaround

If you manually restart the sas-viya-decisiondefinitions-default service after the initial restart, it starts correctly.

Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Intelligent DecisioningLinux for x645.6Viya
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.