Urgent.News

What's breaking now, across hundreds of outlets.

Tech

10 Things That Break When You Run Many Services on One Laptop (and the Fix for Each)

Running two services locally is easy. Running ten is a different job. Nothing is hard on its own, but the small failures stack up, and they all look like "it just doesn't start". Here are ten that show up again and again, with the check that catches each. 1. The disk fills up first Image builds need room. A laptop with a few GiB free will fail halfway through a build with an error that never…

Running multiple services on a single laptop can lead to various issues. Here are ten common problems that may arise and their respective fixes:

1. Disk space: When building images, ample free space is required. If disk space is limited, the build process will fail without any indication. To prevent this, use the "flisk doctor" command to check free space and cleanup commands before starting the build. Also, avoid using "docker system prune -af" as it removes images that may still be needed.

2. Port conflicts: Port 5432 is commonly used by PostgreSQL, and if another service is already using it, Flisk will fall back to a free range of ports (HTTP 8080, HTTPS 8443, PostgreSQL 15433) and display the corresponding URLs. Review these URLs to identify the port conflicts.

3. Simultaneous starts: Starting ten services at once can lead to resource contention, causing the API to boot before the database is ready. To avoid this, use the "dependsOn" option to specify the correct service order.

4. Unready databases: A container may have started but still not be ready to accept connections. Instead of relying on the process status, wait for the database to be ready.

5. Migrations: Running migrations every time the app restarts can cause issues, as multiple instances may execute them simultaneously. Move migrations to a dedicated step that runs before the API.

6. Generated files: Manually editing generated files can lead to unintentional overwrites during regeneration. Instead, edit the source file (service.json) and regenerate using "flisk config regenerate". Implement a drift check that stops the start process and identifies the edited file, saving you time and effort.

7. Random port assignments: Assigning random ports to multiple services can lead to confusion. Instead, use a gateway and assign meaningful names to services, such as api.my-project.localhost:8080.

8. "Up" status: A "up" status does not guarantee readiness. A build can continue even after the initial command completes. To ensure all resources are ready, poll "flisk status" until every resource is marked ready or use "flisk up --json" to review the output.

9. Error interpretation: Focusing on the last error message can be misleading, as it may only be a symptom of a larger issue. Instead, examine the logs of the first failed resource to identify the root cause.

10. Stale stack: An outdated process may still hold onto active ports, preventing the new stack from starting. Use "flisk down" to gracefully stop the old resources and remove their containers. If an old Tilt instance is still running, use "flisk up --force" to forcefully terminate it before starting the new stack.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Why Your Local App Is on Port 8080 (and 7 Other Local Port Surprises)

You expected localhost . You got localhost:8080 , or a database on 15433, and the connection string in your notes no longer works. Local ports are quiet sources of confusion. Here are eight surprises.

  • Port 8080 used by Flisk for HTTP and 8443 for HTTPS when 80 is occupied
  • Database port 5432 commonly used for Postgres installations
  • Flisk's --dry-run feature shows ports before building takes place

Marketplace App Backups: User Uploads, Database Dumps, Object Storage, and Expiry

Short answer: build each nightly backup as a closed recovery set containing a database dump, the referenced user uploads, and a signed manifest; authorize restoration of that set as one operation, but…

  • Backups include database dumps, user uploads, and signed manifests
  • Organized in private namespace by backupid and artifact class
  • Restoration requires signed document and is audited

So You’ve Heard About Flock. Now What? 🤔

Automated license plate readers (ALPRs) are quietly turning public roads into surveillance checkpoints. Every passing car gets photographed, logged, and stored in order to build a record of where the…

Bookmark This: The Local Dev Checklist Before You Say "Works on My Machine"

"Works on my machine" is a claim about one laptop. Here is a short checklist that turns it into a claim about the project. Run it top to bottom once, then keep it next to your README.

  • Replace "works on my machine" with a short checklist for cross-environment compatibility
  • Use single commands to start/stop application and run host checks for Docker, disk space, port usage
  • Pin tool versions, ignore secrets/env files, test resilience by breaking components

More from Monday, 30 November 2026 →