Self-hosted “Add Device” generates an unusable Station install URL
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start with compose.yaml and trace how the backend receives environment variables, then find where COMMA_STATION_ORIGIN is used to generate the Add Device install command and sign enrollment requests. Check how the externally reachable host and port are preserved through the proxy. Done means the default Compose setup generates a command whose install URL and enrollment signature both work without manual container changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
In the default self-hosted Compose setup, Settings → Devices → Add Device generates a Station installation command using:
curl -fsSL http://localhost/stations/install.sh | sh -s -- <ticket>
However, no service is exposed on port 80. The web UI is exposed on port 8080, while the Station control-plane endpoint is exposed on port 8081.
As a result, the generated command cannot enroll a Station without manually changing deployment configuration and recreating the backend container.
Environment
- Comma commit:
66ab3dc9 - Deployment: repository
compose.yaml - Host: macOS arm64
- Container runtime: Podman 6.1.4
- Default endpoints:
- Web UI:
http://localhost:8080 - API / Station endpoint:
http://localhost:8081
- Web UI:
Steps to reproduce
- Start the self-hosted deployment using the repository Compose configuration.
- Sign in to Comma.
- Open Settings → Devices.
- Select Add Device.
- Copy and run the generated installation command.
Actual behavior
The generated command points to:
http://localhost/stations/install.sh
Port 80 is not listening, so the command initially fails with a connection-refused error.
The observed endpoints are:
http://localhost:8080/stations/install.sh → HTML application shell
http://localhost:8081/stations/install.sh → Station installation script
Changing only the command URL to port 8081 is not sufficient. Enrollment is rejected with:
{"error":"invalid_signature"}
The Station enrollment signature is bound to an origin that does not match the reachable Station endpoint.
Expected behavior
The default self-hosted deployment should generate a Station installation command that works without manual Compose changes.
For example, the self-host configuration could:
- set
COMMA_STATION_ORIGINto the externally reachable API/Station origin; - preserve the external host and port correctly through the reverse proxy; or
- validate the Station origin during startup and show a clear configuration error.
Workaround
Adding the following deployment setting and recreating the Comma backend container allowed enrollment to succeed:
COMMA_STATION_ORIGIN=http://localhost:8081
The Compose service also needs to pass that variable to the backend process.
Impact
This blocks the first-time Add Device workflow for a default local self-host deployment. The UI presents the command as ready to run, but completing the workflow currently requires understanding the internal port layout, modifying Compose configuration, and recreating the backend container.
- Ngôn ngữ chính
- Elixir
- Star
- 740
- Fork
- 61
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AFK-surf/Comma
-
Paid Task runs rejected with insufficient_credits although the usage page shows 20,000,000 available quotaCó thể đã có người làm @akumatus đã nhận 10 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của AFK-surf/Comma
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
intellij-elixir/intellij-elixir#4938 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Attribute selectors match elements without the attribute; [x^=''] matches everythingCó thể đã có người làm @bardrop đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
expert-lsp/expert#1040 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
ash-project/ash_mysql#278 · 2 bình luận ·
-
L: github:actions L: javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
dependabot/dependabot-core#17100 ·
Maintainer thường phản hồi trong vòng 2 ngày