dennybaa
12/23/2015 - 5:54 PM

-

2015-12-23 17:52:23,670 DEBUG [-] Conflict while trying to save in DB.
Traceback (most recent call last):
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2common/persistence/base.py", line 120, in insert
    model_object = cls._get_impl().insert(model_object)
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2common/models/db/__init__.py", line 170, in insert
    instance = self.model.objects.insert(instance)
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 307, in insert
    raise NotUniqueError(message % unicode(err))
NotUniqueError: Could not save document (E11000 duplicate key error index: st2.role_d_b.$name_1  dup key: { : "admin" })
2015-12-23 17:52:23,672 DEBUG [-] Conflict while trying to save in DB.
Traceback (most recent call last):
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2common/persistence/base.py", line 120, in insert
    model_object = cls._get_impl().insert(model_object)
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2common/models/db/__init__.py", line 170, in insert
    instance = self.model.objects.insert(instance)
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 307, in insert
    raise NotUniqueError(message % unicode(err))
NotUniqueError: Could not save document (E11000 duplicate key error index: st2.role_d_b.$name_1  dup key: { : "observer" })
2015-12-23 17:52:23,673 DEBUG [-] Conflict while trying to save in DB.
Traceback (most recent call last):
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2common/persistence/base.py", line 120, in insert
    model_object = cls._get_impl().insert(model_object)
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2common/models/db/__init__.py", line 170, in insert
    instance = self.model.objects.insert(instance)
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 307, in insert
    raise NotUniqueError(message % unicode(err))
NotUniqueError: Could not save document (E11000 duplicate key error index: st2.role_d_b.$name_1  dup key: { : "system_admin" })
2015-12-23 17:52:23,674 INFO [-] Using partitioner default with sensornode sensornode1.
2015-12-23 17:52:23,676 INFO [-] Found 1 registered sensors in db scan.
2015-12-23 17:52:23,677 INFO [-] Setting up container to run 1 sensors.
2015-12-23 17:52:23,677 INFO [-] 	Sensors list - [u'linux.FileWatchSensor'].
2015-12-23 17:52:23,677 INFO [-] (PID:5403) SensorContainer started.
2015-12-23 17:52:23,679 DEBUG [-] Starting sensor CUD watcher...
2015-12-23 17:52:23,680 INFO [-] Running sensor linux.FileWatchSensor
2015-12-23 17:52:23,694 DEBUG [-] Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL.  See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
2015-12-23 17:52:23,697 AUDIT [-] Access granted to "sensors_container" with the token set to expire at "2015-12-24T17:52:23.696114Z". (username='sensors_container',token_expiration='2015-12-24T17:52:23.696114Z')
2015-12-23 17:52:23,697 WARNING [-] "auth.api_url" configuration option is not configured
2015-12-23 17:52:23,697 DEBUG [-] Running sensor subprocess (cmd="/usr/share/python/st2reactor/bin/python /usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py --pack=linux --file-path=/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py --class-name=FileWatchSensor --trigger-type-refs=linux.file_watch.line --parent-args=["--config-file", "/etc/st2/st2.conf", "--debug"]")
2015-12-23 17:52:23,701 DEBUG [-] Dispatching trigger (trigger=core.st2.sensor.process_spawn,payload={'trace_context': None, 'trigger': 'core.st2.sensor.process_spawn', 'payload': {'timestamp': 1450893143, 'cmd': u'/usr/share/python/st2reactor/bin/python /usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py --pack=linux --file-path=/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py --class-name=FileWatchSensor --trigger-type-refs=linux.file_watch.line --parent-args=["--config-file", "/etc/st2/st2.conf", "--debug"]', 'pid': 5409, 'id': u'FileWatchSensor'}})
2015-12-23 17:52:23,713 DEBUG [-] Open OK!
2015-12-23 17:52:23,715 INFO [-] Connected to amqp://guest:**@127.0.0.1:5672//
2015-12-23 17:52:23,717 DEBUG [-] using channel_id: 1
2015-12-23 17:52:23,719 DEBUG [-] Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL.  See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
2015-12-23 17:52:23,721 DEBUG [-] Channel open
2015-12-23 17:52:23,723 DEBUG [-] Open OK!
2015-12-23 17:52:23,723 DEBUG [-] using channel_id: 1
2015-12-23 17:52:23,725 DEBUG [-] Channel open
2015-12-23 17:52:23,728 DEBUG [-] Closed channel #1
2015-12-23 17:52:23,732 INFO [-] Sensor linux.FileWatchSensor started
2015-12-23 17:52:23,733 DEBUG [-] 1 active sensor(s)
Traceback (most recent call last):
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py", line 24, in <module>
    from st2client.client import Client
