Getting error during pushing images to torizon cloud [verdin]

Hi I am getting the following error

An unexpected Exception occurred. Please provide the following stack trace to the Toradex TorizonCore support team: Traceback (most recent call last): File "/builder/torizoncore-builder", line 221, in <module> mainargs.func(mainargs) File "/builder/tcbuilder/cli/platform.py", line 537, in do_platform_push package_info, compatible_with = _check_compatible_with_param(args.compatible_with, credentials) File "/builder/tcbuilder/cli/platform.py", line 471, in _check_compatible_with_param return translate_compatible_packages(credentials, criteria) File "/builder/tcbuilder/backend/platform.py", line 1146, in translate_compatible_packages server_creds = sotaops.ServerCredentials(credentials) File "/builder/tcbuilder/backend/sotaops.py", line 36, in __init__ self._load() File "/builder/tcbuilder/backend/sotaops.py", line 40, in _load with ZipFile(fname, "r") as archive: File "/usr/lib/python3.9/zipfile.py", line 1257, in __init__ self._RealGetContents() File "/usr/lib/python3.9/zipfile.py", line 1324, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file Program "bash" ended with non-zero exit code: 254. at <ScriptBlock>, <No file>: line 1 at runTask, /builds/khaled.hassan/torizon/.vscode/tasks.ps1: line 622 at taskArgumentExecute, /builds/khaled.hassan/torizon/.vscode/tasks.ps1: line 457 at <ScriptBlock>, /builds/khaled.hassan/torizon/.vscode/tasks.ps1: line 681 at <ScriptBlock>, <No file>: line 1 at <ScriptBlock>, /usr/local/bin/gitlabWrapper.ps1: line 16 gitlabWrapper.ps1: /usr/local/bin/gitlabWrapper.ps1:27 Line | 27 | Write-Error -Message $_.Exception.Message | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Error executing line: ./.vscode/tasks.ps1 run tcb-platform-publish Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 1

Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

The error you’re encountering indicates that the process is expecting a ZIP file but the provided file is not in the correct format or is corrupted. This issue typically occurs during the push operation to TorizonCore when the credentials file (usually a ZIP file containing the necessary certificates and keys for authentication) is either not a valid ZIP file or has been corrupted.

Here are steps to troubleshoot and potentially resolve this issue:

  1. Verify the Credentials File: Ensure that the credentials file you are using for the push operation is indeed a ZIP file. You can try opening it with a ZIP utility to confirm its integrity.

  2. Re-download or Regenerate Credentials: If the credentials file is corrupted or not valid, you may need to re-download or regenerate this file from the TorizonCore Platform or your OTA update server management interface.

  3. Check File Path: Ensure that the path to the credentials file specified in your command or configuration is correct. A wrong path could lead to a file not found or a wrong file being read as the credentials.

  4. Update Tools: Make sure that the TorizonCore Builder and other tools you are using are up to date. An outdated tool might not handle certain operations correctly.

  5. File Permissions: Check the permissions of the credentials file. It should be readable by the user or process executing the push operation.

  6. Command Syntax: Review the command syntax to ensure it’s correctly structured, especially the part where you specify the credentials file.

If after these steps the issue persists, it might be beneficial to closely examine the environment and the exact command being used for the push operation, ensuring all prerequisites and conditions for the operation are met.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Device Monitoring in Torizon OS | Toradex Developer Center.

Hi Now getting below error

Status: Downloaded newer image for torizon/torizoncore-builder:3.8.1 Error: Could not determine digest for image 'registry.lab.petalite.co.uk/khaled.hassan/torizon:latest'. Program "bash" ended with non-zero exit code: 255. at <ScriptBlock>, <No file>: line 1 at runTask, /builds/khaled.hassan/torizon/.vscode/tasks.ps1: line 622 at taskArgumentExecute, /builds/khaled.hassan/torizon/.vscode/tasks.ps1: line 457 at <ScriptBlock>, /builds/khaled.hassan/torizon/.vscode/tasks.ps1: line 681 at <ScriptBlock>, <No file>: line 1 at <ScriptBlock>, /usr/local/bin/gitlabWrapper.ps1: line 16 gitlabWrapper.ps1: /usr/local/bin/gitlabWrapper.ps1:27 Line | 27 | Write-Error -Message $_.Exception.Message | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Error executing line: ./.vscode/tasks.ps1 run tcb-platform-publish Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 1

Seems it was started with problem

`` ✅ variables replaced ✅ docker-compose.prod.yml created > Executing task: tcb-platform-publish < ./.conf/tcb-env-setup.sh: line 9: [registry.lab.petalite.co.uk: command not found Setting up TorizonCore Builder with version 3.8.1. Unable to find image 'torizon/torizoncore-builder:3.8.1' locally 3.8.1: Pulling from torizon/torizoncore-builder 14726c8f7834: Pulling fs layer

Hello @khaled.hassan,

Thanks for the update about the missing credentials.zip file.

Regarding the other issue, I will continue supporting you with it in your other topic.

Best Regards,
Bruno