Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File has unexpected size #49

Open
KKAlexKK opened this issue Jun 17, 2024 · 1 comment
Open

File has unexpected size #49

KKAlexKK opened this issue Jun 17, 2024 · 1 comment

Comments

@KKAlexKK
Copy link

KKAlexKK commented Jun 17, 2024

Hello

I had been successfully using a USB CAM with ROS2 until the update 2-3 days ago.

  1. However, after the weekend, when I tried to use it again in the same way, I encountered the following errors: File has unexpected size and etc.

  2. nvv4l2 has been bypassed and installed using v4l-utils

  3. colcon build : cmake error (magic enum)

  4. Additionally, through GPT, I managed to change the release to 3.1 and somehow access the Docker container. However, I kept failing to run colcon build due to missing packages such as gxf and image, which I had never seen before. (ros-humble-gxf-isaac-tensorops, ros-humble-isaac-ros-image-proc)

While I appreciate the version upgrade, existing users or new users might face difficulties using it. Therefore, if possible, could you test the installation from scratch by following the tutorial to ensure it works?

Also, if the issues I summarized below can be resolved by simple modifications, please provide detailed instructions on how to fix them.

Thank you in advance for your help.


#4 ros-humble-gxf-isaac-tensorops, ros-humble-isaac-ros-image-proc

The following NEW packages will be installed:
ros-humble-foxglove-msgs
0 upgraded, 1 newly installed, 0 to remove and 87 not upgraded.
Need to get 509 kB of archives.
After this operation, 8,353 kB of additional disk space will be used.
Get:1 http://packages.ros.org/ros2/ubuntu jammy/main amd64 ros-humble-foxglove-msgs amd64 2.3.0-1jammy.20240523.221334 [509 kB]
Fetched 509 kB in 4s (117 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.)
debconf: falling back to frontend: Readline
Selecting previously unselected package ros-humble-foxglove-msgs.
(Reading database ... 142976 files and directories currently installed.)
Preparing to unpack .../ros-humble-foxglove-msgs_2.3.0-1jammy.20240523.221334_amd64.deb ...
Unpacking ros-humble-foxglove-msgs (2.3.0-1jammy.20240523.221334) ...
Setting up ros-humble-foxglove-msgs (2.3.0-1jammy.20240523.221334) ...
Processing triggers for libc-bin (2.35-0ubuntu3.3) ...
ERROR: the following rosdeps failed to install
apt: command [sudo -H apt-get install -y ros-humble-isaac-ros-image-proc] failed
apt: command [sudo -H apt-get install -y ros-humble-gxf-isaac-tensorops] failed
apt: Failed to detect successful installation of [ros-humble-isaac-ros-image-proc]
apt: Failed to detect successful installation of [ros-humble-gxf-isaac-tensorops]


#1 file has unexpected size

+] Building 228.5s (7/19) docker:default
=> [internal] load build definition from Dockerfile.x86_64 0.0s
=> => transferring dockerfile: 6.04kB 0.0s
=> [internal] load metadata for nvcr.io/nvidia/tritonserver:23.10-py3 1.3s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [stage-0 1/16] FROM nvcr.io/nvidia/tritonserver:23.10-py3@sha256:83513cb05c7e53ada093cab904daa8861d5b8bc67d75dd 0.0s

=> ERROR [stage-0 4/16] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y wg 227.1s

[stage-0 4/16] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y wget gnupg && wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | gpg --dearmor -o /usr/share/keyrings/isaac-ros-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/isaac-ros-archive-keyring.gpg] https://isaac.download.nvidia.com/isaac-ros/release-3 $(lsb_release -cs) release-3.0" | tee /etc/apt/sources.list.d/isaac-ros.list && apt-get update -o Acquire::http::No-Cache=True --allow-insecure-repositories || (sleep 30 && apt-get update -o Acquire::http::No-Cache=True --allow-insecure-repositories) || (sleep 60 && apt-get update -o Acquire::http::No-Cache=True --allow-insecure-repositories) || (sleep 120 && apt-get update -o Acquire::http::No-Cache=True --allow-insecure-repositories):
0.426 Hit:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease

6.444 Ign:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages
6.487 Get:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages [29.8 kB]
6.487 Err:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages
**6.487   File has unexpected size (30010 != 29756). Mirror sync in progress? [IP: 192.229.232.31 443]
6.487   Hashes of expected file:
6.487    - Filesize:29756 [weak]
6.487    - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
6.488    - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
6.488    - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]
6.488   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000**
7.020 Fetched 3429 B in 2s (1862 B/s)
7.020 Reading package lists...
8.040 E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/release-3/dists/jammy/release-3.0/binary-amd64/Packages.gz  File has unexpected size (30010 != 29756). Mirror sync in progress? [IP: 192.229.232.31 443]
8.040    Hashes of expected file:
8.040     - Filesize:29756 [weak]
8.040     - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
8.040     - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
8.040     - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]
8.040    Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
8.040 E: Some index files failed to download. They have been ignored, or old ones used instead.
38.50 Hit:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease
38.51 Get:2 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy InRelease [3429 B]
38.54 Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
~~~~~~
39.07 Ign:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages
39.11 Get:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages [29.8 kB]
39.11 Err:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy/release-3.0 amd64 Packages
**39.11   File has unexpected size (30010 != 29756). Mirror sync in progress? [IP: 192.229.232.31 443]
39.11   Hashes of expected file:
39.11    - Filesize:29756 [weak]
39.11    - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
39.11    - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
39.11    - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]**
39.11   Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
40.07 Reading package lists...
41.08 E: Failed to fetch https://isaac.download.nvidia.com/isaac-ros/release-3/dists/jammy/release-3.0/binary-amd64/Packages.gz  File has unexpected size (30010 != 29756). Mirror sync in progress? [IP: 192.229.232.31 443]
41.08    Hashes of expected file:
41.08     - Filesize:29756 [weak]
41.08     - SHA256:52e020ceb7e96ff56fe91d46c186552ba0f16eeed519c7e2f14c35b2b8ab2062
41.08     - SHA1:1eec0f5f970fa4757bf9eb7527880359d4084d7f [weak]
41.08     - MD5Sum:7e41bd8552c5ddd8a7292feacdbd4555 [weak]
41.08    Release file created at: Sat, 15 Jun 2024 03:14:19 +0000
41.08 E: Some index files failed to download. They have been ignored, or old ones used instead.

