Troubleshooting
Common issues and solutions.
Installation Issues
Node not appearing in n8n
Symptoms: Installed the package but can’t find “PGVector Advanced” in n8n.
Solutions:
- Restart n8n - Nodes are loaded on startup
docker compose restart n8n # or systemctl restart n8n - Check installation location - Must be in
~/.n8n/nodesls ~/.n8n/nodes/node_modules/n8n-nodes-pgvector-advanced - Check n8n logs for errors
docker compose logs n8n | grep -i error - Verify npm install succeeded
cd ~/.n8n/nodes npm list n8n-nodes-pgvector-advanced
Docker: Nodes disappear after rebuild
Symptoms: Installed via UI, but nodes are gone after docker compose build.
Solution: Use the persistent Docker setup. See Docker Guide.
bash <(curl -fsSL https://raw.githubusercontent.com/aaron777collins/BetterPGVectorN8N/main/install.sh) --docker
Database Issues
“pgvector extension not found”
Symptoms: Error about missing vector extension.
Solution: Install pgvector in your PostgreSQL:
CREATE EXTENSION IF NOT EXISTS vector;
Or use the pgvector Docker image:
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=pass ankane/pgvector
“Dimension mismatch”
Symptoms: Error when inserting embeddings.
Cause: Your embedding dimensions don’t match the schema.
Solutions:
- Check your embedding size:
- OpenAI text-embedding-ada-002: 1536 dimensions
- OpenAI text-embedding-3-small: 1536 dimensions
- OpenAI text-embedding-3-large: 3072 dimensions
- Cohere embed-english-v3: 1024 dimensions
- Reinitialize schema with correct dimensions:
{ "operation": "admin", "adminOperation": "ensureSchema", "dimensions": 1536 } - Use different collections for different embedding models
“Connection pool exhausted”
Symptoms: Timeouts or connection errors under load.
Solutions:
-
Increase pool size in credentials (default: 20)
-
Reduce concurrent operations
-
Check for connection leaks - ensure workflows complete properly
Query Issues
Slow queries
Symptoms: Queries taking >100ms.
Solutions:
- Create a vector index:
{ "operation": "admin", "adminOperation": "createIndex", "adminCollection": "your_collection", "indexType": "hnsw", "adminDistanceMetric": "cosine" } -
Use metadata filters to reduce search space
-
Lower topK if you don’t need many results
- Check table size:
SELECT COUNT(*) FROM embeddings WHERE collection = 'your_collection';
No results returned
Symptoms: Query returns empty array.
Solutions:
-
Check collection name - must match exactly (case-sensitive)
- Verify data exists:
SELECT COUNT(*) FROM embeddings WHERE collection = 'your_collection'; -
Check metadata filter syntax - must be valid JSON
- Try without filters to isolate the issue
Wrong results / low relevance
Symptoms: Query returns documents that don’t seem related.
Solutions:
-
Check distance metric - use
cosinefor text embeddings -
Verify embeddings are correct - same model for query and documents
-
Check for data issues:
SELECT id, content, metadata FROM embeddings WHERE collection = 'your_collection' LIMIT 5;
Upsert Issues
Duplicates being created
Symptoms: Same document inserted multiple times.
Cause: Not using externalId or using different external IDs.
Solution: Always use consistent externalId:
{
"operation": "upsert",
"collection": "documents",
"externalId": "stable-id-123",
"content": "...",
"embedding": [...]
}
Updates not working
Symptoms: Upsert doesn’t update existing records.
Cause: externalId not matching or missing.
Solution: Ensure same collection + externalId combination.
Docker Issues
init-nodes.sh not running
Symptoms: Community nodes not installed after container start.
Solutions:
- Check script permissions:
chmod +x n8n/init-nodes.sh docker compose build n8n --no-cache - Check logs:
docker compose logs n8n | grep init-nodes - Verify Dockerfile ENTRYPOINT is correct
npm install failing in container
Symptoms: Errors during package installation.
Solutions:
-
Check network access from container
- Try with verbose logging:
Edit init-nodes.sh:
npm install "$pkg" --save --loglevel=verbose - Check npm registry access:
docker compose exec n8n npm ping
Getting Help
If none of these solutions work:
-
Check the logs for specific error messages
-
Search existing issues: GitHub Issues
-
Open a new issue with:
- n8n version
- Installation method
- Error message
- Steps to reproduce
Next Steps
- Docker Guide - Persistent Docker setup
- Operations Reference - All operations in detail