KB Article #192780

FM Monitoring Plugin services stopped if special character is used for MongoDB User password parameters

Problem

If you use special character (@, # etc.) in MongoDB User password parameters, then Flow Manager Monitoring Plugin services is getting stopped upon every restart and in logs getting below error:

monitoringfmplugin_1.log: 2026-01-14T07:40:34.3434 [Application] | info: Connecting to MongoDB.

monitoringfmplugin_1.log: 2026-01-14T07:41:04.044 [Application] | error: ERROR during startup: MongoServerSelectionError: connect EINVAL 0.0.0.123:27017 - Local (0.0.0.0:0)

monitoringfmplugin_1.log: 2026-01-14T07:41:04.044 [Application] | error: Please provide all necessary paths to certificates/keys for the client/server communication and env variables.

monitoringfmplugin_1.log: 2026-01-14T07:41:04.044 [Application] | error: Server cannot be closed as it was not initialized.

monitoringfmplugin_1.log: 2026-01-14T07:41:04.044 [MongoConnector] | info: Closing MongoDB connections.


Resolution

For the current FM releases, it's not possible to use special characters for MongoDB user password parameters.

To avoid the issue, in flowmanager configuration:

- Don't use special character (@, # etc.) character for MongoDB user password parameters:

FM_DATABASE_USER_PASSWORD

MONGO_INITDB_ROOT_PASSWORD

- Remove existing database volume

- Start Flowmanager