Troubleshooting - JohanDevl/Export_Trakt_4_Letterboxd GitHub Wiki
Troubleshooting
This guide helps you solve common problems you might encounter when using Export Trakt 4 Letterboxd.
Trakt Authentication Issues
Error: "Invalid API key"
Problem: The provided Client ID (API key) is not valid.
Solution:
- Verify that you correctly copied your Client ID from https://trakt.tv/oauth/applications
- Run
./setup_trakt.sh
again to reconfigure authentication
Error: "Invalid OAuth code"
Problem: The provided authorization code is not valid or has expired.
Solution:
- Make sure to copy the code exactly as it appears in the URL
- Authorization codes expire quickly, so act fast after obtaining the code
- Run
./setup_trakt.sh
again to get a new code
Error: "Unauthorized" or "401 Unauthorized"
Problem: The access token has expired or is no longer valid.
Solution:
- Run
./setup_trakt.sh
again to get a new access token - Verify that your Trakt application has the necessary permissions
Docker Issues
Container Stops Immediately
Problem: The Docker container starts and then stops immediately.
Solution:
- Check the container logs:
docker logs trakt-export
- Make sure the volumes are properly mounted
- Check the permissions of the mounted directories
Error: "config file not found"
Problem: The configuration file is not found in the container.
Solution:
- Verify that the
./config:/app/config
volume is properly mounted - Run
docker exec -it trakt-export ls -la /app/config
to check the contents - If the file doesn't exist, run
docker exec -it trakt-export ./setup_trakt.sh
to create it
Cron Jobs Not Running
Problem: Automated exports configured with cron are not running.
Solution:
- Verify that the
CRON_SCHEDULE
variable is properly set - Check the container logs:
docker logs trakt-export | grep cron
- Check the cron log file:
docker exec -it trakt-export cat /app/logs/cron_export.log
- Restart the container:
docker restart trakt-export
Export Issues
No Data Exported
Problem: The script runs but no data is exported.
Solution:
- Verify that your Trakt profile is public
- Make sure you have rated or watched movies on Trakt
- Check the logs for errors:
cat ./logs/[DATE]-Export_Trakt.txt
- Run again with the
initial
option:./Export_Trakt_4_Letterboxd.sh initial
Error: "jq: command not found"
Problem: The jq
tool is not installed on your system.
Solution:
- Install
jq
:- On Ubuntu/Debian:
sudo apt-get install jq
- On macOS with Homebrew:
brew install jq
- On Windows with Chocolatey:
choco install jq
- On Ubuntu/Debian:
- Or use Docker which already includes
jq
Error: "curl: command not found"
Problem: The curl
tool is not installed on your system.
Solution:
- Install
curl
:- On Ubuntu/Debian:
sudo apt-get install curl
- On macOS with Homebrew:
brew install curl
- On Windows with Chocolatey:
choco install curl
- On Ubuntu/Debian:
- Or use Docker which already includes
curl
Letterboxd Import Issues
Error When Importing to Letterboxd
Problem: Letterboxd reports an error when importing the CSV file.
Solution:
- Verify that the CSV file was properly generated:
cat ./copy/letterboxd_import.csv
- Make sure the file contains data and is in the expected format
- Run the export again with the
complete
option:./Export_Trakt_4_Letterboxd.sh complete
- If the problem persists, check the Letterboxd import requirements
Other Issues
If you encounter other issues not listed here, you can:
- Check the detailed logs in the
./logs/
directory - Open an issue on GitHub
- Check the GitHub discussions to see if other users have encountered the same problem