Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello Philippe,
Thank you for reaching out with your question. It seems you’re encountering an issue with pulling your application container from a private registry using Torizon Platform, despite being able to manually log in and pull the container on the device. This suggests a problem with how the credentials are being handled by the Torizon Platform.
Here are some steps to troubleshoot and resolve this issue:
-
Verify Credentials: Double-check that the credentials used with the
--login-tooption are correct and have the necessary permissions to access the private registry. Ensure the token’s scope and permissions on GitHub are set appropriately. -
Credential Deployment: The Torizon Platform requires credentials to be accessible during automated updates. You can use the TorizonCore Builder tool to embed these credentials into the TorizonCore image. This involves using
docker loginon a device to create aconfig.jsonfile in/etc/docker, then capturing this configuration with TorizonCore Builder to create a custom image. -
Custom TorizonCore Image: Once you have a custom TorizonCore image with the embedded credentials, deploy this image to your devices. This ensures that all devices have the necessary credentials pre-provisioned.
-
Check Aktualizr Logs: Review the logs from Aktualizr for any additional error messages or clues that might indicate why the authentication is failing. This can provide insights into whether the issue is with the credentials or the network configuration.
-
Network Configuration: Ensure there are no network restrictions or firewall settings that might be blocking access to the registry from the device.
By following these steps, you should be able to resolve the unauthorized error and successfully pull your application container from the private registry using Torizon Platform. If the issue persists, consider revisiting the credential setup and deployment process to ensure all steps are correctly followed.
I hope this helps! Please feel free to reach out if you have any more questions.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: