Update Failed on Torizon Platform

Dear Toradex-Team,
I am trying to remotely initiate a Docker-Compose update on my Toradex-Devices. Thus i created an account at app.torizon.io an connected all my devices.
Now, when trying to initiate a remote update with my own docker-compose (created in VSCode using Toradex Extension) I always get update failed without any further error message.
I did the following steps:
After coding my app i pressed F1 and Torizon> Build release container
Then again F1 Torizon: export docker-compose, which I saved locally
Then I headed over to the Platform and uploaded the docker-compose and initiated an update, which always failed.

Am I doing something wrong?
Thanks in advance
Sincerely yours

Hello @Juli7478 ,

At the moment of writing this post, Torizon platform does not provide detailed logs about the update process.

In order to get a detailed log of what is happening during the update process, via Aktualizr , you can log into the module, run the following command:
journalctl -f -u aktualizr*
And start a remote update.
The output of this command should give you some hints about whether there is something wrong or not.
Please share the output here so we can better understand the problem.

Best regards,
Josep

Dear @josep.tx ,
Thanks for the fast answer.
Here are my logs:

torizon@apalis-imx8-14716551:~$ journalctl -f -u aktualizr*
-- Logs begin at Fri 2023-08-11 07:31:20 UTC. --
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:a5                                                                                          611bd18da5dd034ac9a0891d99fd3d39ec6d6e7831c844c0ef7cb7703266ca
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:a0                                                                                          fcc877aea8b488a3e43c68f11b1b847e7ce8d4affbea26148d03472768d13c
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:70                                                                                          26b46ede223a63eff57bead0b985876141cde9a53bf34fdae9555b22249521
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:03                                                                                          9b1ee3206136735de5881e830525e507af07491ccddaf9d6f41d5a34b74bd5
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: Total reclaimed sp                                                                                          ace: 252.2MB
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Event: InstallTarg                                                                                          etComplete, Result - Error
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Event: AllInstalls                                                                                          Complete, Result - docker-compose:INSTALL_FAILED
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Update install com                                                                                          pleted. Releasing the update lock...
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Current versions i                                                                                          n storage and reported by OSTree do not match
Aug 11 07:32:12 apalis-imx8-14716551 aktualizr-torizon[1238]: Event: PutManifest                                                                                          Complete, Result - Success
^C
torizon@apalis-imx8-14716551:~$ journalctl -f -u aktualizr*
-- Logs begin at Fri 2023-08-11 07:31:20 UTC. --
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:a5611bd18da5dd034ac9a0891d99fd3d39ec6d6e7831c844c0ef7cb7703266ca
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:a0fcc877aea8b488a3e43c68f11b1b847e7ce8d4affbea26148d03472768d13c
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:7026b46ede223a63eff57bead0b985876141cde9a53bf34fdae9555b22249521
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: deleted: sha256:039b1ee3206136735de5881e830525e507af07491ccddaf9d6f41d5a34b74bd5
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1546]: Total reclaimed space: 252.2MB
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Event: InstallTargetComplete, Result - Error
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Event: AllInstallsComplete, Result - docker-compose:INSTALL_FAILED
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Update install completed. Releasing the update lock...
Aug 11 07:32:11 apalis-imx8-14716551 aktualizr-torizon[1238]: Current versions in storage and reported by OSTree do not match
Aug 11 07:32:12 apalis-imx8-14716551 aktualizr-torizon[1238]: Event: PutManifestComplete, Result - Success

Thank you!
Best regards,
Julian

Hello @Juli7478 ,
thanks for sending the logs.
Would it be possible for you to share the Docker compose file that you created?

Best regards,
Josep

Hi @josep.tx ,
the docker-compose I try to update is the following:

# docker-compose.yml
networks:
  mynetwork:
    driver: bridge
    ipam:
      config:
      - gateway: 172.18.0.1
        subnet: 172.18.0.0/16
    name: mynetwork
services:
  influxdb:
    container_name: InfluxDB
    environment:
    - DOCKER_INFLUXDB_INIT_MODE=setup
    - DOCKER_INFLUXDB_INIT_USERNAME=<xxxxx>
    - DOCKER_INFLUXDB_INIT_PASSWORD=<xxxxx>
    - DOCKER_INFLUXDB_INIT_ORG=<xxxxx>
    - DOCKER_INFLUXDB_INIT_BUCKET=<xxxxx>
    - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=<xxxxx>
    image: influxdb:2.7.1
    networks:
      mynetwork:
        ipv4_address: 172.18.0.2
    ports:
    - 8086:8086
    restart: always
    volumes:
    - influxdb-data:/var/lib/influxdb2
    - /home/torizon/Toradex_Influx_Backend/Influx:/home
    - /media:/media
  toradex_teststand_backend_arm64v8-debian-python3_bullseye_release_822bd033-7dba-4651-92fd-486dc5e1dbce:
    cap_add:
    - CAP_NET_ADMIN
    depends_on:
    - influxdb
    devices: []
    image: toradex_teststand_backend_arm64v8-debian-python3_bullseye_release_822bd033-7dba-4651-92fd-486dc5e1dbce
    network_mode: host
    ports:
    - 5000:5000/tcp
    volumes:
    - /dev:/dev:rw
