zeabur/agent-skills/zeabur-port-mismatch
Claude Code and agent skill by zeabur/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when proxy shows dial tcp timeout or i/o timeout. Use when service port doesn't match proxy expectation.
Install
npx vskill@latest install zeabur/agent-skills/zeabur-port-mismatchSKILL.md
The same SKILL.md was published earlier as zeabur/agent-skills/zeabur-port-mismatch.
Zeabur Port Mismatch
Always use `npx zeabur@latest` to invoke Zeabur CLI. Never usezeaburdirectly or any other installation method. Ifnpxis not available, install Node.js first.
Symptom
Cause
Proxy expects service on port X, but service listens on port Y.
Diagnose
- Check port forwarding status and actual forwarded ports:
``bash npx zeabur@latest service network --id SERVICE_ID ``
- Check what port the container is actually listening on:
``bash npx zeabur@latest service exec --id SERVICE_ID -- netstat -tlnp ` (use the zeabur-deployment-logs` skill to also check logs for port binding info)
- Check what port proxy expects (from Caddyfile/nginx.conf)
- Check what port container exposes (Dockerfile
EXPOSE)
Common Mismatches
| Proxy expects | Container has | Fix | |
|---|---|---|---|
:3000 | nginx default :80 | Change template port to 80 | |
:80 | app on :3000 | Change template port to 3000 |
Fix in Template
Use the zeabur-template skill for full YAML reference on port configuration and portForwarding:
Check official Dockerfile for `EXPOSE` directive.
Headless Service (502 with no listener)
Symptom
Service is running (no crash), but proxy returns 502 Bad Gateway permanently.
Cause
Service does not listen on any HTTP port. Examples: chatbot gateways, background workers, message queue consumers. The template declares an HTTP port but nothing binds to it.
Fix
Add a lightweight HTTP health check server that runs in the background alongside the main process:
Port Forwarding Not Working
If a TCP service is deployed but not reachable externally:
- Check if port forwarding is enabled:
``bash npx zeabur@latest service port-forward --id SERVICE_ID ``
- Enable it if disabled:
``bash npx zeabur@latest service port-forward --id SERVICE_ID --enable ``
- Verify the forwarded endpoint:
``bash npx zeabur@latest service network --id SERVICE_ID # Output: proxy (TCP 8888) → 34.x.x.x:20143 ``
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/zeabur-port-mismatch/SKILL.md
Popularity
- Repository stars
- 31
- Repository forks
- 9
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zeabur/agent-skills/zeabur-port-mismatch)