zeabur/agent-skills/zeabur-port-mismatch

Claude Code and agent skill by zeabur/agent-skills

Trust tier 2
  • community
LLM review pending
Source check pending

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-mismatch

SKILL.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 use zeabur directly or any other installation method. If npx is not available, install Node.js first.

Symptom

dial tcp 10.x.x.x:3000: i/o timeout
dial tcp 10.x.x.x:80: connection refused

Cause

Proxy expects service on port X, but service listens on port Y.

Diagnose

  1. Check port forwarding status and actual forwarded ports:

``bash npx zeabur@latest service network --id SERVICE_ID ``

  1. 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)

  1. Check what port proxy expects (from Caddyfile/nginx.conf)
  2. Check what port container exposes (Dockerfile EXPOSE)

Common Mismatches

Proxy expectsContainer hasFix
:3000nginx default :80Change template port to 80
:80app on :3000Change template port to 3000

Fix in Template

Use the zeabur-template skill for full YAML reference on port configuration and portForwarding:

yaml
ports:
- id: web
port: 3000 # Match what container actually exposes
type: HTTP

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:

bash
# Start before main process in startup script
# IMPORTANT: port must match spec.ports[].port in your template
python3 -c "
from http.server import HTTPServer, BaseHTTPRequestHandler
import json
class H(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-Type','application/json')
self.end_headers()
self.wfile.write(json.dumps({'status':'ok'}).encode())
def log_message(self,*a): pass
HTTPServer(('0.0.0.0', 8080), H).serve_forever()
" &
exec my-headless-app

Port Forwarding Not Working

If a TCP service is deployed but not reachable externally:

  1. Check if port forwarding is enabled:

``bash npx zeabur@latest service port-forward --id SERVICE_ID ``

  1. Enable it if disabled:

``bash npx zeabur@latest service port-forward --id SERVICE_ID --enable ``

  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zeabur/agent-skills/zeabur-port-mismatch/badge)](https://verified-skill.com/skills/zeabur/agent-skills/zeabur-port-mismatch)

Something wrong with this skill or its page? Tell us.