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

cu121 docker compose build failed #75

Open
shihuiyu opened this issue Dec 26, 2024 · 2 comments
Open

cu121 docker compose build failed #75

shihuiyu opened this issue Dec 26, 2024 · 2 comments

Comments

@shihuiyu
Copy link

Thanks for your work.
I want to use cu121 to generate image, but faild as follows:

shy@shy-PC:~/comfyui/ComfyUI-Docker/cu121$ docker compose build
[+] Building 0.0s (0/1) docker:default
[+] Building 0/1
[+] Building 3.3s (6/15) docker:default
=> [file-chown internal] load build definition from Dockerf 0.0s
=> => transferring dockerfile: 5.98kB 0.0s
=> [file-chown internal] load metadata for docker.io/opensu 2.7s
=> [file-chown internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [file-chown internal] load build context 0.0s
=> => transferring context: 199B 0.0s
=> CACHED [file-chown stage-0 1/11] FROM docker.io/opensus 0.0s
=> ERROR [file-chown stage-0 2/11] RUN --mount=type=cache, 0.4s

[file-chown stage-0 2/11] RUN --mount=type=cache,target=/var/cache/zypp set -eu && zypper addrepo --refresh --priority 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/' packman-essentials && zypper --gpg-auto-import-keys install --no-confirm python311 python311-pip python311-wheel python311-setuptools python311-devel python311-Cython gcc-c++ python311-py-build-cmake python311-numpy1 python311-opencv python311-ffmpeg-python ffmpeg x264 x265 python311-dbm google-noto-sans-fonts google-noto-sans-cjk-fonts google-noto-coloremoji-fonts shadow git aria2 Mesa-libGL1 libgthread-2_0-0 && rm /usr/lib64/python3.11/EXTERNALLY-MANAGED && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 100:
0.304 Adding repository 'packman-essentials' [.....done]
0.305 Repository 'packman-essentials' successfully added
0.305
0.305 URI : https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/
0.305 Enabled : Yes
0.305 GPG Check : Yes
0.305 Autorefresh : Yes
0.305 Priority : 90 (raised priority)
0.305
0.305 Repository priorities in effect: (See 'zypper lr -P' for details)
0.305 90 (raised priority) : 1 repository
0.305 99 (default priority) : 4 repositories
0.375 Retrieving repository 'packman-essentials' metadata [.error]
0.381 Repository 'packman-essentials' is invalid.
0.381 [packman-essentials|https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/] Failed to retrieve new repository metadata.
0.381 History:
0.381 - [|] Error trying to read from 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/'
0.381 - Download (curl) error for 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/content':
0.381 Error code: Connection failed
0.381 Error message: Could not resolve host: ftp.gwdg.de
0.381 Please check if the URIs defined for this repository are pointing to a valid repository.
0.381 Warning: Skipping repository 'packman-essentials' because of the above error.
0.383 Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata [..error]
0.386 Repository 'openSUSE-Tumbleweed-Non-Oss' is invalid.
0.386 [repo-non-oss|http://download.opensuse.org/tumbleweed/repo/non-oss/] Failed to retrieve new repository metadata.
0.386 History:
0.386 - [|] Error trying to read from 'http://download.opensuse.org/tumbleweed/repo/non-oss/'
0.386 - Download (curl) error for 'http://download.opensuse.org/tumbleweed/repo/non-oss/content':
0.386 Error code: Connection failed
0.386 Error message: Could not resolve host: download.opensuse.org
0.386 Please check if the URIs defined for this repository are pointing to a valid repository.
0.386 Warning: Skipping repository 'openSUSE-Tumbleweed-Non-Oss' because of the above error.
0.387 Retrieving repository 'Open H.264 Codec (openSUSE Tumbleweed)' metadata [.error]
0.389 Repository 'Open H.264 Codec (openSUSE Tumbleweed)' is invalid.
0.389 [repo-openh264|http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed] Failed to retrieve new repository metadata.
0.389 History:
0.389 - [|] Error trying to read from 'http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed'
0.389 - Download (curl) error for 'http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/content':
0.389 Error code: Connection failed
0.389 Error message: Could not resolve host: codecs.opensuse.org
0.389 Please check if the URIs defined for this repository are pointing to a valid repository.
0.389 Warning: Skipping repository 'Open H.264 Codec (openSUSE Tumbleweed)' because of the above error.
0.390 Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [..error]
0.393 Repository 'openSUSE-Tumbleweed-Oss' is invalid.
0.393 [repo-oss|http://download.opensuse.org/tumbleweed/repo/oss/] Failed to retrieve new repository metadata.
0.393 History:
0.393 - [|] Error trying to read from 'http://download.opensuse.org/tumbleweed/repo/oss/'
0.393 - Download (curl) error for 'http://download.opensuse.org/tumbleweed/repo/oss/content':
0.393 Error code: Connection failed
0.393 Error message: Could not resolve host: download.opensuse.org
0.393 Please check if the URIs defined for this repository are pointing to a valid repository.
0.393 Warning: Skipping repository 'openSUSE-Tumbleweed-Oss' because of the above error.
0.394 Retrieving repository 'openSUSE-Tumbleweed-Update' metadata [..error]
0.397 Repository 'openSUSE-Tumbleweed-Update' is invalid.
0.397 [repo-update|http://download.opensuse.org/update/tumbleweed/] Failed to retrieve new repository metadata.
0.397 History:
0.397 - [|] Error trying to read from 'http://download.opensuse.org/update/tumbleweed/'
0.397 - Download (curl) error for 'http://download.opensuse.org/update/tumbleweed/content':
0.397 Error code: Connection failed
0.397 Error message: Could not resolve host: download.opensuse.org
0.397 Please check if the URIs defined for this repository are pointing to a valid repository.
0.397 Warning: Skipping repository 'openSUSE-Tumbleweed-Update' because of the above error.
0.397 Some of the repositories have not been refreshed because of an error.
0.397 Loading repository data...
0.397 Reading installed packages...
0.407 'shadow' is already installed.
0.407 Package 'shadow' is not available in your repositories. Cannot reinstall, upgrade, or downgrade.
0.407 'Mesa-libGL1' not found in package names. Trying capabilities.
0.407 'aria2' not found in package names. Trying capabilities.
0.407 'ffmpeg' not found in package names. Trying capabilities.
0.407 'gcc-c++' not found in package names. Trying capabilities.
0.407 'git' not found in package names. Trying capabilities.
0.407 'google-noto-coloremoji-fonts' not found in package names. Trying capabilities.
0.407 'google-noto-sans-cjk-fonts' not found in package names. Trying capabilities.
0.407 No provider of 'Mesa-libGL1' found.
0.407 No provider of 'aria2' found.
0.407 No provider of 'ffmpeg' found.
0.407 No provider of 'gcc-c++' found.
0.407 No provider of 'git' found.
0.407 No provider of 'google-noto-coloremoji-fonts' found.
0.407 No provider of 'google-noto-sans-cjk-fonts' found.
0.407 No provider of 'google-noto-sans-fonts' found.
0.407 No provider of 'libgthread-2_0-0' found.
0.407 No provider of 'python311' found.
0.407 No provider of 'python311-Cython' found.
0.407 No provider of 'python311-dbm' found.
0.407 No provider of 'python311-devel' found.
0.407 No provider of 'python311-ffmpeg-python' found.
0.407 No provider of 'python311-numpy1' found.
0.407 No provider of 'python311-opencv' found.
0.407 No provider of 'python311-pip' found.
0.407 No provider of 'python311-py-build-cmake' found.
0.407 No provider of 'python311-setuptools' found.
0.407 No provider of 'python311-wheel' found.
0.407 No provider of 'x264' found.
0.407 No provider of 'x265' found.
0.407 'google-noto-sans-fonts' not found in package names. Trying capabilities.
0.407 'libgthread-2_0-0' not found in package names. Trying capabilities.
0.407 'python311' not found in package names. Trying capabilities.
0.407 'python311-Cython' not found in package names. Trying capabilities.
0.407 'python311-dbm' not found in package names. Trying capabilities.
0.407 'python311-devel' not found in package names. Trying capabilities.
0.407 'python311-ffmpeg-python' not found in package names. Trying capabilities.
0.407 'python311-numpy1' not found in package names. Trying capabilities.
0.407 'python311-opencv' not found in package names. Trying capabilities.
0.407 'python311-pip' not found in package names. Trying capabilities.
0.407 'python311-py-build-cmake' not found in package names. Trying capabilities.
0.407 'python311-setuptools' not found in package names. Trying capabilities.
0.407 'python311-wheel' not found in package names. Trying capabilities.
0.407 'x264' not found in package names. Trying capabilities.
[+] Building 0/1 found in package names. Trying capabilities.
⠸ Service file-chown Building 3.3s
failed to solve: process "/bin/sh -c set -eu && zypper addrepo --refresh --priority 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/' packman-essentials && zypper --gpg-auto-import-keys install --no-confirm python311 python311-pip python311-wheel python311-setuptools python311-devel python311-Cython gcc-c++ python311-py-build-cmake python311-numpy1 python311-opencv python311-ffmpeg-python ffmpeg x264 x265 python311-dbm google-noto-sans-fonts google-noto-sans-cjk-fonts google-noto-coloremoji-fonts shadow git aria2 Mesa-libGL1 libgthread-2_0-0 && rm /usr/lib64/python3.11/EXTERNALLY-MANAGED && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 100" did not complete successfully: exit code: 104

I tried open link 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/' in browser, it works.
I tried check network as follows:
shy@shy-PC:~/comfyui/ComfyUI-Docker/cu121$ nslookup ftp.gwdg.de
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: ftp.gwdg.de
Address: 134.76.12.6
Name: ftp.gwdg.de
Address: 2a06:93c7:f0::f79

shy@shy-PC:~/comfyui/ComfyUI-Docker/cu121$ curl -I http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 26 Dec 2024 02:23:34 GMT
Content-Type: text/html
Connection: keep-alive
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
It seems that the network is good.

The most puzzling thing is I generate same cu121 image one month ago. Because my system didn't worked, i reinstalled the system.
My configuration is ubuntu22.04, nvidia driven550, cuda 12.1.

Looking forward to your help. And you can write Chinese. I didn't have time to install the Chinese input method.

@YanWenKun
Copy link
Owner

你的日志报错内容是连接失败,我猜可能跟国内网络有关。
推荐改用 cu124-cn ,550版本的驱动完全可以用CUDA12.4了,并且我建议用 Dockerfile-cn 文件,以便于构建镜像时也使用国内代理。

参考命令:

docker pull docker.m.daocloud.io/opensuse/tumbleweed:latest

docker build . -t yanwk/comfyui-boot:cu124-cn -f Dockerfile-cn

如果后续用 docker-compose 启动,记得不要添加 --build 参数。

@YanWenKun
Copy link
Owner

YanWenKun commented Dec 26, 2024

不知道你成功了没有,我补上一句:
你不需要在宿主机里安装 CUDA 12.4,我这里指的是容器内运行 CUDA 12.4,它只需要你在宿主机安装的驱动 >= 550.54.15 就行了

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