Skip to content
Back to skills

Flyio Common Errors

ASecurity

'Diagnose and fix common Fly.io errors including deployment failures, health check failures, machine issues, and networking problems. Trigger: \"fly.io error\", \"fly deploy failed\", \"fly.io not working\", \"fly health check\". '

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
ai-agentsgoshellbashdockerdebugginggitapidevops

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill flyio-common-errors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flyio Common Errors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flyio Common Errors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-flyio-common-errors/badge)](https://www.skillsdirectory.com/skills/thedixitjain-flyio-common-errors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flyio-common-errors
description: "'Diagnose and fix common Fly.io errors including deployment failures, health check failures, machine issues, and networking problems. Trigger: \"fly.io error\", \"fly deploy failed\", \"fly.io not working\", \"fly health check\". '"
allowed-tools: "Read, Bash(fly:*), Bash(curl:*), Grep"
category: devops-and-infra
source_repo: jeremylongshore/claude-code-plugins-plus-skills
source_path: "plugins/saas-packs/flyio-pack/skills/flyio-common-errors/SKILL.md"
source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/plugins/saas-packs/flyio-pack/skills/flyio-common-errors/SKILL.md
---

# Fly.io Common Errors

## Overview

Quick reference for the most common Fly.io deployment and runtime errors with solutions.

## Error Reference

### Health Check Failed

```
Error: health checks for machine e784... failed
```

**Causes:** App not listening on correct port, slow startup, missing dependencies.

**Fix:**

```bash
# Check logs for startup errors
fly logs -a my-app

# Verify internal_port matches your app
grep internal_port fly.toml

# SSH in and test manually
fly ssh console -C "curl localhost:3000/health"

# Increase health check grace period
```

```toml
# fly.toml — give app more time to start
[http_service.checks]
  grace_period = "30s"
  interval = "15s"
  timeout = "5s"
```

### Deployment Failed — Image Build

```
Error: failed to build: exit code 1
```

**Fix:**

```bash
# Test Docker build locally first
docker build -t test .
docker run -p 3000:3000 test

# Check Dockerfile — common issues:
# - Missing EXPOSE directive
# - Wrong WORKDIR
# - npm install before COPY (layer caching)
```

### Machine Won't Start

```
Error: machine e784... failed to start
```

**Fix:**

```bash
# Check machine events
fly machine status e784...

# Common cause: OOM — increase memory
fly scale vm shared-cpu-1x --memory 512

# Or check for crash loops in logs
fly logs --instance e784...
```

### Connection Refused on .internal

```
Error: connection refused my-api.internal:3000
```

**Fix:**

```bash
# Verify target app is running
fly status -a my-api

# Check the app listens on correct port
fly ssh console -a my-api -C "ss -tlnp"

# Ensure apps are in same organization
fly orgs list
```

### Volume Mount Failures

```
Error: volume vol_xxx not found in region iad
```

**Fix:**

```bash
# Volume must be in same region as machine
fly volumes list -a my-app  # Check region
fly volumes create data --size 10 --region iad  # Match region
```

### Rate Limited by Machines API

```
HTTP 429 Too Many Requests
```

**Fix:** Implement backoff. See `flyio-rate-limits`.

## Quick Diagnostic Commands

```bash
fly status -a my-app              # App and machine status
fly logs -a my-app                # Recent logs
fly machine list -a my-app        # All machines
fly ssh console -a my-app         # Shell access
fly doctor                        # Check flyctl health
fly platform status               # Fly.io platform status
```

## Resources

- [Fly.io Status](https://status.flyio.net/)
- [Fly.io Community](https://community.fly.io/)
- [Fly Docs](https://fly.io/docs/)

## Next Steps

For comprehensive debugging, see `flyio-debug-bundle`.

---

**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `plugins/saas-packs/flyio-pack/skills/flyio-common-errors/SKILL.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.