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: ERROR: [main] failed to start the concentrator #91

Open heydemar opened 1 year ago

heydemar commented 1 year ago

Hello, After my SD card crashed, I had to set up my LORAWAN Gateway again and followed the instructions as before, but unfortunately I now get the following error message when I look at the status with the following command (SPI is on):

sudo journalctl -u ttn-gateway -f


Aug 31 10:58:27 LORAWAN ttn-gateway[2280]: INFO: [main] Starting the concentrator Aug 31 10:58:27 LORAWAN ttn-gateway[2280]: ERROR: [main] failed to start the concentrator Aug 31 10:58:27 LORAWAN systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE Aug 31 10:58:27 LORAWAN systemd[1]: ttn-gateway.service: Failed with result 'exit-code'. Aug 31 10:58:32 LORAWAN systemd[1]: ttn-gateway.service: Scheduled restart job, restart counter is at 24. Aug 31 10:58:32 LORAWAN systemd[1]: Stopped The Things Network Gateway. Aug 31 10:58:32 LORAWAN systemd[1]: Started The Things Network Gateway.

That's the result of: service ttn-gateway status

pi@LORAWAN:/opt/ttn-gateway/bin $ service ttn-gateway status ● ttn-gateway.service - The Things Network Gateway Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2022-08-31 11:27:43 CEST; 4s ago Process: 9223 ExecStart=/opt/ttn-gateway/bin/start.sh (code=exited, status=1/FAILURE) Main PID: 9223 (code=exited, status=1/FAILURE) CPU: 618ms

Aug 31 11:27:43 LORAWAN systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE Aug 31 11:27:43 LORAWAN systemd[1]: ttn-gateway.service: Failed with result 'exit-code'.

marcobrianza commented 1 year ago

I fixed the issue enabling SPI