ttn-zh / ic880a-gateway

Reference setup for iC880a gateways running The Things Network
GNU General Public License v3.0
455 stars 210 forks source link

Error: Failed to start the concentrator after using 5V, 4A adapter #45

Closed Taher1322 closed 5 years ago

Taher1322 commented 5 years ago

I am using 5V,1.6A adapter, my remote config file is pushed to the repository, I have edited the reset code into my start.sh file, my SPI is enabled as well.

! /bin/bash

Reset iC880a PIN SX1301_RESET_BOARD_PIN=22 echo "$SX1301_RESET_BOARD_PIN_22" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio$SX1301_RESET_BOARD_PIN_22/direction echo "0" > /sys/class/gpio/gpio$SX1301_RESET_BOARD_PIN_22/value sleep 0.1 echo "1" > /sys/class/gpio/gpio$SX1301_RESET_BOARD_PIN_22/value sleep 0.1 echo "0" > /sys/class/gpio/gpio$SX1301_RESET_BOARD_PIN_22/value sleep 0.1 echo "$SX1301_RESET_BOARD_PIN_22" > /sys/class/gpio/unexport

Test the connection, wait if needed. After restating it, and checking the gateway status by running sudo service ttn-gateway status

I get ● ttn-gateway.service - The Things Network Gateway Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor pres Active: active (running) since Tue 2019-01-08 09:40:48 GMT; 1s ago Main PID: 1610 (start.sh) CGroup: /system.slice/ttn-gateway.service ├─1610 /bin/bash /opt/ttn-gateway/bin/start.sh ├─1614 git pull ├─1615 git fetch --update-head-ok └─1616 git-remote-https origin https://github.com/ttn-zh/gateway-remo

Jan 08 09:40:48 ttn-gateway systemd[1]: Started The Things Network Gateway. Jan 08 09:40:48 ttn-gateway ttn-gateway[1610]: /opt/ttn-gateway/gateway-remote-c lines 1-12/12 (END)

When i run sudo tail -f /var/log/syslog

Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: INFO: Beacon is disabled Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: INFO: Monitor is disabled Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: INFO: Contact email configured to "ujjainwala.taher1322@gmail.com" Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: INFO: Description configured to "Faclon_TTN_Gateway" Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: INFO: Successfully contacted server router.eu.thethings.network Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: INFO: [main] Starting the concentrator Jan 8 10:09:55 ttn-gateway ttn-gateway[4693]: ERROR: [main] failed to start the concentrator Jan 8 10:09:55 ttn-gateway systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE Jan 8 10:09:55 ttn-gateway systemd[1]: ttn-gateway.service: Unit entered failed state. Jan 8 10:09:55 ttn-gateway systemd[1]: ttn-gateway.service: Failed with result 'exit-code'. Jan 8 10:10:00 ttn-gateway systemd[1]: ttn-gateway.service: Service hold-off time over, scheduling restart. Jan 8 10:10:00 ttn-gateway systemd[1]: Stopped The Things Network Gateway. Jan 8 10:10:00 ttn-gateway systemd[1]: Started The Things Network Gateway. Jan 8 10:10:00 ttn-gateway ttn-gateway[4722]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin Jan 8 10:10:05 ttn-gateway ttn-gateway[4722]: Already up-to-date. Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: HEAD is now at f031abf Merge pull request #1167 from Taher1322/master Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: /opt/ttn-gateway/bin Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: [TTN Gateway]: Use Gateway EUI B827EBFFFE0B103C based on wlan0 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: Poly Packet Forwarder for Lora Gateway Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: Version: 2.1.0 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: Lora concentrator HAL library version info Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: Version: 3.1.0; Options: ftdi; Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: *** Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Little endian host Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: found global configuration file global_conf.json, parsing it Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: lorawan_public 1, clksrc 1 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Configuring TX LUT with 16 indexes Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: gateway MAC address is configured to AA555A0000000000 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Found 2 servers in array. Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Found 5 system calls in array. Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: System command 0: "df -m" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: System command 1: "free -h" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: System command 2: "uptime" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: System command 3: "who -a" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: System command 4: "uname -a" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: monitor hostname or IP address is configured to "127.0.0.1" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: monitor port is configured to "2008" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: ghost hostname or IP address is configured to "127.0.0.1" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: ghost port is configured to "1918" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: downstream keep-alive interval is configured to 10 seconds Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: statistics display interval is configured to 30 seconds Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: upstream PUSH_DATA time-out is configured to 100 ms Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: packets received with a valid CRC will be forwarded Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: packets received with a CRC error will NOT be forwarded Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: packets received with no CRC will NOT be forwarded Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: GPS serial port path is configured to "/dev/ttyAMA0" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: SSH path is configured to "/usr/bin/ssh" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: SSH port is configured to 22 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: HTTP port is configured to 80 Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: NGROK path is configured to "/usr/bin/ngrok" Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Reference latitude is configured to 10.000000 deg Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Reference longitude is configured to 20.000000 deg Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Reference altitude is configured to -1 meters Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: GPS is enabled Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Using fake GPS coordinates instead of real. Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: antenna_gain 0 dBi Jan 8 10:10:06 ttn-gateway ttn-gateway[4722]: INFO: Upstream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Downstream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Ghoststream data is disabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Radiostream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Statusstream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Beacon is disabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Monitor is disabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Platform configured to "Lorank" Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Contact email configured to "operator@gateway.tst" Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Description configured to "Update me" Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: found local configuration file local_conf.json, parsing it Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: redefined parameters will overwrite global parameters Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: local_conf.json does not contain a JSON object named SX1301_conf Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: gateway MAC address is configured to B827EBFFFE0B103C Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Found 1 servers in array. Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Server 0 configured to "router.eu.thethings.network", with port up "1700" and port down "1700" Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: packets received with a valid CRC will be forwarded Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: packets received with a CRC error will NOT be forwarded Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: packets received with no CRC will NOT be forwarded Jan 8 10:10:07 ttn-gateway systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Reference latitude is configured to 19.117190 deg Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Reference longitude is configured to 72.887140 deg Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Reference altitude is configured to 16 meters Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: GPS is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: antenna_gain 0 dBi Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Upstream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Downstream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Ghoststream data is disabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Radiostream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Statusstream data is enabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Beacon is disabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Monitor is disabled Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Contact email configured to "ujjainwala.taher1322@gmail.com" Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Description configured to "Faclon_TTN_Gateway" Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: Successfully contacted server router.eu.thethings.network Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: INFO: [main] Starting the concentrator Jan 8 10:10:07 ttn-gateway ttn-gateway[4722]: ERROR: [main] failed to start the concentrator Jan 8 10:10:07 ttn-gateway systemd[1]: ttn-gateway.service: Unit entered failed state. Jan 8 10:10:07 ttn-gateway systemd[1]: ttn-gateway.service: Failed with result 'exit-code'.

