Troubleshooting

Common issues and solutions when working with the Couchbase module.

Common issues and solutions when working with the Couchbase module.

🚨 Connection Issues

Cannot connect to Couchbase

Symptoms:

Error: Timeout during bootstrap

Solutions:

  1. Verify Couchbase is running:

curl -u Administrator:password http://localhost:8091/pools
  1. Check connection string:

// Single node
"connectionString": "couchbase://localhost"

// Multiple nodes
"connectionString": "couchbase://node1,node2,node3"

// Secure connection
"connectionString": "couchbases://cluster.example.com"
  1. Verify credentials:

  1. Check firewall rules:

  • Port 8091: Management/REST API

  • Port 8093: N1QL Query

  • Port 11210: Key-Value operations

Connection timeout errors

Symptoms:

Solution: Increase timeout values:

🗄️ Bucket/Collection Issues

Bucket not found

Symptoms:

Solutions:

  1. Verify bucket exists in Couchbase:

  1. Create bucket if needed:

  • Via Couchbase Web Console (http://localhost:8091)

  • Or via CLI:

  1. Check bucket name in config:

Scope or collection not found

Symptoms:

Solution: Create scope/collection or use defaults:

🔐 Authentication Issues

Invalid credentials

Symptoms:

Solutions:

  1. Check username/password:

  1. Verify user has permissions:

  1. Use environment variables for security:

📝 Query Issues

N1QL query errors

Symptoms:

Solutions:

  1. Escape bucket names with backticks:

  1. Use proper collection path:

  1. Use parameterized queries:

Index not found

Symptoms:

Solution: Create a primary index:

🤖 Vector Search Issues

Vector search returns no results

Solutions:

  1. Verify vector index exists:

  1. Create vector index if needed:

  1. Check embedding dimensions:

  1. Verify documents are stored correctly:

Low similarity scores

Solutions:

  1. Use same embedding model for storage and search:

  1. Improve query quality:

  1. Adjust result limit:

🗄️ Session Storage Issues

Sessions not persisting

Solutions:

  1. Verify session storage is configured:

  1. Check cache name matches:

  1. Verify Couchbase is accessible:

⚡ Performance Issues

Slow cache operations

Solutions:

  1. Check network latency:

  1. Increase connection pool:

  1. Use appropriate timeouts:

  1. Monitor with statistics:

High memory usage

Solutions:

  1. Set appropriate TTLs:

  1. Use cache eviction:

  1. Clear old data:

🐛 Debugging Tips

Enable debug logging

In boxlang.json:

Check Couchbase logs

Test connectivity

📞 Getting Help

If you're still having issues:

  1. Check logs - Enable debug mode and check BoxLang and Couchbase logs

  2. Verify Couchbase health - Use Web Console (http://localhost:8091)

  3. Test isolation - Create minimal reproduction case

  4. Community support - Post on Ortus Community

  5. Professional support - Ortus Solutions Support

Last updated

Was this helpful?