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
globalSettings.sqlServer.connectionString:Certificate Issues
Certificate Issues
Rate Limiting
Rate Limiting
appsettings.jsonTwo-Factor Authentication Issues
Symptoms:- 2FA codes not working
- Email 2FA not received
- Authenticator app code rejected
Check Email Delivery
Verify Time Sync
Check 2FA Rate Limits
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
Check Notifications Service
Verify WebSocket Connection
Review Notification Hub Configuration
Performance Issues
Slow Response Times
Symptoms:- API requests take >2 seconds
- Timeout errors
- High CPU/memory usage
Database Performance
Database Performance
Connection Pool Exhaustion
Connection Pool Exhaustion
Resource Limits
Resource Limits
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:
Verify Password
Reset SA Password
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
Attempt Automatic Repair
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:
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”
Verify Certificate
Check Certificate Chain
Validate Certificate Dates
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
Check Logs
Search Documentation
Verify Configuration
Test in Isolation
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