4.4 KiB
Troubleshooting Guide
This document provides solutions to common problems encountered when using DocuElevate.
Common Issues
Application Won't Start
Symptoms
- Docker containers exit immediately
- Web interface not accessible
- Error logs show startup failures
Possible Solutions
-
Check environment variables
docker-compose configEnsure all required variables are set properly in your
.envfile. -
Verify permissions
ls -la /path/to/workdirMake sure the application has write permissions to the working directory.
-
Check port availability
netstat -tuln | grep 8000Ensure the port isn't already in use by another application.
Document Upload Fails
Symptoms
- Error messages during upload
- Files appear to upload but aren't processed
- Browser console errors
Possible Solutions
-
Check file size limits
- Default maximum file size is 100MB
- Adjust
client_max_body_sizein your reverse proxy configuration
-
Verify storage space
df -hEnsure there's sufficient disk space available.
-
Check worker process
docker-compose logs workerVerify the Celery worker is running and processing tasks.
OCR or Text Extraction Issues
Symptoms
- Documents upload but text isn't extracted
- Poor quality text extraction
- API errors related to Azure services
Possible Solutions
-
Verify API credentials Check the Azure Document Intelligence API key and endpoint in your
.envfile. -
Check document quality
- Ensure documents are clearly scanned
- Try preprocessing images to improve quality before upload
-
Test API connectivity
curl -X GET -H "Ocp-Apim-Subscription-Key: YOUR_KEY" "YOUR_ENDPOINT"Ensure the API is accessible from your server.
Email Integration Problems
Symptoms
- Email attachments aren't being processed
- IMAP connection errors in logs
- Authentication failures
Possible Solutions
-
Verify IMAP settings Check host, port, username, and password in your configuration.
-
Test IMAP connectivity
telnet mail.example.com 993Ensure the IMAP server is accessible.
-
Enable less secure apps For Gmail and some providers, you may need to enable access for less secure apps or use app-specific passwords.
-
Check firewall settings Ensure your server can make outbound connections to the mail server.
Storage Integration Issues
Symptoms
- Files aren't appearing in Dropbox/Nextcloud/Paperless
- Authentication errors in logs
- API rate limiting errors
Possible Solutions
-
Verify API credentials Double-check all API keys, tokens, and secrets.
-
Check access permissions Ensure the application has write permissions to the specified folders.
-
Refresh tokens For OAuth-based services like Dropbox, try generating new refresh tokens.
-
Examine detailed logs
docker-compose logs worker | grep -i dropboxLook for specific error messages related to the service.
Database Issues
Symptoms
- Application errors related to database connections
- Missing or corrupt data
- Slow performance
Possible Solutions
-
Check database connection string Verify the
DATABASE_URLvariable in your.envfile. -
Inspect database integrity
sqlite3 database.db "PRAGMA integrity_check;"(For SQLite databases)
-
Perform database migrations
docker-compose exec api alembic upgrade headEnsure the database schema is up-to-date.
Authentication Problems
Symptoms
- Unable to log in
- Redirect loops during authentication
- OAuth errors
Possible Solutions
-
Verify Authentik configuration Check client ID, client secret, and configuration URL.
-
Check callback URLs Ensure the redirect URIs are correctly configured in your OAuth provider.
-
Clear browser cookies and cache Authentication issues can sometimes be resolved by clearing browser data.
Getting Additional Help
If you continue to experience issues after trying these solutions:
-
Check the logs for detailed error messages
docker-compose logs --tail=100 -
Open an issue on the GitHub repository
-
Contact the developer via the information provided on the About page