{"action":"created","issue":{"url":"https://api.github.com/repos/brocaar/loraserver/issues/104","repository_url":"https://api.github.com/repos/brocaar/loraserver","labels_url":"https://api.github.com/repos/brocaar/loraserver/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/brocaar/loraserver/issues/104/comments","events_url":"https://api.github.com/repos/brocaar/loraserver/issues/104/events","html_url":"https://github.com/brocaar/loraserver/issues/104","id":193002351,"number":104,"title":"Port settings not working from systemd?","user":{"login":"ctowen","id":8106574,"avatar_url":"https://avatars.githubusercontent.com/u/8106574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctowen","html_url":"https://github.com/ctowen","followers_url":"https://api.github.com/users/ctowen/followers","following_url":"https://api.github.com/users/ctowen/following{/other_user}","gists_url":"https://api.github.com/users/ctowen/gists{/gist_id}","starred_url":"https://api.github.com/users/ctowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctowen/subscriptions","organizations_url":"https://api.github.com/users/ctowen/orgs","repos_url":"https://api.github.com/users/ctowen/repos","events_url":"https://api.github.com/users/ctowen/events{/privacy}","received_events_url":"https://api.github.com/users/ctowen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-02T00:33:51Z","updated_at":"2016-12-04T20:15:28Z","closed_at":"2016-12-03T08:31:27Z","body":"Unfortunately, our system already has services running on port 8000 and 8001 so I set out to change the ports that the lora-server and api run on, but it doesn't work when running from systemd.\r\n\r\nWhen I start the loraserver with the following command, everything works as expected and the service starts on the specified port:\r\n\r\n/opt/loraserver/bin/loraserver --net-id \"010203\" --band \"EU_863_870\" --bind \"127.0.0.1:**5560**\" --redis-url \"redis://localhost:6379\" --as-server \"127.0.0.1:**5561**\" &\r\n\r\nHowever when I start the loraserver as a service as described in your instructions using systemd and systemctl, It tries to find the app-server on port **8001**.  Is it possible there is a bug and it isn't wired correctly in the code to use the port from the configuration file when launching as a service?  Or can you check my settings to make sure they are correct?\r\n\r\nI based them off the documentation here:\r\nhttps://docs.loraserver.io/loraserver/getting-started/\r\n\r\n[Service]\r\nEnvironment=\"NET_ID=010201\"\r\nEnvironment=\"BAND=EU_863_870\"\r\nEnvironment=\"BIND=127.0.0.1:**5560**\"\r\nEnvironment=\"REDIS_URL=redis://localhost:6379\"\r\nEnvironment=\"GW_MQTT_SERVER=tcp://localhost:1883\"\r\nEnvironment=\"AS_SERVER=127.0.0.1:**5561**\"\r\n\r\nDec 02 00:27:21 WR-IDP-991C loraserver[3653]: time=\"2016-12-02T00:27:21Z\" level=info msg=\"grpc: addrConn.resetTransport failed to create client transport: connection error: desc = \\\"transport: write tcp 127.0.0.1:45528->127.0.0.1:**8001**: write: broken pipe\\\"; Reconnecting to {\\\"127.0.0.1:8001\\\" <nil>}\"\r\n"},"comment":{"url":"https://api.github.com/repos/brocaar/loraserver/issues/comments/264727775","html_url":"https://github.com/brocaar/loraserver/issues/104#issuecomment-264727775","issue_url":"https://api.github.com/repos/brocaar/loraserver/issues/104","id":264727775,"user":{"login":"ctowen","id":8106574,"avatar_url":"https://avatars.githubusercontent.com/u/8106574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctowen","html_url":"https://github.com/ctowen","followers_url":"https://api.github.com/users/ctowen/followers","following_url":"https://api.github.com/users/ctowen/following{/other_user}","gists_url":"https://api.github.com/users/ctowen/gists{/gist_id}","starred_url":"https://api.github.com/users/ctowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctowen/subscriptions","organizations_url":"https://api.github.com/users/ctowen/orgs","repos_url":"https://api.github.com/users/ctowen/repos","events_url":"https://api.github.com/users/ctowen/events{/privacy}","received_events_url":"https://api.github.com/users/ctowen/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T20:15:28Z","updated_at":"2016-12-04T20:15:28Z","body":"Thank you sir - congratulations on this project!  The work you have done here is very impressive."}}
{"actor":{"display_login":"ctowen"}}