dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
1.89k stars 416 forks source link

Workflow for migrating from Jetpack 6 DP to Jetpack 6 GA ? #508

Closed telemetrieTP23 closed 1 month ago

telemetrieTP23 commented 1 month ago

After migrating from Jetpack 6 DP to GA with this steps: https://docs.nvidia.com/jetson/archives/jetpack-archived/jetpack-60/install-setup/index.html#upgrade-jetpack

The docker commands are not working anymore:

jetson-containers run --name ollama $(autotag ollama)

docker run -it --rm --network=host --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data ghcr.io/open-webui/open-webui:main

-> docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

Does the update broke docker ?

If there is an easy way to fix this, please help. greetings

TadayukiOkada commented 1 month ago

What does this show?: sudo systemctl status docker

EDIT: are you trying to start webui from the same terminal used for starting ollama? After starting ollama, the shell is running inside the container. So you need to open another terminal and start webui.

I installed JP6 GA from scratch and docker works fine.

martincerven commented 1 month ago

Does this iptables fix work? I also had to do that first time I ran containers on Jetsons ( JP 6.x )

telemetrieTP23 commented 1 month ago

You are right my posting was easy to misinterpret, i used 2 terminals, each of them for one command.

sudo systemctl status docker says:

× docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-05-09 12:32:03 CEST; 5min ago
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 2288 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 2288 (code=exited, status=1/FAILURE)
        CPU: 220ms

Mai 09 12:32:03 orin-desktop systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Mai 09 12:32:03 orin-desktop systemd[1]: Stopped Docker Application Container Engine.
Mai 09 12:32:03 orin-desktop systemd[1]: docker.service: Start request repeated too quickly.
Mai 09 12:32:03 orin-desktop systemd[1]: docker.service: Failed with result 'exit-code'.
Mai 09 12:32:03 orin-desktop systemd[1]: Failed to start Docker Application Container Engine.

I can search the docker issue for my own, but asked here if dusty or some other nvidia member has tips for upgrading this way ( https://docs.nvidia.com/jetson/archives/jetpack-archived/jetpack-60/install-setup/index.html#upgrade-jetpack ) , because it was recommended by nvidia `

telemetrieTP23 commented 1 month ago

Does this iptables fix work? I also had to do that first time I ran containers on Jetsons ( JP 6.x )

YESS. It worked, the link to your solution should be posted in the official nvidia update guide.

martincerven commented 1 month ago

Thanks, if that solved your problem, mark the issue as closed 😁

Does this iptables fix work? I also had to do that first time I ran containers on Jetsons ( JP 6.x )

YESS. It worked, the link to your solution should be posted in the official nvidia update guide.