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
Database Connection Issues
Database Connection Issues
Check: Database connectivity from Identity serviceSolution:
Verify connection string in
globalSettings.sqlServer.connectionString:Certificate Issues
Certificate Issues
Symptoms: SSL/TLS errors, “Invalid token” messagesCheck: Certificate configurationSolution:
Regenerate data protection certificates:
Rate Limiting
Rate Limiting
Symptoms: Login works intermittently, 429 errorsCheck: Rate limit configuration in Solution:
Adjust rate limits or whitelist specific IPs:
appsettings.jsonTwo-Factor Authentication Issues
Symptoms:- 2FA codes not working
- Email 2FA not received
- Authenticator app code rejected
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
Sync Failures
Symptoms:- Changes not syncing across devices
- “Sync failed” errors
- Stale data displayed
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
Database Performance
Database Performance
Index Fragmentation:Statistics Update:
Connection Pool Exhaustion
Connection Pool Exhaustion
Increase connection pool size in connection string:
Resource Limits
Resource Limits
Increase container resources:
High Memory Usage
Check Memory Usage:- Reduce log verbosity (change to
Warninglevel) - 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
3
Check SQL Server State
- “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:
- Default: 5 minutes
- Large migrations: 60 minutes (automatic for
noTransactionMigration)
util/Migrator/DbMigrator.cs:131 for configuration.
Database Corruption
Symptoms:- CHECKDB errors
- Consistency errors in logs
- Random query failures
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
src/SharedWeb/Utilities/ExceptionHandlerFilterAttribute.cs
Error Types:
Check Logs:
Identity Service Issues
Symptoms:- Token generation failures
- OpenID configuration errors
- Certificate errors
Admin Portal Issues
Symptoms:- Cannot access admin portal
- “Access denied” on admin pages
- System information not loading
- 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”
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
Logging and Debugging
Enable Debug Logging
Temporarily enable verbose logging: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