{"action":"created","issue":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/510","repository_url":"https://api.github.com/repos/blueman-project/blueman","labels_url":"https://api.github.com/repos/blueman-project/blueman/issues/510/labels{/name}","comments_url":"https://api.github.com/repos/blueman-project/blueman/issues/510/comments","events_url":"https://api.github.com/repos/blueman-project/blueman/issues/510/events","html_url":"https://github.com/blueman-project/blueman/issues/510","id":151788825,"number":510,"title":"dnsmasq is terminated after short time","user":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-29T04:00:10Z","updated_at":"2016-04-29T18:34:41Z","closed_at":null,"body":"Background:\r\n\r\nI am trying to get NAP (Internet connection sharing via Bluetooth) working on Ubuntu 16.04. This seems broken in the official package, so I tried building/running from git master. After fixing #508, I was able to get it to work - sort of...\r\n\r\nProblem:\r\n\r\nAfter a short time, the `dnsmasq` process started by blueman is terminated. Here is the syslog...\r\n\r\n```\r\nApr 28 18:36:00 sif dnsmasq[20668]: started, version 2.75 cachesize 150\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4191] device added (path: /sys/devices/virtual/net/pan1, iface: pan1): no ifupdown configuration found.\r\nApr 28 18:36:00 sif dnsmasq[20668]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4192] device (pan1): state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41]\r\nApr 28 18:36:00 sif dnsmasq-dhcp[20668]: DHCP, IP range 10.30.88.2 -- 10.30.88.254, lease time 1h\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4213] keyfile: add connection in-memory (cc685e53-5a7e-469c-b7e4-2cae47641da6,\"pan1\")\r\nApr 28 18:36:00 sif dnsmasq-dhcp[20668]: DHCP, sockets bound exclusively to interface pan1\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4228] device (pan1): state change: unavailable -> disconnected (reason 'connection-assumed') [20 30 41]\r\nApr 28 18:36:00 sif dnsmasq[20668]: reading /etc/resolv.conf\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4240] device (pan1): Activation: starting connection 'pan1' (cc685e53-5a7e-469c-b7e4-2cae47641da6)\r\nApr 28 18:36:00 sif dnsmasq[20668]: using nameserver 127.0.1.1#53\r\nApr 28 18:36:00 sif dnsmasq[20668]: read /etc/hosts - 7 addresses\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4288] device (pan1): state change: disconnected -> prepare (reason 'none') [30 40 0]\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4297] device (pan1): state change: prepare -> config (reason 'none') [40 50 0]\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4316] device (pan1): state change: config -> ip-config (reason 'none') [50 70 0]\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4384] device (pan1): state change: ip-config -> ip-check (reason 'none') [70 80 0]\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4393] device (pan1): state change: ip-check -> secondaries (reason 'none') [80 90 0]\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4400] device (pan1): state change: secondaries -> activated (reason 'none') [90 100 0]\r\nApr 28 18:36:00 sif NetworkManager[670]: <info>  [1461886560.4470] device (pan1): Activation: successful, device activated.\r\nApr 28 18:36:00 sif nm-dispatcher: req:2 'up' [pan1]: new request (1 scripts)\r\nApr 28 18:36:00 sif nm-dispatcher: req:2 'up' [pan1]: start running ordered scripts...\r\nApr 28 18:36:00 sif systemd[1]: Stopped LSB: Start NTP daemon.\r\nApr 28 18:36:01 sif avahi-daemon[683]: Joining mDNS multicast group on interface pan1.IPv6 with address fe80::e492:aeff:fe6a:b38b.\r\nApr 28 18:36:01 sif avahi-daemon[683]: New relevant interface pan1.IPv6 for mDNS.\r\nApr 28 18:36:01 sif avahi-daemon[683]: Registering new address record for fe80::e492:aeff:fe6a:b38b on pan1.*.\r\nApr 28 18:36:10 sif systemd[1]: Time has been changed\r\nApr 28 18:36:10 sif ntpdate[20750]: step time server 199.102.46.80 offset -0.570859 sec\r\nApr 28 18:36:10 sif systemd[1527]: Time has been changed\r\nApr 28 18:36:10 sif systemd[1]: apt-daily.timer: Adding 9h 29min 36.104974s random time.\r\nApr 28 18:36:10 sif systemd[1]: Starting LSB: Start NTP daemon...\r\nApr 28 18:36:10 sif systemd[1]: ntp.service: Control process exited, code=exited status=5\r\nApr 28 18:36:10 sif systemd[1]: Failed to start LSB: Start NTP daemon.\r\nApr 28 18:36:10 sif systemd[1]: ntp.service: Unit entered failed state.\r\nApr 28 18:36:10 sif systemd[1]: ntp.service: Failed with result 'exit-code'.\r\nApr 28 18:36:28 sif blueman-mechanism[20606]: Exception AttributeError: \"'NoneType' object has no attribute 'stdout'\" in <bound method Tee.__del__ of <__main__.Tee object at 0x7f24e0029150>> ignored\r\nApr 28 18:36:28 sif blueman-mechanism[20606]: Return code 0\r\nApr 28 18:36:28 sif blueman-mechanism[20606]: message repeated 3 times: [ Return code 0]\r\nApr 28 18:36:28 sif dnsmasq[20668]: exiting on receipt of SIGTERM\r\n```\r\n\r\n1. I see that #391 does not seem to be completely fixed - but I don't think that has anything to do with my issue here.\r\n2. It seems that `blueman-mechanism` exiting is what terminates `dnsmasq`. Is this right?\r\n3. I'm gussing that `blueman-mechanism` is not supposed to be terminating. This seems related to the [timout timer](https://github.com/blueman-project/blueman/blob/68609c6deb6c137c780419c60fa4e1527561d91d/apps/blueman-mechanism.in#L91). [reset](https://github.com/blueman-project/blueman/blob/68609c6deb6c137c780419c60fa4e1527561d91d/apps/blueman-mechanism.in#L150) is only called once, so there is nothing to keep it alive.\r\n\r\nSo, how do I keep `dnsmaq` running?"},"comment":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/comments/215841312","html_url":"https://github.com/blueman-project/blueman/issues/510#issuecomment-215841312","issue_url":"https://api.github.com/repos/blueman-project/blueman/issues/510","id":215841312,"user":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T18:34:41Z","updated_at":"2016-04-29T18:34:41Z","body":"I guess you have not read my previous comments in detail. `dnsmasq` is installed and working. It is just being terminated shortly after starting for an unknown reason."}}