The status on TTN console is still non connected.

Please help me with this issue..

gonzalocasas commented 5 years ago

1.6A is not enough, I believe it's written in the documentation of the iC880a module that you need at least 2A, but we recommend 2.5A anyway.

Taher1322 commented 5 years ago

I used a 4A adapter and still i get the same issue, failed to start the concentrator... Please help me regarding this issue

gonzalocasas commented 5 years ago
  1. Why did you edit the start.sh file?
  2. What's your setup? (i.e. IMST board? RAK board?)
  3. The edited file has several mistakes, chief among them is the fact that you declare the variable as SX1301_RESET_BOARD_PIN but then you use it as SX1301_RESET_BOARD_PIN_22. There's also a missing comment char at start of line 3.

Please check all that before. The setup has been working without issues for several years, and unless something has changed recently, this is a mistake in the configuration, not a bug in the installer.

Taher1322 commented 5 years ago

i edited the start.sh file so that whenever my IC88A concentrator is started, it reset the board. I am using ic880A board (IMST). can you give me a link or the right reset part which i have added in start.sh file. Please Help me regarding it as I am pretty close. Hope to here from you soon Thank you

gonzalocasas commented 5 years ago

If you use the iC880a concentrator board, then why did you change the start.sh? Assuming you followed the connection instructions, the script should work without changes.

Taher1322 commented 5 years ago

Yes, I have followed the instructions as shown with the github repository. I removed the reset code from start.sh file and I am using 5V,2A adapter. I checked the gateway status

sudo service ttn-gateway status ● ttn-gateway.service - The Things Network Gateway Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2019-01-14 06:15:13 GMT; 3min 26s ago Main PID: 220 (start.sh) CGroup: /system.slice/ttn-gateway.service ├─220 /bin/bash /opt/ttn-gateway/bin/start.sh ├─451 git pull ├─452 git fetch --update-head-ok └─453 git-remote-https origin https://github.com/ttn-zh/gateway-remote-config.git

Jan 14 06:15:13 ttn-gateway systemd[1]: Started The Things Network Gateway. Jan 14 06:15:14 ttn-gateway ttn-gateway[220]: [TTN Gateway]: Waiting for internet connection... Jan 14 06:15:54 ttn-gateway ttn-gateway[220]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin

