Troubleshooting
Common Barrelman issues and how to fix them.
Container fails to start
Check logs for the failing service:
docker compose logs barrelman-db
docker compose logs barrelmanEnsure the .env file exists alongside docker-compose.yml with at least BARRELMAN_API_KEY and BARRELMAN_DB_PASSWORD set.
Import fails with PostGIS connection error
Ensure the barrelman-db container is running and fully initialised:
docker compose ps barrelman-db # should show "healthy"
docker compose logs barrelman-dbWait ~15 seconds after first starting the container before running the import — PostGIS runs its init scripts on first boot.
Import fills disk with a large nodes.cache file
Do not pass --flat-nodes to osm2pgsql unless you're importing a full planet extract. The flat-nodes file is ~31 GB regardless of region size. Remove it if it was created:
docker run --rm -v barrelman_barrelman-osm-data:/data alpine \
rm -f /data/nodes.cacheNo search results in Parchment
Check that:
- Barrelman is running:
curl http://localhost:3001/health - The host and API key in Settings → Integrations → Barrelman match the values in
.env - The Barrelman integration is enabled and Test Connection passes
- The import completed — check row count:
docker exec barrelman-db psql -U barrelman -d barrelman \ -c "SELECT count(*) FROM geo_places;"
Semantic search not working
Ollama may not be running or the model isn't pulled. Check OLLAMA_HOST in .env, then:
curl ${OLLAMA_HOST}/api/tags # should return model list including nomic-embed-textBarrelman silently skips the semantic layer when Ollama is unreachable — full-text, fuzzy, and abbreviation search continue to work.
Extensions missing (postgis, vector, etc.)
If PostGIS extensions were not initialised (e.g. the volume was pre-existing from a different image), create them manually:
docker exec barrelman-db psql -U barrelman -d barrelman -c "
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS unaccent;
"