Troubleshooting
Each entry is a symptom, its cause and the fix. Commands assume the compose file from Getting started.
Console and Floci
Every page says "Floci isn't running"
Cause: the console can't reach Floci at AWS_ENDPOINT_URL. Floci is stopped, still starting, or the URL doesn't point at it from inside the console container.
Fix: start Floci and check what the console sees:
docker compose up -d floci
curl http://localhost:3701/api/health # shows the endpoint it tries and the errorAWS_ENDPOINT_URLis resolved inside the console container:http://localhost:4566points at the console itself. Use the Floci service name or its network alias (http://localhost.floci.io:4566with the default compose file).- With
docker run, put both containers on the same Docker network (see Run withdocker run).
The page comes back by itself once Floci answers.
The console answers 403 Forbidden
Cause: the console only answers requests addressed to localhost, 127.0.0.1 or [::1], and rejects calls made from other websites.
Fix: open it as http://localhost:3701, not through a LAN IP, a custom hostname or a reverse proxy.
port is already allocated on 3701 or 4566
Cause: another process or container uses the port (often a second Floci or LocalStack on 4566).
Fix: stop the other one, or publish a different host port:
console:
ports: ["127.0.0.1:8080:3701"] # console at http://localhost:8080
floci:
ports: ["127.0.0.1:4567:4566"] # then point your app at http://localhost:4567If you move Floci's host port, also set FLOCI_PUBLIC_URL: http://localhost:4567 on the console so Connect your app shows the right address (Configuration).
Lists are empty, but my app created resources
Cause: the console works in one region (AWS_REGION, default ap-southeast-1), and your app uses another one, or your app isn't talking to Floci at all (next entry).
Fix: run the console in your app's region:
AWS_REGION=us-east-1 docker compose up -dMy app's resources never show up
Cause: the app's AWS SDK still points at real AWS (or at nothing).
Fix: set the endpoint, test credentials and the same region as the console. Console Home › Connect your app has these ready to copy.
AWS_ENDPOINT_URL=http://localhost:4566 # app in the same compose: http://localhost.floci.io:4566
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
AWS_REGION=ap-southeast-1
AWS_DEFAULT_REGION=ap-southeast-1import { S3Client } from "@aws-sdk/client-s3";
// Reads AWS_ENDPOINT_URL, AWS_REGION and the credentials from the environment
const s3 = new S3Client({ forcePathStyle: true });import boto3
from botocore.config import Config
# Reads AWS_ENDPOINT_URL, AWS_DEFAULT_REGION and the credentials from the environment
s3 = boto3.client("s3", config=Config(s3={"addressing_style": "path"}))aws --endpoint-url http://localhost:4566 --region ap-southeast-1 sqs list-queuesQueue URLs or Redis endpoints don't resolve (ENOTFOUND localhost.floci.io)
Cause: URLs Floci returns use localhost.floci.io, which public DNS resolves to 127.0.0.1. Offline, or on networks that block DNS answers pointing at 127.0.0.1, it doesn't resolve.
Fix: add it to your hosts file:
127.0.0.1 localhost.floci.ioCloudFront local URLs (<id>.cloudfront.localhost.floci.io) are wildcards and still need DNS.
Deploying and running code
CDK deploy fails with ECONNREFUSED …:443
Cause: CDK Node custom resources (autoDeleteObjects, BucketDeployment, AwsCustomResource, logRetention) call Floci over HTTPS.
Fix: run Floci with TLS (URLs it returns then use https:// with a self-signed certificate):
FLOCI_TLS_ENABLED=true docker compose up -dLambda functions fail with ECONNREFUSED 127.0.0.1:4566
Cause: Floci was started with EC2 VPC networks on. Launching an EC2 instance attached Floci to a VPC network, and after a Floci restart Lambda containers run on that network, where localhost.floci.io doesn't reach Floci. Every SDK call from a function fails (including secret rotation).
Fix: keep FLOCI_SERVICES_EC2_VPC_NETWORKS_ENABLED: "false" on Floci. If Floci already started with VPC networks on, detach it and recreate it:
docker network ls | grep floci-aws-vpc
docker network disconnect <floci-aws-vpc-network> <floci-container>
docker compose up -d --force-recreate flociThe first Lambda invoke, cache, broker or database is slow (or fails offline)
Cause: Floci starts real containers and pulls their images on first use: the Lambda runtime, Valkey (ElastiCache), RabbitMQ (Amazon MQ), PostgreSQL / MySQL (RDS), MongoDB (DocumentDB), and the image of each ECS task or EC2 AMI.
Fix: wait for the first pull to finish (it needs internet); later calls are fast. MySQL also needs a few seconds after Available before it accepts logins.
My app on my machine can't connect to an RDS database
Cause: the endpoint Floci returns (also in GetAtt Endpoint.Address, SSM parameters and rds! secrets) is an address inside the Docker network.
Fix: from your machine connect to localhost:<port> (the database page shows it, and the Connect card's DB_HOST / DB_PORT). Override the host your app reads from a secret or parameter. Don't set FLOCI_SERVICES_RDS_ENDPOINT_HOST=localhost on Floci: Lambda then can't reach the database.
EC2 instances show Running but don't respond after a restart
Cause: restarting Floci or Docker stops the instance containers, but Floci still reports them as running.
Fix: Stop the instance (about 30 seconds), then Start it. User data doesn't run again.
A stack ends in DELETE_FAILED
Cause: a resource the stack made was deleted (or recreated) by hand, or a bucket in the stack still has objects.
Fix: empty the bucket, or recreate the missing resource with the same name, then delete the stack again. Avoid deleting a stack's resources by hand; delete the stack instead.
A stack is CREATE_COMPLETE but a resource is missing
Cause: Floci stubs resource types it doesn't support: nothing is created for them.
Fix: look for the Stubbed by Floci badge on the stack page. Such a stack may not deploy the same way on AWS. See Known limitations.
Data
How do I reset all data?
- Reset data on Console Home wipes every service in every region, including the SES mailbox and SMS inbox. Then run
docker compose restart flocito remove leftover Redis, RabbitMQ and database containers; until then a new RDS database can fail to start on port7001. - To remove everything, including Floci's stored data:
docker compose down -v.
MCP
Unknown service group error
Cause: the services query parameter has a name that isn't a tool group.
Fix: use only floci, sqs, ses and reset, separated by commas: http://localhost:3701/mcp?services=sqs,ses. The error lists the valid groups.
Create, update or delete tools are missing
Cause: the URL has read_only=true, which keeps only the tools that read.
Fix: remove read_only=true from the URL in your client's MCP config, then reload the server in your client.
floci_reset_data isn't available
Cause: the reset tool is left out unless you ask for it, and is never available in read-only mode.
Fix: add reset to the groups, e.g. ?services=floci,sqs,ses,reset, without read_only=true.
The client can't connect, or gets 403
Cause: the console isn't running, or the URL uses a hostname other than localhost, 127.0.0.1 or [::1].
Fix: start the console and use http://localhost:3701/mcp. See MCP server.