Hi,
I am getting a failed build on the github actions which says:
Status: Downloaded newer image for torizon/torizoncore-builder:early-access
You are running an early access version of TorizonCore Builder.
An unexpected Exception occured. 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 538, in do_platform_push
package_info, compatible_with = _check_compatible_with_param(args.compatible_with, credentials)
File "/builder/tcbuilder/cli/platform.py", line 472, in _check_compatible_with_param
return translate_compatible_packages(credentials, criteria)
File "/builder/tcbuilder/backend/platform.py", line 1144, 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
> TASK tcb-platform-publish exited with error code 254 <
Error: Process completed with exit code 1.
Furthemore, I executed a task tcb-platform-publish, which executed successfully with the update showing on the Torizon Platform. but when I try to execute the update fleet, the update is queued, but it fails on the device. the journalctl output is as follows:
Jul 23 09:15:16 verdin-imx8mm-14756428 aktualizr-torizon[896]: Current versions in storage and reported by OSTree do not match
Jul 23 09:15:19 verdin-imx8mm-14756428 aktualizr-torizon[896]: Current version for ECU ID: 1e915376f5515483a365569f9f43a1efffa6ea1dc485163a2de734aadf71bfe2 is unknown
Jul 23 09:15:19 verdin-imx8mm-14756428 aktualizr-torizon[896]: New updates found in Director metadata. Checking Image repo metadata...
Jul 23 09:15:20 verdin-imx8mm-14756428 aktualizr-torizon[896]: 1 new update found in both Director and Image repo metadata.
Jul 23 09:15:20 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: UpdateCheckComplete, Result - Updates available
Jul 23 09:15:20 verdin-imx8mm-14756428 aktualizr-torizon[896]: Update available. Acquiring the update lock...
Jul 23 09:15:20 verdin-imx8mm-14756428 aktualizr-torizon[896]: Current version for ECU ID: 1e915376f5515483a365569f9f43a1efffa6ea1dc485163a2de734aadf71bfe2 is unknown
Jul 23 09:15:21 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: DownloadProgressReport, Progress at 100%
Jul 23 09:15:21 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: DownloadTargetComplete, Result - Success
Jul 23 09:15:21 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: AllDownloadsComplete, Result - Success
Jul 23 09:15:21 verdin-imx8mm-14756428 aktualizr-torizon[896]: Current version for ECU ID: 1e915376f5515483a365569f9f43a1efffa6ea1dc485163a2de734aadf71bfe2 is unknown
Jul 23 09:15:21 verdin-imx8mm-14756428 aktualizr-torizon[896]: Waiting for Secondaries to connect to start installation...
Jul 23 09:15:23 verdin-imx8mm-14756428 aktualizr-torizon[896]: No update to install on Primary
Jul 23 09:15:23 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: InstallStarted
Jul 23 09:15:23 verdin-imx8mm-14756428 aktualizr-torizon[896]: Updating containers via docker-compose
Jul 23 09:15:23 verdin-imx8mm-14756428 aktualizr-torizon[896]: Running docker-compose pull
Jul 23 09:15:23 verdin-imx8mm-14756428 aktualizr-torizon[896]: Running command: /usr/bin/docker-compose --file /var/sota/storage/docker-compose/docker-compose.yml.tmp pull --no-parallel
Jul 23 09:15:23 verdin-imx8mm-14756428 aktualizr-torizon[1842]: geopaxapp-svc Pulling
Jul 23 09:15:24 verdin-imx8mm-14756428 dockerd[739]: time="2023-07-23T09:15:24.478829249Z" level=warning msg="reference for unknown type: " digest="sha256:f09d1d40239281aa0f4c8088676faa1f6da34b625b53b190282788101233e86e" remote="docker.io/geopaxpvtltd/geopaxapp-svc@sha256:f09d1d40239281aa0f4c8088676faa1f6da34b625b53b190282788101233e86e"
Jul 23 09:15:26 verdin-imx8mm-14756428 dockerd[739]: time="2023-07-23T09:15:26.415496733Z" level=error msg="Not continuing with pull after error: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
Jul 23 09:15:26 verdin-imx8mm-14756428 dockerd[739]: time="2023-07-23T09:15:26.417149558Z" level=info msg="Ignoring extra error returned from registry: unauthorized: authentication required"
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[1842]: geopaxapp-svc Error
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[1842]: Error response from daemon: pull access denied for geopaxpvtltd/geopaxapp-svc, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[896]: Error running docker-compose pull
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[896]: Rolling back container update
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: InstallTargetComplete, Result - Error
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: AllInstallsComplete, Result - docker-compose:INSTALL_FAILED
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[896]: Update install completed. Releasing the update lock...
Jul 23 09:15:26 verdin-imx8mm-14756428 aktualizr-torizon[896]: Current versions in storage and reported by OSTree do not match
Jul 23 09:15:27 verdin-imx8mm-14756428 aktualizr-torizon[896]: Event: PutManifestComplete, Result - Success
Apparently dockerhub denies access to download the image.
Furthermore, when the docker repository is changed to private, the tcb-platform-publish task fails with the following message:
* Executing task: DOCKER_HOST= source ./.conf/tcb-env-setup.sh -s /home/ha-01/GeopaxApp/storage -t early-access
Warning: If you intend to use torizoncore-builder as a server (listening to ports), then you should pass extra parameters to "docker run" (via the -- switch).
Setting up TorizonCore Builder with version early-access.
You are running an early access version of TorizonCore Builder.
Access to manifest for image 'geopaxpvtltd/geopaxapp-svc:imagePreProduction' was not authorized; be sure to pass a proper username/password pair for the registry.
Error: Could not determine digest for image 'geopaxpvtltd/geopaxapp-svc:imagePreProduction'.
* The terminal process "/usr/bin/bash '-c', 'DOCKER_HOST= source ./.conf/tcb-env-setup.sh -s /home/ha-01/GeopaxApp/storage -t early-access'" terminated with exit code: 255.
* Terminal will be reused by tasks, press any key to close it.
in this case, the image is published to the repository but the tcb-platform-publish task fails.
Furthermore, while experimenting with the OTA updates, I queued an update for kirkland 6.3.0 version image. the update did complete successfully but it stuck my dev enviroment in the way that I am unable to debug my application container from vscode on the apollox extension with the same docker file that used to work before. the error seems to arise while creating a folder to mount. the error outout is as below:
* Executing task: sshpass -p hasann99 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no torizon@192.168.0.158 LOCAL_REGISTRY=192.168.0.247 TAG=arm64 docker-compose up -d geopaxapp-svc-debug
Warning: Permanently added '192.168.0.158' (ED25519) to the list of known hosts.
time="2023-07-23T15:17:59Z" level=warning msg="The \"DOCKER_LOGIN\" variable is not set. Defaulting to a blank string."
Network torizon_default Creating
Network torizon_default Created
Container torizon-geopaxapp-svc-debug-1 Creating
Container torizon-geopaxapp-svc-debug-1 Created
Container torizon-geopaxapp-svc-debug-1 Starting
Error response from daemon: error while creating mount source path '/appdata/config': mkdir /appdata: operation not permitted
* The terminal process "sshpass '-p', 'hasann99', 'ssh', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', 'torizon@192.168.0.158', 'LOCAL_REGISTRY=192.168.0.247 TAG=arm64 docker-compose up -d geopaxapp-svc-debug'" terminated with exit code: 1.
The compose file associated with it is as below:
version: "3.9"
services:
geopaxapp-svc-debug:
build:
context: .
dockerfile: Dockerfile.debug
image: ${LOCAL_REGISTRY}:5002/geopaxapp-svc-debug:${TAG}
user: root
ports:
- 2230:2230
- 8000:8000
- 8443:8443
- 2101:2101
devices:
- "/dev/gpiochip4:/dev/gpiochip4"
- "/dev/ttyACM0:/dev/ttyACM0"
- "/dev/ttyACM1:/dev/ttyACM1"
- "/dev/verdin-uart1:/dev/verdin-uart1"
- "/dev/verdin-uart2:/dev/verdin-uart2"
volumes:
- "/var/run/dbus:/var/run/dbus"
- "/var/run/sdp:/var/run/sdp"
- "/sys/block:/sys/block"
- "/dev:/dev"
- "/mnt:/mnt"
- "/appdata/config:/appdata/config"
- "/appdata/log:/appdata/log"
- "/appdata/data:/appdata/data"
geopaxapp-svc:
build:
context: .
dockerfile: Dockerfile
image: ${DOCKER_LOGIN}/geopaxapp-svc:${TAG}
ports:
- 8000:8000
- 8443:8443
- 2101:2101
devices:
- "/dev/gpiochip4:/dev/gpiochip4"
- "/dev/ttyACM0:/dev/ttyACM0"
- "/dev/ttyACM1:/dev/ttyACM1"
- "/dev/verdin-uart1:/dev/verdin-uart1"
- "/dev/verdin-uart2:/dev/verdin-uart2"
volumes:
- "/var/run/dbus:/var/run/dbus"
- "/var/run/sdp:/var/run/sdp"
- "/sys/block:/sys/block"
- "/dev:/dev"
- "/mnt:/mnt"
- "/appdata/config:/appdata/config"
- "/appdata/log:/appdata/log"
- "/appdata/data:/appdata/data"