Skip to main content
This guide helps diagnose and resolve common issues with Bitwarden Server deployments. For each problem, we provide symptoms, root causes, and step-by-step solutions.

Diagnostic Tools

Service Health Checks

Database Connectivity

Network Diagnostics

Authentication Issues

Login Failures

Symptoms:
  • Users cannot log in
  • “Invalid username or password” errors
  • Timeout during authentication
Common Causes:
Check: Identity service status
Solution:
If service won’t start, check configuration:
Check: Database connectivity from Identity service
Solution: Verify connection string in globalSettings.sqlServer.connectionString:
Symptoms: SSL/TLS errors, “Invalid token” messagesCheck: Certificate configuration
Solution: Regenerate data protection certificates:
Symptoms: Login works intermittently, 429 errorsCheck: Rate limit configuration in appsettings.json
Solution: Adjust rate limits or whitelist specific IPs:

Two-Factor Authentication Issues

Symptoms:
  • 2FA codes not working
  • Email 2FA not received
  • Authenticator app code rejected
Diagnostic Steps:
1

Check Email Delivery

Verify email configuration:
Test email service:
2

Verify Time Sync

TOTP codes require accurate time:
3

Check 2FA Rate Limits

2FA endpoints have rate limiting:

Vault Access Issues

Cannot Access Items

Symptoms:
  • Vault appears empty
  • Specific items not visible
  • “Access denied” errors
Troubleshooting:

Sync Failures

Symptoms:
  • Changes not syncing across devices
  • “Sync failed” errors
  • Stale data displayed
Solutions:
1

Check Notifications Service

2

Verify WebSocket Connection

Check for WebSocket errors in browser consoleTest WebSocket endpoint:
3

Review Notification Hub Configuration

For Azure Notification Hub deployments:

Performance Issues

Slow Response Times

Symptoms:
  • API requests take >2 seconds
  • Timeout errors
  • High CPU/memory usage
Diagnostic Steps:
Solutions:
Index Fragmentation:
Statistics Update:
Increase connection pool size in connection string:
Increase container resources:

High Memory Usage

Check Memory Usage:
Solutions:
  • Reduce log verbosity (change to Warning level)
  • Implement log rotation with size limits
  • Clear old logs: find /etc/bitwarden/logs -mtime +7 -delete
  • Increase container memory limits

Database Issues

Database Connection Errors

Error Message: Login failed for user 'sa' Solutions:
1

Verify Password

Check SA password in environment:
2

Reset SA Password

Update configuration with new password.
3

Check SQL Server State

Look for:
  • “SQL Server is now ready for client connections”
  • Error messages about recovery or startup

Migration Failures

Error: Server is in script upgrade mode Solution: The migrator includes automatic retry logic (up to 10 attempts). If it persists:
Error: Migration script timeout Solution: For large migrations, increase timeout:
  • Default: 5 minutes
  • Large migrations: 60 minutes (automatic for noTransactionMigration)
See util/Migrator/DbMigrator.cs:131 for configuration.

Database Corruption

Symptoms:
  • CHECKDB errors
  • Consistency errors in logs
  • Random query failures
Diagnostic:
Recovery:
1

Attempt Automatic Repair

2

Restore from Backup

If automatic repair fails, restore from backup:

Service-Specific Issues

API Service Issues

Symptoms:
  • 500 Internal Server Error
  • API endpoints not responding
  • Unhandled exceptions in logs
Implementation Reference: src/SharedWeb/Utilities/ExceptionHandlerFilterAttribute.cs Error Types: Check Logs:

Identity Service Issues

Symptoms:
  • Token generation failures
  • OpenID configuration errors
  • Certificate errors
Check Configuration:

Admin Portal Issues

Symptoms:
  • Cannot access admin portal
  • “Access denied” on admin pages
  • System information not loading
Solutions:
  • Verify admin user has proper role
  • Check admin service logs
  • Ensure license is valid and not expired

SSL/TLS Issues

Certificate Errors

Symptoms:
  • SSL handshake failures
  • Certificate validation errors
  • “NET::ERR_CERT_AUTHORITY_INVALID”
Solutions:
1

Verify Certificate

2

Check Certificate Chain

Ensure full certificate chain is installed:
3

Validate Certificate Dates

4

Update Certificate

File Storage Issues

Attachment Upload Failures

Symptoms:
  • “Failed to upload” errors
  • Attachments not appearing
  • Storage errors in logs
Check Configuration:
For Local Storage:
For Azure Blob Storage:

Logging and Debugging

Enable Debug Logging

Temporarily enable verbose logging:
Debug/Trace logging generates significant log volume. Only enable for troubleshooting and revert to Warning or Information afterwards.

Collect Diagnostic Information

Getting Help

Before Requesting Support

1

Check Logs

Review service logs for error messages and stack traces.
2

Search Documentation

Search this documentation and Bitwarden community forums.
3

Verify Configuration

Double-check configuration files against documentation.
4

Test in Isolation

Try to reproduce the issue with minimal configuration.

Information to Provide

When requesting support, include:
  • Bitwarden Server version
  • Deployment type (Docker, Kubernetes, etc.)
  • Operating system and version
  • Relevant error messages and logs
  • Steps to reproduce the issue
  • Recent changes to configuration