ImportError: No module named st2client.client
2015-12-23 17:52:28,734 DEBUG [-] 1 active sensor(s)
2015-12-23 17:52:28,735 INFO [-] Process for sensor linux.FileWatchSensor has exited with code 1
2015-12-23 17:52:28,736 DEBUG [-] Dispatching trigger (trigger=core.st2.sensor.process_exit,payload={'trace_context': None, 'trigger': 'core.st2.sensor.process_exit', 'payload': {'timestamp': 1450893148, 'id': u'FileWatchSensor', 'exit_code': 1}})
2015-12-23 17:52:28,736 DEBUG [-] using channel_id: 1
2015-12-23 17:52:28,739 DEBUG [-] Channel open
2015-12-23 17:52:28,742 DEBUG [-] Closed channel #1
2015-12-23 17:52:28,743 DEBUG [-] Respawning dead sensor (sensor_id=u'linux.FileWatchSensor',sensor={'class_name': u'FileWatchSensor', 'poll_interval': None, 'pack': u'linux', 'ref': u'linux.FileWatchSensor', 'file_path': u'/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py', 'trigger_types': [u'linux.file_watch.line']})
2015-12-23 17:52:31,249 AUDIT [-] Access granted to "sensors_container" with the token set to expire at "2015-12-24T17:52:31.248351Z". (username='sensors_container',token_expiration='2015-12-24T17:52:31.248351Z')
2015-12-23 17:52:31,249 WARNING [-] "auth.api_url" configuration option is not configured
2015-12-23 17:52:31,249 DEBUG [-] Running sensor subprocess (cmd="/usr/share/python/st2reactor/bin/python /usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py --pack=linux --file-path=/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py --class-name=FileWatchSensor --trigger-type-refs=linux.file_watch.line --parent-args=["--config-file", "/etc/st2/st2.conf", "--debug"]")
2015-12-23 17:52:31,252 DEBUG [-] Dispatching trigger (trigger=core.st2.sensor.process_spawn,payload={'trace_context': None, 'trigger': 'core.st2.sensor.process_spawn', 'payload': {'timestamp': 1450893151, 'cmd': u'/usr/share/python/st2reactor/bin/python /usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py --pack=linux --file-path=/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py --class-name=FileWatchSensor --trigger-type-refs=linux.file_watch.line --parent-args=["--config-file", "/etc/st2/st2.conf", "--debug"]', 'pid': 5412, 'id': u'FileWatchSensor'}})
2015-12-23 17:52:31,253 DEBUG [-] using channel_id: 1
2015-12-23 17:52:31,254 DEBUG [-] Channel open
2015-12-23 17:52:31,256 DEBUG [-] Closed channel #1
Traceback (most recent call last):
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py", line 24, in <module>
    from st2client.client import Client
