Skip to content

Having issues building the environment.  #2

Description

@subtera745

I've been trying to get this to work on my local. I'm running Ubuntu 22.04. Nvidia-smi 560.35.03 Cuda Version: 12.6.

I keep getting this error, no matter what I do. Which is confusing, because I was able to get this working initially, and then something required the appropriate system user credentials, so I thought to reinstall the environment to fix the user credentials i had set wrong the first time. Upon reinstallation of this environment, i was not prompted to provide a different uid or gid, as I believe I was prompted to provide this the first time, I could be wrong. regardless, I ended up removing and re-installing my nvidia drivers, and cuda drivers, making sure to install the proper toolkits for them as well. I believe at least. Half the time I feel a bit gaslit, because I still may have messed things up. I have removed and cleaned away the docker images, containers and volumes. I have added specific verbiage to my docker daemon files as listed here NVIDIA/nvidia-docker#838 . I have updated the project Dockerfile to reflect my environment nvidia and cuda versioning. However, i understand that runtime cuda drivers are indicative of being managed by python.

All that to say, should I be trying to enter the docker environment to sort out the appropriate versioning of the python runtime packages? Should I try and modify the user_script.bash to install updated runtime python packages? This reddit post mentions that they had to reinstall the appropriate runtime packages https://www.reddit.com/r/comfyui/comments/1cw33fy/comfy_installation_broken_for_anyone_else/

Should I utilize that to match the appropriate versioning I have installed? I do not know how to proceed. I have been trying to get this working for three days. Please advise.

comfyui-nvidia | -- COMFYUI_PATH: /comfy/mnt/ComfyUI
comfyui-nvidia | == You will need to run ComfyUI-Manager a first time for the configuration file to be generated, we can not attempt to update its
security level yet
comfyui-nvidia | == Container directory: /comfy/mnt/ComfyUI
comfyui-nvidia | == Checking for user script: /comfy/mnt/user_script.bash
comfyui-nvidia | ===================
comfyui-nvidia | == Running ComfyUI
comfyui-nvidia | -- Running: python3 ./main.py --listen 0.0.0.0 --disable-auto-launch
comfyui-nvidia | [START] Security scan
comfyui-nvidia | [DONE] Security scan
comfyui-nvidia | ## ComfyUI-Manager: installing dependencies done.
comfyui-nvidia | ** ComfyUI startup time: 2024-09-29 00:24:19.563793
comfyui-nvidia | ** Platform: Linux
comfyui-nvidia | ** Python version: 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0]
comfyui-nvidia | ** Python executable: /comfy/mnt/venv/bin/python3
comfyui-nvidia | ** ComfyUI Path: /comfy/mnt/ComfyUI
comfyui-nvidia | ** Log path: /comfy/mnt/ComfyUI/comfyui.log
comfyui-nvidia |
comfyui-nvidia | Prestartup times for custom nodes:
comfyui-nvidia | 0.2 seconds: /comfy/mnt/ComfyUI/custom_nodes/ComfyUI-Manager
comfyui-nvidia |
comfyui-nvidia | Traceback (most recent call last):
comfyui-nvidia | File "/comfy/mnt/ComfyUI/./main.py", line 90, in
comfyui-nvidia | import execution
comfyui-nvidia | File "/comfy/mnt/ComfyUI/execution.py", line 13, in
comfyui-nvidia | import nodes
comfyui-nvidia | File "/comfy/mnt/ComfyUI/nodes.py", line 21, in
comfyui-nvidia | import comfy.diffusers_load
comfyui-nvidia | File "/comfy/mnt/ComfyUI/comfy/diffusers_load.py", line 3, in
comfyui-nvidia | import comfy.sd
comfyui-nvidia | File "/comfy/mnt/ComfyUI/comfy/sd.py", line 5, in
comfyui-nvidia | from comfy import model_management
comfyui-nvidia | File "/comfy/mnt/ComfyUI/comfy/model_management.py", line 143, in
comfyui-nvidia | total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
comfyui-nvidia | File "/comfy/mnt/ComfyUI/comfy/model_management.py", line 112, in get_torch_device
comfyui-nvidia | return torch.device(torch.cuda.current_device())
comfyui-nvidia | File "/comfy/mnt/venv/lib/python3.10/site-packages/torch/cuda/init.py", line 878, in current_device
comfyui-nvidia | _lazy_init()
comfyui-nvidia | File "/comfy/mnt/venv/lib/python3.10/site-packages/torch/cuda/init.py", line 314, in _lazy_init
comfyui-nvidia | torch._C._cuda_init()
comfyui-nvidia | RuntimeError: No CUDA GPUs are available
comfyui-nvidia | ComfyUI failed or exited with an error
comfyui-nvidia | == user -- uid: 1024 / gid: 1024
comfyui-nvidia | Wrong GID (1024), exiting
comfyui-nvidia exited with code 0

edit: I also have no idea how to change the GID and UID that's been provided. I changed the Dockerfile and init.bash to uid / gid 1000 respectively, but still. it keeps being set as 1024.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions