Commit 2a51d9a
Fix Thruster and HTTP/2 configuration for Control Plane deployment
CRITICAL FIX: Change workload protocol from http2 back to http
Root cause identified through live debugging on Control Plane:
- Thruster IS running correctly in the container
- Thruster handles HTTP/2 on the public-facing TLS connection
- Control Plane's load balancer expects HTTP/1.1 from the container
- Setting protocol: http2 causes 502 "protocol error"
What I discovered:
1. Accessed live QA app: qa-react-webpack-rails-tutorial-687
2. Verified Thruster is running: PID 1 is "thrust bin/rails server"
3. Rails responds correctly on localhost:3000
4. But external requests get 502 with "protocol error"
5. Issue: Protocol mismatch between load balancer and container
The correct architecture:
- End User → HTTPS/HTTP2 → Control Plane Load Balancer
- Load Balancer → HTTP/1.1 → Thruster in Container
- Thruster → HTTP/1.1 → Rails (localhost:3000)
Changes:
1. Update rails.yml: protocol: http2 → protocol: http
2. Add detailed explanation in rails.yml comments
3. Update .controlplane/readme.md with correct configuration
4. Update docs/thruster.md with protocol explanation
5. Add troubleshooting section for 502 protocol errors
Key insight:
Thruster provides HTTP/2 to end users through TLS termination,
but the container must expose HTTP/1.1 to the load balancer.
This is different from running Thruster in production with
direct TLS termination where it would handle HTTP/2 end-to-end.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent eea187f commit 2a51d9a
3 files changed
+27
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
207 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | | - | |
| 217 | + | |
210 | 218 | | |
211 | 219 | | |
212 | | - | |
| 220 | + | |
213 | 221 | | |
214 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
0 commit comments