Skip to content

Getting error TypeError: trigger() got an unexpected keyword argument 'v' #5

@amitsant

Description

@amitsant

Config:

server_a:
id: '2c88ae84-7cb9-40f7-835d-c05e981f564d'
uri: 'mongodb://localhost:27017'
server_b:
id: '0d9c284b-b47c-40b5-932c-547b8685edd0'
uri: 'mongodb://17.213.43.174:27017'

Configured two host .. Getting the following error:

Traceback (most recent call last):
File "build/bdist.macosx-10.8-intel/egg/gevent/greenlet.py", line 390, in run
result = self._run(_self.args, *_self.kwargs)
File "/Library/Python/2.7/site-packages/MongoMultiMaster-0.0.4dev-py2.7.egg/mmm/slave.py", line 140, in replicate
for checkpoint in triggers.run():
File "/Library/Python/2.7/site-packages/MongoMultiMaster-0.0.4dev-py2.7.egg/mmm/triggers.py", line 30, in run
callback(**op)
TypeError: trigger() got an unexpected keyword argument 'v'
<Greenlet at 0x102ae94b0: <bound method ReplicationSlave.replicate of <mmm.slave.ReplicationSlave object at 0x102af3390>>('server_a', None)> failed with TypeError

Traceback (most recent call last):
File "/usr/local/bin/mmm", line 5, in
pkg_resources.run_script('MongoMultiMaster==0.0.4dev', 'mmm')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 489, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1207, in run_script
execfile(script_filename, namespace, namespace)
File "/Library/Python/2.7/site-packages/MongoMultiMaster-0.0.4dev-py2.7.egg/EGG-INFO/scripts/mmm", line 122, in
main()
File "/Library/Python/2.7/site-packages/MongoMultiMaster-0.0.4dev-py2.7.egg/EGG-INFO/scripts/mmm", line 71, in main
args.func(config, servers, args)
File "/Library/Python/2.7/site-packages/MongoMultiMaster-0.0.4dev-py2.7.egg/EGG-INFO/scripts/mmm", line 114, in run_main
gevent.sleep(5)
File "build/bdist.macosx-10.8-intel/egg/gevent/hub.py", line 79, in sleep
File "build/bdist.macosx-10.8-intel/egg/gevent/hub.py", line 164, in switch
gevent.greenlet.LinkedFailed: <Greenlet at 0x102ae94b0: <bound method ReplicationSlave.replicate of <mmm.slave.ReplicationSlave object at 0x102af3390>>('server_a', None)> failed with TypeError

Any workaround for the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions