Troubleshooting Guide
Common Issues and Solutions
Authentication Issues
"Configuration validation failed"
Symptoms: - Error message when running any command - Application fails to start
Solutions:
1. Check your .env
file:
# Ensure these variables are set correctly
SPOTIFY_CLIENT_ID=your_actual_client_id
SPOTIFY_CLIENT_SECRET=your_actual_client_secret
- Verify Spotify credentials:
- Go to Spotify Developer Dashboard
- Check that your app exists and credentials are correct
-
Ensure redirect URI is set to
http://localhost:8080/callback
-
Run the test command:
"YouTube Music OAuth authentication not configured"
Symptoms:
- YouTube Music authentication fails
- Missing oauth.json
file
- Error: "YouTube Music OAuth authentication not configured"
Solutions: 1. Set up OAuth2 authentication:
- Ensure Google Cloud Console setup:
- Create project and enable YouTube Data API v3
- Create OAuth2 credentials (TVs and Limited Input devices)
- Add YOUTUBE_CLIENT_ID and YOUTUBE_CLIENT_SECRET to .env file
"Invalid OAuth2 credentials"
Symptoms: - OAuth authentication fails - "Invalid client" error
Solutions:
1. Regenerate OAuth credentials:
- Delete existing oauth.json
- Run python setup_youtube_oauth.py
again
- Check OAuth2 setup:
- Ensure OAuth2 consent screen is configured
- Add your email to test users if in testing mode
- Verify redirect URIs include
http://localhost:8080/callback
Transfer Issues
"Low match rates" or "No matches found"
Symptoms: - Very few songs are successfully transferred - Many "No suitable match found" messages
Solutions: 1. Lower the match threshold:
-
Increase search results:
-
Check regional availability:
- Some tracks may not be available in your region
-
Try using a VPN to different regions
-
Manual verification:
- Search for problematic tracks manually on YouTube Music
- Check if they exist under different names/artists
"Rate limiting errors"
Symptoms: - "Too Many Requests" errors - Transfer stops or slows down significantly
Solutions: 1. Wait and retry: - Rate limits are temporary - Wait 15-30 minutes before retrying
- Transfer smaller batches:
- Split large playlists into smaller chunks
-
Transfer 50-100 songs at a time
-
Increase retry attempts:
"Playlist creation failed"
Symptoms: - Cannot create new playlists on YouTube Music - Permission errors
Solutions: 1. Check YouTube Music subscription: - Ensure you have an active YouTube Music subscription - Free accounts have limited playlist creation
- Verify authentication scope:
- Re-authenticate with YouTube Music
-
Ensure all required permissions are granted
-
Try different privacy settings:
Performance Issues
"Transfer is very slow"
Symptoms: - Transfer takes much longer than expected - Frequent pauses between songs
Solutions: 1. Check internet connection: - Ensure stable, fast internet connection - Test with smaller playlists first
-
Optimize configuration:
-
Use liked music transfer:
"High memory usage"
Symptoms: - System becomes slow during transfer - Out of memory errors
Solutions: 1. Transfer smaller batches: - Process playlists in chunks of 100-200 songs
- Close other applications:
-
Free up system memory
-
Use command-line only:
- Avoid running GUI applications during transfer
File and Directory Issues
"Module not found" errors
Symptoms: - Import errors when running the application - "No module named 'src.spotify_youtube_transfer'" errors
Solutions: 1. Ensure correct directory structure:
Spotify-to-Youtube/
├── main.py
├── setup.py
├── src/
│ └── spotify_youtube_transfer/
│ ├── __init__.py
│ ├── config.py
│ ├── spotify_client.py
│ ├── youtube_music_client.py
│ ├── track_matcher.py
│ └── playlist_transfer.py
└── docs/
-
Run from project root:
-
Check Python path:
"Permission denied" errors
Symptoms: - Cannot create or write files - Authentication files cannot be saved
Solutions: 1. Check file permissions:
- Run with appropriate permissions:
-
Ensure you have write permissions in the project directory
-
Check disk space:
- Ensure sufficient disk space for log files and cache
Debug Mode
Enable Debug Logging
Log File Analysis
Check the generated log files:
- spotify_to_youtube.log
: Main application log
- transfer_report_*.json
: Detailed transfer reports
Common Log Messages
"Spotify authentication successful" - ✅ Spotify connection is working
"YouTube Music authentication failed" - ❌ Check YouTube Music setup
"Track match found with similarity: 0.85" - ✅ Good match found
"No suitable match found for track" - ⚠️ Track not available or poor matching
"Rate limit exceeded, waiting..." - ⚠️ Normal behavior, will retry automatically
Getting Help
Before Reporting Issues
- Check this troubleshooting guide
- Enable debug logging and check log files
- Test with a small playlist (5-10 songs)
- Verify your setup with
python main.py test
- Check for updates to the tool
Reporting Bugs
When reporting issues, please include:
- System information:
- Operating system and version
- Python version (
python --version
) -
Tool version
-
Error details:
- Complete error message
- Steps to reproduce
-
Debug log output (if applicable)
-
Configuration:
- Anonymized
.env
file content - Command used
- Playlist size and type
Support Channels
- GitHub Issues: Create an issue
- Documentation: Check the
docs/
folder - Community: GitHub Discussions
Frequently Asked Questions (FAQ)
General Questions
Q: Is this tool free to use? A: Yes, the tool is open source and free. However, you need active subscriptions to Spotify and YouTube Music.
Q: Does this tool store my music data? A: No, all processing happens locally. The tool only transfers playlist metadata and song references.
Q: Can I transfer from YouTube Music to Spotify? A: Currently, the tool only supports Spotify to YouTube Music transfers.
Q: How accurate is the track matching? A: Accuracy varies but typically ranges from 80-95% depending on music library overlap and regional availability.
Technical Questions
Q: Why do I need both Spotify and YouTube Music accounts? A: The tool needs to access both services to read from Spotify and write to YouTube Music.
Q: Can I run multiple transfers simultaneously? A: Not recommended due to API rate limits. Run transfers sequentially.
Q: How long does a transfer take? A: Approximately 1-2 seconds per song, so a 100-song playlist takes 2-3 minutes.
Q: Can I pause and resume transfers? A: Currently not supported. Transfers must complete in one session.
Privacy and Security
Q: Is my data secure? A: Yes, the tool uses official OAuth flows and processes everything locally.
Q: What permissions does the tool need? A: Read access to Spotify playlists and write access to YouTube Music playlists.
Q: Can I revoke access later? A: Yes, you can revoke access through Spotify and Google account settings.
Limitations
Q: Why aren't all my songs transferred? A: Some songs may not be available on YouTube Music due to licensing or regional restrictions.
Q: Can I transfer podcasts or audiobooks? A: No, the tool is designed specifically for music tracks.
Q: Is there a limit to playlist size? A: No hard limit, but very large playlists (1000+ songs) may take considerable time.
Q: Can I transfer collaborative playlists? A: Yes, if you have access to read the playlist on Spotify.