Hi,

I'm trying to build the app human-pose with the command: oakctl app build .

I get this error:

Building oakapp from path: "."
✔ Data sent to device                                                                                                                                                                                                                       
✔ Build has started, reading build logs ...                                                                                                                                                                                                 
Retrieving base image library/debian:bookworm-slim ...
Processing layer zoo_models ...
Processing layer runtime ...
 [2025-06-23T15:47:21Z] Ign:1 http://deb.debian.org/debian bookworm InRelease
 [2025-06-23T15:47:41Z] Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
 [2025-06-23T15:48:01Z] Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
 [2025-06-23T15:48:21Z] Ign:1 http://deb.debian.org/debian bookworm InRelease
 [2025-06-23T15:49:22Z] Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
 [2025-06-23T15:49:42Z] Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
 [2025-06-23T15:50:02Z] Ign:1 http://deb.debian.org/debian bookworm InRelease
 [2025-06-23T15:50:22Z] Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
 [2025-06-23T15:50:42Z] Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
 [2025-06-23T15:51:02Z] Err:1 http://deb.debian.org/debian bookworm InRelease
 [2025-06-23T15:51:02Z]   Temporary failure resolving 'deb.debian.org'
 [2025-06-23T15:51:22Z] Err:2 http://deb.debian.org/debian bookworm-updates InRelease
 [2025-06-23T15:51:22Z]   Temporary failure resolving 'deb.debian.org'
 [2025-06-23T15:51:42Z] Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
 [2025-06-23T15:51:42Z]   Temporary failure resolving 'deb.debian.org'
 [2025-06-23T15:51:42Z] Reading package lists...
 [2025-06-23T15:51:42Z] W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'deb.debian.org'
 [2025-06-23T15:51:42Z] W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'deb.debian.org'
 [2025-06-23T15:51:42Z] W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'deb.debian.org'
 [2025-06-23T15:51:42Z] W: Some index files failed to download. They have been ignored, or old ones used instead.
 [2025-06-23T15:51:42Z]  
 [2025-06-23T15:51:42Z] Reading package lists...
 [2025-06-23T15:51:42Z] Building dependency tree...
 [2025-06-23T15:51:42Z] Reading state information...
 [2025-06-23T15:51:42Z] E: Unable to locate package python3
 [2025-06-23T15:51:42Z] E: Unable to locate package python3-pip
 [2025-06-23T15:51:42Z] E: Unable to locate package libglib2.0-0
 [2025-06-23T15:51:42Z] E: Couldn't find any package by glob 'libglib2.0-0'
 [2025-06-23T15:51:42Z] E: Couldn't find any package by regex 'libglib2.0-0'
 [2025-06-23T15:51:42Z] E: Unable to locate package libgl1-mesa-glx
 [2025-06-23T15:51:42Z] E: Unable to locate package wget
 [2025-06-23T15:51:42Z] E: Unable to locate package git
 [2025-06-23T15:51:42Z]  
✖ Failed to build oakapp package. Reason: Failed to build application container: Container service encountered a runc error: StdErr: exit: exit status: 100, stdout: , stderr:      

What can thee problem be?

Thanks!

Alessandro

  • jakaskerl replied to this.
  • AlessandroB
    You can use oakctl when the new OS goes public (1.18+).
    oakctl device update to update to latest release. Then you can do
    oakctl app exec -i <container-id> /bin/bash to attach.

    Keep in mind that the update to 1.18+ will lock the SSH so if you use it now, you will have to redo the setup or manually re-enable it.

    Thanks,
    Jaka

    AlessandroB
    Hmm, seems like you don't have internet access.

    AlessandroB [2025-06-23T15:51:02Z]   Temporary failure resolving 'deb.debian.org'

    Thanks,
    Jaka

      Hi jakaskerl ,

      I don't think that this is the problem, as from the device I'm able to ping external websites, as such google.com.

        AlessandroB
        From the device, yes. But looks like the issue is access from within the container. Which OS version do you have on the OAK4 and which oakctl version? cc @Ales

        Thanks,
        Jaka

        @jakaskerl,

        Here you are the screenshot containing the information that you requested. I don't know how to ping from within the docker.

        Thanks,

        Alessandro

        Hi @jakaskerl ,

        I get the same error also after updating to 1.14.1.

        Just as a note: the OAK device is connected to my PC that shares with the camera its wireless internet connection. As I've already said, from the device terminal I can ping external websites, deb.debian.org included.

        Thanks

        18 days later

        Hey @AlessandroB ,
        What's the output of this command for you:
        ssh root@192.168.10.15 "ping deb.debian.org"

        I would just like to double check that your camera has a connection to the internet.
        Thanks!
        Filip

          Hi filipjeretina ,

          Please find in attachment the result of the ping command.

          I share with OAK the internet connection of my laptop.

          I modified /etc/resolv.conf (please find the file screenshot in attachment). I have to modify it any time I power up the system, I guess that it is part of the filesystem image.

          Thanks!

          Alessandro

            Hey @AlessandroB
            Okay, that explains it more. I think your networking setup should work if you copy your custom /etc/resolv.conf into the container, could you try that?
            Thanks

              Hi filipjeretina ,

              I'm running oakctl on my host pc. How can I copy the file into the container?

              Thanks!

              Alessandro

              Hey @AlessandroB ,
              You can edit the oakapp.toml file to copy the resolv.conf to /etc/resolv.conf in the container.

              Here is the line to add to oakapp.toml under the prepare_container section:

                  { type = "COPY", source = "path-to-local-resolv.conf", target = "/etc/resolv.conf" },

              path-to-local-resolv.conf is the path to the local copy of the /etc/resolv.conf from the device.

              Thanks,
              Filip

              Hi filipjeretina ,

              I'm now able to connect, but I'm getting a different error:

              [2025-07-17T15:41:00Z] WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fa2baa290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolut
              ion')': /simple/depthai/

              [2025-07-17T15:42:27Z] ERROR: Could not find a version that satisfies the requirement depthai==3.0.0rc2 (from versions: none)
               [2025-07-17T15:42:27Z] ERROR: No matching distribution found for depthai==3.0.0rc2

              Second question: in the toml file do I have to use the paths of the host PC of the device filesystem?

              Cheers

              Alessandro

              Hey @AlessandroB ,
              I think the issue is the same as before, but now in the build container. You can edit the prepare_build_container steps in the oakapp.toml file to include the same line as you added to prepare_container:

                  { type = "COPY", source = "path-to-local-resolv.conf", target = "/etc/resolv.conf" },

              Second question: in the toml file do I have to use the paths of the host PC of the device filesystem?

              That depends on the context of the command. For RUN commands for example, you will always use paths of the device file system (inside container). When using a COPY command the source is the path on the host system, and the target is the path of the device fs (inside container)

              All the best,
              Filip

              Hi @filipjeretina ,

              I modified the toml file as you suggested, but I keep on getting this error:

              Processing layer build ...
              Processing layer frontend ...
              Processing layer app ...
               [2025-07-17T17:04:42Z] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
              ror('<pip.vendor.urllib3.connection.HTTPSConnection object at 0x7f8059d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name res
              olution')': /simple/depthai/                                                                                                                                 
               [2025-07-17T17:05:03Z] WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
              ror('<pip.
              vendor.urllib3.connection.HTTPSConnection object at 0x7f7fcfad10>: Failed to establish a new connection: [Errno -3] Temporary failure in name res
              olution')': /simple/depthai/                                                                                                                                 
               [2025-07-17T17:05:24Z] WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
              ror('<pip.vendor.urllib3.connection.HTTPSConnection object at 0x7f805bd1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name res
              olution')': /simple/depthai/                                                                                                                                 
               [2025-07-17T17:05:46Z] WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
              ror('<pip.
              vendor.urllib3.connection.HTTPSConnection object at 0x7f7fd0c4d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name res
              olution')': /simple/depthai/                                                                                                                                 
               [2025-07-17T17:06:10Z] WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
              ror('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f7fd0f6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name res
              olution')': /simple/depthai/                                                                                                                                 
               [2025-07-17T17:06:30Z] ERROR: Could not find a version that satisfies the requirement depthai==3.0.0rc2 (from versions: none)
               [2025-07-17T17:06:30Z] ERROR: No matching distribution found for depthai==3.0.0rc2
               [2025-07-17T17:06:30Z]  
              ✖ Failed to build oakapp package. Reason: Failed to build application container: Container service encountered a runc error: StdErr: exit: exit status: 1, s
              tdout: , stderr:                                                                           
              All the best

              Alessandro

                AlessandroB

                1. Does docker work as expected: if you create a container and try to access the network from there, does that work or do you run into a similar issue. Make sure you run the container in host mode, not bridge.

                2. Can you explain your network topology. We'd like to reproduce the issue on our side so we can find the issue.

                Thanks,
                Jaka

                Hi @jakaskerl ,

                My laptop is connected to a company network in wireless, then I connect the OAK to the laptop P2P (I actually use a switch just for PoE).

                When I power the OAK up I need to update the date and the time, otherwise I can't download data because of time mismatch. Then I need to update the /etc/resolv,conf file to use the google DNS (as shown previously in this thread).

                I took your human_pose application and updated the toml file by addding in prepare_container: { type = "COPY", source = "/data/resolv.conf", target = "/etc/resolv.conf" }. I had to copy the resolv.conf file in the device /data folder, otherwise the device doesn't connect to the internet (I'm a bit surprised as I thought it would work even copying from /app/resolv.conf as I put this file in the application folder too, but it doesn't work).

                Then I launch oakctl app run . . The building correctly starts and I see that it correctly run the apt-get update and install commands in prepare_container. Build and application layers are processed too, but when it comes to process the layer app, I get:    [2025-07-22T08:29:28Z] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip.vendor.urllib3.connection.HTTPSConnection object at 0x7f804f8f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resol
                ution')': /simple/depthai/                                                                                                                                                                                                                                                                                                   
                   [2025-07-22T08:29:48Z] WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip.
                vendor.urllib3.connection.HTTPSConnection object at 0x7f804f9c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resol
                ution')': /simple/depthai/                                                                                                                                                                                                                                                                                                   
                   [2025-07-22T08:30:10Z] WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip.vendor.urllib3.connection.HTTPSConnection object at 0x7f804fab90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resol
                ution')': /simple/depthai/                                                                                                                                                                                                                                                                                                   
                   [2025-07-22T08:30:32Z] WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip.
                vendor.urllib3.connection.HTTPSConnection object at 0x7f804fb590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resol
                ution')': /simple/depthai/                                                                                                                                                                                                                                                                                                   
                   [2025-07-22T08:30:56Z] WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f80508210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resol
                ution')': /simple/depthai/                                                                                                                                                                                                                                                                                                   
                   [2025-07-22T08:31:16Z] ERROR: Could not find a version that satisfies the requirement depthai==3.0.0rc2 (from versions: none)
                   [2025-07-22T08:31:16Z] ERROR: No matching distribution found for depthai==3.0.0rc2
                   [2025-07-22T08:31:16Z]  
                 Failed to read develop logs. Reason: Failed to build application container: Container service encountered a runc error: StdErr: exit: exit status: 1, stdout: , stderr:

                Nonetheless, I'm sure the device is connected to the Internet, otherwise it wouldn't download the apt packages. It seems that it can't download depthai==3.0.0rc2, but I can't double check, as pip is not installed in the device outside the docker and I don't know how to access the docker.

                Both pypi.org and artifacts.luxonis.com can be pinged form the device.

                What can I test more?

                Thanks!

                Alessandro

                The laptop P2P wired connection is set up so that the internet connection is shared. In fact, the device can access the internet.

                7 days later