Pi Zero could not bind to port 80 after upgrade to v1.13.0
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 133
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 11
Description
I am running my hub on a Raspberry Pi Zero and just performed the upgrade via the upgrade script I found in this repo:
```bash
/bin/bash -c "$(curl -fsSL https://getalby.com/install/hub/pi-zero-update.sh)"
```
I am not exactly sure, but I think I ran v1.11.x before (initial install).
After the upgrade the service did not start up anymore and I detected an error in the logs:
```
listen tcp :80: bind: permission denied
```
After a bit of research I figured that non root users are not allowed to bind to "privileged" ports. So I added the permission manually, which fixed the issue for me.
```bash
sudo setcap 'cap_net_bind_service=+ep' /opt/albyhub/bin/albyhub
```
Not sure why it worked before, and if my situation is unique or if there is a general issue and other users might be affected as well. Just wanted to report in case.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the Pi Zero upgrade script at https://getalby.com/install/hub/pi-zero-update.sh and the service setup for /opt/albyhub/bin/albyhub. Reproduce the v1.13.0 upgrade if possible and inspect why the binary loses permission to bind port 80. Done means the upgrade leaves the service able to start without manual setcap changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, raspberry-pi
- Domain
- embedded-iot, infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100