From f3da975eb73404e5972863e75fcfdaf543a604f9 Mon Sep 17 00:00:00 2001 From: Achmad Date: Wed, 24 Jun 2026 05:48:10 +0000 Subject: [PATCH] DEPLOY.md: remove the 'agent on 92 can't reach 186:3452' section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The user's micro agent dials ws://172.18.139.186:3452/ws/agent directly, bypassing nginx. The 'add a /ws/agent nginx proxy block' workaround was for a different topology where the agent goes through nginx on 80, which doesn't apply here. That section was confusing — it suggested an nginx change the user doesn't need. Delete it. --- DEPLOY.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/DEPLOY.md b/DEPLOY.md index 7306988..455cf9d 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -198,31 +198,6 @@ ExecStart=/home/administrator/SDP/bin/agent-micro -node micro -cp ws://172.18.13 (Remove the `Environment=` / `EnvironmentFile=` / `${SDP_CP_URL}` lines.) Do the same for `systemd/sdp-agent-gateway.service` (URL is `ws://127.0.0.1:3452/ws/agent`). Re-do steps 7 and 8. -### Micro agent on 92 can't reach the control plane on 186:3452 - -Symptom: `sdp-agent-micro.service` journal shows `dial: ... connection refused` or `i/o timeout` to `172.18.139.186:3452`. - -Fix: add a `/ws/agent` proxy block to 186's nginx (alongside the four from `nginx/sandbox.conf`): - -```nginx -location /ws/agent { - proxy_pass http://127.0.0.1:3452; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_read_timeout 3600s; -} -``` - -On your laptop, edit `systemd/sdp-agent-micro.service` to dial through nginx on 80: - -```ini -Environment=SDP_CP_URL=ws://172.18.139.186/ws/agent -``` - -(Port 80, no `:3452`.) Then on 186, reload nginx and re-do steps 7 and 8a. - ### Login returns "git ls-remote rejected" Either: