{"action":"closed","issue":{"url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1482","labels_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1482/labels{/name}","comments_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1482/comments","events_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/1482/events","html_url":"https://github.com/project-hatohol/hatohol/issues/1482","id":96502228,"number":1482,"title":"[HAP2][Zabbix] Zabbixに接続できない状態でkillするとプロセスが残る","user":{"login":"ashie","id":135104,"avatar_url":"https://avatars.githubusercontent.com/u/135104?v=3","gravatar_id":"","url":"https://api.github.com/users/ashie","html_url":"https://github.com/ashie","followers_url":"https://api.github.com/users/ashie/followers","following_url":"https://api.github.com/users/ashie/following{/other_user}","gists_url":"https://api.github.com/users/ashie/gists{/gist_id}","starred_url":"https://api.github.com/users/ashie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashie/subscriptions","organizations_url":"https://api.github.com/users/ashie/orgs","repos_url":"https://api.github.com/users/ashie/repos","events_url":"https://api.github.com/users/ashie/events{/privacy}","received_events_url":"https://api.github.com/users/ashie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T08:00:58Z","updated_at":"2015-07-22T08:06:15Z","closed_at":"2015-07-22T08:06:15Z","body":"zabbixに繋がらない状態でhap2_zabbixをkillすると、一個だけプロセスが残り、\r\nretry interval毎に以下のログを吐きつづける。\r\n\r\n```\r\nINFO:root:Transporter: RabbitMQHapiConnector\r\nINFO:root:Detected procedure: hap_exchange_profile\r\nINFO:root:Detected procedure: hap_fetch_events\r\nINFO:root:Detected procedure: hap_fetch_history\r\nINFO:root:Detected procedure: hap_fetch_items\r\nINFO:root:Detected procedure: hap_fetch_triggers\r\nINFO:root:Detected procedure: hap_update_monitoring_server_info\r\nINFO:pika.adapters.base_connection:Connecting to 192.168.1.7:5672\r\nWARNING:pika.adapters.blocking_connection:Received Channel.Close, closing: <METHOD(['channel_number=1', 'frame_type=1', 'method=<Channel.Close([\\'class_id=50\\', \\'method_id=10\\', \\'reply_code=403\\', \"reply_text=ACCESS_REFUSED - access to queue \\'hap2.2-S\\' in vhost \\'hatohol\\' refused for user \\'hatohol\\'\"])>'])>\r\nERROR:root:Unexpected error: <class 'pika.exceptions.ChannelClosed'>, (403, \"ACCESS_REFUSED - access to queue 'hap2.2-S' in vhost 'hatohol' refused for user 'hatohol'\"), ['  File \"/usr/local/lib/python2.7/dist-packages/hatohol/standardhap.py\", line 113, in __call__\\n    self.__run()\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/standardhap.py\", line 168, in __run\\n    self.__main_plugin.setup(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 800, in setup\\n    self.__sender = Sender(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 360, in __init__\\n    self.__connector = transporter.Factory.create(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/transporter.py\", line 121, in create\\n    obj.setup(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 354, in setup\\n    RabbitMQConnector.setup(self, transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/rabbitmqconnector.py\", line 76, in setup\\n    self._channel.queue_declare(queue=queue_name)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 905, in queue_declare\\n    None, replies)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 1141, in _rpc\\n    self._wait_on_response(method_frame))\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 1162, in _send_method\\n    self.connection.process_data_events()\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 240, in process_data_events\\n    if self._handle_read():\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 348, in _handle_read\\n    super(BlockingConnection, self)._handle_read()\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py\", line 351, in _handle_read\\n    self._on_data_available(data)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/connection.py\", line 1285, in _on_data_available\\n    self._process_frame(frame_value)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/connection.py\", line 1352, in _process_frame\\n    if self._process_callbacks(frame_value):\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/connection.py\", line 1322, in _process_callbacks\\n    frame_value)                 # Args\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/callback.py\", line 61, in wrapper\\n    return function(*tuple(args), **kwargs)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/callback.py\", line 92, in wrapper\\n    return function(*args, **kwargs)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/callback.py\", line 232, in process\\n    callback(*args, **keywords)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 1059, in _on_close\\n    method_frame.method.reply_text)\\n']\r\nINFO:root:Rerun after 10 sec\r\nINFO:root:Transporter: RabbitMQHapiConnector\r\nINFO:root:Detected procedure: hap_exchange_profile\r\nINFO:root:Detected procedure: hap_fetch_events\r\nINFO:root:Detected procedure: hap_fetch_history\r\nINFO:root:Detected procedure: hap_fetch_items\r\nINFO:root:Detected procedure: hap_fetch_triggers\r\nINFO:root:Detected procedure: hap_update_monitoring_server_info\r\nINFO:pika.adapters.base_connection:Connecting to 192.168.1.7:5672\r\nWARNING:pika.adapters.blocking_connection:Received Channel.Close, closing: <METHOD(['channel_number=1', 'frame_type=1', 'method=<Channel.Close([\\'class_id=50\\', \\'method_id=10\\', \\'reply_code=403\\', \"reply_text=ACCESS_REFUSED - access to queue \\'hap2.2-S\\' in vhost \\'hatohol\\' refused for user \\'hatohol\\'\"])>'])>\r\nERROR:root:Unexpected error: <class 'pika.exceptions.ChannelClosed'>, (403, \"ACCESS_REFUSED - access to queue 'hap2.2-S' in vhost 'hatohol' refused for user 'hatohol'\"), ['  File \"/usr/local/lib/python2.7/dist-packages/hatohol/standardhap.py\", line 113, in __call__\\n    self.__run()\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/standardhap.py\", line 168, in __run\\n    self.__main_plugin.setup(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 800, in setup\\n    self.__sender = Sender(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 360, in __init__\\n    self.__connector = transporter.Factory.create(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/transporter.py\", line 121, in create\\n    obj.setup(transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/haplib.py\", line 354, in setup\\n    RabbitMQConnector.setup(self, transporter_args)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/hatohol/rabbitmqconnector.py\", line 76, in setup\\n    self._channel.queue_declare(queue=queue_name)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 905, in queue_declare\\n    None, replies)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 1141, in _rpc\\n    self._wait_on_response(method_frame))\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 1162, in _send_method\\n    self.connection.process_data_events()\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 240, in process_data_events\\n    if self._handle_read():\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 348, in _handle_read\\n    super(BlockingConnection, self)._handle_read()\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py\", line 351, in _handle_read\\n    self._on_data_available(data)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/connection.py\", line 1285, in _on_data_available\\n    self._process_frame(frame_value)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/connection.py\", line 1352, in _process_frame\\n    if self._process_callbacks(frame_value):\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/connection.py\", line 1322, in _process_callbacks\\n    frame_value)                 # Args\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/callback.py\", line 61, in wrapper\\n    return function(*tuple(args), **kwargs)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/callback.py\", line 92, in wrapper\\n    return function(*args, **kwargs)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/callback.py\", line 232, in process\\n    callback(*args, **keywords)\\n', '  File \"/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py\", line 1059, in _on_close\\n    method_frame.method.reply_text)\\n']\r\nINFO:root:Rerun after 10 sec\r\n```\r\n"}}