Spectrum Tomcat Kafka Initialization routine failure
search cancel

Spectrum Tomcat Kafka Initialization routine failure

book

Article ID: 408647

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

Spectrum Tomcat Kafka Initialization routine failure error is seen in tomcat logs.

The following error appears in SPECROOT/tomcat/logs/catalina.out:

text
 
[Kafka-startup] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.IllegalArgumentException: Could not resolve placeholder 'IFS+x' in value "() { ... }"

Or:

text
 
java.lang.IllegalArgumentException: Could not resolve placeholder 'MODULES_REDIRECT_OUTPUT+x'

Environment

Network Observability DX NetOps Spectrum OneClick tomcat web server

Cause

Conflicting environment variables are injected by the environment-modules.x86_64 system package. This package modifies the shell environment in a way that interferes with the Spring Boot placeholder resolution used by the Spectrum Kafka initialization routine.

Resolution

To resolve this issue, disable the modules package loading for the Spectrum user environment:

  1. Move the existing module script to a disabled state: sudo mv /etc/profile.d/modules.sh /etc/profile.d/modules.sh.disabled
  2. Create a script to explicitly unset the module function: echo "unset -f module" | sudo tee /etc/profile.d/disable-module.sh
  3. Restart the Spectrum Tomcat service.

Additional Information

If the solution is not workable in the environment, to speak with a customer representative or a Support Engineer, see Contact Support. Scroll to the bottom of the page and click on your respective region.