Troubleshooting
This guide covers common issues encountered when self-hosting LobeHub and their solutions. Issues are organized by category for quick reference.Connection and API Issues
AI returns empty messages or no response
AI returns empty messages or no response
Symptoms:Missing
Some proxy services require How to determine which to use:Related discussions:
- Chat sends but receives blank responses
- Loading indicator appears but no content
- Network request completes but message is empty
Missing /v1 suffix in proxy URL
Some proxy services require /v1 in the URL, others don’t:- If proxy forwards to
api.openai.com/v1→ don’t add/v1 - If proxy forwards to
api.openai.com→ add/v1 - Check your proxy provider’s documentation
- Test both configurations
Invalid API key
Model not available
UNABLE_TO_VERIFY_LEAF_SIGNATURE certificate error
UNABLE_TO_VERIFY_LEAF_SIGNATURE certificate error
Error message:Or:Cause:This occurs when using a proxy with self-signed certificates or man-in-the-middle certificates that Node.js doesn’t trust.Solution:Disable TLS verification (use only in trusted private deployments):Secure alternatives:
- Install the proxy’s CA certificate in the container
- Use certificates from trusted certificate authorities
- Configure proper certificate chain in your proxy
- Use a different proxy without MITM certificates
Connection timeout or network errors
Connection timeout or network errors
Database Issues
Database connection failed
Database connection failed
Database migration errors
Database migration errors
Authentication Issues
Unable to sign in / authentication loop
Unable to sign in / authentication loop
SSO provider not working
SSO provider not working
Performance Issues
Slow response times or timeouts
Slow response times or timeouts
Symptoms:See Redis Configuration for details.
- Long wait times for AI responses
- Timeout errors
- Poor user experience
Enable Redis caching
Optimize database queries
Increase container resources
Vercel timeout on AI image generation
Vercel timeout on AI image generation
Symptoms:Reference:
- DALL-E or image generation times out after ~60 seconds
- Status code 504 (Gateway Timeout)
- Log shows:
POST 504 /trpc/async/image.createImage
- Go to your Vercel project dashboard
- Navigate to Settings → Functions
- Enable Fluid Compute
- This extends timeout to 300 seconds
Plugin Issues
Plugins not appearing or not working
Plugins not appearing or not working
Check these items:See Plugin Configuration for comprehensive troubleshooting.
Feature flag enabled
Model supports Function Calling
Custom plugin installation issues
CORS errors
Plugin API must allow LobeHub origin:Storage and File Issues
File upload fails
File upload fails
Symptoms:Test S3 connectivity:Check bucket permissions:Ensure bucket policy allows uploads:Common issues:
- “Upload failed” errors
- Files don’t appear after upload
- Storage quota errors
- Incorrect bucket region
- Missing CORS configuration on bucket
- Invalid access credentials
- Bucket doesn’t exist
Docker-Specific Issues
Container fails to start
Container fails to start
PDF parsing fails (librt.so.1 error)
PDF parsing fails (librt.so.1 error)
Error message:Solution:This was fixed in version 2.1.13. Upgrade to latest version:The latest Docker image includes the required
librt.so.1 library for PDF parsing.Reference: Issue #12039Environment Variable Issues
Environment variables not being read
Environment variables not being read