Skip to content
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

Open
green15878 opened this issue Jun 3, 2024 · 1 comment
Open

Errors while launching start.sh to restart the gateway #93

green15878 opened this issue Jun 3, 2024 · 1 comment

Comments

@green15878
Copy link

green15878 commented Jun 3, 2024

$ 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

@gonzalocasas
Copy link
Member

This is most likely a misconfiguration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants