Search code examples
spring-xd

Port bind exception in spring XD if spring_profiles_active environment variable is added


I am running into a weird issue while trying to run spring XD admin and XD container on single machine. When I don't export the environment variable spring_profiles_active XD admin and XD container are working properly as expected but when I add this environment variable xd-container is throwing a port bind exception, Please find the exception stack trace here.

I can see that xd-container is trying to run some service on 9393, I can definitely change the port and make it run. I would like to understand why am I not facing this issue if I don't export spring_profiles_active environment variable.

Please find my container servers.yml file here.


Solution

  • Try following on your container environment

    export SPRING_PROFILES_ACTIVE=prod,container