-------------------------------

#2 nvv4l2 

[+] Building 282.3s (13/19)                                                                                 docker:default
 => [internal] load build definition from Dockerfile.x86_64                                                           0.0s
 => => transferring dockerfile: 6.04kB                                                                                0.0s
 => [internal] load metadata for nvcr.io/nvidia/tritonserver:23.10-py3                                                0.3s
 => [internal] load .dockerignore                                                                                     0.0s
 => => transferring context: 2B                                                                                       0.0s
 => [stage-0  1/16] FROM nvcr.io/nvidia/tritonserver:23.10-py3@sha256:83513cb05c7e53ada093cab904daa8861d5b8bc67d75dd  0.0s
 => CACHED [stage-0  2/16] RUN mkdir -p /opt/nvidia/isaac_ros_dev_base && dpkg-query -W | sort > /opt/nvidia/isaac_r  0.0s
 => CACHED [stage-0  3/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y      0.0s
 => CACHED [stage-0  4/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y wge  0.0s
 => [stage-0  5/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y         a  73.2s
 => [stage-0  6/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y         p  23.6s 
 => [stage-0  7/16] RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1                       0.1s 
 => [stage-0  8/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y           131.3s 
 => [stage-0  9/16] RUN python3 -m pip install -U         argcomplete         autopep8         flake8==4.0.1         49.5s 
 => ERROR [stage-0 10/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y       4.3s 
------                                                                                                                     
 > [stage-0 10/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get update && apt-get install -y         nvv4l2     && ln -s /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1 /usr/lib/x86_64-linux-gnu/libnvcuvid.so     && ln -s /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.1 /usr/lib/x86_64-linux-gnu/libnvidia-encode.so:                                               
0.469 Hit:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease                          
0.561 Hit:2 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy InRelease                                          
0.733 Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
0.786 Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
0.972 Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
1.156 Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
2.138 Reading package lists...
3.083 W: Skipping acquire of configured file 'release-3.1/binary-amd64/Packages' as repository 'https://isaac.download.nvidia.com/isaac-ros/release-3 jammy InRelease' doesn't have the component 'release-3.1' (component misspelt in sources.list?)
3.127 Reading package lists...
5.052 Building dependency tree...
4.250 Reading state information...
4.260 E: Unable to locate package nvv4l2
------
Dockerfile.x86_64:120
--------------------
 119 |     # Install nvv4l2 for GXF Multimedia h264 codec
 120 | >>> RUN --mount=type=cache,target=/var/cache/apt \
 121 | >>>     apt-get update && apt-get install -y \
 122 | >>>         nvv4l2 \
 123 | >>>     && ln -s /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1 /usr/lib/x86_64-linux-gnu/libnvcuvid.so \
 124 | >>>     && ln -s /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.1 /usr/lib/x86_64-linux-gnu/libnvidia-encode.so
 125 |     
--------------------
ERROR: failed to solve: process "/bin/bash -c apt-get update && apt-get install -y         nvv4l2     && ln -s /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1 /usr/lib/x86_64-linux-gnu/libnvcuvid.so     && ln -s /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.1 /usr/lib/x86_64-linux-gnu/libnvidia-encode.so" did not complete successfully: exit code: 100
~/workspaces/isaac_ros-dev/src/isaac_ros_common

------------------------
#3 colcon build : Cmake error (magic_enum::magic_enum)

Finished <<< gxf_isaac_messages [3.62s]                                                                     
Starting >>> isaac_ros_nitros_bridge_interfaces
--- stderr: isaac_ros_launch_utils                                                                               
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
---
Finished <<< isaac_ros_launch_utils [2.33s]
Starting >>> usb_cam
--- stderr: isaac_ros_nitros                                                                                        
CMake Error at /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_library.cmake:66 (add_library):
  Target "isaac_ros_nitros" links to target "magic_enum::magic_enum" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:76 (ament_auto_add_library)


CMake Error at /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_library.cmake:66 (add_library):
  Target "nitros_empty_forward_node" links to target "magic_enum::magic_enum"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:102 (ament_auto_add_library)


CMake Generate step failed.  Build files cannot be regenerated correctly.
---
Failed   <<< isaac_ros_nitros [3.39s, exited with code 1]
Aborted  <<< isaac_ros_nitros_bridge_interfaces [2.96s]                                         
Aborted  <<< isaac_ros_bi3d_interfaces [5.82s]                                                                      
Aborted  <<< usb_cam [4.73s]                    
@j3soon
Copy link

j3soon commented Oct 11, 2024

For the File has unexpected size error in my case, it may be fixed through running sudo apt update in the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants