IndexError: no such group

Bug #1309974 reported by Tugdual de Kerviler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MongoDB Charm
Invalid
Undecided
Charles Butler

Bug Description

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

Revision history for this message
Charles Butler (lazypower) wrote :

I haven't been able to reproduce this. Can you include your deployment configuration for further investigation?

Changed in mongodb (Juju Charms Collection):
status: New → Incomplete
assignee: nobody → Charles Butler (lazypower)
affects: mongodb (Juju Charms Collection) → mongodb-charm
Revision history for this message
Xav Paice (xavpaice) wrote :

bug is nearly 6 years old with little to no activity - marking invalid (unless we can find a reproducer?).

Changed in charm-mongodb:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.