after showing this i checked my ttn console, it still shows not connected.

I used sudo tail -f /var/log/syslog and again the same error, failed to start the concentrator

Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: Statusstream data is enabled Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: Beacon is disabled Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: Monitor is disabled Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: Contact email configured to "ujjainwala.taher1322@gmail.com" Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: Description configured to "Faclon_TTN_Gateway" Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: Successfully contacted server router.eu.thethings.network Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: INFO: [main] Starting the concentrator Jan 14 06:20:00 ttn-gateway ttn-gateway[220]: ERROR: [main] failed to start the concentrator Jan 14 06:20:00 ttn-gateway systemd[1]: ttn-gateway.service: Unit entered failed state. Jan 14 06:20:00 ttn-gateway systemd[1]: ttn-gateway.service: Failed with result 'exit-code'. Jan 14 06:20:05 ttn-gateway systemd[1]: ttn-gateway.service: Service hold-off time over, scheduling restart. Jan 14 06:20:05 ttn-gateway systemd[1]: Stopped The Things Network Gateway. Jan 14 06:20:05 ttn-gateway systemd[1]: Started The Things Network Gateway. Jan 14 06:20:05 ttn-gateway ttn-gateway[587]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin Jan 14 06:20:08 ttn-gateway ttn-gateway[587]: Already up-to-date. Jan 14 06:20:08 ttn-gateway ttn-gateway[587]: HEAD is now at 829cfd5 Merge pull request #1175 from Cogvet/patch-1 Jan 14 06:20:08 ttn-gateway ttn-gateway[587]: /opt/ttn-gateway/bin Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: [TTN Gateway]: Use Gateway EUI B827EBFFFE0B103C based on wlan0 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: Poly Packet Forwarder for Lora Gateway Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: Version: 2.1.0 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: Lora concentrator HAL library version info Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: Version: 3.1.0; Options: ftdi; Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: * Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Little endian host Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: found global configuration file global_conf.json, parsing it Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: lorawan_public 1, clksrc 1 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Configuring TX LUT with 16 indexes Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: gateway MAC address is configured to AA555A0000000000 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Found 2 servers in array. Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Found 5 system calls in array. Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: System command 0: "df -m" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: System command 1: "free -h" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: System command 2: "uptime" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: System command 3: "who -a" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: System command 4: "uname -a" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: monitor hostname or IP address is configured to "127.0.0.1" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: monitor port is configured to "2008" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: ghost hostname or IP address is configured to "127.0.0.1" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: ghost port is configured to "1918" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: downstream keep-alive interval is configured to 10 seconds Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: statistics display interval is configured to 30 seconds Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: upstream PUSH_DATA time-out is configured to 100 ms Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: packets received with a valid CRC will be forwarded Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: packets received with a CRC error will NOT be forwarded Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: packets received with no CRC will NOT be forwarded Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: GPS serial port path is configured to "/dev/ttyAMA0" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: SSH path is configured to "/usr/bin/ssh" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: SSH port is configured to 22 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: HTTP port is configured to 80 Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: NGROK path is configured to "/usr/bin/ngrok" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Reference latitude is configured to 10.000000 deg Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Reference longitude is configured to 20.000000 deg Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Reference altitude is configured to -1 meters Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: GPS is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Using fake GPS coordinates instead of real. Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: antenna_gain 0 dBi Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Upstream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Downstream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Ghoststream data is disabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Radiostream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Statusstream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Beacon is disabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Monitor is disabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Platform configured to "Lorank" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Contact email configured to "operator@gateway.tst" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Description configured to "Update me" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: found local configuration file local_conf.json, parsing it Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: redefined parameters will overwrite global parameters Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: local_conf.json does not contain a JSON object named SX1301_conf Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: gateway MAC address is configured to B827EBFFFE0B103C Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Found 1 servers in array. Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Server 0 configured to "router.eu.thethings.network", with port up "1700" and port down "1700" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: packets received with a valid CRC will be forwarded Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: packets received with a CRC error will NOT be forwarded Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: packets received with no CRC will NOT be forwarded Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Reference latitude is configured to 19.117190 deg Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Reference longitude is configured to 72.887140 deg Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Reference altitude is configured to 16 meters Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: GPS is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: antenna_gain 0 dBi Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Upstream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Downstream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Ghoststream data is disabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Radiostream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Statusstream data is enabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Beacon is disabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Monitor is disabled Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Contact email configured to "ujjainwala.taher1322@gmail.com" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Description configured to "Faclon_TTN_Gateway" Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: Successfully contacted server router.eu.thethings.network Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: INFO: [main] Starting the concentrator Jan 14 06:20:09 ttn-gateway ttn-gateway[587]: ERROR: [main] failed to start the concentrator Jan 14 06:20:09 ttn-gateway systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE Jan 14 06:20:09 ttn-gateway systemd[1]: ttn-gateway.service: Unit entered failed state. Jan 14 06:20:09 ttn-gateway systemd[1]: ttn-gateway.service: Failed with result 'exit-code'. Jan 14 06:20:14 ttn-gateway systemd[1]: ttn-gateway.service: Service hold-off time over, scheduling restart. Jan 14 06:20:14 ttn-gateway systemd[1]: Stopped The Things Network Gateway. Jan 14 06:20:14 ttn-gateway systemd[1]: Started The Things Network Gateway. Jan 14 06:20:14 ttn-gateway ttn-gateway[610]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: Already up-to-date. Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: HEAD is now at 829cfd5 Merge pull request #1175 from Cogvet/patch-1 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: /opt/ttn-gateway/bin Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: [TTN Gateway]: Use Gateway EUI B827EBFFFE0B103C based on wlan0 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: * Poly Packet Forwarder for Lora Gateway Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: Version: 2.1.0 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: Lora concentrator HAL library version info Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: Version: 3.1.0; Options: ftdi; Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Little endian host Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: found global configuration file global_conf.json, parsing it Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: lorawan_public 1, clksrc 1 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Configuring TX LUT with 16 indexes Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: gateway MAC address is configured to AA555A0000000000 Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Found 2 servers in array. Jan 14 06:20:18 ttn-gateway ttn-gateway[610]: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Found 5 system calls in array. Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: System command 0: "df -m" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: System command 1: "free -h" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: System command 2: "uptime" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: System command 3: "who -a" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: System command 4: "uname -a" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: monitor hostname or IP address is configured to "127.0.0.1" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: monitor port is configured to "2008" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: ghost hostname or IP address is configured to "127.0.0.1" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: ghost port is configured to "1918" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: downstream keep-alive interval is configured to 10 seconds Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: statistics display interval is configured to 30 seconds Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: upstream PUSH_DATA time-out is configured to 100 ms Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: packets received with a valid CRC will be forwarded Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: packets received with a CRC error will NOT be forwarded Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: packets received with no CRC will NOT be forwarded Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: GPS serial port path is configured to "/dev/ttyAMA0" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: SSH path is configured to "/usr/bin/ssh" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: SSH port is configured to 22 Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: HTTP port is configured to 80 Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: NGROK path is configured to "/usr/bin/ngrok" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Reference latitude is configured to 10.000000 deg Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Reference longitude is configured to 20.000000 deg Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Reference altitude is configured to -1 meters Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: GPS is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Using fake GPS coordinates instead of real. Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: antenna_gain 0 dBi Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Upstream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Downstream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Ghoststream data is disabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Radiostream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Statusstream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Beacon is disabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Monitor is disabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Platform configured to "Lorank" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Contact email configured to "operator@gateway.tst" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Description configured to "Update me" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: found local configuration file local_conf.json, parsing it Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: redefined parameters will overwrite global parameters Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: local_conf.json does not contain a JSON object named SX1301_conf Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: gateway MAC address is configured to B827EBFFFE0B103C Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Found 1 servers in array. Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Server 0 configured to "router.eu.thethings.network", with port up "1700" and port down "1700" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: packets received with a valid CRC will be forwarded Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: packets received with a CRC error will NOT be forwarded Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: packets received with no CRC will NOT be forwarded Jan 14 06:20:19 ttn-gateway systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Reference latitude is configured to 19.117190 deg Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Reference longitude is configured to 72.887140 deg Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Reference altitude is configured to 16 meters Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: GPS is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: antenna_gain 0 dBi Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Upstream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Downstream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Ghoststream data is disabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Radiostream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Statusstream data is enabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Beacon is disabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Monitor is disabled Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Contact email configured to "ujjainwala.taher1322@gmail.com" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Description configured to "Faclon_TTN_Gateway" Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: Successfully contacted server router.eu.thethings.network Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: INFO: [main] Starting the concentrator Jan 14 06:20:19 ttn-gateway ttn-gateway[610]: ERROR: [main] failed to start the concentrator Jan 14 06:20:19 ttn-gateway systemd[1]: ttn-gateway.service: Unit entered failed state. Jan 14 06:20:19 ttn-gateway systemd[1]: ttn-gateway.service: Failed with result 'exit-code'.

I don't understand where is the problem. Please help me with this issue. Thank You