-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors while launching start.sh to restart the gateway #93
Comments
This is most likely a misconfiguration |
Replace following lines in start.sh:
|
Would you have time to send a pull request with the fix? |
Works on my TTN gateway with current Raspberry PI OS Lite (Kernel 6.6.62). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ sudo /opt/ttn-gateway/bin/start.sh
/opt/ttn-gateway/bin/start.sh: line 5: echo: write error: Invalid argument
/opt/ttn-gateway/bin/start.sh: line 6: /sys/class/gpio/gpio25/direction: No such file or directory
/opt/ttn-gateway/bin/start.sh: line 7: /sys/class/gpio/gpio25/value: No such file or directory
/opt/ttn-gateway/bin/start.sh: line 9: /sys/class/gpio/gpio25/value: No such file or directory
/opt/ttn-gateway/bin/start.sh: line 11: /sys/class/gpio/gpio25/value: No such file or directory
/opt/ttn-gateway/bin/start.sh: line 13: echo: write error: Invalid argument
/opt/ttn-gateway/bin/start.sh: line 53: ./poly_pkt_fwd: No such file or directory
$ sudo systemctl status ttn-gateway
● ttn-gateway.service - The Things Network Gateway
Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-06-03 14:25:44 CEST; 1s ago
Main PID: 4018 (start.sh)
Tasks: 5 (limit: 756)
CPU: 446ms
CGroup: /system.slice/ttn-gateway.service
├─4018 /bin/bash /opt/ttn-gateway/bin/start.sh
├─4025 git pull
├─4026 /usr/lib/git-core/git fetch --update-head-ok
├─4027 /usr/lib/git-core/git remote-https origin https://github.com/ttn-zh/gateway-remote-config.git
└─4028 /usr/lib/git-core/git-remote-https origin https://github.com/ttn-zh/gateway-remote-config.git
Jun 03 14:25:44 ttn-gateway systemd[1]: Started ttn-gateway.service - The Things Network Gateway.
Jun 03 14:25:44 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/bin/start.sh: line 5: echo: write error: Invalid argument
Jun 03 14:25:44 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/bin/start.sh: line 6: /sys/class/gpio/gpio25/direction: No such file or directory
Jun 03 14:25:44 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/bin/start.sh: line 7: /sys/class/gpio/gpio25/value: No such file or directory
Jun 03 14:25:45 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/bin/start.sh: line 9: /sys/class/gpio/gpio25/value: No such file or directory
Jun 03 14:25:45 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/bin/start.sh: line 11: /sys/class/gpio/gpio25/value: No such file or directory
Jun 03 14:25:45 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/bin/start.sh: line 13: echo: write error: Invalid argument
Jun 03 14:25:45 ttn-gateway ttn-gateway[4018]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin
The text was updated successfully, but these errors were encountered: