AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL unreviewed MIT Self-run

App Platform Troubleshooting

skill-digitalocean-labs-do-app-platform-skills-troubleshooting · by digitalocean-labs

Debug running App Platform applications by accessing containers, analyzing logs, running diagnostics, and applying fixes. Use when apps fail to deploy, crash at runtime, have connectivity issues, or need performance diagnosis.

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add skill-digitalocean-labs-do-app-platform-skills-troubleshooting

Open-source listing, not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Dangerous shell/eval execution.

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution Used

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Reliability & compatibility

Not yet reviewed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of App Platform Troubleshooting? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

App Platform Troubleshooting Skill

Transform debugging from guessing to rapid diagnosis and fix.

Philosophy

Traditional: See error → Guess → Change → Push → Wait 5-7 min → Repeat
With skill:  See error → Diagnose → Fix → Verify → Commit proper fix

Quick Decision

Is the app deployed with running containers?
├── YES → Can we access the shell?
│         ├── YES → LIVE MODE (SDK shell access)
│         └── NO  → LOGS-ONLY MODE (fetch logs)
└── NO (build/deploy failed) → LOGS-ONLY MODE

Mode 1: Live Troubleshooting (Quick Start)

from do_app_sandbox import Sandbox

app = Sandbox.get_from_id(app_id="", component="web")

# Diagnostics
app.exec("env | grep DATABASE")
app.exec("curl -v localhost:8080/health")
app.exec("ps aux | head -10")

Full guide: See [live-troubleshooting.md](reference/live-troubleshooting.md)


Mode 2: Logs-Only (Quick Start)

# Runtime logs
doctl apps logs   --type run

# Build logs
doctl apps logs   --type build

# Crash logs
doctl apps logs  --type=run_restarted

Full guide: See [logs-analysis.md](reference/logs-analysis.md)


Debug Container (Infrastructure Issues)

Deploy in ~30-45 seconds to isolate infrastructure from application:

services:
  - name: debug
    image:
      registry_type: GHCR
      registry: ghcr.io
      repository: bikramkgupta/debug-python
      tag: latest
    http_port: 8080
    envs:
      - key: DATABASE_URL
        value: ${db.DATABASE_URL}
# Run validation suite
validate-infra all
validate-infra database
validate-infra kafka

Full guide: See [debug-container.md](reference/debug-container.md)


Quick Reference: Exit Codes

| Code | Signal | Meaning | |------|--------|---------| | 0 | - | Clean exit (shouldn't exit) | | 1 | - | General error | | 127 | - | Command not found | | 137 | SIGKILL | OOM killed | | 143 | SIGTERM | Graceful shutdown |


Quick Reference: Common Fixes

| Problem | Quick Fix | |---------|-----------| | App exits immediately | Check if listening on $PORT | | 502 errors | Check health endpoint, verify running | | Database connection fails | Use Debug Container, verify trusted sources | | Build fails | Check dependencies, review build logs | | OOM kills | Upgrade instance size | | Health checks fail | Bind to 0.0.0.0, not localhost | | Slow startup | Increase initialdelayseconds |


Reference Files

  • [live-troubleshooting.md](reference/live-troubleshooting.md) — SDK shell access, diagnostics, hot fixes
  • [logs-analysis.md](reference/logs-analysis.md) — Log patterns, error codes, health check config
  • [debug-container.md](reference/debug-container.md) — Infrastructure validation, validation suite
  • [networking-issues.md](reference/networking-issues.md) — DNS, CORS, VPC, routing
  • [app-maintenance.md](reference/app-maintenance.md) — Archive/unarchive workflow
  • [diagnostic-scripts.md](reference/diagnostic-scripts.md) — Scripts, testing strategy, performance

When to Escalate

Contact DigitalOcean Support when:

  • Internal error persists after redeploy
  • Resource limit increases needed
  • Multiple apps affected (platform issue)
  • VPC/networking issues can't be diagnosed

Before escalating, gather:

doctl apps get  -o json > app_info.json
doctl apps logs   --type run > runtime.log
doctl apps spec get  > app_spec.yaml

Integration with Other Skills

  • → deployment: After fixing, deploy proper changes
  • → devcontainers: Reproduce issues locally
  • → postgres: Database-specific configuration
  • → networking: Comprehensive networking docs

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.