NVIDIA-ISAAC-ROS / isaac_ros_visual_slam

Visual SLAM/odometry package based on NVIDIA-accelerated cuVSLAM
https://developer.nvidia.com/isaac-ros-gems
Apache License 2.0
819 stars 127 forks source link

cannot build docker image #59

Closed Neathle closed 1 year ago

Neathle commented 1 year ago

Following the instructions in the repository to setup the environment, the following error appears:

isaac_ros_dev not specified, assuming /home/neathle/workspaces/isaac_ros-dev
Building x86_64.humble.nav2.user base as image: isaac_ros_dev-x86_64 using key x86_64.humble.nav2.user
Using base image name not specified, using ''
Using docker context dir not specified, using Dockerfile directory
Resolved the following Dockerfiles for target image: x86_64.humble.nav2.user
/home/neathle/workspaces/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.user
/home/neathle/workspaces/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.x86_64.humble.nav2
Building /home/neathle/workspaces/isaac_ros-dev/src/isaac_ros_common/scripts/../docker/Dockerfile.x86_64.humble.nav2 as image: x86_64-humble-nav2-image with base: 
[+] Building 0.4s (3/3) FINISHED                                                              
 => [internal] load build definition from Dockerfile.x86_64.humble.nav2                  0.1s
 => => transferring dockerfile: 573B                                                     0.0s
 => [internal] load .dockerignore                                                        0.1s
 => => transferring context: 2B                                                          0.0s
 => ERROR [internal] load metadata for nvcr.io/nvidia/isaac/ros:x86_64-humble-nav2_5bd6  0.2s
------
 > [internal] load metadata for nvcr.io/nvidia/isaac/ros:x86_64-humble-nav2_5bd606e569673db8cb1f78f393a5c46b:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch anonymous token: unexpected status: 401 Unauthorized
Failed to build base image: isaac_ros_dev-x86_64, aborting.
~/workspaces/isaac_ros-dev/src/isaac_ros_common

My system:

Note: The log was much longer the first time, but I am unable to remove the cached result and it fails instantly now with the error above.

swapnesh-wani-nvidia commented 1 year ago

Can you try to get the full log of the error? You can prune the docker image cache and it will start from scratch again.

docker builder prune

Neathle commented 1 year ago

I tried to build it again and it worked correctly, I don't know what may have caused it but I am unable to replicate the error. thank you for the help!

