Text-generation-webu build errors

I’m new to working with my Jetson Orin Nano 8gb development kit. I installed the latest jetpack 6 and docker and ran the setup and install scripts for the jetson-containers project on GitHub. However I can’t get text-generation-webui to run, no matter what I’ve tried. I’ve got ubuntu 22.04 running on a bootable 500gb ssd. I can run the docker container for the module but docker inspect shows an empty IP and port and I have no way to connect to the web app.

Running jetson-containers build text-generation-webui command generates a number of errors. I’ve posted a tail of the ouput below in the hopes that someone can explain the problem(s) and help me to work through them.

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 198, in _new_conn
    sock = connection.create_connection(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 85, in create_connection
    raise err
  File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
    response = self._make_request(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 493, in _make_request
    conn.request(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 494, in request
    self.endheaders()
  File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "/usr/lib/python3.10/http/client.py", line 976, in send
    self.connect()
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 325, in connect
    self.sock = self._new_conn()
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 213, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xffff86300880>: Failed to establish a new connection: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 644, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 871, in urlopen
    return self.urlopen(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 871, in urlopen
    return self.urlopen(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 871, in urlopen
    return self.urlopen(
  [Previous line repeated 2 more times]
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 841, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 519, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /jp6/cu126 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff86300880>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/twine", line 7, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/twine/__main__.py", line 33, in main
    error = cli.dispatch(sys.argv[1:])
  File "/usr/local/lib/python3.10/dist-packages/twine/cli.py", line 139, in dispatch
    return main(args.args)
  File "/usr/local/lib/python3.10/dist-packages/twine/commands/upload.py", line 258, in main
    return upload(upload_settings, parsed_args.dists)
  File "/usr/local/lib/python3.10/dist-packages/twine/commands/upload.py", line 202, in upload
    resp = repository.upload(package)
  File "/usr/local/lib/python3.10/dist-packages/twine/repository.py", line 165, in upload
    resp = self._upload(package)
  File "/usr/local/lib/python3.10/dist-packages/twine/repository.py", line 151, in _upload
    resp = self.session.post(
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 677, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /jp6/cu126 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff86300880>: Failed to establish a new connection: [Errno 111] Connection refused'))
failed to upload wheel to http://localhost/jp6/cu126
Installing nvidia-cutlass for Python 3.10
+ echo 'failed to upload wheel to http://localhost/jp6/cu126'
+ '[' 3.10 == 3.12 ']'
+ echo 'Installing nvidia-cutlass for Python 3.10'
+ python3 -c 'import cutlass'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'cutlass'
The command '/bin/sh -c /tmp/cutlass/install.sh || /tmp/cutlass/build.sh' returned a non-zero code: 1
[20:59:39] ===================================================================================== 
[20:59:39] ===================================================================================== 
[20:59:39] 💣 `jetson-containers build` failed after 1314.8 seconds (21.9 minutes) 
[20:59:39] Error: Command 'DOCKER_BUILDKIT=0 docker build --network=host   --tag text-generation-webui:r36.4.tegra-aarch64-cu126-22.04-cutlass   --file /home/glenn/git/jetson-containers/packages/cuda/cutlass/Dockerfile   --build-arg BASE_IMAGE=text-generation-webui:r36.4.tegra-aarch64-cu126-22.04-cuda-python   --build-arg CUTLASS_VERSION="4.2.0"    /home/glenn/git/jetson-containers/packages/cuda/cutlass 2>&1 | tee /home/glenn/git/jetson-containers/logs/20250826_203744/build/22o29_text-generation-webui_r36.4.tegra-aarch64-cu126-22.04-cutlass.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 1. 
[20:59:39] ===================================================================================== 
[20:59:39] ===================================================================================== 
[20:59:39] Failed building:  text-generation-webui


*** Please note that this reply is generated by LLM automatically ***

I’d be happy to help you troubleshoot the issues you’re facing with running the text-generation-webui on your Jetson Orin Nano 8GB development kit.

Firstly, let’s break down the components involved:

  1. Jetson Orin Nano 8GB: This is the development kit you’re using, which is a powerful AI computing platform.
  2. JetPack 6: This is the software development kit (SDK) you’ve installed, which provides a comprehensive set of tools and libraries for developing AI applications on the Jetson platform.
  3. Docker: This is a containerization platform that allows you to package and run applications in isolated environments.
  4. Jetson-containers project: This is a GitHub project that provides pre-built Docker containers for various AI applications, including the text-generation-webui.
  5. Text-generation-webui: This is the specific application you’re trying to run, which is a web-based interface for generating text using AI models.

Now, let’s analyze the issues you’re facing:

  1. Empty IP and port: When you run docker inspect, it shows an empty IP and port. This suggests that the container is not exposing any ports or IP addresses, which is required for accessing the web app.
  2. Errors when running the command: You’ve posted a tail of the output, which indicates that there are errors occurring when you try to run the command.

To help you troubleshoot these issues, I’ll provide some general guidance and potential solutions:

  1. Check the Docker container logs: Run docker logs -f <container_name> to see the output of the container. This may give you more information about what’s going wrong.
  2. Verify the Docker container configuration: Check the docker-compose.yml file or the docker run command to ensure that the container is configured correctly. Make sure that the ports and IP addresses are exposed correctly.
  3. Check the network configuration: Ensure that the network configuration on your Jetson Orin Nano is correct. You can check the network settings using ifconfig or ip addr show.
  4. Try running the container with a different port: Try running the container with a different port number to see if that resolves the issue.
  5. Check the application logs: If the container is running, but you’re still unable to access the web app, check the application logs to see if there are any errors occurring.

Comparing your setup to the documentation, I notice that you’ve installed the latest JetPack 6 and Docker, which is correct. However, I would recommend checking the specific documentation for the text-generation-webui application to ensure that you’re following the correct setup and configuration instructions.

Additionally, you may want to try running the container with a different configuration or environment variables to see if that resolves the issue.

If none of these suggestions help, please provide more details about the errors you’re seeing, and I’ll do my best to assist you further.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

Please try to configure the server before building the container.

https://github.com/dusty-nv/jetson-containers?tab=readme-ov-file#cuda-containers-for-edge-ai–robotics

please use pypi.jetson-ai-lab.io by setting the enviroment variable INDEX_HOST=jetson-ai-lab.io in .env file.

Thanks.

I did a complete reinstall of the jettison-containers repo, deleted previous-built containers and images from docker, followed the setup instructions, including setting INDEX_HOST in .env, and ran the command, jetson-containers build text-generation-webui. Still failing to run. Here’s the printout now:

+ apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
  Couldn't create temporary file /tmp/apt.conf.WfakW6 for passing config to apt-key
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [128 kB]
Err:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
  Couldn't create temporary file /tmp/apt.conf.v8Vlym for passing config to apt-key
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [127 kB]
Err:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
  Couldn't create temporary file /tmp/apt.conf.6WuoPf for passing config to apt-key
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]
Err:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
  Couldn't create temporary file /tmp/apt.conf.aWkj5T for passing config to apt-key
Reading package lists...
W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy InRelease: Couldn't create temporary file /tmp/apt.conf.WfakW6 for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease: Couldn't create temporary file /tmp/apt.conf.v8Vlym for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease: Couldn't create temporary file /tmp/apt.conf.6WuoPf for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease: Couldn't create temporary file /tmp/apt.conf.aWkj5T for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease' is not signed.
The command '/bin/sh -c set -ex     && apt-get update     && apt-get install -y --no-install-recommends         locales         locales-all         tzdata     && locale-gen en_US $LANG     && update-locale LC_ALL=$LC_ALL LANG=$LANG     && locale         && apt-get install -y --no-install-recommends         build-essential         software-properties-common         apt-transport-https         ca-certificates         lsb-release         pkg-config         gnupg         git         git-lfs         gdb         wget         wget2         curl         nano         zip         unzip         time         sshpass         ssh-client     && apt-get clean     && rm -rf /var/lib/apt/lists/*         && gcc --version     && g++ --version' returned a non-zero code: 100
[08:56:49] ===================================================================================== 
[08:56:49] ===================================================================================== 
[08:56:49] 💣 `jetson-containers build` failed after 3.2 seconds (0.1 minutes) 
[08:56:49] Error: Command 'DOCKER_BUILDKIT=0 docker build --network=host   --tag text-generation-webui:r36.4.tegra-aarch64-cu126-22.04-build-essential   --file /home/glenn/git/jetson-containers/packages/build/build-essential/Dockerfile   --build-arg BASE_IMAGE=ubuntu:22.04    /home/glenn/git/jetson-containers/packages/build/build-essential 2>&1 | tee /home/glenn/git/jetson-containers/logs/20250828_085646/build/01o29_text-generation-webui_r36.4.tegra-aarch64-cu126-22.04-build-essential.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 100. 
[08:56:49] ===================================================================================== 
[08:56:49] ===================================================================================== 
[08:56:49] Failed building:  text-generation-webui

Traceback (most recent call last):
  File "/home/glenn/git/jetson-containers/jetson_containers/build.py", line 129, in <module>
    build_container(**vars(args))
  File "/home/glenn/git/jetson-containers/jetson_containers/container.py", line 231, in build_container
    status = subprocess.run(cmd.replace(_NEWLINE_, ' '), executable='/bin/bash', shell=True, check=True)
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'DOCKER_BUILDKIT=0 docker build --network=host   --tag text-generation-webui:r36.4.tegra-aarch64-cu126-22.04-build-essential   --file /home/glenn/git/jetson-containers/packages/build/build-essential/Dockerfile   --build-arg BASE_IMAGE=ubuntu:22.04    /home/glenn/git/jetson-containers/packages/build/build-essential 2>&1 | tee /home/glenn/git/jetson-containers/logs/20250828_085646/build/01o29_text-generation-webui_r36.4.tegra-aarch64-cu126-22.04-build-essential.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 100.

Hi,

The error occurs in the beginning when the jetson-container is trying to run `apt-get update’.
Could you test it outside of the container to see if it can work?

$ sudo apt-get update

Thanks.

That can’t be the problem. I’m starting from scratch using the SDKManager app on a ubuntu system to install, or should I say, reinstall the sdk on my Jetson Orin Nano 8gb development kit, which has an nvme drive.

As I understand it, the sdkmanager downloads the NVIDIA SDK onto my ubuntu machine and then proceeds to install it onto the Jetson Nano ssd after first reformatting the nvme drive. The error is occurring before it even reformats. The drive never gets cleaned and contains the sdk that I’m trying to remove and replace with the new one just downloaded.

Something doesn’t seem to be working right with sdkmanager.

Glenn

Is there a way to install a bootable ubuntu and the full sdk from an sd card and bypass sdkmanager? The documentation says how to install the jetpack stuff onto the ssd, but not the bootable os. I don’t want to have to boot from an sd card.

Glenn

Hi,

Sorry for the late update.

We have a similar ‘stable-diffusion-webui’ container.
Could you check if you can pull and run it successfully?

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.