Reset the MongoDB Password Used by Event Loader

You set the MongoDB username and password that Event Loader uses to connect to the MongoDB servers when you run the create_config.py script. You can reset this password if needed by performing a configuration update.

About this task

Perform this task from the publishing server in the standby engine.

Note: Do not deploy new pricing configuration changes during the configuration update. This must be done after the engine configuration is complete.

To reset the password that Event Loader uses to connect to the MongoDB servers:

For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.

Procedure

  1. Using a secure connection, for example ssh, log in to the publishing server as user mtx.
  2. Go to the ${MTX_CUSTOM_DIR} directory.
    cd_custom_dir
  3. Copy the create_config.info file to a backup file.
    cp create_config.info create_config.info.bak
  4. Edit the create_config.info file to delete this question: EventLoader:What is the password for external database? and save the file.
  5. Enter the following command to run the create_config.py script and when prompted with the question you removed (from the create_config.info file), enter the reset password.
    create_config.py
    After the script finishes you have reset the password on the local server. You are now ready to update the reset-password configuration on each server in the engine.
  6. Enter the following command to copy the local reset-password configuration (propagate the password change) to all servers in the engine.
    configure_engine.py
    After the configuration changes are complete, the script updates the configuration on each server by synchronizing the ${MTX_CUSTOM_DIR} directories, then running the configuration script locally on each server.
  7. Restart the publishing server in the standby engine(s).
  8. Restart the publishing server on the active engine.

Results

The password is reset in both the create_config.info file and the mtx_config.xml file in encrypted form. Event Loader services that are connected to MongoDB continue to be connected using the previously set password; when they are restarted, they use the reset password for connecting.