{"action":"closed","issue":{"url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/461","repository_url":"https://api.github.com/repos/Exa-Networks/exabgp","labels_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/461/comments","events_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/461/events","html_url":"https://github.com/Exa-Networks/exabgp/issues/461","id":170819061,"number":461,"title":"Healthcheck crash exabgp when used with systemd","user":{"login":"lchabert","id":2452640,"avatar_url":"https://avatars.githubusercontent.com/u/2452640?v=3","gravatar_id":"","url":"https://api.github.com/users/lchabert","html_url":"https://github.com/lchabert","followers_url":"https://api.github.com/users/lchabert/followers","following_url":"https://api.github.com/users/lchabert/following{/other_user}","gists_url":"https://api.github.com/users/lchabert/gists{/gist_id}","starred_url":"https://api.github.com/users/lchabert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchabert/subscriptions","organizations_url":"https://api.github.com/users/lchabert/orgs","repos_url":"https://api.github.com/users/lchabert/repos","events_url":"https://api.github.com/users/lchabert/events{/privacy}","received_events_url":"https://api.github.com/users/lchabert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T08:04:54Z","updated_at":"2016-08-12T09:59:16Z","closed_at":"2016-08-12T09:59:16Z","body":"Hi,\r\n\r\nI use exabgp to announce VIP on my network infrastructure following nginx states. I use packaged (pip) healthcheck, and systemd to start exabgp (running en centos 7.2).\r\n\r\nI start nginx, then exabgp service. No issue, route is announced to backbone. When i stop nginx (make some test), exabgp crash (due to an exception on healthcheck). When i run exabgp without systemd (manualy), no issue. Issued appear only when exabgp is started as service.\r\n\r\nPlease find below stacktrace (just after nginx stopped):\r\n```python\r\nAug 12 09:49:38 dc4-virt-http-01.test.fr healthcheck-nginx[24884]: Uncatched exception: 'ascii' codec can't decode byte 0xc3 in position 319: ordinal not in range(128)\r\n                                                                     Traceback (most recent call last):\r\n                                                                       File \"/usr/lib/python2.7/site-packages/exabgp/application/healthcheck.py\", line 463, in main\r\n                                                                         loop(options)\r\n                                                                       File \"/usr/lib/python2.7/site-packages/exabgp/application/healthcheck.py\", line 392, in loop\r\n                                                                         successful = disabled or check(options.command, options.timeout)\r\n                                                                       File \"/usr/lib/python2.7/site-packages/exabgp/application/healthcheck.py\", line 317, in check\r\n                                                                         logger.info(\"Output of check command: {0}\".format(stdout))\r\n                                                                     UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 319: ordinal not in range(128)\r\n```\r\n\r\nI have customized systemd service config file. Same as github repository, but some variable added:\r\n```\r\n[Unit]\r\nDescription=ExaBGP\r\nAfter=network.target\r\nConditionPathExists=/etc/exabgp/exabgp-%i.conf\r\n\r\n[Service]\r\nEnvironment=exabgp_daemon_daemonize=false\r\nExecStart=/usr/bin/exabgp --folder /etc/exabgp /etc/exabgp/exabgp-%i.conf\r\nExecReload=/bin/kill -USR1 $MAINPID\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n\r\nAny reasons to have UnicodeDecodeError with systemd ? Any additionnal parameters needed to run python as a service ?\r\n\r\nRegards."}}
{"actor":{"display_login":"lchabert"}}