Open guillain opened 6 years ago
Hey guillain
I don't see the webhook plugin being loaded (search for err-webhook-cisco-spark in your output). There are two parts to this implementation as indicated in the requirements. First is the backend (this repo) and second is the webhook repo which is found here (https://github.com/marksull/err-webhook-cisco-spark). Install the webhook and see how you go.
Thanks a lot for your feedback.
Effectively I saw that yesteray during the night (after open my eyes properly on your Readme, my bad, sorry for that).
I start with errbot so I've installed backend & webhook via repos to test it (i'll check later the install by script for my docker env) but I've the same behavior.
Both plugins seam to be loaded properly and the webhooks registered but no connection available:
tcp CLOSE-WAIT 86 0 MY LOCAL IP:37652 13.59.223.105:443 users:(("errbot",pid=8710,fd=8))
I'll continue the investigation and let you know ASAP. Thanks a lot !!! (and have a nice weekend ;-))
Start
20:35:33 INFO errbot.specific_plugin_ma storage search paths {'/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/storage'}
20:35:33 INFO errbot.specific_plugin_ma Found those plugings available:
20:35:33 INFO errbot.specific_plugin_ma Shelf (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/storage/shelf.py)
20:35:33 INFO errbot.specific_plugin_ma Memory (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/storage/memory.py)
20:35:33 INFO errbot.bootstrap Found Storage plugin: 'Shelf'
Description: This is the storage plugin for the traditional shelf store for errbot.
20:35:33 DEBUG errbot.specific_plugin_ma Refilter the plugins...
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/storage/memory.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 DEBUG errbot.specific_plugin_ma Load the one remaining...
20:35:33 DEBUG errbot.specific_plugin_ma Class to load ShelfStoragePlugin
20:35:33 DEBUG errbot.storage Opening storage 'repomgr'
20:35:33 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/repomgr.db
20:35:33 DEBUG errbot.storage Opening storage 'core'
20:35:33 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/core.db
20:35:33 INFO errbot.specific_plugin_ma backends search paths {'/var/www/errbot.marksull/src/err-backend-cisco-spark', '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends'}
20:35:33 INFO errbot.specific_plugin_ma Found those plugings available:
20:35:33 INFO errbot.specific_plugin_ma CiscoSpark (/var/www/errbot.marksull/src/err-backend-cisco-spark/CiscoSpark.py)
20:35:33 INFO errbot.specific_plugin_ma Null (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/null.py)
20:35:33 INFO errbot.specific_plugin_ma IRC (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/irc.py)
20:35:33 INFO errbot.specific_plugin_ma Hipchat (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/hipchat.py)
20:35:33 INFO errbot.specific_plugin_ma Telegram (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/telegram_messenger.py)
20:35:33 INFO errbot.specific_plugin_ma Graphic (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/graphic.py)
20:35:33 INFO errbot.specific_plugin_ma XMPP (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/xmpp.py)
20:35:33 INFO errbot.specific_plugin_ma Test (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/test.py)
20:35:33 INFO errbot.specific_plugin_ma Text (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/text.py)
20:35:33 INFO errbot.specific_plugin_ma Slack (/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/slack.py)
20:35:33 INFO errbot.bootstrap Found Backend plugin: 'CiscoSpark'
Description: This is a backend implementation for Cisco Spark
20:35:33 DEBUG errbot.specific_plugin_ma Refilter the plugins...
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/null.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/irc.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/hipchat.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/telegram_messenger.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/graphic.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/xmpp.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/test.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/text.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 WARNING yapsy Plugin candidate '/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/backends/slack.plug' rejected by strategy 'SpecificBackendLocator'
20:35:33 DEBUG errbot.specific_plugin_ma Load the one remaining...
20:35:34 DEBUG errbot.specific_plugin_ma Class to load CiscoSparkBackend
20:35:34 DEBUG errbot.core ErrBot init.
20:35:34 DEBUG errbot.backends.base Backend init.
20:35:34 DEBUG errbot.core created a thread pool of size 10.
20:35:34 DEBUG errbot.backends.CiscoSpar Room presence: ('ONE_ONE', 'DEV_ROOM', 'PUBLIC_ROOM')
20:35:34 DEBUG errbot.backends.CiscoSpar Fetching and building identifier for the bot itself.
20:35:34 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): api.ciscospark.com
20:35:35 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "GET /v1/people/me HTTP/1.1" 200 None
20:35:35 DEBUG errbot.backends.CiscoSpar Done! I'm connected as ERRBOT_ID : ['errbotmebotte@sparkbot.io']
20:35:35 DEBUG errbot.core Initializing backend storage
20:35:35 DEBUG errbot.storage Opening storage 'CiscoSpark_backend'
20:35:35 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/CiscoSpark_backend.db
20:35:35 DEBUG errbot.plugin_manager All plugin roots:
20:35:35 DEBUG errbot.plugin_manager -> /var/www/errbot.marksull/errbot/plugins/err-example
20:35:35 DEBUG errbot.plugin_manager Add /var/www/errbot.marksull/errbot/plugins/err-example to sys.path
20:35:35 DEBUG errbot.plugin_manager -> /var/www/errbot.marksull/errbot/data/plugins/marksull/err-webhook-cisco-spark
20:35:35 DEBUG errbot.plugin_manager Add /var/www/errbot.marksull/errbot/data/plugins/marksull/err-webhook-cisco-spark to sys.path
20:35:35 DEBUG errbot.plugin_manager -> /var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark
20:35:35 DEBUG errbot.plugin_manager Add /var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark to sys.path
20:35:35 DEBUG errbot.plugin_manager -> /var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins
20:35:35 DEBUG errbot.plugin_manager Add /var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins to sys.path
20:35:35 DEBUG errbot.plugin_manager /var/www/errbot.marksull/errbot/plugins/err-example has no requirements.txt file
20:35:35 DEBUG errbot.plugin_manager /var/www/errbot.marksull/errbot/data/plugins/marksull/err-webhook-cisco-spark has no requirements.txt file
20:35:35 INFO errbot.plugin_manager Installing packages from '/var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark/requirements.txt'.
Requirement already satisfied: requests in /usr/lib/python3.4/site-packages (from -r /var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark/requirements.txt (line 1))
Requirement already satisfied: future in /usr/lib/python3.4/site-packages (from -r /var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark/requirements.txt (line 2))
Requirement already satisfied: ciscosparkapi in /usr/lib/python3.4/site-packages (from -r /var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark/requirements.txt (line 3))
Requirement already satisfied: requests-toolbelt in /usr/lib/python3.4/site-packages (from ciscosparkapi->-r /var/www/errbot.marksull/errbot/data/plugins/marksull/err-backend-cisco-spark/requirements.txt (line 3))
20:35:36 DEBUG errbot.plugin_manager /var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins has no requirements.txt file
20:35:36 DEBUG errbot.plugins.Example Logger for plugin initialized...
20:35:36 INFO errbot webhooks: Flag to bind /errbot/spark to errbot_spark
20:35:36 DEBUG errbot.plugins.CiscoSpark Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.Utils Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.VersionChe Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.CommandNot Logger for plugin initialized...
20:35:36 INFO errbot webhooks: Flag to bind /echo to echo
20:35:36 DEBUG errbot.plugins.Webserver Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.Flows Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.Health Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.Help Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.ACLs Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.ChatRoom Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.Backup Logger for plugin initialized...
20:35:36 DEBUG errbot.plugins.Plugins Logger for plugin initialized...
20:35:36 DEBUG errbot.bootstrap Start serving commands from the CiscoSpark backend
20:35:36 INFO errbot.core Activate internal commands
20:35:36 INFO errbot.plugin_manager Activate bot plugins...
20:35:36 INFO errbot.plugin_manager Activate plugin: Example
20:35:36 DEBUG errbot.plugin_manager Plugin Example has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Example with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating No templates directory found for this plugin [Looking for /var/www/errbot.marksull/errbot/plugins/err-example/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Example
20:35:36 DEBUG errbot.storage Opening storage 'Example'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Example.db
20:35:36 DEBUG errbot.core Adding command : tryme -> tryme
20:35:36 INFO errbot.core_plugins.wsvie Checking Example for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: CiscoSparkWebhook
20:35:36 DEBUG errbot.plugin_manager Plugin CiscoSparkWebhook has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating CiscoSparkWebhook with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating No templates directory found for this plugin [Looking for /var/www/errbot.marksull/errbot/data/plugins/marksull/err-webhook-cisco-spark/templates]
20:35:36 DEBUG errbot.botplugin Init storage for CiscoSparkWebhook
20:35:36 DEBUG errbot.storage Opening storage 'CiscoSparkWebhook'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/CiscoSparkWebhook.db
20:35:36 INFO errbot.core_plugins.wsvie Checking CiscoSparkWebhook for webhooks
20:35:36 INFO errbot.core_plugins.wsvie Webhook routing errbot_spark
20:35:36 INFO errbot.plugin_manager Activate plugin: Utils
20:35:36 DEBUG errbot.plugin_manager Plugin Utils has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Utils with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Utils
20:35:36 DEBUG errbot.storage Opening storage 'Utils'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Utils.db
20:35:36 DEBUG errbot.core Adding command : echo -> echo
20:35:36 DEBUG errbot.core Adding command : history -> history
20:35:36 DEBUG errbot.core Adding command : log_tail -> log_tail
20:35:36 DEBUG errbot.core Adding command : render_test -> render_test
20:35:36 DEBUG errbot.core Adding command : whoami -> whoami
20:35:36 INFO errbot.core_plugins.wsvie Checking Utils for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: VersionChecker
20:35:36 DEBUG errbot.plugin_manager Plugin VersionChecker has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating VersionChecker with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.plugins.VersionChe Checking version in background.
20:35:36 DEBUG urllib3.connectionpool Starting new HTTP connection (1): version.errbot.io
20:35:36 DEBUG errbot.botplugin Programming the polling of version_check every 86400 seconds with args [] and kwargs {}
20:35:36 DEBUG errbot.botplugin Init storage for VersionChecker
20:35:36 DEBUG errbot.storage Opening storage 'VersionChecker'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/VersionChecker.db
20:35:36 INFO errbot.core_plugins.wsvie Checking VersionChecker for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: CommandNotFoundFilter
20:35:36 DEBUG errbot.plugin_manager Plugin CommandNotFoundFilter has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating CommandNotFoundFilter with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for CommandNotFoundFilter
20:35:36 DEBUG errbot.storage Opening storage 'CommandNotFoundFilter'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/CommandNotFoundFilter.db
20:35:36 DEBUG errbot.core Adding command filter: cnf_filter
20:35:36 INFO errbot.core_plugins.wsvie Checking CommandNotFoundFilter for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: Webserver
20:35:36 DEBUG errbot.plugin_manager Plugin Webserver has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Webserver with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 INFO errbot.plugins.Webserver Webserver is not configured. Forbid activation
20:35:36 INFO errbot.core_plugins.wsvie Checking Webserver for webhooks
20:35:36 INFO errbot.core_plugins.wsvie Webhook routing echo
20:35:36 INFO errbot.plugin_manager Activate plugin: Flows
20:35:36 DEBUG errbot.plugin_manager Plugin Flows has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Flows with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Flows
20:35:36 DEBUG errbot.storage Opening storage 'Flows'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Flows.db
20:35:36 DEBUG errbot.core Adding command : flows_kill -> flows_kill
20:35:36 DEBUG errbot.core Adding command : flows_list -> flows_list
20:35:36 DEBUG errbot.core Adding command : flows_show -> flows_show
20:35:36 DEBUG errbot.core Adding command : flows_start -> flows_start
20:35:36 DEBUG errbot.core Adding command : flows_status -> flows_status
20:35:36 DEBUG errbot.core Adding command : flows_stop -> flows_stop
20:35:36 INFO errbot.core_plugins.wsvie Checking Flows for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: Health
20:35:36 DEBUG errbot.plugin_manager Plugin Health has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Health with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Health
20:35:36 DEBUG errbot.storage Opening storage 'Health'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Health.db
20:35:36 DEBUG errbot.core Adding command : restart -> restart
20:35:36 DEBUG errbot.core Adding command : shutdown -> shutdown
20:35:36 DEBUG errbot.core Adding command : status -> status
20:35:36 DEBUG errbot.core Adding command : status_gc -> status_gc
20:35:36 DEBUG errbot.core Adding command : status_load -> status_load
20:35:36 DEBUG errbot.core Adding command : status_plugins -> status_plugins
20:35:36 DEBUG errbot.core Adding command : uptime -> uptime
20:35:36 INFO errbot.core_plugins.wsvie Checking Health for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: Help
20:35:36 DEBUG errbot.plugin_manager Plugin Help has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Help with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Help
20:35:36 DEBUG errbot.storage Opening storage 'Help'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Help.db
20:35:36 DEBUG errbot.core Adding command : about -> about
20:35:36 DEBUG errbot.core Adding command : apropos -> apropos
20:35:36 DEBUG errbot.core Adding command : help -> help
20:35:36 INFO errbot.core_plugins.wsvie Checking Help for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: ACLs
20:35:36 DEBUG errbot.plugin_manager Plugin ACLs has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating ACLs with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for ACLs
20:35:36 DEBUG errbot.storage Opening storage 'ACLs'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/ACLs.db
20:35:36 DEBUG errbot.core Adding command filter: acls
20:35:36 INFO errbot.core_plugins.wsvie Checking ACLS for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: ChatRoom
20:35:36 DEBUG errbot.plugin_manager Plugin ChatRoom has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating ChatRoom with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for ChatRoom
20:35:36 DEBUG errbot.storage Opening storage 'ChatRoom'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/ChatRoom.db
20:35:36 DEBUG errbot.core Adding command : room_create -> room_create
20:35:36 DEBUG errbot.core Adding command : room_destroy -> room_destroy
20:35:36 DEBUG errbot.core Adding command : room_invite -> room_invite
20:35:36 DEBUG errbot.core Adding command : room_join -> room_join
20:35:36 DEBUG errbot.core Adding command : room_leave -> room_leave
20:35:36 DEBUG errbot.core Adding command : room_list -> room_list
20:35:36 DEBUG errbot.core Adding command : room_occupants -> room_occupants
20:35:36 DEBUG errbot.core Adding command : room_topic -> room_topic
20:35:36 INFO errbot.core_plugins.wsvie Checking ChatRoom for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: Backup
20:35:36 DEBUG errbot.plugin_manager Plugin Backup has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Backup with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Backup
20:35:36 DEBUG errbot.storage Opening storage 'Backup'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Backup.db
20:35:36 DEBUG errbot.core Adding command : backup -> backup
20:35:36 INFO errbot.core_plugins.wsvie Checking Backup for webhooks
20:35:36 INFO errbot.plugin_manager Activate plugin: Plugins
20:35:36 DEBUG errbot.plugin_manager Plugin Plugins has no section [Errbot]. Assuming this plugin is running on any Errbot version.
20:35:36 INFO errbot.plugin_manager Activating Plugins with min_err_version = 5.1.2 and max_version = 5.1.2
20:35:36 DEBUG errbot.templating Templates directory found for this plugin [/var/www/errbot.marksull/lib/python3.4/site-packages/errbot/core_plugins/templates]
20:35:36 DEBUG errbot.botplugin Init storage for Plugins
20:35:36 DEBUG errbot.storage Opening storage 'Plugins'
20:35:36 DEBUG errbot.storage.shelf Open shelf storage /var/www/errbot.marksull/errbot/data/Plugins.db
20:35:36 DEBUG errbot.core Adding command : plugin_activate -> plugin_activate
20:35:36 DEBUG errbot.core Adding command : plugin_blacklist -> plugin_blacklist
20:35:36 DEBUG errbot.core Adding command : plugin_config -> plugin_config
20:35:36 DEBUG errbot.core Adding command : plugin_deactivate -> plugin_deactivate
20:35:36 DEBUG errbot.core Adding command : plugin_reload -> plugin_reload
20:35:36 DEBUG errbot.core Adding command : plugin_unblacklist -> plugin_unblacklist
20:35:36 DEBUG errbot.core Adding command : repos -> repos
20:35:36 DEBUG errbot.core Adding command : repos_install -> repos_install
20:35:36 DEBUG errbot.core Adding command : repos_search -> repos_search
20:35:36 DEBUG errbot.core Adding command : repos_uninstall -> repos_uninstall
20:35:36 DEBUG errbot.core Adding command : repos_update -> repos_update
20:35:36 INFO errbot.core_plugins.wsvie Checking Plugins for webhooks
20:35:36 DEBUG errbot.plugin_manager Activate flow plugins ...
20:35:36 INFO errbot.core
20:35:36 INFO errbot.core Notifying connection to all the plugins...
20:35:36 DEBUG errbot.core Trigger callback_connect on Example
20:35:36 DEBUG errbot.core Trigger callback_connect on CiscoSparkWebhook
20:35:36 DEBUG errbot.core Trigger callback_connect on Utils
20:35:36 DEBUG errbot.core Trigger callback_connect on VersionChecker
20:35:36 DEBUG errbot.core Trigger callback_connect on CommandNotFoundFilter
20:35:36 DEBUG errbot.core Trigger callback_connect on Flows
20:35:36 DEBUG errbot.core Trigger callback_connect on Health
20:35:36 DEBUG errbot.core Trigger callback_connect on Help
20:35:36 DEBUG errbot.core Trigger callback_connect on ACLS
20:35:36 DEBUG errbot.core Trigger callback_connect on ChatRoom
20:35:36 INFO errbot.plugins.ChatRoom Callback_connect
20:35:36 DEBUG errbot.plugins.ChatRoom Try to join room 'ONE_ONE'
20:35:36 INFO errbot.plugins.ChatRoom Joining room ONE_ONE with username Errbot
20:35:36 DEBUG urllib3.connectionpool http://version.errbot.io:80 "GET /?python=3.4.5&errbot=5.1.2 HTTP/1.1" 200 5
20:35:36 DEBUG errbot.plugins.VersionChe Tested current Errbot version and it is 5.1.2
20:35:36 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "GET /v1/rooms/ONE_ONE HTTP/1.1" 200 None
20:35:36 DEBUG errbot.backends.CiscoSpar Joining room Guillain (ONE_ONE)
20:35:37 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "POST /v1/memberships HTTP/1.1" 403 281
20:35:37 DEBUG errbot.backends.CiscoSpar errbotmebotte is already a member of Guillain (ONE_ONE)
20:35:37 DEBUG errbot.backends.CiscoSpar Registering webhook http://MY PUBLIC IP/errbot/spark with filter roomId=ONE_ONE
20:35:37 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "POST /v1/webhooks HTTP/1.1" 200 None
20:35:37 DEBUG errbot.backends.CiscoSpar Registration successful
20:35:37 DEBUG errbot.plugins.ChatRoom Try to join room 'DEV_ROOM'
20:35:37 INFO errbot.plugins.ChatRoom Joining room DEV_ROOM with username Errbot
20:35:37 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "GET /v1/rooms/DEV_ROOM HTTP/1.1" 200 None
20:35:37 DEBUG errbot.backends.CiscoSpar Joining room [dev] errbot (DEV_ROOM)
20:35:38 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "POST /v1/memberships HTTP/1.1" 409 174
20:35:38 DEBUG errbot.backends.CiscoSpar errbotmebotte is already a member of [dev] errbot (DEV_ROOM)
20:35:38 DEBUG errbot.backends.CiscoSpar Registering webhook http://MY PUBLIC IP/errbot/spark with filter roomId=DEV_ROOM
20:35:38 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "POST /v1/webhooks HTTP/1.1" 200 None
20:35:38 DEBUG errbot.backends.CiscoSpar Registration successful
20:35:38 DEBUG errbot.plugins.ChatRoom Try to join room 'PUBLIC_ROOM'
20:35:38 INFO errbot.plugins.ChatRoom Joining room PUBLIC_ROOM with username Errbot
20:35:39 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "GET /v1/rooms/PUBLIC_ROOM HTTP/1.1" 200 None
20:35:39 DEBUG errbot.backends.CiscoSpar Joining room [Spark dev] errbot (PUBLIC_ROOM)
20:35:39 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "POST /v1/memberships HTTP/1.1" 409 173
20:35:39 DEBUG errbot.backends.CiscoSpar errbotmebotte is already a member of [Spark dev] errbot (PUBLIC_ROOM)
20:35:39 DEBUG errbot.backends.CiscoSpar Registering webhook http://MY PUBLIC IP/errbot/spark with filter roomId=PUBLIC_ROOM
20:35:39 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "POST /v1/webhooks HTTP/1.1" 200 None
20:35:39 DEBUG errbot.backends.CiscoSpar Registration successful
20:35:39 DEBUG errbot.core Trigger callback_connect on Backup
20:35:39 DEBUG errbot.core Trigger callback_connect on Plugins
20:35:39 INFO errbot.core Plugin activation done.
Stop
20:38:09 INFO errbot.backends.CiscoSpar Interrupt received, shutting down..
20:38:09 DEBUG errbot.backends.CiscoSpar Deleting ALL webhooks attached to rooms
20:38:09 DEBUG urllib3.connectionpool Resetting dropped connection: api.ciscospark.com
20:38:09 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "GET /v1/webhooks HTTP/1.1" 200 None
20:38:09 DEBUG errbot.backends.CiscoSpar Deleting webhook id Y2lzY29zcGFyazovL3VzL1dFQkhPT0svNjMxNWVjMzUtOGM3Ni00MzBiLTgzMzAtYjM2YzhjZjM4MmJh
20:38:09 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "DELETE /v1/webhooks/Y2lzY29zcGFyazovL3VzL1dFQkhPT0svNjMxNWVjMzUtOGM3Ni00MzBiLTgzMzAtYjM2YzhjZjM4MmJh HTTP/1.1" 204 0
20:38:09 DEBUG errbot.backends.CiscoSpar Done! Webhook deleted
20:38:09 DEBUG errbot.backends.CiscoSpar Deleting webhook id Y2lzY29zcGFyazovL3VzL1dFQkhPT0svODYwNmIxYjEtZDYzZS00YTQ2LTg5YzUtNDgzOWE0Njk1MWJk
20:38:10 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "DELETE /v1/webhooks/Y2lzY29zcGFyazovL3VzL1dFQkhPT0svODYwNmIxYjEtZDYzZS00YTQ2LTg5YzUtNDgzOWE0Njk1MWJk HTTP/1.1" 204 0
20:38:10 DEBUG errbot.backends.CiscoSpar Done! Webhook deleted
20:38:10 DEBUG errbot.backends.CiscoSpar Deleting webhook id Y2lzY29zcGFyazovL3VzL1dFQkhPT0svOTBlOWRiZTEtNDI1OC00NzFlLThkNTMtN2QxYzg4NGRhYjMx
20:38:10 DEBUG urllib3.connectionpool https://api.ciscospark.com:443 "DELETE /v1/webhooks/Y2lzY29zcGFyazovL3VzL1dFQkhPT0svOTBlOWRiZTEtNDI1OC00NzFlLThkNTMtN2QxYzg4NGRhYjMx HTTP/1.1" 204 0
20:38:10 DEBUG errbot.backends.CiscoSpar Done! Webhook deleted
20:38:10 DEBUG errbot.backends.CiscoSpar Done! ALL webhooks deleted
20:38:10 INFO errbot.core Disconnect callback, deactivating all the plugins.
20:38:10 DEBUG errbot.storage Closed storage 'Health'
20:38:10 DEBUG errbot.storage Closed storage 'Example'
20:38:10 DEBUG errbot.storage Closed storage 'Help'
20:38:10 DEBUG errbot.storage Closed storage 'Backup'
20:38:10 DEBUG errbot.storage Closed storage 'CiscoSparkWebhook'
20:38:10 DEBUG errbot.botplugin You still have active pollers at deactivation stage, I cleaned them up for you.
20:38:10 DEBUG errbot.storage Closed storage 'VersionChecker'
20:38:10 DEBUG errbot.storage Closed storage 'CommandNotFoundFilter'
20:38:10 DEBUG errbot.core Removing command filter: cnf_filter
20:38:10 DEBUG errbot.storage Closed storage 'ChatRoom'
20:38:10 DEBUG errbot.storage Closed storage 'Plugins'
20:38:10 DEBUG errbot.storage Closed storage 'ACLs'
20:38:10 DEBUG errbot.core Removing command filter: acls
20:38:10 DEBUG errbot.storage Closed storage 'Utils'
20:38:10 DEBUG errbot.storage Closed storage 'Flows'
20:38:10 INFO errbot.backends.base Trigger shutdown
20:38:10 DEBUG errbot.storage Closed storage 'CiscoSpark_backend'
20:38:10 INFO errbot.plugin_manager Shutdown.
20:38:10 DEBUG errbot.storage Closed storage 'core'
20:38:10 INFO errbot.plugin_manager Bye.
20:38:10 DEBUG errbot.storage Closed storage 'repomgr'
20:38:10 INFO errbot.cli Process exiting
The connexion is ESTABLISHED during almost 60s before to switch on CLOSED. But during this period, nothing received on the consolde when I chat in my spark with the errbot bot in 1:1 nor group spark space.
I'm using python 3.4, that's ok for the both plugins (backend & webhook)?
A specific part of log is interesting related to the load of the webhook plugin as errbot filter this plugin due to the presence of the backend.
If you are still working on this, a couple of suggestions:
a) The web hook needs to include the port that you are using on your web service (I will update the documentation to make this clearer). For example, if you are using the default port 3141, then the webhook destination should look like:
BOT_IDENTITY = {
'TOKEN': '<insert your token in here>',
'WEBHOOK_DESTINATION': 'http://<your-host.some.domain>:3141/',
'WEBHOOK_SECRET': '<insert your webhook pass phrase in here>'
}
To confirm port:
errbot --text
!plugin config Webserver
b) In the web server config try both 127.0.0.1 or 0.0.0.0. My experience has been that 127.0.0.1 works on some servers, whereas 0.0.0.0 is required on another. For example:
!plugin config Webserver {'HOST': '127.0.0.1', 'PORT': 3141, 'SSL': {'certificate': '', 'enabled': False,'host': '0.0.0.0','key': '','port': 3142}}
-or-
!plugin config Webserver {'HOST': '0.0.0.0', 'PORT': 3141, 'SSL': {'certificate': '', 'enabled': False,'host': '0.0.0.0','key': '','port': 3142}}
To make sure the Cisco spark web hook is working issue the following command and the response should be an "OK":
curl http://<IP>:3141/errbot/spark
Hi,
Thanks a lot for the job done! Sorry but I've issue to do it properly and make it works. In fact all logs and conf seem to be ok (only some warning) but the connection is not ESTABLISHED with Cisco Spark from the bot:
tcp CLOSE-WAIT 86 0 MY PRIVATE IP:45726 13.59.223.191:443 users:(("errbot",pid=7692,fd=8))
Thanks in advance for your feedback !!!
Conf:
Log: