Troubleshooting
Guides, route-group overviews, and live schema entry points for the Plexichat backend.
Troubleshoot the admin panel
This guide helps you diagnose and fix common issues with the Plexichat admin panel.
Fix authentication issues
You cannot log in
Symptoms: The login page loads but authentication fails.
Possible causes:
- Incorrect username or password.
- Account is locked due to rate limiting.
- Two-factor authentication (2FA) failure.
- Host restriction blocks your IP.
- Session or cookie issue.
Try this:
- Verify your username and password.
- Wait for the lockout period to expire if you are rate-limited (check
admin_ui.rate_limit). - Verify that your 2FA code is correct and your device time is synchronized.
- Verify that your IP is in
admin_ui.host_restriction.allowed_hosts. - Clear browser cache and cookies, or try a different browser.
2FA codes are rejected
Symptoms: One-time password (OTP) codes are rejected.
Possible causes:
- Device time is out of sync.
- Incorrect OTP secret.
- Authenticator app issue.
Try this:
- Sync your device time with network time.
- Try a different authenticator app.
- Use a backup code if available.
- Ask a super admin to reset your 2FA.
Your session expires too quickly
Symptoms: You are logged out frequently.
Possible causes:
- Session timeout is too short.
- IP address changes (VPN or network switch).
- Browser clears cookies.
Try this:
- Increase
admin_ui.security.session.timeout_idle_minutesandsession_timeout_minutes. - Check for IP changes.
- Disable cookie clearing for the admin domain.
Fix permission issues
You see "access denied" or "insufficient permissions"
Symptoms: The API returns 403 or the UI shows a permission error.
Possible causes:
- Missing required scope.
- Role is not assigned correctly.
- RBAC is disabled.
- An approval workflow is blocking the action.
Try this:
Check your assigned roles at
GET /api/v1/admin/admins/{id}/roles.Verify the required scope for the action. Check
PERMISSION_SCOPESinsrc/core/admin/permissions.py, and do not use a scope that does not exist there:users.force_password_changedoes not exist. Useusers.force_username_changeoradmin.security.sessions.servers.bandoes not exist. Useadmin.moderation.bans.reports.resolvedoes not exist. Usereports.action.
Verify that
admin_ui.rbac.enabledistrue.Check whether the action requires approval (
admin.approvals).Review the audit log at
GET /api/v1/admin/audit/logs(requiresadmin.audit.read; the path is/audit/logs, not/audit-log— seesrc/api/routes/admin/audit.py).
You cannot access a section
Symptoms: Some admin sections are missing or return 403.
Possible causes:
- Missing specific scope.
- Section is disabled in configuration.
Try this:
- Check which scope the section requires. For example, audit logs require
admin.audit.read, blocked users requireadmin.moderation.bans, and reviewing reports requiresreports.action. - Verify that the section is enabled in your configuration.
- Ask a super admin to update your roles.
Fix performance issues
The dashboard loads slowly
Symptoms: The dashboard takes a long time to load.
Possible causes:
- Large dataset.
- Database performance issue.
- Network latency.
- Server resource constraints.
Try this:
- Check database performance and slow queries.
- Review system resources.
- Check network connectivity.
- Reduce the data range or time period.
- Consider database optimization (indexes, connection pool, cache hit rate).
Charts show stale data
Symptoms: Dashboard charts do not update.
Possible causes:
- JavaScript error.
- API connectivity issue.
- Browser caching.
- WebSocket issue.
Try this:
- Refresh the page.
- Check the browser console for errors.
- Clear the browser cache.
- Verify API and WebSocket connectivity.
Fix data issues
You cannot find a user
Symptoms: Search does not return the user.
Possible causes:
- User was deleted.
- Incorrect search criteria or user-ID typo.
- Database sync issue.
Try this:
- Verify your search criteria.
- Check whether the user was deleted or purged.
- Try different search terms.
- Check database integrity and review the audit log.
Data is inconsistent
Symptoms: Different views show different values.
Possible causes:
- Caching issue.
- Database replication lag.
- Concurrent modifications.
Try this:
- Refresh the page and clear the cache.
- Check database consistency and the data source.
- Report the issue if it persists.
Fix configuration issues
Settings do not save
Symptoms: Configuration changes do not persist.
Possible causes:
- File permission issue.
- Database write error.
- Validation error.
- Concurrent modification.
Try this:
- Check file permissions.
- Verify database connectivity.
- Review validation errors in the API response.
- Try again after a short delay.
Changes do not take effect
Symptoms: Configuration is saved but has no effect.
Possible causes:
- Service restart is required.
- Caching issue.
- Incorrect configuration value.
Try this:
- Restart the service.
- Clear the cache.
- Verify configuration syntax and check for conflicting settings.
Fix audit-logging issues
Actions are not logged
Symptoms: Some admin actions do not appear in the audit log.
Possible causes:
- Audit logging is disabled.
- Database connection issue.
- Logging configuration error.
Try this:
- Verify that audit logging is enabled (
admin_ui.audit). - Check database connectivity.
- Review file permissions and logging configuration.
- Query the correct endpoint:
GET /api/v1/admin/audit/logswithadmin.audit.read. Do not query/audit-log— that path does not exist.
Audit logs are missing details
Symptoms: Audit entries are incomplete.
Possible causes:
- Logging level is too low.
- Data sanitization removes fields.
- Database schema issue.
Try this:
- Check the logging level.
- Review sanitization settings.
- Verify the database schema.
- Check for logging errors and update the configuration.
How to query audit logs
# List recent logs (paginated)
curl "/api/v1/admin/audit/logs?page=1&per_page=50" \
-H "Authorization: Bearer <token>"
# Filter by action family and status
curl "/api/v1/admin/audit/logs?action_family=reports&status=success" \
-H "Authorization: Bearer <token>"
# Export as CSV
curl "/api/v1/admin/audit/logs/export?format=csv" \
-H "Authorization: Bearer <token>" -o audit_logs.csv
Required permission: admin.audit.read. For endpoint details, see src/api/routes/admin/audit.py.
Fix approval-workflow issues
Approval requests are not created
Symptoms: Sensitive actions run without approval.
Possible causes:
- Approval workflows are disabled.
- Action is not in
require_approval_for. - Single-admin bypass is active.
- Missing permission.
Try this:
- Verify that
approval_workflows.enabledistrue. - Check that the action is in
require_approval_for. - Review
single_admin_bypass— when only one admin exists and bypass is enabled, approval is skipped. - Check admin permissions.
Approvals are not counted
Symptoms: Approvals do not increment.
Possible causes:
- You already approved the request.
- Request has expired.
- Permission issue.
Try this:
- Check whether you already approved.
- Verify that the request has not expired.
- Check approval permissions (
admin.approvals) and database state.
Fix system issues
The service does not start
Symptoms: The admin-panel service fails to start.
Possible causes:
- Configuration error.
- Database connection issue.
- Port conflict.
- Resource constraints.
Try this:
- Check configuration syntax.
- Verify database connectivity.
- Check for port conflicts.
- Review system resources and error logs.
Memory usage is high
Symptoms: The admin panel uses excessive memory.
Possible causes:
- Memory leak.
- Large datasets or cache.
Try this:
- Review memory-usage patterns.
- Reduce cache size.
- Check for leaks and optimize configuration.
- Restart the service.
Get help
When to contact support
- The issue persists after troubleshooting.
- You suspect a security issue.
- You see data-integrity issues or system outages.
- You need help with configuration.
What to include
- Plexichat version (
GET /api/v1/version). - Exact error message.
- Steps to reproduce.
- Relevant configuration (redact secrets).
- Audit-log excerpts and system logs.
Collect diagnostic information
# System information
uname -a
python --version
# Plexichat version
curl http://localhost:8000/api/v1/version
# Recent audit logs
curl "http://localhost:8000/api/v1/admin/audit/logs?per_page=20" \
-H "Authorization: Bearer <token>"
Prevent issues
Maintain the system
- Review system logs weekly.
- Check disk space monthly.
- Update software regularly.
- Review audit logs monthly.
- Test backup restoration quarterly.
Monitor
- Alert on critical errors.
- Monitor system resources and database performance.
- Track failed login attempts and approval-workflow status.
Document
- Document custom configurations and changes.
- Maintain runbooks and troubleshooting notes.
- Keep contact information up to date.