When deploying a Mongo Shell I get the following error when it runs ./hooks/config-changed
Traceback (most recent call last):
File "./hooks/config-changed", line 1496, in <module>
retVal = config_changed()
File "./hooks/config-changed", line 1037, in config_changed
mongos_port = re.search('--port (\w+)', mongos_cmd_line).group(2)
Here is the output of `config-changed` when debugging:
mongos/0:config-changed % ./hooks/config-changed
Entering config_changed
config_data: {u'config_server_dbpath': u'/mnt/var/lib/mongodb/configsvr', u'volume-dev-regexp': u'/dev/vd[b-z]', u'dbpath': u'/var/lib/mongodb', u'nocursors': False, u'backups_enabled': False, u'oplogSize': u'default', u'bind_ip': u'all', u'mms-interval': u'disabled', u'port': 27017, u'noprealloc': False, u'verbose': False, u'replicaset': u'myset', u'backup_copies_kept': 7, u'nssize': u'default', u'mongos_logpath': u'/mnt/var/log/mongodb/mongos.log', u'logpath': u'/var/log/mongodb/mongodb.log', u'volume-ephemeral-storage': True, u'source': u'None', u'master': u'self', u'objcheck': False, u'config_server_port': 27019, u'volume-map': u'', u'opIdMem': u'default', u'notablescan': False, u'mongos_port': 27021, u'logrotate-frequency': u'daily', u'journal': True, u'quota': False, u'auth': False, u'extra_config_options': u'none', u'logrotate-rotate': 5, u'arbiter': u'disabled', u'backup_directory': u'/home/ubuntu/backups', u'mms-name': u'disabled', u'logrotate-maxsize': u'500M', u'nohints': False, u'web_admin_ui': True, u'replicaset_master': u'auto', u'mms-token': u'disabled', u'autoresync': False, u'diaglog': 0, u'logappend': True, u'cpu': False, u'config_server_logpath': u'/mnt/var/log/mongodb/configsvr.log', u'noscripting': False, u'extra_daemon_options': u'none'}
current_mongodb_port: 27017
public_address: ec2-XXX-XXX-XXX-XXX.eu-west-1.compute.amazonaws.com
mongodb stop/waiting
mongodb start/running, process 29143
mongodb start/running, process 29143
mongodb start/running, process 29143
Traceback (most recent call last):
File "./hooks/config-changed", line 1496, in <module>
retVal = config_changed()
File "./hooks/config-changed", line 1037, in config_changed
mongos_port = re.search('--port (\w+)', mongos_cmd_line).group(2)
IndexError: no such group
I haven't been able to reproduce this. Can you include your deployment configuration for further investigation?