{"action":"created","issue":{"url":"https://api.github.com/repos/joan2937/pigpio/issues/203","repository_url":"https://api.github.com/repos/joan2937/pigpio","labels_url":"https://api.github.com/repos/joan2937/pigpio/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/joan2937/pigpio/issues/203/comments","events_url":"https://api.github.com/repos/joan2937/pigpio/issues/203/events","html_url":"https://github.com/joan2937/pigpio/issues/203","id":302004384,"number":203,"title":"\"socket connect failed\" but only if starting pigpiod via systemctl","user":{"login":"ralphhughes","id":3143939,"avatar_url":"https://avatars3.githubusercontent.com/u/3143939?v=4","gravatar_id":"","url":"https://api.github.com/users/ralphhughes","html_url":"https://github.com/ralphhughes","followers_url":"https://api.github.com/users/ralphhughes/followers","following_url":"https://api.github.com/users/ralphhughes/following{/other_user}","gists_url":"https://api.github.com/users/ralphhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphhughes/subscriptions","organizations_url":"https://api.github.com/users/ralphhughes/orgs","repos_url":"https://api.github.com/users/ralphhughes/repos","events_url":"https://api.github.com/users/ralphhughes/events{/privacy}","received_events_url":"https://api.github.com/users/ralphhughes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-03T14:58:51Z","updated_at":"2018-03-05T14:19:44Z","closed_at":null,"author_association":"NONE","body":"Not sure if I'm using it wrong but I can't seem to get pigpiod working if I start it as a service via systemd. Log of my actions as follows:\r\n\r\nMade sure pigpiod was not running and then started it via systemctl:\r\n```\r\npi@rpi-robot:~ $ ps aux | grep pigpiod\r\npi        1381  0.0  0.5   4364  1912 pts/0    S+   14:47   0:00 grep --color=auto pigpiod\r\n\r\npi@rpi-robot:~ $ sudo systemctl start pigpiod\r\n\r\npi@rpi-robot:~ $ pigs hwver\r\nsocket connect failed\r\n```\r\nNoticed that it seemed to have only bound to the ipv6 address ::1?\r\n```\r\npi@rpi-robot:~ $ sudo netstat -tulpn\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name\r\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      447/sshd\r\ntcp6       0      0 :::22                   :::*                    LISTEN      447/sshd\r\ntcp6       0      0 ::1:8888                :::*                    LISTEN      1390/pigpiod\r\nudp        0      0 0.0.0.0:1900            0.0.0.0:*                           436/minissdpd\r\nudp        0      0 0.0.0.0:5353            0.0.0.0:*                           244/avahi-daemon: r\r\nudp        0      0 0.0.0.0:34300           0.0.0.0:*                           244/avahi-daemon: r\r\nudp        0      0 0.0.0.0:68              0.0.0.0:*                           429/dhcpcd\r\nudp6       0      0 :::42667                :::*                                244/avahi-daemon: r\r\nudp6       0      0 :::5353                 :::*                                244/avahi-daemon: r\r\n```\r\n\r\nKilled that version and started up via sudo and it works fine. Notice how the bind address is different but the port (8888) is the same\r\n```\r\npi@rpi-robot:~ $ sudo killall pigpiod\r\npi@rpi-robot:~ $ sudo pigpiod\r\npi@rpi-robot:~ $ pigs hwver\r\n9437377\r\npi@rpi-robot:~ $ sudo netstat -tulpn\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name\r\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      447/sshd\r\ntcp6       0      0 :::22                   :::*                    LISTEN      447/sshd\r\ntcp6       0      0 :::8888                 :::*                    LISTEN      1428/pigpiod\r\nudp        0      0 0.0.0.0:1900            0.0.0.0:*                           436/minissdpd\r\nudp        0      0 0.0.0.0:5353            0.0.0.0:*                           244/avahi-daemon: r\r\nudp        0      0 0.0.0.0:34300           0.0.0.0:*                           244/avahi-daemon: r\r\nudp        0      0 0.0.0.0:68              0.0.0.0:*                           429/dhcpcd\r\nudp6       0      0 :::42667                :::*                                244/avahi-daemon: r\r\nudp6       0      0 :::5353                 :::*                                244/avahi-daemon: r\r\npi@rpi-robot:~ $\r\n```\r\n\r\nThis is pretty much a fresh install of Raspbian Lite 9 (Stretch) on a Pi Zero W."},"comment":{"url":"https://api.github.com/repos/joan2937/pigpio/issues/comments/370433147","html_url":"https://github.com/joan2937/pigpio/issues/203#issuecomment-370433147","issue_url":"https://api.github.com/repos/joan2937/pigpio/issues/203","id":370433147,"user":{"login":"guymcswain","id":29784460,"avatar_url":"https://avatars3.githubusercontent.com/u/29784460?v=4","gravatar_id":"","url":"https://api.github.com/users/guymcswain","html_url":"https://github.com/guymcswain","followers_url":"https://api.github.com/users/guymcswain/followers","following_url":"https://api.github.com/users/guymcswain/following{/other_user}","gists_url":"https://api.github.com/users/guymcswain/gists{/gist_id}","starred_url":"https://api.github.com/users/guymcswain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guymcswain/subscriptions","organizations_url":"https://api.github.com/users/guymcswain/orgs","repos_url":"https://api.github.com/users/guymcswain/repos","events_url":"https://api.github.com/users/guymcswain/events{/privacy}","received_events_url":"https://api.github.com/users/guymcswain/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T14:19:44Z","updated_at":"2018-03-05T14:19:44Z","author_association":"NONE","body":"Thanks for discovering the issue, debugging it and hopefully resolving it!  I do not plan to move my hosts running `pigpiod` (also using` systemd` service) to Raspbian9 until there is a good reason to do so.  In your case, is it just starting fresh with the latest OS or was there something you were avoiding on Raspbian8?"}}
{"actor":{"display_login":"guymcswain"}}