-
Notifications
You must be signed in to change notification settings - Fork 0
04. Troubleshooting
engels74 edited this page Oct 13, 2024
·
3 revisions
This guide aims to help you resolve common issues you might encounter while using the Custom Format Sync tool.
Symptoms:
- Error messages in the GitHub Actions log mentioning connection timeouts or inability to reach the server.
Possible Solutions:
- Check that the URL in your GitHub Secret is correct and includes the protocol (http:// or https://).
- Ensure your Radarr/Sonarr instance is accessible from the internet, or use a reverse proxy.
- Check your firewall settings to ensure it's not blocking incoming connections.
Symptoms:
- Error messages in the GitHub Actions log mentioning "Unauthorized" or "Invalid API Key".
Possible Solutions:
- Double-check that the API key in your GitHub Secret is correct and up-to-date.
- Regenerate the API key in Radarr/Sonarr and update the GitHub Secret.
Symptoms:
- Changes to custom formats are not being synced to your instances.
Possible Solutions:
- Ensure you've incremented the
cfSync_version
in your custom format JSON file. - Check that you've committed and pushed the changes to the
main
branch.
Symptoms:
- Changes are not appearing on a specific instance.
Possible Solutions:
- Check the
cfSync_instances
field in your custom format JSON to ensure the instance is included. - Verify that
cfSync_radarr
orcfSync_sonarr
is set totrue
if you're not usingcfSync_instances
.
Symptoms:
- The sync process is not running automatically when you push changes.
Possible Solutions:
- Check that your changes are being pushed to the
main
branch. - Ensure you're modifying files within the
custom_formats/
directory. - Verify that GitHub Actions is enabled for your repository.
Symptoms:
- Error messages in GitHub Actions about lacking permissions to update files.
Possible Solution:
- Go to your repository's Settings > Actions > General.
- Under "Workflow permissions", select "Read and write permissions".
Symptoms:
- Error messages when trying to run the script locally.
Possible Solution:
- Ensure you've installed the required dependencies:
pip install -r requirements.txt
Symptoms:
- Script fails to run locally due to missing configuration.
Possible Solution:
- Create a
.env
file in your project root with your Radarr/Sonarr URLs and API keys:RADARR_001_URL=https://radarr.example.com RADARR_001_API_KEY=your_api_key_here
- Use a package like
python-dotenv
to load these variables in your local environment.
If you're still experiencing problems after trying these solutions:
- Check the full logs in GitHub Actions for more detailed error messages.
- Search for similar issues in the GitHub Issues section of the repository.
- If you can't find a solution, open a new issue with a detailed description of your problem, including:
- The specific error message
- The custom format you're trying to sync
- Your workflow file contents (with sensitive information redacted)
- Any relevant logs
Remember, when sharing logs or configuration, always remove sensitive information like API keys and URLs.