13randNEW commented 1 year ago
[+] Building 610.7s (3/4)                                                                                               
[+] Building 610.9s (3/4)                                                                                                 
[+] Building 794.6s (4/4) FINISHED                                                                                          
 => [internal] load build definition from Dockerfile.x86_64.humble.nav2                                                0.2s
 => => transferring dockerfile: 57B                                                                                    0.0s
 => [internal] load .dockerignore                                                                                      0.2s
 => => transferring context: 2B                                                                                        0.0s
 => [internal] load metadata for nvcr.io/nvidia/isaac/ros:x86_64-humble-nav2_5bd606e569673db8cb1f78f393a5c46b          2.5s
 => ERROR [1/1] FROM nvcr.io/nvidia/isaac/ros:x86_64-humble-nav2_5bd606e569673db8cb1f78f393a5c46b@sha256:feb709e3a4  791.4s
 => => resolve nvcr.io/nvidia/isaac/ros:x86_64-humble-nav2_5bd606e569673db8cb1f78f393a5c46b@sha256:feb709e3a48fe8094c  0.2s
 => => sha256:feb709e3a48fe8094c7f407ba30a2e7ec67c8f2eb0feb20b6772cf4d2e5ec5ae 12.53kB / 12.53kB                       0.0s
 => => sha256:65a4a63cc7533aeec847ea74aa642c6f8f0d9d124f2038d362e56b2b1fbc3804 48.17kB / 48.17kB                       0.0s
 => => sha256:fd80d866e8b2ff78a68c620497903eb44081012e30e3239c61de1e2c6b748ac1 110.23MB / 110.23MB                    34.7s
 => => sha256:a364ca75fd6d4ad75fe074251b9ac69c7521ff74b860cdecfc2401587f09ee4b 116.11MB / 116.11MB                    34.9s
 => => sha256:3b65ec22a9e96affe680712973e88355927506aa3f792ff03330f3a3eb601a98 28.57MB / 28.57MB                       9.5s
 => => extracting sha256:3b65ec22a9e96affe680712973e88355927506aa3f792ff03330f3a3eb601a98                              1.1s
 => => sha256:3d4731d036239d51c0c1a77b6bff6e6242fe552ef601719bd1cacb8740bf698f 182.12kB / 182.12kB                     9.9s
 => => sha256:53a5c2e0251f34ce84043000bfa7ea77c6baa942935d5a80580388d3e46838c1 2.14GB / 2.14GB                       656.5s
 => => extracting sha256:fd80d866e8b2ff78a68c620497903eb44081012e30e3239c61de1e2c6b748ac1                              3.6s
 => => sha256:3036e9b94123509fbf81b52235cb6e21d5d714933dbaab6fc58e6e51b9a4dd68 188B / 188B                            35.3s
 => => sha256:b00ff40d02d99db4fce69d33e9fd0ace6bcd2292c03907826c7e38b025882da7 11.54kB / 11.54kB                      35.5s
 => => sha256:453fdcdda78825ff232cbce7f4bd0ae25dfa3f756c2869e3169b2a120640a440 5.11kB / 5.11kB                        35.7s
 => => sha256:35e12ec5e515230cc02bf7040ca566e6b0e4f5e3fd32e01511bf506189fdc3e9 139.30kB / 139.30kB                    35.9s
 => => sha256:11f61a475a23754fa279f9f84a669f19415933b841978b4868d02b91a1a43176 40.75MB / 40.75MB                      49.4s
 => => sha256:24280cf31c9a111673f8394349433e7904a49ae048bacf0380374dac071e8a6e 89.19MB / 89.19MB                      65.3s
 => => extracting sha256:a364ca75fd6d4ad75fe074251b9ac69c7521ff74b860cdecfc2401587f09ee4b                              3.0s
 => => extracting sha256:3d4731d036239d51c0c1a77b6bff6e6242fe552ef601719bd1cacb8740bf698f                              0.0s
 => => sha256:79007799e2ed7d584e6296ffffafc3dbae96db80df886f6845664fcd3112b013 509B / 509B                            49.7s
 => => sha256:03eb76abf1e52325e71eed4462c1391c1cdde9dd1b75bd78add84242a520939d 343.55MB / 343.55MB                   135.0s
 => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B                              65.8s
 => => sha256:8c80ae8980cd1fefc4b4522958aae6018410bbd7492094ead62169638e40d89c 1.85kB / 1.85kB                        67.6s
 => => sha256:3918bec26dcf39f00afc887c378194a4f4838ce5e1ffb46e6f4c73368bfce5e0 33.50MB / 33.50MB                      78.6s
 => => sha256:5988980892dda6db749802b370916c8623fb350b065ed609138e5a352420503b 223.80MB / 223.80MB                   134.1s
 => => sha256:f4e9023647899264f627b47c0f0595c10dd76cd6bbf0a7181d1e6d9373af5cd7 11.81kB / 11.81kB                     135.1s
 => => sha256:9e630d0e3180bb37587bc1b3fd0f8203e45bb92059d08d3c4fe35d7b129aa51a 57.24MB / 57.24MB                     149.2s
 => => sha256:140ee16889c1b8ef309d95d7d4adb40a3add7c6f9a572300a728fdfaae77ad75 154B / 154B                           135.6s
 => => sha256:da88e5d79c6fc51b8e6995c96f1c0a7345c988b388e1ea3863ca9d10e0a462ce 755B / 755B                           136.0s
 => => sha256:f61455589e436e6db00c154de95581da4aa0a288f7d1deae8870cf34d5148be4 2.17GB / 2.40GB                       791.4s
 => => sha256:4363df7b85e8bc91d1a4c74ac869d9580741436763471f473171a1987236bea2 2.80MB / 2.80MB                       150.4s
 => => sha256:6e5e8533bd39771e6e16d7db8b3f2609d6dfad106a884b4a3e5b177a7869c58b 1.96kB / 1.96kB                       150.8s
 => => sha256:7435ea83957c0a85e3bfaa34219d1983c261278ed87eb9b711161250c4749387 199.25kB / 199.25kB                   151.2s
 => => sha256:0dc9580c24018ab8e7f572efdb1fdd3613ad459cb139c8fedfdcc5f9db778897 69.03MB / 69.03MB                     174.1s
 => => sha256:15be8ac186169f2d4eaaa2906aeee312de37743d10a6a18e6f3070d4244e14da 15.07kB / 15.07kB                     174.5s
 => => sha256:2d20876aec99b389f249923989ebaeeb67458b35be05627237d382f0b14db1ac 15.00MB / 15.00MB                     179.7s
 => => sha256:b27a26b8bc548619c2d6a33fcb5a6ecbd5ce999ef91884ee1609442db9abb93a 81.63MB / 81.63MB                     206.9s
 => => sha256:77e8e1895580d457c1c21ce908616f6acd3d8e233417ec93a268d9ea127e03b8 275.85MB / 275.85MB                   296.4s
 => => sha256:58486e24d700195ebfba50bd405a6363f4bd66d10ffc78df9e89c3fa9d77a60b 165.89MB / 165.89MB                   350.3s
 => => sha256:ef9047d558d39786bfe6b912eaa37e430514e2df0ea637fa1f59bc946bf0ba8a 9.07MB / 9.07MB                       354.1s
 => => sha256:2020f0da6e655adf2feb7282edc7028dc21c684485c4c5dbb7d0f250484ed418 18.32MB / 18.32MB                     360.8s
 => => sha256:e89c028f35a62e7f7415931e22686696de45b9db14ede0c939f1598a50628780 685.44MB / 685.44MB                   587.1s
 => => sha256:57dc833364e934ba1e704838f2253f8ef1a33aa8fba2ffb3d4a6a93345692b11 746.59MB / 3.75GB                     791.4s
 => => extracting sha256:53a5c2e0251f34ce84043000bfa7ea77c6baa942935d5a80580388d3e46838c1                             66.6s
 => => sha256:0e8234224d83a900faddbcb8e9335961ba1b9128e1c066a6b16b2ba90a986b3c 74.47MB / 74.47MB                     684.6s
 => => sha256:ae4316a64573a21aa90e3502b336d68708d7b3a20381bca5932e6d97d7cc95b9 0B / 67.03kB                          791.4s
 => => extracting sha256:b00ff40d02d99db4fce69d33e9fd0ace6bcd2292c03907826c7e38b025882da7                              0.0s
 => => extracting sha256:3036e9b94123509fbf81b52235cb6e21d5d714933dbaab6fc58e6e51b9a4dd68                              0.0s
 => => extracting sha256:453fdcdda78825ff232cbce7f4bd0ae25dfa3f756c2869e3169b2a120640a440                              0.0s
 => => extracting sha256:35e12ec5e515230cc02bf7040ca566e6b0e4f5e3fd32e01511bf506189fdc3e9                              0.0s
 => => extracting sha256:11f61a475a23754fa279f9f84a669f19415933b841978b4868d02b91a1a43176                              1.6s
 => => extracting sha256:24280cf31c9a111673f8394349433e7904a49ae048bacf0380374dac071e8a6e                              2.5s
 => => extracting sha256:79007799e2ed7d584e6296ffffafc3dbae96db80df886f6845664fcd3112b013                              0.0s
 => => extracting sha256:03eb76abf1e52325e71eed4462c1391c1cdde9dd1b75bd78add84242a520939d                             13.4s
 => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1                              0.0s
 => => extracting sha256:8c80ae8980cd1fefc4b4522958aae6018410bbd7492094ead62169638e40d89c                              0.0s
 => => extracting sha256:3918bec26dcf39f00afc887c378194a4f4838ce5e1ffb46e6f4c73368bfce5e0                              1.4s
 => => extracting sha256:5988980892dda6db749802b370916c8623fb350b065ed609138e5a352420503b                              6.4s
 => => extracting sha256:f4e9023647899264f627b47c0f0595c10dd76cd6bbf0a7181d1e6d9373af5cd7                              0.0s
 => => extracting sha256:9e630d0e3180bb37587bc1b3fd0f8203e45bb92059d08d3c4fe35d7b129aa51a                              1.9s
 => => extracting sha256:140ee16889c1b8ef309d95d7d4adb40a3add7c6f9a572300a728fdfaae77ad75                              0.0s
 => => extracting sha256:da88e5d79c6fc51b8e6995c96f1c0a7345c988b388e1ea3863ca9d10e0a462ce                              0.0s
------
 > [1/1] FROM nvcr.io/nvidia/isaac/ros:x86_64-humble-nav2_5bd606e569673db8cb1f78f393a5c46b@sha256:feb709e3a48fe8094c7f407ba30a2e7ec67c8f2eb0feb20b6772cf4d2e5ec5ae:
------
failed to copy: httpReadSeeker: failed open: failed to authorize: rpc error: code = Unknown desc = failed to fetch anonymous token: unexpected status: 401 Unauthorized
Failed to build base image: isaac_ros_dev-x86_64, aborting.
~/workspaces/isaac_ros-dev/src/isaac_ros_common

I could not build with the same problem. I cannot solve it. My system:

HannahHaensen commented 1 year ago

@13randNEW have you solved it ? I run into the same error

i found: https://forums.developer.nvidia.com/t/build-error-with-isaac-ros-visual-slam/243967/7

Neathle commented 1 year ago

I used the prune command and restarted the computer and it worked fine. I think it has more to do with nvidia servers

HannahHaensen commented 1 year ago

ok for me the nvidia forum trick worked as well. mhmm restarting and prune did not do the trick for me! but good to know thanks!