Installing all ChirpStack components on Ubuntu desktop

Hello

I was using TTN, and now I wanna make a transition to ChirpStack. I’ve installed all components of the Chirpstack on a Ubuntu desktop by following these two resources (https://www.youtube.com/watch?v=FnTP7t47DlI&list=PL9FegcZTeB9LRLnXtN6OMkVSZYgHdlmOr, and https://www.youtube.com/watch?v=np4rIQ_teR4&t=223s). I had a great difficulty in modifying the chirpstack-gateway-bridge.toml, global_config.json and local_config.json files, especially because I was already using the latter two files associated with TTN.

After installing all the components (GWB, NS and AS), when I had run the status of network-server and that of application-server, no errors were seen. But after modifying gwb.toml and config files, I’m seeing the following errors:

samdani@samdani-Veriton-M200-H61:~$ systemctl status chirpstack-application-server
● chirpstack-application-server.service - ChirpStack Application Server
Loaded: loaded (/lib/systemd/system/chirpstack-application-server.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-11-30 08:19:37 IST; 4h 40min ago
Docs: https://www.chirpstack.io/
Main PID: 13712 (chirpstack-appl)
Tasks: 14 (limit: 4915)
Memory: 25.0M
CGroup: /system.slice/chirpstack-application-server.service
└─13712 /usr/bin/chirpstack-application-server

Nov 30 12:42:37 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:42:37+05:30” level=info msg=“finished unary call with code OK” ctx_id
Nov 30 12:42:45 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:42:45+05:30” level=info msg=“finished unary call with code OK” ctx_id
Nov 30 12:43:08 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:08+05:30” level=info msg=“finished client unary call” ctx_id=4eb45
Nov 30 12:43:08 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:08+05:30” level=info msg=“finished unary call with code OK” ctx_id
Nov 30 12:43:27 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:27+05:30” level=info msg=“finished unary call with code OK” ctx_id
Nov 30 12:43:27 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:27+05:30” level=info msg=“finished unary call with code OK” ctx_id
Nov 30 12:43:28 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:28+05:30” level=info msg=“finished client unary call” ctx_id=fba6b
Nov 30 12:43:28 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:28+05:30” level=info msg=“finished unary call with code OK” ctx_id
Nov 30 12:43:28 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:28+05:30” level=info msg=“finished client unary call” ctx_id=7c788
Nov 30 12:43:28 samdani-Veriton-M200-H61 chirpstack-application-server[13712]: time=“2019-11-30T12:43:28+05:30” level=info msg=“finished unary call with code OK” ctx_id

samdani@samdani-Veriton-M200-H61:~$ systemctl status chirpstack-network-server
● chirpstack-network-server.service - ChirpStack Network Server
Loaded: loaded (/lib/systemd/system/chirpstack-network-server.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-11-30 08:31:13 IST; 4h 29min ago
Docs: https://www.chirpstack.io/
Main PID: 14247 (chirpstack-netw)
Tasks: 13 (limit: 4915)
Memory: 7.3M
CGroup: /system.slice/chirpstack-network-server.service
└─14247 /usr/bin/chirpstack-network-server

Nov 30 12:42:21 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:21+05:30” level=info msg=“finished unary call with code OK” ctx_id=1bf
Nov 30 12:42:21 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:21+05:30” level=info msg=“finished unary call with code OK” ctx_id=f3b
Nov 30 12:42:21 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:21+05:30” level=info msg=“finished unary call with code OK” ctx_id=e47
Nov 30 12:42:33 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:33+05:30” level=info msg=“finished unary call with code OK” ctx_id=9f2
Nov 30 12:42:36 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:36+05:30” level=info msg=“finished unary call with code OK” ctx_id=2da
Nov 30 12:42:36 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:36+05:30” level=info msg=“finished unary call with code OK” ctx_id=cfd
Nov 30 12:42:37 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:42:37+05:30” level=info msg=“finished unary call with code OK” ctx_id=c67
Nov 30 12:43:08 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:43:08+05:30” level=info msg=“finished unary call with code OK” ctx_id=fad
Nov 30 12:43:28 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:43:28+05:30” level=info msg=“finished unary call with code OK” ctx_id=1f8
Nov 30 12:43:28 samdani-Veriton-M200-H61 chirpstack-network-server[14247]: time=“2019-11-30T12:43:28+05:30” level=info msg=“finished unary call with code OK” ctx_id=5f2

I’m afraid its not going to be a smooth transition. Anybody tried migrating successfully from TTN to ChirpStack?

@brocaar Considering a case where (all components of) chirpstack is installed on desktop, could you please help me find answers to the following questions:

  1. What specific changes should be done in chirpstack-gateway-bridge file? I’m using static IP for chirpstack desktop server.
  2. What specific changes should be done in the config files i.e., global_config.json and local_config.json? I especially have a doubt regarding the server ports being given in local_config.json file, should we use 1700 or just the IP alone, because I’m using static IP.

Now the issue is more complicated because I was using TTN before. So I’d like to know what additional changes are to be done in config files to make it work for chirpstack. I also have another question, is it enough to install chirpstack-gateway-bridge on desktop server, or do we’ve to install on both gateway and gateway bridge.

After following two diverse resources, I got confused and messed up the config files. I wanna rectify it - is it okay if I reinstall ./install.sh script, so that my original config files are restored. I’m using the poly_pkt_fwd of ic880a-gateway as my packet forwarder.

Also it seems the chirpstack-gateway-bridge is different from the old version (lora-gateway-bridge file). There’s no provision to add MAC address of the gateway in CS-gateway-bridge unlike the older version.

Hoping to see clarifications for the issues I’m facing.

For Ubuntu based desktop, you can follow the Debian / Ubuntu getting started guide: https://www.chirpstack.io/guides/debian-ubuntu/.

Alternatively, you can follow the Docker setup: https://www.chirpstack.io/guides/docker-compose/. I think this might be the easiest approach as it contains a ready to go (EU868) setup. The only thing remaining is then to configure your gateway to you desktop IP and port 1700.