Can not install gui-webrtc-container docker, GITLAB_TOKEN is not set

Hello,
I’m trying to follow the instruction on how to install the docker:
https://docs.nvidia.com/nsight-systems/UserGuide/index.html#gui-webrtc-container
but when I do
sudo ./build.sh
I get this error:

.
.
++ readlink -f /opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/build.sh
+ SCRIPT=/opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/build.sh
++ dirname /opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/build.sh
+ HERE=/opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy
+ '[' -z '' ']'
+ echo 'Error: GITLAB_TOKEN is not set'
Error: GITLAB_TOKEN is not set
+ exit 1

I can try to play with my GITLAB_TOKEN, but then I get this error:

+ wget '--header=PRIVATE-TOKEN: 123' https://gitlab-master.nvidia.com/agora/external/xf86-video-dummy/-/archive/0.3.8/xf86-video-dummy-0.3.8.tar.gz -O /opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/build/xf86-video-dummy-0.3.8.tar.gz
--2025-01-30 19:39:11--  https://gitlab-master.nvidia.com/agora/external/xf86-video-dummy/-/archive/0.3.8/xf86-video-dummy-0.3.8.tar.gz
Resolving gitlab-master.nvidia.com (gitlab-master.nvidia.com)... failed: No address associated with hostname.
wget: unable to resolve host address ‘gitlab-master.nvidia.com’

Any idea what should I do next?
Thanks

1 Like

@mpopov can you help here?

1 Like

I encountered the same issue when trying to use the NVIDIA Nsight Tools JupyterLab Extension.

It seems that gitlab-master.nvidia.com is an NVIDIA private Git server, so replacing it with an open alternative might be the best course of action. After some searching, I found that xf86-video-dummy-0.3.8.tar.gz is also available on GitHub:

I patched the following files in nsight-systems to build an xf86-video-dummy container image and successfully set up a livestream of nsys-ui in JupyterLab:

  • /opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/build.sh
  • /opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/build-internal.sh
  • /opt/nvidia/nsight-systems/2025.1.1/host-linux-x64/Scripts/WebRTCContainer/setup/3rdparty/xf86-video-dummy/Dockerfile

I am not sure why autogen.sh, which is required to generate config.h.in, was not run in the original build-internal.sh, guessing the NVIDIA’s xf86-video-dummy repository already contains a pre-generated config.h.in.

This makes me wonder if there might be some missing parts in the xf86-video-dummy container image in my patched version.

hotfix.zip (3.9 KB)

NOTE:
In build.sh, the GIT_URL and GIT_TOKEN environment variables can be used to specify the URL of a Git repository for xf86-video-dummy and the corresponding Git access credential.

For example:

GIT_URL="https://gitlab-master.nvidia.com/agora/external/xf86-video-dummy/-/archive/$VERSION/xf86-video-dummy-$VERSION.tar.gz"
GIT_TOKEN="$GITLAB_TOKEN"

@mpopov please take a look.

1 Like

@fukui_in_ai_land, @oren.a4 I recommend using this prebuilt container instead of building it locally.

We will update the documentation to reflect this change.

1 Like

@fukui_in_ai_land a new version of jupyterlab-nvidia-nsight (0.7.0) is released.
The new version of the extension uses the latest public Nsight Streamer image (and suggests pulling it if not available locally), so building the image manually is not required anymore when using the latest jupyterlab-nvidia-nsight extension.

1 Like

@hwilper @Guy_Sz
I’ve confirmed that live streaming via the new, prebuilt Nsight Streamer container works perfectly with jupyterlab-nvidia-nsight (0.7.0)!

For reference, in my setup, Docker is hosted remotely rather than locally, and JupyterLab is launched as a container on the Docker host. In this setup, Docker host address field in the settings of jupyterlab-nvidia-nsight must be specified correctly (corresponding to the ui.dockerHost in the following JSON settings).

// JSON5
{
  "nsys": {
    // ...
  },
  "ncu": {
    // ...
  },
  "ui": {
    "enabled": true,
    "host": "",
    "dockerHost": "xxx.xxx.xxx.xxx",  // <-- Docker Host
    "suppressServerAddressWarning": false,
    "defaultStreamerAddress": "http://%HOSTNAME%:8080"
  }
}

I guess this issue is no longer relevant in the latest versions and can be closed, because we don’t need to pull and build the Nsight Streamer code with GITLAB_TOKEN anymore.