{"action":"created","issue":{"url":"https://api.github.com/repos/domogik/domogik/issues/278","repository_url":"https://api.github.com/repos/domogik/domogik","labels_url":"https://api.github.com/repos/domogik/domogik/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/domogik/domogik/issues/278/comments","events_url":"https://api.github.com/repos/domogik/domogik/issues/278/events","html_url":"https://github.com/domogik/domogik/issues/278","id":142958188,"number":278,"title":"The message queue is not working for PUB/SUB messages","user":{"login":"vdomos","id":1257481,"avatar_url":"https://avatars.githubusercontent.com/u/1257481?v=3","gravatar_id":"","url":"https://api.github.com/users/vdomos","html_url":"https://github.com/vdomos","followers_url":"https://api.github.com/users/vdomos/followers","following_url":"https://api.github.com/users/vdomos/following{/other_user}","gists_url":"https://api.github.com/users/vdomos/gists{/gist_id}","starred_url":"https://api.github.com/users/vdomos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdomos/subscriptions","organizations_url":"https://api.github.com/users/vdomos/orgs","repos_url":"https://api.github.com/users/vdomos/repos","events_url":"https://api.github.com/users/vdomos/events{/privacy}","received_events_url":"https://api.github.com/users/vdomos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T13:26:19Z","updated_at":"2016-03-29T16:40:41Z","closed_at":null,"body":"Fritz,\r\n\r\nHere the result you ask for this problem see in #275, it happened again today\r\n\r\n![domogik_mq_error](https://cloud.githubusercontent.com/assets/1257481/13918921/996dce66-ef6a-11e5-8cc6-3bcf0783e94f.jpg)\r\n\r\n\r\nFor additional information, when I go on the Client page of the admin interface, all plugin and Core components appear dead and become alive after a few seconds.\r\n\r\n\r\n* launch : python req_client_list.py and give the result \r\n$ python req_client_list.py => [req_client_list.txt](https://github.com/domogik/domogik/files/186035/req_client_list.txt)\r\n\r\n* launch : python sub_plugin_status.py and see it you got a message for the status of all components each 15 seconds \r\nI well receive the status of all plugin:\r\n\r\n   $ python sub_plugin_status.py \r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'rfxbnz', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'weather', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'butler', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'scenario', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'diskfree', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'script', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'manager', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'mqtt', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'dbsensor', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'onewired', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'admin', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'dbmgr', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'vdevice', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'xplgw', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'rfxbnz', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'weather', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'butler', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'scenario', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'diskfree', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'script', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'manager', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'mqtt', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'dbsensor', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'onewired', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'admin', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'dbmgr', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'vdevice', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'xplgw', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'rfxbnz', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'weather', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'butler', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'scenario', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'diskfree', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'script', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'core', u'name': u'manager', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'mqtt', u'event': u'alive'}\r\n    New pub message plugin.status\r\n    {u'host': u'vesta', u'type': u'plugin', u'name': u'dbsensor', u'event': u'alive'}\r\n    \r\n\r\n\r\n\r\n* give the result of : ps -ef | grep dmg_ \r\nList of running dmg_* process:\r\n\r\n    $ ps -ef | grep dmg_ \r\n    dan      16784     1  3 00:18 ?        00:29:20 /usr/bin/python /usr/local/bin/dmg_broker\r\n    root     16785     1  0 00:18 pts/2    00:00:00 /bin/su - dan -c /usr/local/bin/dmg_forwarder >/dev/null \r\n    dan      16790 16785  0 00:18 ?        00:00:00 -su -c /usr/local/bin/dmg_forwarder >/dev/null \r\n    dan      16797 16790  0 00:18 ?        00:03:14 /usr/bin/python /usr/local/bin/dmg_forwarder\r\n    dan      16801     1  0 00:19 ?        00:06:04 /usr/bin/python /usr/local/bin/dmg_hub\r\n    dan      16826     1  0 00:19 ?        00:00:01 /usr/bin/python /usr/local/bin/dmg_manager -a -d -x -s -b\r\n    dan      16830 16826  1 00:19 ?        00:13:14 /usr/bin/python /usr/local/bin/dmg_manager -a -d -x -s -b\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/domogik/domogik/issues/comments/202989563","html_url":"https://github.com/domogik/domogik/issues/278#issuecomment-202989563","issue_url":"https://api.github.com/repos/domogik/domogik/issues/278","id":202989563,"user":{"login":"vdomos","id":1257481,"avatar_url":"https://avatars.githubusercontent.com/u/1257481?v=3","gravatar_id":"","url":"https://api.github.com/users/vdomos","html_url":"https://github.com/vdomos","followers_url":"https://api.github.com/users/vdomos/followers","following_url":"https://api.github.com/users/vdomos/following{/other_user}","gists_url":"https://api.github.com/users/vdomos/gists{/gist_id}","starred_url":"https://api.github.com/users/vdomos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdomos/subscriptions","organizations_url":"https://api.github.com/users/vdomos/orgs","repos_url":"https://api.github.com/users/vdomos/repos","events_url":"https://api.github.com/users/vdomos/events{/privacy}","received_events_url":"https://api.github.com/users/vdomos/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T16:40:41Z","updated_at":"2016-03-29T16:40:41Z","body":"The problem is back after a few hours restarting Domogik.\r\n\r\nI write some modification tout the **req_client_list.py** script to display only the  most important information:\r\n\r\n    core-xplgw.vesta        dead    28/03/2016 13:12:39\r\n    core-scenario.vesta     dead    28/03/2016 13:12:35\r\n    plugin-vdevice.vesta    dead    28/03/2016 13:12:40\r\n    plugin-mqtt.vesta       dead    28/03/2016 13:12:36\r\n    core-dbmgr.vesta        dead    28/03/2016 13:12:40\r\n    plugin-weather.vesta    dead    28/03/2016 13:12:27\r\n    plugin-diskfree.vesta   dead    28/03/2016 13:12:35\r\n    core-admin.vesta        dead    28/03/2016 13:12:31\r\n    plugin-script.vesta     dead    28/03/2016 13:12:35\r\n    plugin-rfxbnz.vesta     dead    28/03/2016 13:12:40\r\n    plugin-onewired.vesta   dead    28/03/2016 13:12:26\r\n    core-butler.vesta       dead    28/03/2016 13:12:32\r\n    plugin-dbsensor.vesta   dead    28/03/2016 13:12:39\r\n\r\nAs we can see plugin and core component seems to be dead since yesterday but all plugin still working fine and the **sub_plugin_status.py** script receives the  plugin.status.\r\n\r\nThe only ERRORs found:\r\n\r\nThe dmg_forwarder is running manualy with '-f' parameter.\r\n\r\n    mq_forwarder.log:2016-03-28 13:12:42,673 domogik-mq_forwarder ERROR BAD direction message: ['\\x00plugin.configuration']\r\n    mq_forwarder.log:2016-03-28 13:12:42,680 domogik-mq_forwarder ERROR BAD direction message: ['\\x00plugin.status']\r\n    mq_forwarder.log:2016-03-29 15:25:03,859 domogik-mq_forwarder ERROR BAD direction message: ['\\x01plugin.status']\r\n    mq_forwarder.log:2016-03-29 15:25:58,533 domogik-mq_forwarder ERROR BAD direction message: ['\\x00plugin.status']\r\n    mq_forwarder.log:2016-03-29 17:35:33,014 domogik-mq_forwarder ERROR BAD direction message: ['\\x01plugin.status']\r\n    mq_forwarder.log:2016-03-29 17:35:59,803 domogik-mq_forwarder ERROR BAD direction message: ['\\x00plugin.status']\r\n    mq_forwarder.log:2016-03-29 18:25:38,634 domogik-mq_forwarder ERROR BAD direction message: ['\\x01plugin.status']\r\n    mq_forwarder.log:2016-03-29 18:27:26,427 domogik-mq_forwarder ERROR BAD direction message: ['\\x00plugin.status']\r\n\r\n\r\n"}}