Troubleshooting
Troubleshooting
Section titled “Troubleshooting”Solutions for common issues with Subtide.
Backend Issues
Section titled “Backend Issues”Cannot connect to backend
Section titled “Cannot connect to backend”Symptoms:
- “Network Error” in extension
- “Cannot connect to backend” message
- Translations not starting
Solutions:
-
Verify the backend is running:
Terminal window curl http://localhost:5001/health -
Check if another application is using port 5001:
Terminal window lsof -i :5001 # macOS/Linuxnetstat -ano | findstr :5001 # Windows -
Ensure your firewall allows connections on port 5001
-
For Docker, verify the container is running:
Terminal window docker ps
CORS Errors
Section titled “CORS Errors”Symptoms:
- Browser console shows CORS errors
- “Access-Control-Allow-Origin” messages
Solutions:
-
Set CORS to allow all origins:
Terminal window CORS_ORIGINS=* ./subtide-backend -
Or specify YouTube domains:
Terminal window CORS_ORIGINS=https://youtube.com,https://www.youtube.com -
Restart the backend after changing CORS settings
FFmpeg Issues
Section titled “FFmpeg Issues””FFmpeg not found”
Section titled “”FFmpeg not found””Symptoms:
- Audio extraction fails
- “FFmpeg not found” error
Solutions:
=== “macOS”
brew install ffmpeg=== “Ubuntu/Debian”
sudo apt updatesudo apt install ffmpeg=== “Windows”
choco install ffmpegOr download from ffmpeg.org
Verify installation:
ffmpeg -versionWhisper Issues
Section titled “Whisper Issues”Out of memory
Section titled “Out of memory”Symptoms:
- Process crashes
- “Out of memory” errors
- System becomes unresponsive
Solutions:
-
Use a smaller model:
Terminal window WHISPER_MODEL=base ./subtide-backend -
Model memory requirements:
Model Memory tiny ~1 GB base ~1 GB small ~2 GB medium ~5 GB large-v3 ~10 GB -
Close other applications to free memory
Slow transcription
Section titled “Slow transcription”Symptoms:
- Transcription takes very long
- Progress seems stuck
Solutions:
-
On Apple Silicon, ensure MLX backend:
Terminal window WHISPER_BACKEND=mlx ./subtide-backend -
On NVIDIA GPU, ensure CUDA backend:
Terminal window WHISPER_BACKEND=faster ./subtide-backend -
Use a faster model:
Terminal window WHISPER_MODEL=large-v3-turbo ./subtide-backend
“No module named ‘mlx’”
Section titled ““No module named ‘mlx’””Symptoms:
- Error when starting backend on Mac
Solutions:
- MLX only works on Apple Silicon (M1/M2/M3/M4)
- Install MLX:
Terminal window pip install mlx-whisper - Or use a different backend:
Terminal window WHISPER_BACKEND=openai ./subtide-backend
Extension Issues
Section titled “Extension Issues”Extension not loading
Section titled “Extension not loading”Symptoms:
- Extension doesn’t appear in toolbar
- Error in chrome://extensions
Solutions:
- Ensure Developer mode is enabled in
chrome://extensions - Check for errors in the extension card
- Try removing and re-adding the extension
- Verify all files are present in the extension folder
Subtitles not appearing
Section titled “Subtitles not appearing”Symptoms:
- Click translate but no subtitles show
- Button activates but nothing happens
Solutions:
- Click the translate button in the player controls
- Check the extension popup for error messages
- Verify the backend URL is correct in settings
- Check browser console (F12) for errors
- Ensure the video has audio content
YouTube controls not showing translate button
Section titled “YouTube controls not showing translate button”Symptoms:
- No Subtide button in YouTube player
Solutions:
- Refresh the page
- Disable other extensions that modify YouTube’s interface
- Clear browser cache and reload
- Check if the extension is enabled for YouTube
Firefox temporary add-on removed
Section titled “Firefox temporary add-on removed”Symptoms:
- Extension disappears after Firefox restart
Solutions:
This is expected for temporary add-ons. For permanent installation:
- The extension needs to be signed by Mozilla
- Or use Firefox Developer Edition with signing disabled
- Keep the ZIP file handy to reload
Docker Issues
Section titled “Docker Issues”Container exits immediately
Section titled “Container exits immediately”Symptoms:
- Container starts then stops
docker psshows no running container
Solutions:
-
Check logs:
Terminal window docker logs <container_id> -
Verify port mapping:
Terminal window docker run -p 5001:5001 ... -
Ensure sufficient memory is allocated to Docker
-
Check for missing environment variables
Permission denied
Section titled “Permission denied”Symptoms:
- “Permission denied” when running Docker commands
Solutions:
-
On Linux, add your user to the docker group:
Terminal window sudo usermod -aG docker $USERThen log out and back in.
-
Or use sudo:
Terminal window sudo docker ...
API Key Issues
Section titled “API Key Issues”Invalid API key
Section titled “Invalid API key”Symptoms:
- “Invalid API key” error
- 401 Unauthorized responses
Solutions:
- Verify your API key is correct
- Check that the key hasn’t expired
- Ensure you’re using the correct API URL for your provider
- For local LLMs, use any non-empty string:
API Key: lm-studio
Rate limiting
Section titled “Rate limiting”Symptoms:
- “Rate limit exceeded” errors
- 429 responses
Solutions:
- Wait and retry
- Use a model with higher rate limits
- Consider using a local LLM
- Upgrade your API plan
Translation Quality Issues
Section titled “Translation Quality Issues”Poor translation quality
Section titled “Poor translation quality”Symptoms:
- Translations are inaccurate
- Context is lost
Solutions:
- Use a better model (GPT-4o vs GPT-4o-mini)
- For Asian languages, try Qwen models
- Ensure source language is correctly detected
- Check if the original transcription is accurate
Subtitles out of sync
Section titled “Subtitles out of sync”Symptoms:
- Subtitles appear at wrong times
- Audio doesn’t match text
Solutions:
- Refresh and retry the translation
- Check if the video has unusual timing
- For live streams, some delay is expected
Getting Help
Section titled “Getting Help”If these solutions don’t resolve your issue:
- Check the GitHub Issues
- Search for similar problems
- Open a new issue with:
- Browser and version
- Operating system
- Backend configuration
- Error messages
- Steps to reproduce
Next Steps
Section titled “Next Steps”- Configuration - Review settings
- Backend Overview - Backend options