ImportError: No module named st2client.client
2015-12-23 17:52:33,743 DEBUG [-] 1 active sensor(s)
2015-12-23 17:52:33,745 INFO [-] Process for sensor linux.FileWatchSensor has exited with code 1
2015-12-23 17:52:33,745 DEBUG [-] Dispatching trigger (trigger=core.st2.sensor.process_exit,payload={'trace_context': None, 'trigger': 'core.st2.sensor.process_exit', 'payload': {'timestamp': 1450893153, 'id': u'FileWatchSensor', 'exit_code': 1}})
2015-12-23 17:52:33,746 DEBUG [-] using channel_id: 1
2015-12-23 17:52:33,749 DEBUG [-] Channel open
2015-12-23 17:52:33,752 DEBUG [-] Closed channel #1
2015-12-23 17:52:33,753 DEBUG [-] Respawning dead sensor (sensor_id=u'linux.FileWatchSensor',sensor={'class_name': u'FileWatchSensor', 'poll_interval': None, 'pack': u'linux', 'ref': u'linux.FileWatchSensor', 'file_path': u'/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py', 'trigger_types': [u'linux.file_watch.line']})
2015-12-23 17:52:38,752 DEBUG [-] No active sensors
2015-12-23 17:52:38,761 AUDIT [-] Access granted to "sensors_container" with the token set to expire at "2015-12-24T17:52:38.759623Z". (username='sensors_container',token_expiration='2015-12-24T17:52:38.759623Z')
2015-12-23 17:52:38,762 WARNING [-] "auth.api_url" configuration option is not configured
2015-12-23 17:52:38,763 DEBUG [-] Running sensor subprocess (cmd="/usr/share/python/st2reactor/bin/python /usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py --pack=linux --file-path=/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py --class-name=FileWatchSensor --trigger-type-refs=linux.file_watch.line --parent-args=["--config-file", "/etc/st2/st2.conf", "--debug"]")
2015-12-23 17:52:38,771 DEBUG [-] Dispatching trigger (trigger=core.st2.sensor.process_spawn,payload={'trace_context': None, 'trigger': 'core.st2.sensor.process_spawn', 'payload': {'timestamp': 1450893158, 'cmd': u'/usr/share/python/st2reactor/bin/python /usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py --pack=linux --file-path=/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py --class-name=FileWatchSensor --trigger-type-refs=linux.file_watch.line --parent-args=["--config-file", "/etc/st2/st2.conf", "--debug"]', 'pid': 5415, 'id': u'FileWatchSensor'}})
2015-12-23 17:52:38,773 DEBUG [-] using channel_id: 1
2015-12-23 17:52:38,775 DEBUG [-] Channel open
2015-12-23 17:52:38,777 DEBUG [-] Closed channel #1
Traceback (most recent call last):
  File "/usr/share/python/st2reactor/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py", line 24, in <module>
    from st2client.client import Client
ImportError: No module named st2client.client
2015-12-23 17:52:43,753 DEBUG [-] 1 active sensor(s)
2015-12-23 17:52:43,754 INFO [-] Process for sensor linux.FileWatchSensor has exited with code 1
2015-12-23 17:52:43,755 DEBUG [-] Dispatching trigger (trigger=core.st2.sensor.process_exit,payload={'trace_context': None, 'trigger': 'core.st2.sensor.process_exit', 'payload': {'timestamp': 1450893163, 'id': u'FileWatchSensor', 'exit_code': 1}})
2015-12-23 17:52:43,756 DEBUG [-] using channel_id: 1
2015-12-23 17:52:43,758 DEBUG [-] Channel open
2015-12-23 17:52:43,760 DEBUG [-] Closed channel #1
2015-12-23 17:52:43,761 DEBUG [-] Sensor has already been respawned max times, giving up
2015-12-23 17:52:43,762 DEBUG [-] Not respawning a dead sensor (sensor_id=u'linux.FileWatchSensor',sensor={'class_name': u'FileWatchSensor', 'poll_interval': None, 'pack': u'linux', 'ref': u'linux.FileWatchSensor', 'file_path': u'/opt/stackstorm/packs/linux/sensors/file_watch_sensor.py', 'trigger_types': [u'linux.file_watch.line']})