Introduction
The scope is to show how to update "systran" user password in mongoDB for SPNS9.
Methodology
1) Stop all SYSTRAN services :
# for i in $(systemctl -a | grep -o "systran.*service"); do systemctl stop $i; done
2) Update in each SYSTRAN DB
Use the new password, shown as "SESpasswordNEW" below in all databases (except mongo internal "admin" and "local" DBs)
- Profiles
- Resources
- TRSL
- config
- corpus
- dictionary
- dispatcher
- feedbacks
- indexer
- information
- locales
- notifications
- production
- routes
- settings
- stats
- translationResource
- user
# mongo -u systranAdmin -p SESpasswordAdmin --authenticationDatabase admin
indexers:PRIMARY> use Profiles
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use Resources
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use TRSL
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use config
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use corpus
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use dictionary
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use dispatcher
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use feedbacks
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use indexer
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use locales
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use notifications
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use production
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use routes
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use settings
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use stats
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use translationResource
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use user
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
indexers:PRIMARY> use information
indexers:PRIMARY> db.changeUserPassword("systran", "SESpasswordNEW")
3) Update mongodb connection strings in following files with the new password :
- /opt/systran/apps-node/enterprise-server/config/database.json
- /opt/systran/corpus-manager2/etc/cm.cfg (two references)
- /opt/systran/dct-indexer/etc/dcti.cfg
- /opt/systran/gdict/etc/gdict.cfg
- /opt/systran/routing/etc/rs.cfg
- /opt/systran/tm-indexer/etc/tmi.cfg
- /opt/systran/translation-dispatcher/etc/std.cfg
- /opt/systran/apps-node/translation-resource-store/config/default.yaml
UPDATE WITH NEW PASSWORD in /opt/systran/apps-node/enterprise-server/install.yaml to be ready for next upgrades.
4) Start services :
# for i in $(systemctl -a | grep -o "systran.*service"); do systemctl start $i; done
5) Verify in GUI state of services and perform translation tests.