version: '2.4'
volumes:
  influxdb-data: null

( < xxxxx > means, that I removed my credentials :wink: )

I hope this helps.
Sincerely

Hello @Juli7478 ,

We see from the compose file that you have the container image generated from the IDE extension: toradex_teststand_backend_arm64v8-debian-python3_bullseye_release_822bd033-7dba-4651-92fd-486dc5e1dbce

Did you actually push this container image to a registry so it can be accessed for a docker pull during the update? If not then a failure would be expected.

Best regards,
Josep

Dear @josep.tx ,
No I did not. I simply uploaded the Docker-Compose to the OTA page and pressed update.
Do you have a Tutorial on how to do this properly?

Thanks

Hello @Juli7478 ,
Here you have a tutorial on how to upload Docker images to a public repository such as DockerHub

Best regards,
Josep

Thanks @josep.tx ,
I will try to upload my container there.

Dear @josep.tx ,
I am sorry to write again. After uploading the image to dockerhub, the update still fails. Do you have further suggestions?

The command journalctl -f -u aktualizr* now yields:

torizon@apalis-imx8-14716551:~$ journalctl -f -u aktualizr*
-- Logs begin at Tue 2023-09-19 08:26:52 UTC. --
Sep 19 08:32:46 apalis-imx8-14716551 aktualizr-torizon[1274]: Current versions in storage and reported by OSTree do not match
Sep 19 08:32:46 apalis-imx8-14716551 aktualizr-torizon[1274]: Event: UpdateCheckComplete, Result - No updates available
Sep 19 08:36:58 apalis-imx8-14716551 aktualizr-torizon[1274]: PROXY: sending device data to Torizon OTA.
Sep 19 08:36:58 apalis-imx8-14716551 aktualizr-torizon[1274]: Event: SendDeviceDataComplete
Sep 19 08:37:46 apalis-imx8-14716551 aktualizr-torizon[1274]: Current versions in storage and reported by OSTree do not match
Sep 19 08:37:47 apalis-imx8-14716551 aktualizr-torizon[1274]: Event: UpdateCheckComplete, Result - No updates available
Sep 19 08:41:58 apalis-imx8-14716551 aktualizr-torizon[1274]: PROXY: sending device data to Torizon OTA.
Sep 19 08:41:58 apalis-imx8-14716551 aktualizr-torizon[1274]: Event: SendDeviceDataComplete
Sep 19 08:42:47 apalis-imx8-14716551 aktualizr-torizon[1274]: Current versions in storage and reported by OSTree do not match
Sep 19 08:42:47 apalis-imx8-14716551 aktualizr-torizon[1274]: Event: UpdateCheckComplete, Result - No updates available

The uploaded Docker Compose is:

# docker-compose.yml
networks:
  mynetwork:
    driver: bridge
    ipam:
      config:
      - gateway: 172.18.0.1
        subnet: 172.18.0.0/16
    name: mynetwork
services:
  influxdb:
    container_name: InfluxDB
    environment:
    - DOCKER_INFLUXDB_INIT_MODE=setup
    - DOCKER_INFLUXDB_INIT_USERNAME=admin
    - DOCKER_INFLUXDB_INIT_PASSWORD=<***>
    - DOCKER_INFLUXDB_INIT_ORG=<***>
    - DOCKER_INFLUXDB_INIT_BUCKET=<***>
    - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=<***>
    image: influxdb:2.7.1
    networks:
      mynetwork:
        ipv4_address: 172.18.0.2
    ports:
    - 8086:8086
    restart: always
    volumes:
    - influxdb-data:/var/lib/influxdb2
    - /home/torizon/Toradex_Influx_Backend/Influx:/home
    - /media:/media
  toradex_teststand_backend_arm64v8-debian-python3_bullseye_release_822bd033-7dba-4651-92fd-486dc5e1dbce:
    cap_add:
    - CAP_NET_ADMIN
    depends_on:
    - influxdb
    devices: []
    image: juli7478/toradex_teststand:latest
    network_mode: host
    ports:
    - 5000:5000/tcp
    restart: always
    volumes:
    - /dev:/dev:rw
version: '2.4'
volumes:
  influxdb-data: null

Do you see any further error?
Thank you!!!

Hello @Juli7478 ,
Which version of TorizonCore are you using?

Best regards,
Josep