Kernel notifier couldn't install

Hello MOSIP team, we install MOSIP kernel module but we have this problem
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘smtp.host’ in value “${smtp.host}”

Thu, Sep 7 2023 1:32:46 pm at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:172)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:237)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:211)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:228)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:88)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:62)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:531)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.boot.autoconfigure.condition.OnPropertyCondition$Spec.collectProperties(OnPropertyCondition.java:150)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.boot.autoconfigure.condition.OnPropertyCondition$Spec.access$000(OnPropertyCondition.java:114)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.boot.autoconfigure.condition.OnPropertyCondition.determineOutcome(OnPropertyCondition.java:96)

Thu, Sep 7 2023 1:32:46 pm at org.springframework.boot.autoconfigure.condition.OnPropertyCondition.getMatchOutcome(OnPropertyCondition.java:58)

“The error you’re encountering, which suggests an issue with resolving the ‘smtp.host’ placeholder in the configuration, can be resolved by ensuring that the SMTP service is installed, verifying that the ‘kernel-default.properties’ file is up to date, and confirming that it has been successfully passed through the ConfigServer. Additionally, please make sure that the ‘smtp.host’ placeholder is defined and correctly configured in your configuration files, and that the value for ‘smtp.host’ is provided and up to date.”

2 Likes

Thank you, So we have to define ${email.smtp.host}, ${email.smtp.username}, ${email.smtp.secret}, ${email.smtp.port} directly in kernel-default.properties or we have another way to passing it from env or config map.
Note: we use mock smtp server provide by mosip

Thank you, Now it work. I set mosip.kernel.mail.proxy-mail=false in kernel-default.properties

Hey @mengleang-ngoun

It’s great to hear that the issue is resolved and our team was able to guide you for any further issues coming up you can initiate a new thread and will help you out.

Best Regards,
Team MOSIP